Indentation fix, cleanup.
[AROS.git] / arch / all-pc / boot / grub2-aros / ChangeLog-2015
blob869f6bfb8929a1a9bc018d7780ec8461c583eeb2
1 2015-01-23  Vladimir Serbinenko  <phcoder@gmail.com>
3         * tests/file_filter/file: Really add missing file.
5 2015-01-23  Andrei Borzenkov  <arvidjaar@gmail.com>
7         * grub-core/disk/xen/xendisk.c: Accept hdX as disk names on Xen to
8         allow legacy menu.lst processing.
10 2015-01-22  Felix Janda <felix.janda@posteo.de>
12         Remove direct _llseek code and require long filesystem libc.
14 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
16         Remove potential division by 0 in gfxmenu.
18 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
20         * grub-core/normal/menu_text.c (grub_menu_init_page): Avoid
21         returning 0 geometry to avoid divisions by 0.
23 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
25         * grub-core/osdep/unix/cputime.c (grub_util_get_cpu_time_ms): Cache
26         sc_clk_tck and check it for sanity.
28 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
30         * grub-core/kern/efi/mm.c (grub_efi_get_memory_map): Never return a
31         descriptor_size==0 to avoid potential divisions by zero.
33 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
35         * grub-core/osdep/haiku/getroot.c (grub_util_find_partition_start_os):
36         Avoid division by zero.
38 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
40         * grub-core/kern/generic/rtc_get_time_ms.c (grub_rtc_get_time_ms): Avoid
41         division by zero.
43 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
45         * grub-core/loader/i386/xnu.c (guessfsb): Avoid division by 0.
47 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
49         * grub-core/kern/i386/tsc.c (calibrate_tsc): Ensure that
50         no division by 0 occurs.
52 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
54         * include/grub/misc.h (grub_div_roundup): Remove as it's unused.
56 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
58         * grub-core/term/gfxterm.c: Avoid division by zero.
60 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
62         Avoid division by zero in serial.
64         * grub-core/term/serial.c (grub_cmd_serial): Ensure speed is not 0.
65         * grub-core/term/ns8250.c (serial_get_divisor): Exit if speed is 0.
67 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
69         * grub-core/video/readers/jpeg.c: Avoid sivision by zero.
71 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
73         * grub-core/disk/diskfilter.c: Validate volumes to avoid division
74         by zero.
76 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
78         * include/grub/term.h: Avoid returining 0-sized terminal
79         as it may lead to division by zero.
81 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
83         * grub-core/fs/zfs.c: Avoid divisions by zero.
85 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
87         * grub-core/fs/btrfs.c: Avoid divisions by zero.
89 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
91         * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Check that hash len is not 0.
93 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
95         * grub-core/osdep/linux/blocklist.c (grub_install_get_blocklist): Check
96         blocksize validity.
98 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
100         * grub-core/disk/i386/pc/biosdisk.c: Check disk size sanity.
102 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
104         * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
105         validity.
107 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
109         * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
110         divide by zero.
112 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
114         * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
115         sanity checks.
117 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
119         * grub-core/fs/minix.c: Additional filesystem
120         sanity checks.
122 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
124         * grub-core/fs/ext2.c (grub_ext2_mount): Additional
125         checks for superblock validity.
127 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
129         * grub-core/fs/ufs.c (grub_ufs_mount): Check
130         that sblock.ino_per_group is not 0.
132 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
134         Reject NILFS2 superblocks with over 1GiB blocks.
136         * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
137         block size is <= 1GiB.
139 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
141         * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
142         is sane when using CHS addressing.
144 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
146         * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
148 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
150         * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
151         division by zero.
153 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
155         * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
156         potentially returning 0.
158 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
160         * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
161         the end of file.
163 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
165         * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
166         past the end of file.
168 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
170         * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
171         synchronously with line.
173 2015-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
175         Replace explicit sizeof divisions by ARRAY_SIZE.
177 2015-01-19  Kris Moore <kris@pcbsd.org>
179         * grub-core/disk/geli.c: Support GELI v6 and v7.
181 2014-12-09  Andrei Borzenkov  <arvidjaar@gmail.com>
183         * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
184         option processing.
186 2014-12-07  David Kozub  <zub.272@gmail.com>
188         * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
189         in __aeabi_uidivmod
190         Fixes Savannah bug #43632.
192 2014-12-07  Peter Nelson <peterdn>
194         * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
195         chunks.
197 2014-12-07  Andrei Borzenkov  <arvidjaar@gmail.com>
199         * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
200         non-portable '-n' echo option.
201         * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
202         non-portable 'echo -n.
203         * util/grub.d/10_linux.in: Likewise (closes 43668).
204         * util/grub.d/20_linux_xen.in: Likewise.
205         * util/grub.d/30_os-prober.in: Print spaces directly to avoid
206         non-portable 'echo -n'.
208 2014-12-07  Curtis Larsen <larsen@dixie.edu>
210         * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
211         free when multiple empty segments were received (closes 42765).
213 2014-12-05  Andrei Borzenkov  <arvidjaar@gmail.com>
215         * tests/util/grub-shell.in: Support --files also for netboot.
216         * tests/file_filter_test.in: New file with file filters tests.
217         * Makefile.util.def: Add file_filter_test.
218         * conf/Makefile.extra-dist: ... and here.
219         * tests/file_filter/file.gz: Test file for file_filter_test.
220         * tests/file_filter/file.gz.sig: Likewise.
221         * tests/file_filter/file.lzop: Likewise.
222         * tests/file_filter/file.lzop.sig: Likewise.
223         * tests/file_filter/file.xz: Likewise.
224         * tests/file_filter/file.xz.sig: Likewise.
225         * tests/file_filter/keys: Likewise.
226         * tests/file_filter/keys.pub: Likewise.
227         * tests/file_filter/test.cfg: Likewise.
228         * grub-core/commands/verify.c: Fix memory corruption doing
229         signature check for network files (closes 43601).
231 2014-12-01  Andrei Borzenkov  <arvidjaar@gmail.com>
233         * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
234         memory leak (CID 73645, 73782).
235         * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
236         (CID 73635).
238 2014-11-30  Andrei Borzenkov  <arvidjaar@gmail.com>
240         * grub-core/lib/syslinux_parse.c (free_menu): Do not free
241         inline array (CID 73610).
243 2014-11-28  Andrei Borzenkov  <arvidjaar@gmail.com>
245         * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
246         * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
247         (Coverity CID 73813, 73710)
248         * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
249         and use after free (Coverity CID 73813, 73710, 73730)
250         * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
251         CID 73854)
252         * util/grub-install-common.c (grub_install_get_target): Check return
253         value of grub_util_fd_read (Coverity CID 73819).
254         * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
255         to hd.magic (Coverity CID 73587, 73888, bug 43690).
257 2014-11-20  Andrei Borzenkov  <arvidjaar@gmail.com>
259         * tests/util/grub-fs-tester.in: Consistently print output
260         of grub ls if test fails.
262 2014-11-07  Leif Lindholm <leif.lindholm@linaro.org>
264         * grub-core/kern/efi/init.c: check value of *path before
265         dereferencing.
267 2014-11-03  Michael Chang  <mchang@suse.com>
269         * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
270         of neighbor solicitation packet in grub_netbuff_pull.
272 2014-10-14  Andrei Borzenkov  <arvidjaar@gmail.com>
274         * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
275         avoid fatal warnings with older gcc (probably before 4.7).
276         * grub-core/loader/arm64/linux.c: Likewise.
277         * grub-core/loader/i386/linux.c: Likewise.
278         * grub-core/loader/i386/pc/linux.c: Likewise.
279         * grub-core/loader/ia64/efi/linux.c: Likewise.
280         * grub-core/loader/mips/linux.c: Likewise.
281         * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
282         * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
284 2014-09-25  Colin Watson  <cjwatson@ubuntu.com>
286         Fix in-tree --platform=none
288         * configure.ac: Only remove include/grub/cpu and
289         include/grub/machine in the --platform=none case, not all of
290         include/grub.
292 2014-09-23  Colin Watson  <cjwatson@ubuntu.com>
294         Add a new "none" platform that only builds utilities
296         * configure.ac: Add "none" platform.  Default to it for unsupported
297         CPUs rather than stopping with a fatal error.  Don't downgrade
298         x86_64-none to i386.  Define COND_real_platform Automake conditional
299         if the platform is anything other than "none".  Don't do any include
300         directory linking for "none".
301         * Makefile.am: Skip building grub-core and all bootcheck targets if
302         !COND_real_platform.
303         * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
304         is defined.
306 2014-09-22  Andrei Borzenkov <arvidjaar@gmail.com>
308         Use grub_cpu_to_XXX_compile_time for constants.
310 2014-09-21  Valentin Dornauer  <valentin@unimplemented.org>
312         The AML parser implements only a small subset of possible AML
313         opcodes. On the Fujitsu Lifebook E744 this and another bug in
314         the parser (incorrect handling of TermArg data types) would lead
315         to the laptop not turning off (_S5 not found).
317         * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
318         in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
319         aren't always simply strings!); Add function to skip TermArgs
320         * include/grub/acpi.h: Add new opcodes
322 2014-09-21  Vladimir Serbinenko  <phcoder@gmail.com>
324         * grub-core/normal/main.c: Don't drop to rescue console in
325         case of password-protected prompt and no menu entries.
327 2014-09-21  Vladimir Serbinenko  <phcoder@gmail.com>
329         * grub-core/commands/keylayouts.c: Ignore unknown keys.
331 2014-09-21  Vladimir Serbinenko  <phcoder@gmail.com>
333         * grub-core/gmodule.pl.in: Accept newer binutils which output
334         empty column rather than 0x0.
336 2014-09-21  Michael Chang  <mchang@suse.com>
338         * grub-core/osdep/unix/config.c: Remove extraneous comma.
340 2014-09-21  Peter Jones  <pjones@redhat.com>
342         * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
343         we don't free a random pointer from the stack.
344         * grub-core/loader/arm64/linux.c: Likewise.
345         * grub-core/loader/i386/linux.c: Likewise.
346         * grub-core/loader/i386/pc/linux.c: Likewise.
347         * grub-core/loader/ia64/efi/linux.c: Likewise.
348         * grub-core/loader/mips/linux.c: Likewise.
349         * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
350         * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
352 2014-09-15  Khem Raj  <raj.khem@gmail.com>
354         * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
355         _BSD_SOURCE to avoid warnings under glibc 2.20+.
357 2014-09-08  Michael Chang  <mchang@suse.com>
359         * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
360         check; comparing &data->extent against addresses in the region it
361         points to is unpredictable.
363 2014-09-07  Colin Watson  <cjwatson@ubuntu.com>
365         Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
367         * configure.ac: Remove -m64 from checks for -mcmodel=large and
368         -mno-red-zone.  These are always either unnecessary (x86_64-emu) or
369         already in TARGET_CFLAGS at this point, and they produce incorrect
370         results when building for x32.
371         * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
372         pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
373         * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
374         GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
376 2014-09-07  Colin Watson  <cjwatson@ubuntu.com>
378         * configure.ac: Remove several unnecessary semicolons.
380 2014-08-25  Colin Watson  <cjwatson@ubuntu.com>
382         * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
383         Initialise pend to pacify GCC.
385 2014-08-14  Andrey Borzenkov <arvidjaar@gmail.com>
387         * util/grub-mkconfig.in: Fix typo (gettext_print instead of
388         gettext_printf).
390 2014-08-13  Vladimir Serbinenko  <phcoder@gmail.com>
392         * grub-core/term/at_keyboard.c: Retry probing keyboard if
393         scancode setup failed.
395 2014-08-10  Vladimir Serbinenko  <phcoder@gmail.com>
397         * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
399 2014-08-10  Vladimir Serbinenko  <phcoder@gmail.com>
401         * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
402         safety to avoid triggerring VirtualBox bug.
404 2014-08-10  Vladimir Serbinenko  <phcoder@gmail.com>
406         * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
408         Fixes hang on virtualbox.
410 2014-07-08  Colin Watson  <cjwatson@ubuntu.com>
412         * util/grub.d/10_hurd.in: Make kernel list progression not fail on
413         kernels whose paths contain regex metacharacters.
414         * util/grub.d/10_kfreebsd.in: Likewise.
415         * util/grub.d/10_linux.in: Likewise.
416         * util/grub.d/20_linux_xen.in: Likewise.
418         Reported by: Heimo Stranner.
420 2014-06-26  Colin Watson  <cjwatson@ubuntu.com>
422         * docs/grub-dev.texi (Finding your way around): The build system no
423         longer uses AutoGen directly.
425 2014-06-21  Роман Пехов <roman_pekhov>
427         * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
429 2014-06-21  Glenn Washburn <development@efficientek.com>
431         * util/grub-install.c: Fix handling of --disk-module.
433 2014-06-21  Stephane Rochoy <sheda>
435         * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
436         EFI system table.
438 2014-06-21  Stephane Rochoy <sheda>
440         * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
441         EFI system table physical address.
443 2014-06-21  Trevor Woerner <trevor.woerner@linaro.org>
445         * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
447 2014-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
449         * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
451 2014-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
453         * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
454         check.
456 2014-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
458         * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
460         Reported by: Yves Blusseau <blusseau@zetam.org>.
462 2014-04-20  Piotr Krysiuk  <piotras@gmail.com>
464         * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
465         GDT in conventional memory.
467 2014-04-10  Colin Watson  <cjwatson@ubuntu.com>
469         * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
470         UUID.  Other parts of grub-mkconfig tolerate these, they were
471         previously allowed here up to commit
472         55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
473         practice when the system has active LVM snapshots.
474         Fixes Ubuntu bug #1287436.
476 2014-04-10  Colin Watson  <cjwatson@ubuntu.com>
478         * grub-core/disk/lvm.c (grub_lvm_detect): Search for
479         "logical_volumes" block a little more accurately.
481 2014-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
483         * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
485 2014-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
487         * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
488         pulled from libgcc.
490 2014-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
492         Replace few instances of memcmp/memcpy in the code that should be
493         grub_memcmp/grub_memcpy.
495 2014-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
497         * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
498         device names.
500 2014-03-31  Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
502         btrfs: fix get_root key comparison failures due to endianness
504         * grub-core/fs/btrfs.c (get_root): Convert
505         GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
507 2014-03-31  Colin Watson  <cjwatson@ubuntu.com>
509         Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
511         Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
512         no longer to be forgiving of trailing spaces on grub-probe output
513         lines, which among other things means that util/grub.d/10_linux.in
514         no longer detects LVM.  To fix this, make grub-probe's output
515         delimiting more consistent.  As a bonus, this improves the coverage
516         of the -0 option.
518         Fixes Debian bug #735935.
520         * grub-core/disk/cryptodisk.c
521         (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
522         * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
523         Likewise.
524         * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
525         Update prototype.
526         * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
527         * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
528         probe_mods): Adjust for extra user-data arguments.
529         * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
530         probe_abstraction): Use configured delimiter.  Update callers.
532 2014-03-31  Colin Watson  <cjwatson@ubuntu.com>
534         * util/grub-probe,c (options): Make -0 work again (broken by
535         conversion to argp).
536         (main): Simplify logic.
538 2014-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
540         * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
542 2014-03-26  Fu Wei <fu.wei@linaro.org>
544         * grub-core/loader/arm64/linux.c: Remove redundant "0x".
546 2014-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
548         * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
549         * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
551         Suggested by: Markus Müller.
553 2014-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
555         * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
556         if E820 failed to return any regions.
558 2014-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
560         * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
561         tables for low memory calculations.
563 2014-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
565         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
566         location to 640K.
568 2014-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
570         * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
571         region.
573 2014-02-20  Vladimir Serbinenko  <phcoder@gmail.com>
575         * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
576         exclusively.
578 2014-02-04  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
580         Add bootpath parser for open firmware.
582         It enables net boot even when there is no bootp/dhcp server.
584         * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
585         and call it at grub_ieee1275_net_config_real.
586         * grub-core/kern/ieee1275/init.c: Add bootpath to
587         grub_ieee1275_net_config.
588         * include/grub/ieee1275/ieee1275.h: Likewise.
591 2014-02-04  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
593         Add grub_env_set_net_property function.
595         * grub-core/net/bootp.c: Remove set_env_limn_ro.
596         * grub-core/net/net.c: Add grub_env_set_net_property.
597         * include/grub/net.h: Likewise.
599 2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
601         * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
603 2014-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
605         * util/grub-mkfont.c: Build fix for argp.h with older gcc.
607 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
609         * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
610         7 seconds to recover if last poweroff was bad.
612 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
614         * grub-core/disk/ahci.c: Properly handle transactions with no
615         transferred data.
617 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
619         * grub-core/disk/ahci.c: Add safety cleanups.
621 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
623         * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
624         slots to avoid pointing to uninited area.
626 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
628         * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
629         enabling busmaster for the end.
631 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
633         * util/grub-mkfont.c: Downgrade warnings about unhandled features
634         to debug.
636 2014-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
638         * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
640 2014-01-29  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
642         * .gitignore: add missing files and .exe variants.
644 2014-01-26  Mike Gilbert <floppym@gentoo.org>
646         grub-install: support for partitioned partx loop devices.
648         * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
649         /dev/loopX as being the parent of /dev/loopXpY.
651 2014-01-26  Vladimir Serbinenko  <phcoder@gmail.com>
653         * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
654         Ensure that pointers are inited to NULL and that pointers are not
655         accessed after free.
657 2014-01-25  Andrey Borzenkov <arvidjaar@gmail.com>
659         * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
660         __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
661         * include/grub/emu/misc.h: ... and here.
662         * include/grub/err.h: ... and here.
663         * util/import_gcry.py: ... and here (in files g10lib.h).
665 2014-01-25  Andrey Borzenkov <arvidjaar@gmail.com>
667         * util/grub-mkimage.c: Make prefix argument mandatory.
669 2014-01-24  Vladimir Serbinenko  <phcoder@gmail.com>
671         Fix several translatable strings.
673         Suggested by: D. Prévot.
675 2014-01-24  Vladimir Serbinenko  <phcoder@gmail.com>
677         * util/grub-install.c: List available targets.
679 2014-01-23  Colin Watson  <cjwatson@ubuntu.com>
681         * util/grub-install.c (write_to_disk): Add an info message.
683 2014-01-21  Andrey Borzenkov <arvidjaar@gmail.com>
685         * Makefile.am: Allow adding extra files to generated Windows ZIP
686         archive by setting GRUB_WINDOWS_EXTRA_DIST.
688 2014-01-21  Andrey Borzenkov <arvidjaar@gmail.com>
690         * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
691         Show detected font path in summary.
693 2014-01-21  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
695         * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
696         interval gradually.
697         * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
698         * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
699         * grub-core/net/tftp.c (tftp_open): Likewise.
700         * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
702 2014-01-21  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
704         * grub-core/net/net.c (receive_packets): Change stop condition to avoid
705         infinite loops.
707         In net/net.c there is a while (1) that only exits if there is a stop
708         condition and more then 10 packages or if there is no package received.
710         If GRUB is idle and enter in this loop, the only condition to leave is
711         if it doesn't have incoming packages. In a network with heavy traffic
712         this never happens.
714 2014-01-19  Colin Watson  <cjwatson@ubuntu.com>
716         * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
717         EPERM when modifying kern.geom.debugflags.  It is only a problem for
718         such things as installing GRUB to the MBR, in which case there'll be
719         an error later anyway, not for opening files during tests.
721 2014-01-18  Andrey Borzenkov <arvidjaar@gmail.com>
723         * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
724         instead of MOD_FILES.
725         * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
726         both with and without .exe.
727         * grub-core/genemuinitheader.sh: Same.
729 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
731         * util/grub-install.c: Fix a typo.
733 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
735         * grub-core/normal/main.c (read_config_file): Buffer config file.
736         Reduces boot time.
738 2014-01-18  Andrey Borzenkov <arvidjaar@gmail.com>
740         * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
741         symbolic link to directory. It fails in Msys shell on Windows 2003.
743 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
745         * Makefile.am (default_payload.elf): Add modules
746         multiboot cbmemc linux16 gzio echo help.
748 2014-01-18  Mike Gilbert <floppym@gentoo.org>
750         * Makefile.util.def: Link grub-ofpathname with zfs libs.
752 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
754         * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
755         conflicts.
757         Reported by: Andrey Borzenkov.
759 2014-01-18  Andrey Borzenkov <arvidjaar@gmail.com>
761         * include/grub/misc.h: Move macros for compiler features to ...
762         * include/grub/compiler.h: ... new file.
763         * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
764         * grub-core/commands/fileXX.c: Include <grub/misc.h>.
765         * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
766         * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
767         * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
768         * grub-core/video/capture.c: Include <grub/misc.h>.
769         * include/grub/command.h: Include <grub/misc.h>.
770         * include/grub/dl.h: Include <grub/misc.h>.
771         * include/grub/procfs.h: Include <grub/misc.h>.
773 2014-01-18  Andrey Borzenkov <arvidjaar@gmail.com>
775         * configure.ac: Add support for BUILD_EXEEXT and use it ...
776         * Makefile.am: ... here.
777         * Makefile.util.def: ... and here.
778         * grub-core/Makefile.am: ... and here.
780 2014-01-18  Andrey Borzenkov <arvidjaar@gmail.com>
782         * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
783         FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
785 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
787         * grub-core/term/terminfo.c: Recognize keys F1-F12.
789 2014-01-18  Andrey Borzenkov <arvidjaar@gmail.com>
791         * configure.ac: Add support for BUILD_LDFLAGS.
792         * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
793         * grub-core/Makefile.am: ... and here.
794         * INSTALL: Mention BUILD_LDFLAGS.
796 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
798         * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
800 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
802         * grub-core/kern/efi/efi.c: Ensure that the result starts with /
803         and has no //.
805 2014-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
807         * NEWS: Add few missing entries.
809 2014-01-17  Colin Watson  <cjwatson@ubuntu.com>
811         * util/grub.d/00_header.in (make_timeout): Use && rather than test
812         -a.
813         * util/grub.d/10_windows.in: Likewise.
814         * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
815         than test -o.
816         * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
817         rather than test -o.
819 2014-01-17  Colin Watson  <cjwatson@ubuntu.com>
821         * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
822         redundant preprocessor conditional.
824 2014-01-08  Colin Watson  <cjwatson@ubuntu.com>
826         * Makefile.util.def (grub-macbless): Change mansection to 8.
828 2014-01-07  Leif Lindholm <leif.lindholm@linaro.org>
830         * grub-core/loader/arm64/linux.c: correctly set device path end length.
832 2014-01-07  Andrey Borzenkov <arvidjaar@gmail.com>
834         * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
835         arm64 to comply with EFI specification. Also use grubaa64.efi for
836         consistency.
837         * util/grub-mkrescue.c: Change to use bootaa64.efi too.
839 2014-01-07  Andrey Borzenkov <arvidjaar@gmail.com>
841         * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
842         on MinGW-64 when compiling for 32 bits.
844 2013-12-30  Andrey Borzenkov <arvidjaar@gmail.com>
846         * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
848 2013-12-30  Vladimir Serbinenko  <phcoder@gmail.com>
850         * NEWS: Add few missing entries. Correct existing ones.
852 2013-12-28  Vladimir Serbinenko  <phcoder@gmail.com>
854         Don't abort() on unavailable coreboot tables if not running on coreboot.
856 2013-12-28  Andrey Borzenkov <arvidjaar@gmail.com>
858         * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
859         on mingw.
861 2013-12-28  Colin Watson  <cjwatson@ubuntu.com>
863         * NEWS: The cmosclean command in fact dates back to 1.99.  Remove
864         mention of it from 2.02.
866 2013-12-27  Vladimir Serbinenko  <phcoder@gmail.com>
868         * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
870         As these functions are used on pre-ARMv6 CPUs as well we don't want
871         to make assembler assume that architecture is higher than default one.
873 2013-12-27  Colin Watson  <cjwatson@ubuntu.com>
875         * NEWS: First draft of 2.02 entry.
877 2013-12-27  Colin Watson  <cjwatson@ubuntu.com>
879         * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
880         * docs/grub.texi (Getting the source code): Likewise.
882 2013-12-25  Andrey Borzenkov <arvidjaar@gmail.com>
884         * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
885         detection.
887 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
889         * configure.ac: Set version to 2.02~beta2.
891 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
893         * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
895 2013-12-24  Andrey Borzenkov <arvidjaar@gmail.com>
897         * util/grub-probe.c: Improve help message and simplify list handling.
899 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
901         Fix buffer overflow in grub_efi_print_device_path.
903 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
905         Show SATA device path.
907 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
909         Revert grub-file usage in grub-mkconfig.
911 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
913         Make newly-created files other than grub.cfg world-readable.
915 2013-12-24  Andrey Borzenkov <arvidjaar@gmail.com>
917         * util/grub.d/00_header.in: Improve compatibility with old config.
919 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
921         Make rijndael.c respect aliasing rules.
923         Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
925 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
927         Make grub_util_device_is_mapped_stat available in grub-emu core.
929 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
931         Add -Qn to TARGET_CFLAGS if it's supported.
932         Fixes compilation on cygwin.
934         Reported by: Andrey Borzenkov.
935         Suggested by: Andrey Borzenkov.
937 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
939         Save TARGET_CC version in modinfo.sh.
941         Suggested by: Andrey Borzenkov.
943 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
945         Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
946         follow the same algorithm to avoid method mismatch. Don't assume
947         DMRAID- UUID to mean full disk but instead check that mapping is linear.
949 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
951         Declare GRUB_EFI_VENDOR_APPLE_GUID.
953 2013-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
955         Dump type and vendor specific data when printing device path.
957 2013-12-23  Colin Watson  <cjwatson@debian.org>
959         Update some documentation to refer to Git rather than Bazaar.
961         * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
962         than Bazaar.
963         * po/README: Likewise.  Fix spelling mistake.
965 2013-12-23  Colin Watson  <cjwatson@ubuntu.com>
967         Don't distribute config.h.
969         * Makefile.am (platform_HEADERS): Move to ...
970         (nodist_platform_HEADERS): ... here.  Fixes gettext_strings_test
971         failure when building from a distributed tarball.
973 2013-12-23  Colin Watson  <cjwatson@ubuntu.com>
975         * configure.ac: Fix spelling.
976         * grub-core/commands/parttool.c: Fix grammar.
977         * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
978         Embedding Partition".
980 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
982         ARM64 support for grub-mkrescue.
984 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
986         Install modinfo.sh to keep build information around.
988 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
990         * grub-core/modinfo.sh.in: Add build config information.
992 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
994         ARM64 grub-file and grub-mkconfig support.
996 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
998         Remove leftover options defines.
1000 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
1002         * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
1004 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
1006         * grub-core/loader/arm64/linux.c: Add missing bracket.
1008 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
1010         Add arm64-efi recognition to grub-file.
1012 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
1014         Fix ia64-efi recognition in grub-file.
1016 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
1018         Recognize raspberry pi kernel in grub-file.
1020 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
1022         Enable cache on ARM U-Boot port.
1024         Without it the port is reidiculously slow.
1026 2013-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
1028         Fix ARM cache maintainance.
1030         More code was converted from ASM to C for easier handling.
1032 2013-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
1034         * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
1035         algorithm on v5.
1037         Suggested by: Leif Lindholm.
1039 2013-12-22  Andrey Borzenkov <arvidjaar@gmail.com>
1041         * util/grub-mkconfig.in: Fix Xen platform conditions.
1043 2013-12-22  Andrey Borzenkov <arvidjaar@gmail.com>
1045         * util/grub-mkrescue.c: Split single help message string in several
1046         strings used in previous shell version.
1048 2013-12-22  Leif Lindholm <leif.lindholm@linaro.org>
1050         Add arm64 Linux loader.
1052 2013-12-22  Leif Lindholm <leif.lindholm@linaro.org>
1054         Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
1056 2013-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
1058         Add module loading and parsing boot time checkpoints.
1060 2013-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
1062         * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
1063         platforms.
1065 2013-12-22  Lars Wendler <polynomial-c@gentoo.org>
1067         * util/grub-mkconfig.in: Skip non-executable files.
1069 2013-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
1071         Workaround buggy timer in raspberry pie by using our own timer
1072         implementation.
1074 2013-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
1076         * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
1077         Increase to 16 MiB to allow loading the whole memdisk.
1079 2013-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
1081         Fix ARM Linux Loader on non-FDT platforms.
1083 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1085         * configure.ac: Choose link format based on host_os on emu.
1087 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1089         * grub-core/osdep/unix/getroot.c: Non-unix build fix.
1091 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1093         * grub-core/kern/emu/main.c: Build fix for emu.
1095 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1097         Build fixes for argp.h with older gcc.
1099 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1101         * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1102         in strings.
1104         Suggested by: David Prévot.
1106 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1108         * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1110 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1112         Enable -Wformat=2 if it's supported.
1114 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1116         * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1117         -Wmissing-declarations if supported.
1119 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1121         * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1122         u32 as both HFS and HFS+ have 32-bit inodes.
1124 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1126         * include/grub/misc.h (grub_strtol): Fix overflow.
1128 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1130         * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1131         as return type in both conditionals.
1133 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1135         * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1136         to use uint8_t for color.
1138 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1140         * util/misc.c (grub_util_get_image_size): Check for overflow.
1142 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1144         * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1145         for size.
1147 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1149         * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1150         for pointer difference.
1152 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1154         * util/import_gcry.py: Skip sample keys.
1156 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1158         * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1160 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1162         * configure.ac: Remove duplicate warning arguments.
1164 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1166         Add missing static qualifiers.
1168 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1170         Add missing includes.
1172 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1174         Inline printf templates when possible to enable format checking.
1176 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1178         * include/grub/crypto.h: Don't discard const attribute.
1180 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1182         * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1183         was intended.
1185 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1187         * grub-core/lib/crypto.c: Don't discard const attribute.
1189 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1191         * grub-core/lib/disk.c: Fix potential overflow.
1193 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1195         * grub-core/lib/arg.c: Don't discard const attribute.
1197 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1199         * grub-core/kern/dl.c: Don't discard const attribute.
1201 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1203         * grub-core/kern/disk.c: Fix potential overflow.
1205 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1207         * conf/Makefile.common: Don't include non-existing directory
1208         grub-core/lib/libgcrypt-grub/include.
1210 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1212         Clarify several translatable messages.
1214 2013-12-21  David Prévot  <david@tilapin.org>
1216         Correct some translatable strings.
1218 2013-12-21  Colin Watson  <cjwatson@ubuntu.com>
1220         * util/grub-mkrescue.c: Rephrase mkrescue description.
1222 2013-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
1223 2013-12-21  Colin Watson  <cjwatson@ubuntu.com>
1225         Clarify several translatable messages.
1227 2013-12-20  Colin Watson  <cjwatson@ubuntu.com>
1229         Be more verbose about some configure failures.
1231 2013-12-20  Colin Watson  <cjwatson@ubuntu.com>
1233         Fix various build problems on GNU/Hurd.
1235         * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1236         !defined (__GNU__).
1237         (xgetcwd): Likewise.
1238         * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1239         [__GNU__]: Add prototype.
1240         * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1241         long int using %ld rather than %d.
1243 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1245         * util/grub-install.c: Inform user about install platform.
1247 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1249         * configure.ac: Set version to 2.02~beta1.
1251 2013-12-18  Allen Pais <allen.pais@oracle.com>
1252 2013-12-18  Bob Picco <bob.picco@oracle.com>
1254         * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1256 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1258         Make grub_zlib_decompress handle incomplete chunks.
1260         Fixes squash4.
1262 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1264         * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1265         on i386-multiboot.
1267 2013-12-18  Aleš Nesrsta  <starous@volny.cz>
1269         * grub-core/disk/usbms.c: Retry on unknown errors.
1270         Reuse the same tag on retries.
1272 2013-12-18  Aleš Nesrsta  <starous@volny.cz>
1274         * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1276         Avoid confusing them with already completed transfers.
1278 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1280         Remove xen VFB.
1282         Due to XEN bug it prevents Linux boot. Remove it at least, until
1283         workaround is found.
1285 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1287         * po/exclude.pot: Add 2 missing excludes.
1289 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1291         Add missing license section in macbless.mod and macho.mod.
1293 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1295         Allow compilation without thumb-interwork as long as no thumb is
1296         involved or only thumb2 is used.
1298 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1300         * INSTALL: Update comment as to why sparc64 clang isn't usable.
1302 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1304         Add __attribute__ ((sysv_abi)) only if it's really needed.
1306         Some compilers don't support it.
1308 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1310         * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1312 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1314         Remove -Wold-style-definition.
1316         Not very useful and interaction of it with regexp depends on GCC
1317         version.
1319 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1321         Make grub_util_get_windows_path_real static.
1323 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1325         * grub-core/commands/fileXX.c: Silence cast-align.
1326         * grub-core/loader/i386/xen_fileXX.c: Likewise.
1328 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1330         * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1331         rather than LL suffix.
1333 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1335         * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1337 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1339         * grub-core/loader/arm/linux.c: Use common initrd functions.
1341 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1343         Decrease number of strings to translate.
1345 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1347         * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1349 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1351         Mark strings for translation and add remaining ones to exclude list.
1353 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1355         * util/grub-file.c (main): Fix sizeof usage.
1357 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1359         Silence spurious warning.
1361 2013-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
1363         Remove check_nt_hiberfil as it's been superseeded by file command.
1365 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1367         * docs/osdetect.cfg: Add isolinux config to detected OSes.
1369 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1371         Implement syslinux parser.
1373 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1375         * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1377 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1379         Support cpuid --pae.
1381 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1383         Use AT keyboard on Yeeloong 3A.
1385 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1387         Add Yeeloong 3A reboot and halt.
1389 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1391         Add Radeon Yeeloong 3A support.
1393 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1395         Add bonito 3A support.
1397 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1399         * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1401 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1403         * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1405 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1407         * grub-core/loader/macho.c: Fix compilation on non-i386.
1409 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1411         Add missing format_arg attribute to check that printf with translated
1412         messages has proper arguments.
1414 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1416         Use grub_xasprintf to format translated error messages containing
1417         64-bit quantity.
1419 2013-12-17  Jon McCune  <jonmccune@google.com>
1421         Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1423 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1425         Unify message for unsupported relocation.
1427 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1429         Mark miscompile error for translation.
1431 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1433         Use %I64 and not %ll when using OS printf if compiling for windows.
1435 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1437         Update Mac code to match new register_efi prototype.
1439 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1441         Implement better integration with Mac firmware.
1443 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1445         * grub-core/loader/multiboot_mbi2.c: Implement special value for
1446         load_addr.
1448 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1450         Include serial module in default_payload.elf.
1452 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1454         Add explicit thumb interwork bx in asm files.
1456         Shouldn't matter for armv >= 5 but let's be safe.
1458 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1460         Implement Truecrypt ISO loader.
1462 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1464         * grub-core/lib/arg.c: Ensure at least a single space between commands.
1466 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1468         Implement grub_file tool and use it to implement generating of config
1469         in separate root.
1471 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1473         Change to v1 xen grants.
1475 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1477         * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1479         GRUB relied on %ebx being preserved across hypercall which isn't true.
1481 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1483         * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1485         GRUB relied on %rdi being preserved across hypercall which isn't true.
1487 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1489         Implement XEN VFB support.
1491 2013-12-17  Vladimir Serbinenko  <phcoder@gmail.com>
1493         Remove grub_bios_interrupt on coreboot.
1495         It's not used currently and cannot be used safely currently.
1497 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1499         Update exclude.pot and mark few strings for translation.
1501 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1503         * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1505         Reported by: Jon McCune
1507 2013-12-16  Andrey Borzenkov <arvidjaar@gmail.com>
1509         * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1510         Add verbose information which firmware directories were tried.
1512 2013-12-16  Andrey Borzenkov <arvidjaar@gmail.com>
1514         * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1515         function to optionally redirect all three standard descriptors.
1516         Redefine grub_util_exec, grub_util_exec_redirect and
1517         grub_util_exec_redirect_null to use it.
1518         * include/grub/emu/exec.h: Define it.
1519         * include/grub/osdep/exec_unix.h: Delete, it is unused.
1520         * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1521         Use grub_util_exec_redirect_all to redirect error to NULL.
1523 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1525         * grub-core/tests/sleep_test.c: Silence spurious warning.
1527 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1529         Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1530         linker trying to "fixup" the code.
1532 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1534         * grub-core/kern/x86_64/xen/startup.S: Align stack.
1536 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1538         Add support for converting PE+ to Elf64.
1540 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1542         * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1544 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1546         Remove practice of assigning random const pointers to device id.
1548         This is not required as cache code already checks driver id as well.
1550 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1552         * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1553         with mingw.
1555 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1557         * include/grub/efi/api.h: Don't use call wrappers when compiled with
1558         mingw or cygwin as API already matches.
1560 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1562         * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1564 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1566         * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1567         not on long.
1569 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1571         Handle X86_64_PC64 relocation.
1573         Those are generated by some cygwin compilers.
1575 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1577         Determine the need for mingw-related stubs at compile time rather than
1578         using not very significant $target_os.
1580 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1582         * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1583         may not work with ELF.
1585 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1587         Use unix functions for temporary files and special files on cygwin.
1589 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1591         Define functions explicitly rather than using --defsym in tests
1592         whenever possible. Respect locality in remaining cases.
1594 2013-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
1596         * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1598 2013-12-15  Andrey Borzenkov <arvidjaar@gmail.com>
1600         * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1601         unlikely errors when getting EFI variables and make exhaustive search
1602         for all BootNNNN variables to find matching one.
1604 2013-12-15  Ian Campbell  <ijc@hellion.org.uk>
1606         * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1608 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1610         New functional test for sleep function.
1612         This test allows to check sleep without qemu. Keep qemu version as
1613         well as functional test won't notice if all clocks are going too fast
1614         or too slow.
1616 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1618         Add explicit sysv_abi on amd64 asm routines.
1620 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1622         * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1623         num_table_entries.
1625 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1627         * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1628         functions.
1630 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1632         * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1633         appropriate.
1635 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1637         * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1639 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1641         * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1642         appropriate.
1644 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1646         * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1648         In case of quick removal of loopback and adding another one it may
1649         get same ID, confusing the cache system.
1651 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1653         * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1654         appropriate.
1656 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1658         * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1659         than converting to long.
1661 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1663         * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1665 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1667         * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1668         than almost useless pointer.
1670 2013-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
1672         Add gcc_struct to all packed structures when compiling with mingw.
1674         Just "packed" doesn't always pack the way we expect.
1676 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1678         * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1680 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1682         * util/grub-pe2elf.c: Fix handling of .bss.
1684 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1686         Implement windows flavour of EFI install routines.
1688 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1690         * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1692 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1694         Change grub_install_register_efi interface to pass GRUB device.
1696         This allows grub_install_register_efi to request partition info
1697         directly.
1699 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1701         Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1703 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1705         Do not use TCHAR string functions as they are not available on cygwin.
1707 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1709         Workaround windows bug when querying EFI system partition parameters.
1711 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1713         * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1714         by using bitfields.
1716 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1718         * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1720 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1722         Make i386-* other than i386-pc compileable under cygwin.
1724 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1726         Fix definition of grub_efi_hard_drive_device_path. Take care that
1727         existing code would work even if by some reason bogus definition is
1728         used by EFI implementations.
1730 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1732         * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1734 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1736         * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1737         invocation.
1739 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1741         * util/config.c: Remove trailing newline from distributor in simple
1742         parsing.
1744 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1746         * include/grub/efi/api.h: Rename protocol and interface to avoid
1747         conflict.
1749 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1751         * .gitignore: add .exe variants. add missing files. remove few outdated
1752         entries.
1754 2013-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
1756         * grub-core/osdep/exec.c: Use unix version on cygwin.
1758 2013-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
1760         Implement multiboot2 EFI BS specification.
1762 2013-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
1764         * grub-core/normal/charset.c: Fix premature line wrap and crash.
1765         Crash happened only in some cases like a string starting at the
1766         half of the screen of same length.
1768 2013-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
1770         * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1771         with EFI counterpart.
1773 2013-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
1775         Propagate the EFI commits to x86-efi specific parts.
1777 2013-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
1779         * grub-core/commands/efi/lssal.c: Fix terminating condition.
1781 2013-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
1783         Introduce grub_efi_packed_guid and use it where alignment is not
1784         guaranteed.
1786 2013-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
1788         * include/grub/efi/api.h (grub_efi_device_path): Define length as
1789         unaligned u16 rather than u8[2].
1791 2013-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
1793         * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1794         for relocation range.
1796 2013-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
1798         * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1799         non-function pcrel21b relocation. It happens with .text.unlikely
1800         section.
1802 2013-12-10  Leif Lindholm <leif.lindholm@linaro.org>
1804         * make MAX_USABLE_ADDRESS platform-specific
1805         * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1807 2013-12-10  Leif Lindholm <leif.lindholm@linaro.org>
1809         * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1811 2013-12-09  Jon McCune <jonmccune@google.com>
1813         * Add --no-rs-codes flag to optionally disable reed-solomon codes
1814         in grub-install and grub-bios-setup for x86 BIOS targets.
1816 2013-12-09  Vladimir Serbinenko  <phcoder@gmail.com>
1818         Add missing compile and link options for sparc64-emu.
1820 2013-12-09  Vladimir Serbinenko  <phcoder@gmail.com>
1822         Implement sparc64 trampolines (needed for sparc64-emu).
1824 2013-12-09  Vladimir Serbinenko  <phcoder@gmail.com>
1826         * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1827         range of R_SPARC_HI22.
1828         Implement R_SPARC_LM22.
1830 2013-12-09  Vladimir Serbinenko  <phcoder@gmail.com>
1832         * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1833         Do not explicitly check for symbol table as it's already checked in
1834         platform-independent layer.
1836 2013-12-09  Vladimir Serbinenko  <phcoder@gmail.com>
1838         * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1839         on ia64 as __clear_cache is a dummy on ia64.
1841 2013-12-09  Vladimir Serbinenko  <phcoder@gmail.com>
1843         * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1844         Do not explicitly check for symbol table as it's already checked in
1845         platform-independent layer.
1847 2013-12-09  Colin Watson  <cjwatson@ubuntu.com>
1849         * util/grub-mkconfig.in: Add missing newline to output.
1851 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1853         * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1854         * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1856 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1858         * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1859         compilation with GCC <= 4.2.
1860         * grub-core/kern/emu/argp_common.c: Likewise.
1862 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1864         * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1865         right platform rather than leaking to sparc64-emu.
1867 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1869         * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1870         But ensure that the variables in question are indeed unsigned.
1872 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1874         * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1876 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1878         Remove grub_memalign on emu.
1880 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1882         * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1883         truncate incomplete lines but instead flushes them.
1885 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1887         Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1888         and implement windows variant.
1890 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1892         Fix mips-emu compilation.
1894 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1896         * configure.ac: Check for freetype library usability.
1898 2013-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
1900         Make arm-emu work.
1902 2013-12-07  Vladimir Serbinenko  <phcoder@gmail.com>
1904         * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1906 2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
1908         * docs/grub.texi (Environment): Update color_normal and color_highlight
1909         defaults (light-gray instead of white).
1911 2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
1913         * grub-core/normal/main.c (INIT): Set default color to light-gray
1914         to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1915         and apparently BIOS defaults.
1917 2013-12-07  Vladimir Serbinenko  <phcoder@gmail.com>
1919         Transform -C option to grub-mkstandalone to --core-compress available
1920         in all grub-install flavours.
1922 2013-12-07  Vladimir Serbinenko  <phcoder@gmail.com>
1924         Merge GRUBFS and GRUB_FS variables.
1926 2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
1928         Revert commit 69ca97c820, it caused failures when using OS device name
1929         in grub-install. Instead just strip off parenthesis in grub-install
1930         if (hdX) was passed.
1932 2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
1934         * util/grub-install.c (push_partmap_module): Add helper to convert
1935         partmap names to module names and use it in probe_mods(). Fixes
1936         failure to find partmap modules in diskfilter case.
1938 2013-12-07  Vladimir Serbinenko  <phcoder@gmail.com>
1940         * configure.ac: Make unifont mandatory on coreboot.
1942 2013-12-07  Vladimir Serbinenko  <phcoder@gmail.com>
1944         * configure.ac: Skip unifont 6.3 pcf and bdf.
1946 2013-12-07  Vladimir Serbinenko  <phcoder@gmail.com>
1948         * Makefile.am: Remove partial font files if generation failed.
1950 2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
1952         * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1953         strings.
1954         * include/grub/util/misc.h: Define it ...
1955         * util/grub-install.c (device_map_check_duplicates): ... and use it.
1957 2013-12-07  Andrey Borzenkov <arvidjaar@gmail.com>
1959         * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1960         ${grub_probe}.
1962 2013-12-06  Vladimir Serbinenko  <phcoder@gmail.com>
1964         Don't add -mlong-calls when compiling with clang.
1966 2013-12-06  Vladimir Serbinenko  <phcoder@gmail.com>
1968         * configure.ac: Fix a typo.
1970 2013-12-06  Vladimir Serbinenko  <phcoder@gmail.com>
1972         Revamp relocation handling.
1974         Move more code to common dl.c. Add missing veneers for arm and arm64.
1975         Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1977 2013-12-05  Vladimir Serbinenko  <phcoder@gmail.com>
1979         * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1981 2013-12-05  Mike Gilbert  <floppym@gentoo.org>
1983         * INSTALL: Raise minimum python version to 2.6.
1984         * gentpl.py: Use python3-style print function.
1986 2013-12-05  Vladimir Serbinenko  <phcoder@gmail.com>
1988         * util/grub-install.c: Mention Boot* variable.
1990 2013-12-05  Colin Watson  <cjwatson@ubuntu.com>
1992         * grub-core/osdep/linux/hostdisk.c
1993         (grub_util_find_partition_start_os): Initialise start to avoid
1994         spurious compiler warning.
1996 2013-12-05  Colin Watson  <cjwatson@ubuntu.com>
1998         On Linux, read partition start offsets from sysfs if possible, to
1999         cope with block device drivers that don't implement HDIO_GETGEO.
2000         Fixes Ubuntu bug #1237519.
2002         * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
2003         function.
2004         (sysfs_partition_start): Likewise.
2005         (grub_util_find_partition_start_os): Try sysfs_partition_start
2006         before HDIO_GETGEO.
2008 2013-12-05  Leif Lindholm  <leif.lindholm@linaro.org>
2010         * grub-core/kern/fdt.c: Update struct size when adding node.
2012 2013-12-05  Vladimir Serbinenko  <phcoder@gmail.com>
2014         Handle unaligned .bss on sparc64.
2016         Current code improperly assumes that both __bss_start and _end are
2017         aligned to 8-bytes. Eliminating this assumption and explicitly align
2018         modules.
2020 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2022         * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
2023         so it doesn't land in the middle of loaded image.
2025 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2027         * configure.ac: Move all warning options that may be absent in
2028         gcc >= 3.1 to optional.
2030         Note: while this allows to compile with older GCC, official requirements
2031         remain the same and no support for older GCC.
2033 2013-12-04  Colin Watson  <cjwatson@ubuntu.com>
2035         Copying the themes directory in grub-shell isn't
2036         parallel-test-friendly and breaks on the second test when the source
2037         directory is read-only (as in "make distcheck").  Instead, add a
2038         hidden --themes-directory option to grub-mkrescue et al, and use it
2039         in grub-shell.
2041 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2043         * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
2044         as it's no longer necessarry.
2046 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2048         * configure.ac: Allow compilation with older GCC for ARM.
2050 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2052         * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
2053         * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
2054         ppc.
2056 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2058         * grub-core/kern/emu/main.c: Ignore missing prototype for main.
2060 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2062         Pass font config to config.h and not by TARGET_CFLAGS as adding
2063         arguments doesn't work if TARGET_CFLAGS is specified on command
2064         line.
2066 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2068         * configure.ac: Add -Wvla if compiler supports it.
2070 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2072         * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
2073         Remove variable length arrays.
2074         * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
2076 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2078         * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
2080 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2082         * include/grub/types.h: Declare all byteswaps as inline functions
2083         except compile-time ones.
2085         Solves variable shadowing in constructions like
2086         cpu_to_le (le_to_cpu(x) + 1).
2088 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2090         * grub-core/kern/efi/efi.c: Remove variable length arrays.
2092 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2094         * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
2095         minutes.
2097 2013-12-04  Vladimir Serbinenko  <phcoder@gmail.com>
2099         * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
2100         * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2102 2013-12-03  Colin Watson  <cjwatson@ubuntu.com>
2104         * grub-core/Makefile.core.def (setjmp): Distribute
2105         lib/arm64/setjmp.S.
2107 2013-12-03  Colin Watson  <cjwatson@ubuntu.com>
2109         Add a new timeout_style environment variable and a corresponding
2110         GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig.  This
2111         controls hidden-timeout handling more simply than the previous
2112         arrangements, and pressing any hotkeys associated with menu entries
2113         during the hidden timeout will now boot the corresponding menu entry
2114         immediately.
2116         GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2117         generates a warning, and if it shows the menu it will do so as if
2118         the second timeout were not present.  Other combinations are
2119         translated into reasonable equivalents.
2121         Based loosely on work by Franz Hsieh.  Fixes Ubuntu bug #1178618.
2123 2013-12-02  Vladimir Serbinenko  <phcoder@gmail.com>
2125         * util/config.c: Add missing pointer adjustment.
2126         Reported by: qwertial
2128 2013-11-30  Andrey Borzenkov <arvidjaar@gmail.com>
2130         * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2131         directly, not via `cpu' link, to fix libgrub.pp generation.
2133 2013-11-30  Leif Lindholm <leif.lindholm@linaro.org>
2135         New port arm64-efi.
2137 2013-11-30  Andrey Borzenkov <arvidjaar@gmail.com>
2139         * docs/grub.texi (sleep): Document exit codes.
2141 2013-11-30  Vladimir Serbinenko  <phcoder@gmail.com>
2143         Ensure that -mno-unaligned-access or some equivalent option is used.
2145 2013-11-30  Vladimir Serbinenko  <phcoder@gmail.com>
2147         * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2148         -march=armv3.
2150 2013-11-30  Vladimir Serbinenko  <phcoder@gmail.com>
2152         Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2154 2013-11-29  Colin Watson  <cjwatson@ubuntu.com>
2156         * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2157         builds, since we don't have an EPS version of font_char_metrics.png.
2158         Add leading dot to image extension per the Texinfo documentation.
2160 2013-11-29  Colin Watson  <cjwatson@ubuntu.com>
2162         * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2163         <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2164         * util/grub-gen-widthspec.c: Likewise.
2165         * util/grub-mkfont.c: Likewise.
2167 2013-11-29  Andrey Borzenkov <arvidjaar@gmail.com>
2169         * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2170         * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2171         failed to install on (hdX).
2172         * util/grub-setup.c (get_device_name): Remove, not needed after
2173         above change.
2175 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2177         * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2179 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2181         * util/grub-fstest.c: Remove variable length arrays.
2183 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2185         * grub-core/osdep/linux/ofpath.c: Check return value of read.
2187 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2189         * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2190         computing crc32 rather than handling with md fundtions directly.
2192 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2194         * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2195         checking fwstart.img rather than md fundtions directly.
2197 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2199         * util/grub-mkrescue.c (main): Check that fread succeeded.
2201 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2203         * conf/Makefile.common: Remove -mexplicit-relocs and
2204         -DUSE_ASCII_FALLBACK on yeeloong.
2206         -DUSE_ASCII_FALLBACK is already added by font snippets.
2207         -mexplicit-relocs isn't needed is compiler/assemblera are
2208         configured properly.
2209         If they're not we shouldn't attempt to fix it by ourselves.
2210         Binary compare between before and after shows no difference.
2212 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2214         * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2215         sources in dependencies directly.
2217         This was the only instance of "library" in core config. A bug was
2218         reported that -fno-stack-protector wasn't passed to it. Instead of
2219         figuring out why it failed just remove this construction used
2220         needlessly.
2222 2013-11-29  Vladimir Serbinenko  <phcoder@gmail.com>
2224         * grub-core/osdep/unix/password.c (grub_password_get): Check that
2225         fgets succeeded.
2227 2013-11-27  Francesco Lavra  <francescolavra.fl@gmail.com>
2229         * docs/grub.texi (ls): Fix command description in case of a device name
2230         passed as argument.
2232 2013-11-27  Vladimir Serbinenko  <phcoder@gmail.com>
2234         Eliminate variable length arrays in grub_vsnprintf_real.
2236         A bit tricky because this function has to continue to work without
2237         heap for short strings. Fixing prealloc to 32 arguments is reasonable
2238         but make all stack references use 32-bit offset rather than 8-bit one.
2239         So split va_args preparsing to separate function and put the prealloc
2240         into the caller.
2242 2013-11-27  Vladimir Serbinenko  <phcoder@gmail.com>
2244         Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2245         Fixes build for windows.
2247 2013-11-27  Vladimir Serbinenko  <phcoder@gmail.com>
2249         * gentpl.py: Don't generate platform-dependent conditionals for
2250         platform-independent targets.
2252 2013-11-27  Colin Watson  <cjwatson@ubuntu.com>
2254         * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2255         references to mdadm from otherwise generic code.
2256         (grub_util_exec_pipe): Likewise.
2257         (grub_util_exec_pipe_stderr): Likewise.
2258         * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2259         This function calls vgs, not mdadm; adjust variable names
2260         accordingly.
2262 2013-11-27  Colin Watson  <cjwatson@ubuntu.com>
2264         Generate Makefile.*.am directly from gentpl.py, eliminating the use
2265         of Autogen.  The Autogen definitions files remain intact as they
2266         offer a useful abstraction.
2268 2013-11-27  Colin Watson  <cjwatson@ubuntu.com>
2270         Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2271         into no-ops, and use it in programs that copy files but do not need
2272         to take special care to sync writes (grub-mknetdir, grub-rescue,
2273         grub-mkstandalone).
2275 2013-11-26  Colin Watson  <cjwatson@ubuntu.com>
2277         * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2278         than hardcoding /usr/local/bin/xorriso.
2280 2013-11-26  Vladimir Serbinenko  <phcoder@gmail.com>
2282         Add PCI command activation to all PCI drivers as required for coreboot
2283         and maybe some other firmwares.
2285 2013-11-26  Vladimir Serbinenko  <phcoder@gmail.com>
2287         * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2288         and non-Apple variants of efiemu compile.
2290 2013-11-25  Andrey Borzenkov <arvidjaar@gmail.com>
2292         *  configure.ac: Add explicit check for linking format of
2293         efiemu64; save it as EFIEMU64_LINK_FORMAT.
2294         * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2295         hardcoding linking format.
2297 2013-11-25  Vladimir Serbinenko  <phcoder@gmail.com>
2299         * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2300         and not pkgdatadir.
2302 2013-11-25  Colin Watson  <cjwatson@ubuntu.com>
2303 2013-11-25  Vladimir Serbinenko  <phcoder@gmail.com>
2305         Add a --locale-directory option to grub-install and related tools.
2307         * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2308         --locale-directory option.
2309         (enum grub_install_options): Add
2310         GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2311         * util/grub-install-common.c (grub_install_help_filter): Handle
2312         GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2313         (grub_install_parse): Likewise.
2314         (get_localedir): New function to check for a user-provided option
2315         before trying grub_util_get_localedir.
2316         (copy_locales): Use get_localedir rather than
2317         grub_util_get_localedir.  Handle differing locale directory layouts.
2318         (grub_install_copy_files): Likewise.
2320 2013-11-25  Vladimir Serbinenko  <phcoder@gmail.com>
2322         * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2323         Don't rely on PATH_MAX.
2325 2013-11-25  Vladimir Serbinenko  <phcoder@gmail.com>
2327         * grub-core/genmoddep.awk: Use more portable && rather than and.
2329 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2331         * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2332         an object after data. While it doesn't seem right solution, it
2333         works well enough and OSX isn't main compilation platform.
2335 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2337         * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2338         While it doesn't seem right solution, it works well enough and
2339         OSX isn't main compilation platform.
2341 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2343         * configure.ac: Add -static to LDFLAGS when using apple linker to
2344         prevent it from pulling in dynamic linker.
2346 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2348         Apple assembly doesn't handle symbol arithmetic well. So define an
2349         offset symbol in boot.S and use it.
2351 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2353         Apple assembly doesn't handle symbol arithmetic well. So instead
2354         of getting addres of kernel_sector + 4 define kernel_sector_high.
2355         It also makes code more readable.
2357 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2359         With Apple assembly in .macro environvemnt you have to use $$ instead
2360         of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2361         to $$x on Apple and to $x on everything else.
2363 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2365         * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2366         OBJCONV.
2368 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2370         * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2371         and non-Apple. This instruction is shorter and faster,
2372         so no reason not to use it on both.
2374 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2376         * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2377         .text when compiling for Apple.
2379 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2381         * grub-core/term/arc/console.c: Add missing cast to silence warning.
2383 2013-11-24  Vladimir Serbinenko  <phcoder@gmail.com>
2385         * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2386         %dx restore the probe worked on non-existant drive. Reorganize the
2387         code a little bit to free 2 bytes necessary for push/pop.
2389 2013-11-23  Vladimir Serbinenko  <phcoder@gmail.com>
2391         * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2392         Add missing cast to silence warning.
2394 2013-11-23  Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2396         * util/grub-install.c (update_nvram): Support --no-nvram flag
2397         for EFI targets.
2399 2013-11-23  Vladimir Serbinenko  <phcoder@gmail.com>
2401         * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2403 2013-11-23  Vladimir Serbinenko  <phcoder@gmail.com>
2405         * util/garbage-gen.c: Add missing include of sys/time.h.
2407 2013-11-23  Vladimir Serbinenko  <phcoder@gmail.com>
2409         Don't add -mflush-func if it's not supported by compiler.
2411 2013-11-23  Vladimir Serbinenko  <phcoder@gmail.com>
2413         Move common BIOS/coreboot memory map declarations to
2414         include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2416 2013-11-22  Andrey Borzenkov <arvidjaar@gmail.com>
2418         * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2420 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2422         * INSTALL: Document why older clang versions aren't appropriate.
2424 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2426         * INSTALL: Document about clang for mips.
2428 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2430         * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2431         clang.
2433 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2435         Add *-xen to the list of grub-install-common platforms.
2437 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2439         * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2440         3 last commits.
2442 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2444         * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2446 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2448         * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2449         with -mcmodel=large.
2451 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2453         * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2454         range-checking for 32-bit quantities.
2456 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2458         * configure.ac: Compile with -fPIC when compiling with clang on
2459         mips.
2461 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2463         * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2464         when compiling with clang.
2466 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2468         clang emits calls to abort () under some unknown conditions.
2469         Export abort () when compiling with clang.
2471 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2473         * docs/grub-dev.texi: Document stack and heap sizes.
2475 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2477         * include/grub/i386/pc/memory.h: Decrease
2478         GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2479         GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2480         The binary doesn't change (checked). It's more to better reflect actual
2481         usage.
2483 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2485         * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2486         at compile time that enough of scratch size is available.
2488 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2490         * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2491         Previously we misaligned stack by 8 in startup.S and compensated
2492         for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2493         right behaviour is to align stack in startup.S and keep it aligned
2494         in callwrap.S. startup.S part was committed few commits before. This
2495         takes care of callwrap.S.
2496         Reported by: Gary Lin.
2498 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2500         * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2501         .data and .bss. May happen if compiler and assembly use different
2502         alignment.
2504 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2506         On MIPS handle got16 relocations to local symbols in an ABI-compliant
2507         way.
2509 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2511         Add support for a new magic symbol _gp_disp on mips to handle PIC
2512         binaries.
2514 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2516         Use $t9 for indirect calls from asm to C as PIC ABI requires.
2518 2013-11-22  Vladimir Serbinenko  <phcoder@gmail.com>
2520         Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2521         when rest of GRUB is compiled for hisher stepping. Instead use
2522         .set mips3/.set mips1 around cache and sync opcodes.
2524 2013-11-21  Vladimir Serbinenko  <phcoder@gmail.com>
2526         Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2527         do essentially the same thing, do it in similar way.
2529 2013-11-21  Colin Watson  <cjwatson@ubuntu.com>
2531         * util/grub-mkrescue.c (main): If a source directory is not
2532         specified, read platform-specific files from subdirectories of
2533         pkglibdir, not pkgdatadir.
2535 2013-11-21  Colin Watson  <cjwatson@ubuntu.com>
2537         * grub-core/normal/progress.c: Remove unused file.
2539 2013-11-20  Vladimir Serbinenko  <phcoder@gmail.com>
2541         * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2542         array.
2544 2013-11-20  Vladimir Serbinenko  <phcoder@gmail.com>
2546         * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2547         than grub.cfg.
2549 2013-11-20  Vladimir Serbinenko  <phcoder@gmail.com>
2551         * coreboot.cfg: Add missing file.
2553 2013-11-19  Vladimir Serbinenko  <phcoder@gmail.com>
2555         * Makefile.am: Allow STRIP to be empty when creating windowszip.
2557 2013-11-19  Axel Kellermann <axel.kellermann@gmx.de>
2559         * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2560         selectively skipping systems.
2562 2013-11-19  Colin Watson  <cjwatson@ubuntu.com>
2564         * Makefile.util.def (grub-mkimage): Add
2565         grub-core/osdep/aros/config.c to extra_dist.
2566         * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2567         docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2568         grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2569         grub-core/gnulib-no-gets.diff.
2571 2013-11-19  Vladimir Serbinenko  <phcoder@gmail.com>
2573         Add automated filesystem checking based on scripts I've used now for
2574         quite some time locally. Most of the test require root so they are
2575         skipped when run without necessarry privelegies.
2577 2013-11-19  Colin Watson  <cjwatson@ubuntu.com>
2579         * util/grub-install.c (main): Adjust info messages to match
2580         installed paths of grub-bios-setup and grub-sparc64-setup.
2582 2013-11-19  Colin Watson  <cjwatson@ubuntu.com>
2584         * util/grub-install-common.c (copy_locales): Consistently use
2585         grub_util_get_localedir () rather than LOCALEDIR.
2586         (grub_install_copy_files): Likewise.
2588 2013-11-19  Josh Triplett  <josh@joshtriplett.org>
2590         * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2591         16-byte boundary, as required by the x86-64 ABI, before calling
2592         grub_main.  In some cases, GCC emits code that assumes this
2593         alignment, which crashes if not aligned.  The EFI firmware is also
2594         entitled to assume that stack alignment without checking.
2596 2013-11-18  Josh Triplett  <josh@joshtriplett.org>
2598         * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2599         4k page boundaries as expected by firmware rather than 1k
2600         boundaries.
2601         (grub_mmap_malign_and_register): Likewise.
2603 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2605         * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2606         fragmentation 512M is enough.
2608 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2610         * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2611         pointer to 32K. This is the size of cache element which is the most
2612         common allocation >1K. This way the pointer is always around blocks
2613         of 32K and so we keep performance while decreasing fragmentation.
2615 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2617         * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2618         current memory when allocating large chunks. This significantly
2619         decreases memory fragmentation.
2621 2013-11-18  Colin Watson  <cjwatson@ubuntu.com>
2623         * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2624         but for symmetry).
2625         * tests/lzocompress_test.in: Skip if lzop is not installed.
2626         * tests/xzcompress_test.in: Skip if xz is not installed.
2628 2013-11-18  Colin Watson  <cjwatson@ubuntu.com>
2630         * util/grub-mkrescue.c (main): Fix typo.
2632 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2634         * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2635         clock frequency to 200 MHz,
2637 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2639         * tests/util/grub-shell.in: Increase console size to 1024x1024.
2641 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2643         * Makefile.am (default_payload.elf): Add pata to loaded modules.
2644         Load config file from (cbfsdisk)/etc/grub.cfg.
2646 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2648         * util/grub-install-common.c (grub_install_copy_files): Fix module
2649         destination directory.
2651 2013-11-18  Colin Watson  <cjwatson@ubuntu.com>
2653         * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2654         files have not been built.
2656 2013-11-18  Colin Watson  <cjwatson@ubuntu.com>
2658         * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2659         Handle errors from mkstemp.
2660         (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2662 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2664         * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2665         on primary master on pseries.
2667 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2669         * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2670         already loaded. This saves memory needed for tests,
2672 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2674         * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2675         work again.
2677 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2679         * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2680         work again.
2682 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2684         * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2685         master since with some combinations of qemu and firmware only primary
2686         IDE channel is available.
2688 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2690         * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2691         low-memory platforms where we don't have enough memory for them.
2692         * grub-core/tests/videotest_checksum.c: Likewise.
2694 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2696         * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2697         already loaded. This saves memory needed for tests,
2699 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2701         Fix handling of install lists.
2703 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2705         * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2707 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2709         On i386-ieee1275 we run in paged mode. So we need to explicitly map
2710         the devices before accessing them.
2712 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2714         * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2715         as file argument.
2717 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2719         * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2721 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2723         * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2724         (grub_file_close): Free file->name.
2726 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2728         * grub-core/commands/verify.c (free_pk): Plug memory leak.
2729         (grub_load_public_key): Likewise.
2730         (grub_verify_signature_real): Likewise.
2731         (grub_cmd_verify_signature): Likewise.
2733 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2735         * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2736         memory leak.
2738 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2740         * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2741         (grub_longjmp): Restore r31.
2742         * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2744 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2746         * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2747         modules to be in line with make_image_abs.
2749 2013-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
2751         * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2753         setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2755 2013-11-17  Ian Campbell  <ijc@hellion.org.uk>
2757         * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2759 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2761         * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2762         to leave some memory to firmware.
2764 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2766         * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2767         of loading gfxterm as gfxterm is embed in kernel on some platforms.
2768         * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2769         Load gfxmenu.
2771 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2773         * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2774         now needs full arguments.
2776 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2778         * util/grub-mkrescue.c (main): Add trailing \n in
2779         .disk_label.contentDetails to be in line with previous shell script.
2781 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2783         * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2785 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2787         * util/grub-install-common.c (grub_install_parse): Recognize
2788         --compress=none like shell script did.
2790 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2792         * include/grub/misc.h: Replace check for __sparc64__ with one for
2793         __sparc__ as __sparc64__ isn't actually defined.
2795 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2797         * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2798         counterpart of fixing the naming of escc ports.
2800 2013-11-17  Vladimir Serbinenko  <phcoder@gmail.com>
2802         * util/grub-install-common.c (platforms): Fix the order of entries and
2803         remove useless field val.
2805 2013-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
2807         * util/grub-install.c: Add new option --no-bootsector to skip
2808         installing of bootsector. Accept --grub-setup=/bin/true as
2809         backwards-compatible synonym.
2811 2013-11-16  Andrey Borzenkov <arvidjaar@gmail.com>
2813         * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2814         order of qsort arguments (number of elements vs. element size).
2816 2013-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
2818         Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2819         the function of these files exceeds what can be sanely handled in shell
2820         in posix-comaptible way. Also writing it in C extends the functionality
2821         to non-UNIX-like OS and minimal environments.
2823 2013-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
2825         * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2826         compiling to thumb2.
2827         * grub-core/kern/arm/cache_armv7.S: Likewise.
2828         * grub-core/lib/arm/setjmp.S: Likewise.
2830 2013-11-16  Leif Lindholm <leif.lindholm@linaro.org>
2832         * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2833         in grub_uboot_syscall
2835 2013-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
2837         Decrease stack usage in lexer.
2839         We have only 92K of stack and using over 4K per frame is wasteful
2841         * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2842         as macros so that compiler would remove useless structure on stack.
2843         Better solution would be to fix flex not to put this structure on
2844         the stack but flex is external program.
2846 2013-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
2848         Decrease stack usage in signature verification.
2850         We have only 92K of stack and using over 4K per frame is wasteful
2852         * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2853         rather than stack.
2854         (grub_verify_signature_real): Likewise.
2856 2013-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
2858         Decrease stack usage in mdraid 0.9x.
2860         We have only 92K of stack and using over 4K per frame is wasteful
2862         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2863         rather than stack.
2865 2013-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
2867         Decrease stack usage in BtrFS.
2869         We have only 92K of stack and using over 4K per frame is wasteful
2871         * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2872         rather than stack.
2874 2013-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
2876         Decrease stack usage in JFS.
2878         We have only 92K of stack and using over 4K per frame is wasteful
2880         * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2881         stack. Note: this function is recursive.
2882         (grub_jfs_read_inode): Read only part we care about.
2884 2013-11-16  Leif Lindholm <leif.lindholm@linaro.org>
2886         * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2887         handling
2889 2013-11-16  Andrey Borzenkov <arvidjaar@gmail.com>
2891         * configure.ac: Restore -nostdlib for libgcc symbols tests.
2893 2013-11-16  Andrey Borzenkov <arvidjaar@gmail.com>
2895         * docs/grub.texi (Environment): Document cmdpath.
2897 2013-11-16  Andrey Borzenkov <arvidjaar@gmail.com>
2899         * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2900         Remove "unused" attribute from arguments, they are used.
2902 2013-11-15  Colin Watson  <cjwatson@debian.org>
2904         * .gitignore: Only ignore grub-mk* at the top level.
2906 2013-11-15  Colin Watson  <cjwatson@ubuntu.com>
2908         * util/grub-reboot.in (usage): Fix a typo.
2910 2013-11-15  Vladimir Serbinenko  <phcoder@gmail.com>
2912         Replace libgcc version of ctz with our own.
2914         On upcoming arm64 port libgcc ctz* are not usable in standalone
2915         environment. Since we need ctz* for this case and implementation is
2916         in C we may as well use it on all concerned platforms.
2918 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2920         * configure.ac: Probe for linking format rather than guessing it based
2921         on target_os.
2923 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2925         * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2926         "1" prior to handoff.
2928         Reported by: M A Young.
2930 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2932         * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2933         \0 to all files.
2935         Reported by: M A Young.
2937 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2939         * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2940         compilation on NetBSD.
2942 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2944         * acinclude.m4: Don't add -P on initial nm test.
2946         Note: even though this patch postdates Andrey's it bears 14 Nov as
2947         date due to timezone difference.
2949 2013-11-15  Andrey Borzenkov <arvidjaar@gmail.com>
2951         * grub-core/Makefile.core.def (signature_test): Add missing
2952         tests/signatures.h.
2954 2013-11-14  Colin Watson  <cjwatson@ubuntu.com>
2956         * util/grub-install_header: Set localedir here, since this file is
2957         where it's used.
2958         * util/grub-install.in: Remove setting of localedir.
2959         * util/grub-mkrescue.in: Likewise.
2961 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2963         * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2965 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2967         * configure.ac: Move nm checks to the end.
2968         Call grub_PROG_NM_WORKS.
2969         * acinclude.m4: New check grub_PROG_NM_WORKS.
2970         Use $TARGET_CFLAGS -c when compiling test binary.
2972 2013-11-14  Colin Watson  <cjwatson@ubuntu.com>
2974         * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2975         unused variables.
2977 2013-11-14  Matthew Garrett  <mjg@redhat.com>
2979         * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2980         cmdpath to firmware directory.
2982 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2984         * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2985         at the start of second iteration.
2987 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2989         * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2991 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2993         * Makefile.am (default_payload.elf): New target for easier coreboot
2994         build.
2996 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
2998         * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2999         clang (not necessarry with -no-integrated-as).
3000         * include/grub/symbol.h [__arm__]: Likewise.
3002 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
3004         * configure.ac: Use -no-integrated-as on arm with clang.
3005         * INSTALL: Mention ARM compilation with clang.
3007 2013-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
3009         * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
3010         -mthumb-interwork.
3012 2013-11-14  Colin Watson  <cjwatson@ubuntu.com>
3014         * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
3015         code for indirect block handling.
3017         Saves 185 bytes on compressed image.
3019 2013-11-13  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
3021         Fix make clean.
3023         * Makefile.am: Remove build-grub-* in make clean.
3025 2013-11-13  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
3027         New files to gitignore.
3029         * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
3030         build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
3032 2013-11-13  Leif Lindholm <leif.lindholm@linaro.org>
3034         * grub-core/kern/arm/misc.S: Make thumb2-compatible.
3036 2013-11-13  Leif Lindholm <leif.lindholm@linaro.org>
3038         * .gitignore: fix rules for .dep* and add *.a post git migration
3040 2013-11-13  Colin Watson  <cjwatson@ubuntu.com>
3042         * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
3043         to match INSTALL.
3045 2013-11-13  Colin Watson  <cjwatson@ubuntu.com>
3047         * grub-core/kern/misc.c: Don't redirect divisions in the
3048         GRUB_UTIL case.
3049         * include/grub/misc.h: Likewise.
3051 2013-11-13  Colin Watson  <cjwatson@ubuntu.com>
3053         * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
3054         systems that require checking the return value of write.
3056 2013-11-13  Colin Watson  <cjwatson@ubuntu.com>
3058         * util/grub-install.in (efi_quiet): Fix inverted logic: make
3059         efibootmgr quiet when --debug is not used, rather than when it is.
3061 2013-11-13  Colin Watson  <cjwatson@ubuntu.com>
3063         * gentpl.py (define_macro_for_platform_dependencies): Remove
3064         first (and thus unused) of two definitions for this function.
3065         (platform_dependencies): Likewise.
3067 2013-11-13  Colin Watson  <cjwatson@ubuntu.com>
3069         * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
3070         functions, we only need to check this for the target, not the host.
3071         * configure.ac (grub_apple_cc): Likewise.
3073 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3075         * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
3076         * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
3077         asm to stay in arm even if surrounding is thumb.
3079 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3081         * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
3082         helper functions are needed for thumb.
3084 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3086         * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
3087         level / 3 division explicitly unsigned. Saves few bytes.
3089 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3091         * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
3093 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3095         * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
3096         division.
3098 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3100         * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3101         grub_uboot_boot_data to asm part.
3103 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3105         * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3106         literal load.
3107         (grub_uboot_syscall): Save/restore r9 and align stack.
3109 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3111         * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3113 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3115         * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3116         occurencies with END.
3118 2013-11-13  Colin Watson  <cjwatson@ubuntu.com>
3120         * util/grub-editenv.c (help_filter, argp): Document how to delete
3121         the whole environment block.
3122         Reported by Dan Jacobson.  Fixes Debian bug #726265.
3124 2013-11-13  Colin Watson  <cjwatson@ubuntu.com>
3126         * docs/grub.texi (Internationalisation, Supported kernels): Fix
3127         sectioning.
3129 2013-11-13  Josh Triplett <josh@joshtriplett.org>
3131         * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3132         increment/decrement.
3134 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3136         * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3137         compiling with clang.
3139 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3141         * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3142         ".".
3144 2013-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
3146         Redirect all divisions to grub_divmod64.
3148 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3150         * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3152 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3154         Add missing includes of loader.h.
3156 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3158         * configure.ac: Allow disabling themes.
3160 2013-11-12  Lukas Schwaighofer <lukas@schwaighofer.name>
3162         * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3164 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3166         * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3167         until it becomes operational.
3169 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3171         * grub-core/Makefile.core.def (legacy_password_test): Disable
3172         on platforms where no legacycfg is compiled.
3173         * grub-core/tests/lib/functional_test.c: Tolerate failure to
3174         load legacy_password_test.
3176 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3178         * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3180 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3182         * grub-core/efiemu/prepare.c: Remove variable length arrays.
3184 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3186         * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3187         strict-aliasing warning.
3188         (fsync): Silence cast warning.
3190 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3192         * grub-core/commands/verify.c: Remove variable length arrays.
3193         Load gcry_dsa/gcry_rsa automatically.
3195 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3197         * grub-core/tests/signature_test.c: New test.
3199 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3201         * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3202         API.
3204 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3206         * grub-core/tests/legacy_password_test.c (vectors): Make static.
3207         * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3209 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3211         * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3213 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3215         * grub-core/fs/proc.c: Allow \0 in proc files.
3217 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3219         * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3221 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3223         * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3225 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3227         * grub-core/fs/ext2.c: Remove variable length arrays.
3229 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3231         * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3232         length arrays.
3234 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3236         * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3237         * grub-core/disk/cryptodisk.c: Likewise.
3238         * grub-core/disk/geli.c: Likewise.
3239         * grub-core/disk/luks.c: Likewise.
3241 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3243         * grub-core/tests/legacy_password_test.c: New test.
3244         * grub-core/commands/legacycfg.c: Remove variable length arrays.
3246 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3248         * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3250 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3252         * grub-core/tests/pbkdf2_test.c: New test.
3254 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3256         * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3258 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3260         * grub-core/io/lzopio.c: Remove variable length arrays.
3262 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3264         * include/grub/crypto.h: Add maximums on hash size and cipher block
3265         size.
3267 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3269         * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3271 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3273         * grub-core/tests/xnu_uuid_test.c: New test.
3275 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3277         * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3278         covers it).
3280 2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
3282         * grub-core/commands/hashsum.c: Remove variable length arrays.
3284 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3286         * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3287         condition.
3288         * tests/grub_func_test.in: Increase memory allocation.
3290 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3292         * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3293         && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3294         sys/mount.h.
3296 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3298         * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3299         (grub_util_get_fd_size_os): ...this.
3300         (grub_hostdisk_flush_initial_buffer): New empty function.
3302 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3304         * grub-core/gensyminfo.sh.in: Handle the case of portable output
3305         without --defined-only.
3307 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3309         * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3310         rip-relative addressing in prologue.
3312 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3314         * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3315         * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3317 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3319         * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3320         Add missing semicolon.
3322 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3324         * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3326 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3328         * configure.ac: Check for lzma.h for enabling liblzma and allow
3329         manual disabling.
3331 2013-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
3333         Add missing includes of loader.h.
3335 2013-11-11  Fam Zheng <famcool@gmail.com>
3337         * util/grub.d/30_os-prober.in: Add minix entry.
3339 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3341         * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3342         right buffer for temporary load.
3344 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3346         * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3348 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3350         * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3351         payload.
3353 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3355         * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3356         not Types.h.
3357         * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3358         environment.
3359         (LzmaDec_InitDicAndState): Make static.
3361 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3363         * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3365 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3367         * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3369         Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3371 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3373         * docs/grub-dev.texi: Replace bzr references with git ones.
3375 2013-11-10  Andrey Borzenkov <arvidjaar@gmail.com>
3377         * docs/grub.texi (Simple configuration): Remove reference to
3378         grub-reboot from saved default entry description - grub-default
3379         does not use it anymore.
3381 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3383         * configure.ac: Make efiemu test cflags match the cflags efiemu is
3384         compiled with.
3386 2013-11-10  Andrey Borzenkov <arvidjaar@gmail.com>
3388         * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3390 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3392         Fix grub_machine_fini bitrot.
3394         Reported by: Glenn Washburn.
3396 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3398         * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3400 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3402         * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3403         -DELF.
3404         * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3405         instead of ELF*.
3407 2013-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
3409         * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3410         Add -march=core2 when testing compile of efiemu64.
3412         Thanks Andrey Borzenkov for spotting this.
3414 2013-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
3416         Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3417         XEN PV environment and load kernels.
3419 2013-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
3421         * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3422         * grub-core/loader/multiboot_mbi2.c: Likewise.
3424 2013-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
3426         * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3427         handling.
3429 2013-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
3431         * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3433         Tested by: Denis 'GNUtoo' Carikli.
3435 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3437         * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3439 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3441         * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3442         Use to get rounded angle rather than truncated.
3444 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3446         * grub-core/term/serial.c: Add option for enabling/disabling
3447         RTS/CTS flow control.
3449 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3451         * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3452         divisions.
3454 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3456         * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3457         Use grub_fatal rather than divide by zero.
3458         * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3460 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3462         * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3463         truncate.
3464         (grub_fixed_fsf_divide): Likewise.
3466 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3468         * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3469         division by-zero and senseless negative divisions.
3471 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3473         * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3474         division by-zero and senseless negative divisions.
3475         (circprog_set_property): Don't accept negative num_ticks.
3477 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3479         * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3480         division by-zero and senseless negative divisions.
3482 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3484         * configure.ac: Use elf_*_fbsd on kfreebsd.
3486 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3488         * grub-core/tests/div_test.c: New test.
3490 2013-11-08  Vladimir Testov  <vladimir.testov@rosalab.ru>
3492         * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3493         * grub-core/gfxmenu/gui_canvas.c: Likewise.
3494         * grub-core/gfxmenu/view.c: Likewise.
3495         * grub-core/video/fb/video_fb.c: Introduce new functions:
3496         grub_video_set_area_status, grub_video_get_area_status,
3497         grub_video_set_region, grub_video_get_region.
3498         * grub-core/video/bochs.c: Likewise.
3499         * grub-core/video/capture.c: Likewise.
3500         * grub-core/video/video.c: Likewise.
3501         * grub-core/video/cirrus.c: Likewise.
3502         * grub-core/video/efi_gop.c: Likewise.
3503         * grub-core/video/efi_uga.c: Likewise.
3504         * grub-core/video/emu/sdl.c: Likewise.
3505         * grub-core/video/radeon_fuloong2e.c: Likewise.
3506         * grub-core/video/sis315pro.c: Likewise.
3507         * grub-core/video/sm712.c: Likewise.
3508         * grub-core/video/i386/pc/vbe.c: Likewise.
3509         * grub-core/video/i386/pc/vga.c: Likewise.
3510         * grub-core/video/ieee1275.c: Likewise.
3511         * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3512         * include/grub/video.h: Likewise.
3513         * include/grub/video_fb.h: Likewise.
3514         * include/grub/fbfill.h: Updated render_target structure.
3515         grub_video_rect_t viewport, region, area
3516         int area_offset_x, area_offset_y, area_enabled
3517         * include/grub/gui.h: New helper function
3518         grub_video_bounds_inside_region.
3519         * docs/grub-dev.texi: Added information about new functions.
3521 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3523         * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3524         for alignment.
3526 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3528         * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3529         missing attribute.
3530         * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3532 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3534         * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3535         simple division on arm and ia64.
3537 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3539         * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3540         link with libgcc.
3542 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3544         * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3546 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3548         * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3549         prefix symbol, not @.
3551 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3553         * INSTALL: Add note about older gcc and clang.
3555 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3557         * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3559 2013-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
3561         * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3562         NULL pointer dereference.
3564 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3566         * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3567         clang.
3569 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3571         * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3572         warnings.
3574 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3576         * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3577         function.
3578         * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3579         * grub-core/disk/geli.c (ascii2hex): Likewise.
3581 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3583         * configure.ac: Run linker tests without -Werror.
3584         Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3585         Change all occurences of -static-libgcc resp -lgcc to
3586         TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3588 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3590         * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3592 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3594         Allow compiling with clang (not really supported though).
3596         * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3597         unconditionally.
3598         * configure.ac: Add -no-integrated-as when using clangfor asm files.
3599         Add -mrtd -mregparm=3 on i386 when not using clang.
3600         * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3602 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3604         * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3605         bindings.
3606         * grub-core/lib/reed_solomon.c: Likewise.
3607         * include/grub/i386/gdb.h: Likewise.
3608         * include/grub/i386/pc/int.h: Likewise.
3609         * include/grub/i386/pc/pxe.h: Likewise.
3610         * include/grub/ieee1275/ieee1275.h: Likewise.
3612 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3614         Import libgcrypt 1.5.3.
3616 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3618         * configure.ac: Don't add -Wcast-align on x86.
3620 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3622         * configure.ac: Add -freg-struct-return on all platforms that
3623         support it.
3625 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3627         * acinclude.m4: Use -Werror on parameter tests.
3628         * configure.ac: Likewise.
3630 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3632         * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3634 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3636         * configure.ac: Check that -malign-loops works rather than assuming that
3637         either -falign-loops or -malign-loops work.
3639 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3641         * configure.ac: Remove -fnested-functions. We don't need it anymore.
3643 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3645         * configure.ac: Prevent cflags leaking to subsequent tests by always
3646         resetting cflags to target_cflags in target tests.
3648 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3650         * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3651         function.
3653 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3655         * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3657 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3659         * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3661 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3663         * grub-core/normal/cmdline.c (grub_cmdline_get):
3664         Remove nested functions.
3666 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3668         * tests/test_sha512sum.in: Make it work on emu.
3670 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3672         * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3673         functions.
3674         (grub_bidi_line_logical_to_visual): Likewise.
3676 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3678         Remove vestiges of -Wunsafe-loop-optimisations.
3680         * conf/Makefile.common (CFLAGS_GNULIB): Remove
3681         -Wno-unsafe-loop-optimisations.
3682         * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3683         pragma.
3684         * grub-core/io/gzio.c: Likewise.
3685         * grub-core/script/parser.y: Likewise.
3686         * grub-core/script/yylex.l: Likewise.
3687         * util/grub-mkfont.c: Likewise.
3689 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3691         * util/grub-mkfont.c (process_cursive): Remove nested function.
3693 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3695         * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3696         (grub_boot_time): Likewise.
3698 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3700         * include/grub/symbol.h (FUNCTION): Use @function rather than
3701         "function".
3702         (VARIABLE): Likewise.
3704 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3706         * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3708 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3710         * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3711         (parse_dhcp_vendor): Likewise.
3713 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3715         * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3717 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3719         * grub-core/gettext/gettext.c (main_context), (secondary_context):
3720         Define after defining type and not before.
3722 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3724         * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3725         type.
3726         (grub_gcm_decrypt): Likewise.
3727         (algo_decrypt): Likewise.
3728         (grub_zfs_decrypt_real): Transform error type.
3730 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3732         * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3734 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3736         * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3737         (grub_usbms_cbi_reset): Likewise.
3738         (grub_usbms_bo_reset): Likewise.
3739         (grub_usbms_reset): Likewise.
3740         (grub_usbms_attach): Likewise.
3741         (grub_usbms_transfer_cbi): Likewise.
3743 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3745         * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3746         "checksum = checksum;".
3748 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3750         * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3751         entry_type.
3753 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3755         * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3756         BIOS disk check.
3758 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3760         * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3761         type.
3762         (grub_ehci_fini_hw): Likewise.
3763         * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3765 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3767         * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3768         return grub_usb_err_t for cosistency. All users updated.
3770 2013-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
3772         * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3773         assigning to itself.
3775 2013-11-05  Gustavo Luiz Duarte  <gustavold@linux.vnet.ibm.com>
3776 2013-11-05  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
3778         Issue separate DNS queries for ipv4 and ipv6
3780         Adding multiple questions on a single DNS query is not supportted by
3781         most DNS servers. This patch issues two separate DNS queries
3782         sequentially for ipv4 and then for ipv6.
3784         Fixes: https://savannah.gnu.org/bugs/?39710
3786         * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3787         * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3788         * (grub_net_dns_lookup): Now using separated dns packages.
3789         * (grub_cmd_nslookup): Add error condition.
3790         * (grub_cmd_list_dns): Print DNS option.
3791         * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3792         --prefer-ipv4, and --prefer-ipv6.
3793         * include/grub/net.h (grub_dns_option_t): New enum.
3794         * (grub_net_network_level_address): option added.
3796 2013-11-05  Vladimir Testov  <vladimir.testov@rosalab.ru>
3798         * grub-core/video/fb/video_fb.c: Merge two blit functions
3799         into one.
3801 2013-11-05  Vladimir Serbinenko  <phcoder@gmail.com>
3803         * grub-core/term/terminfo.c: Add sequences for home and end.
3805 2013-11-05  Vladimir Serbinenko  <phcoder@gmail.com>
3807         * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3808         graphics console.
3810 2013-11-05  Vladimir Serbinenko  <phcoder@gmail.com>
3812         * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3813         add mode 0x12.
3815 2013-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
3817         * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3818         e-mail by Per Öberg.
3820 2013-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
3822         * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3823         name.
3825 2013-11-04  Andrey Borzenkov <arvidjaar@gmail.com>
3827         *  configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3828         emu platforms.
3829         * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3831 2013-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
3833         * docs/grub.texi: Document usage of menuentry id.
3835 2013-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
3837         * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3839 2013-11-04  Peter Lustig <peter.lustig.7db@gmail.com>
3841         * grub-core/commands/i386/nthibr.c: New command.
3843 2013-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
3845         * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3847 2013-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
3849         * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3850         coordinate.
3852 2013-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
3854         Support GRUB_DISABLE_SUBMENU config.
3856         Inspired by patch from Prarit Bhargava.
3858 2013-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
3860         * docs/grub.texi: Mention RSA support.
3862 2013-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
3864         * grub-core/commands/verify.c: Add RSA support.
3866 2013-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
3868         * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3869         * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3870         device is known to be ATAPI.
3872 2013-11-03  Mike Frysinger <vapier>
3874         * configure.ac: Don't add target-prefix.
3876 2013-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
3878         * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3879         variables.
3881 2013-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
3883         * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3884         if language is English.
3886 2013-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
3888         * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3890 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3892         * configure.ac: Don't add -m32/-m64 on emu.
3894 2013-11-02  neil
3896         * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3897         broken linux headers.
3899 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3901         * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3903 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3905         * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3906         Reed-Solomon recovery if more than half of redundancy info is 0.
3908 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3910         * util/grub-mount.c: Handle symlinks to directories.
3912 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3914         * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3915         find_file recursively for symlink.
3917 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3919         * tests/util/grub-shell.in: Copy themes.
3921 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3923         * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3925 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3927         * configure.ac: Use 0x8000 for address instead of 8000.
3929 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3931         * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3932         signature.
3934 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3936         * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3937         variable.
3939 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3941         * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3943 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3945         * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3946         file_progress_read_hook.
3947         * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3949 2013-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
3951         * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3952         and double.
3954 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
3956         * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3958 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
3960         Rewrite blocklist functions in order to get progress when
3961         reading large extents and decrease amount of blocklist hook calls.
3963 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
3965         * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3966         of SI suffixes.
3968 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
3970         Support --base-clock for serial command to handle weird cards with
3971         non-standard base clock.
3973 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
3975         * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3976         strncpy.
3977         * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3978         * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3979         * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3980         * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3981         + strcpy rather than strncpy.
3983 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
3985         * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3986         (check_pool_label): Likewise. Fixes overflow.
3987         (nvlist_find_value): Fix comparison.
3989 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
3991         * include/grub/misc.h (grub_strcat): Removed. All users changed to
3992         more appropriate functions.
3994 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
3996         * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3997         realloc.
3999 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
4001         * util/grub-mkrescue.in: Do not use UUID search on EFI.
4003 2013-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
4005         * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
4006         on core size.
4008 2013-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
4010         * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
4012 2013-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
4014         * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
4015         (initialize_tables): reset tl and td to NULL after freeing.
4017 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4019         * grub-core/loader/multiboot_mbi2.c: Implement network tag.
4021 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4023         * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
4024         of supported tags.
4026 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4028         * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
4030 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4032         * grub-core/loader/multiboot.c: Add support for multiboot kernels
4033         quirks.
4035 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4037         * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
4038         a page in protected space.
4040 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4042         * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
4043         allocate space for zero-sized modules.
4045 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4047         * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
4049 2013-10-28  Francesco Lavra  <francescolavra.fl@gmail.com>
4051         * grub-core/lib/fdt.c: Fix miscellaneous bugs.
4053 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4055         * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
4056         safeguards. Fixes a crash with i386/pc/console.c.
4058 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4060         * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
4061         and grub_hostfs_init.
4063 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4065         * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
4066         windows method on other platforms without good stat as well.
4068 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4070         * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
4072 2013-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
4074         Make / in btrfs refer to real root, not the default volume.
4075         Modify mkrelpath to work even if device is mounted with subvolid option.
4077 2013-10-28  Andrey Borzenkov <arvidjaar@gmail.com>
4079         * Makefile.util.def: Add grub-core/kern/disk_common.c to library
4080         extra_dist.
4081         * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
4082         extra_dist.
4084 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4086         * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
4087         fails.
4089 2013-10-27  BVK Chaitanya  <bvk.groups@gmail.com>
4091         * docs/autoiso.cfg: New file.
4093 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4095         * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
4096         COND_GRUB_PE2ELF conditions.
4098 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4100         * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4101         "vnd", "rd" and "fd" disks.
4103 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4105         Move grub_disk_write out of kernel into disk.mod.
4107 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4109         * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4110         handling.
4112 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4114         * grub-core/kern/misc.c (grub_abort): Make static
4116 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4118         * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4119         transform invalid unicode codepoints.
4121 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4123         * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4124         \0 checking.
4126 2013-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
4128         * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4130 2013-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
4132         Consolidate cpuid code.
4134 2013-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
4136         Move cpuid code to cpuid.h and TSC code to tsc.c.
4138 2013-10-26  Grégoire Sutre  <gregoire.sutre@gmail.com>
4140         * util/grub.d/00_header.in: Don't use LANG if it's not set.
4142 2013-10-26  Grégoire Sutre  <gregoire.sutre@gmail.com>
4144         * util/grub-mkconfig.in: Replace $0 with $self.
4145         * util/grub-reboot.in: Likewise.
4146         * util/grub-set-default.in: Likewise.
4148 2013-10-26  BVK Chaitanya  <bvk.groups@gmail.com>
4150         * docs/osdetect.cfg: New file.
4152 2013-10-26  BVK Chaitanya  <bvk.groups@gmail.com>
4154         * tests/util/grub-shell.in: Add new --debug option.
4156 2013-10-26  BVK Chaitanya  <bvk.groups@gmail.com>
4158         * tests/test_unset.in: New test.
4160 2013-10-26  BVK Chaitanya  <bvk.groups@gmail.com>
4162         * tests/test_sha512sum.in: New test.
4164 2013-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
4166         * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4167         * include/grub/misc.h: Remove strncat.
4168         * grub-core/lib/posix_wrap/string.h: Likewise.
4170 2013-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
4172         * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4173         Try to handle more than 0xFFFF packets.
4174         Reported by: Bernhard Übelacker <bernhardu>.
4175         He also spotted few overflows in first version of this patch.
4177 2013-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
4179         * tests/date_unit_test.c: New test.
4181 2013-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
4183         * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4184         of first three years after start of validity of unixtime.
4186 2013-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
4188         * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4189         division as the one making more sense.
4190         (update_screen): Likewise.
4191         (complete): Likewise.
4193 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4195         * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4197 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4199         Make char and string width grub_size_t rather than grub_ssize_t.
4201 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4203         * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4204         unsigned.
4205         (grub_history_replace): Likewise.
4207 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4209         * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4210         appropriate.
4212 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4214         * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4215         appropriate.
4217 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4219         * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4220         Use unsigned divisions rather than signed variants.
4222 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4224         * grub-core/video/readers/png.c (grub_png_convert_image): Use
4225         unsigned arithmetics.
4226         Add missing break.
4228 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4230         * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4232 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4234         * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4235         rather than signed one.
4236         (recovery): Likewise.
4238 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4240         * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4242 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4244         * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4245         than signed.
4247 2013-10-25  Jon McCune <jonmccune@google.com>
4249         * docs/grub.texi: Cleanup security documentation around signatures.
4251 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4253         * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4255 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4257         * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4258         than int.
4260 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4262         * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4263         * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4264         functions when compiling for kernel.
4266 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4268         * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4269         unsigned long long when using %llu.
4271 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4273         * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4274         terminal after updating progress.
4276 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4278         * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4279         argument. We don't disable Gate A20 in this code.
4281 2013-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
4283         * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4284         Conceptually based on change in branch "vbe-on-coreboot".
4286 2013-10-24  Robert Millan  <rmh@gnu.org>
4288         * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4289         numeric constants with their symbolic equivalent.
4290         Taken from branch "vbe-on-coreboot".
4292 2013-10-22  Vladimir Serbinenko  <phcoder@gmail.com>
4294         * docs/grub.texi: Fix ordering and use pxref rather than xref.
4296 2013-10-22  Vladimir Serbinenko  <phcoder@gmail.com>
4298         * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4299         divmod64 for offset division.
4301 2013-10-22  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
4303         Rename .bzrignore to .gitignore. Add "*.o" rule.
4305         * .bzrignore: Renamed to...
4306         * .gitignore: ...this.
4308 2013-10-22  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
4310         Add new progress module that displays the load progress of files.
4312         * grub-core/lib/progress.c: New file.
4313         * grub-core/Makefile.core.def (progress): New module.
4314         * grub-core/kern/file.c (grub_file_open): File name added.
4315         * (grub_file_read): Progress hook added.
4316         * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4317         * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4318         * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4319         * include/grub/file.h (struct grub_file): Add progress module members.
4320         * include/grub/term.h (struct grub_term_output): Likewise.
4321         * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4322         Terminal velocity added.
4323         * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4324         * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4325         * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4326         * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4327         * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4328         * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4329         * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4330         * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4331         * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4332         * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4333         * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4334         * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4336 2013-10-22  Vladimir Serbinenko  <phcoder@gmail.com>
4338         Verify signatures of signatures unless --skip-sig is specified.
4340 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4342         * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4343         \0 checking.
4345         Saves 70 bytes on compressed image.
4347 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4349         * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4350         check.
4352         Saves 10 bytes on compressed image.
4354 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4356         * grub-core/kern/misc.c (grub_isprint): Move to ...
4357         * include/grub/misc.h (grub_isprint): ... here. Make inline.
4359         Saves 20 bytes on compressed image due to remving exporting.
4361 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4363         * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4365         Saves 5 bytes on compressed image.
4367 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4369         * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4370         function get_utf8.
4372         Saves 379 bytes on compressed image.
4374 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4376         * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4378 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4380         * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4382         Saves 40 bytes on compressed image.
4384 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4386         * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4387         mask rather than 64-bit type.
4389         Saves 20 bytes on compressed image.
4391 2013-10-21  Vladimir Serbinenko  <phcoder@gmail.com>
4393         * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4394         * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4396         Saves 273 bytes on compressed image.
4398 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4400         * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4401         variable length arrays.
4403         Saves 50 bytes on compressed image.
4405 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4407         * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4409 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4411         * grub-core/fs/ufs.c: Remove variable length arrays.
4413 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4415         * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4417 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4419         * grub-core/fs/zfs.c: Remove variable length arrays.
4420         Reduces zfs.mod by 160 bytes (208 compressed).
4422 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4424         * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4426 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4428         * grub-core/net/arp.c: Remove variable length arrays.
4429         * grub-core/net/bootp.c: Likewise.
4430         * grub-core/net/dns.c: Likewise.
4431         * grub-core/net/icmp6.c: Likewise.
4432         * grub-core/net/net.c: Likewise.
4434 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4436         * grub-core/fs/ntfs.c: Remove variable length arrays.
4437         Increases ntfs.mod by 64 bytes (but decreases by 3 when
4438         compressed).
4440 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4442         * grub-core/fs/hfs.c: Remove variable length arrays.
4443         Reduces hfs.mod by 8 bytes (52 compressed).
4445 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4447         * grub-core/fs/udf.c: Remove variable length arrays.
4448         Increases udf.mod by 128 bytes (but decreases by 13 when
4449         compressed).
4451 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4453         * grub-core/fs/iso9660.c: Remove variable length arrays.
4454         Increases iso9660.mod by 200 bytes (but decreases by 79 when
4455         compressed).
4457 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4459         * grub-core/fs/nilfs2.c: Remove variable length arrays.
4460         Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4461         compressed).
4463 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4465         * grub-core/fs/xfs.c: Remove variable length arrays.
4466         Reduces xfs.mod by 40 bytes (43 compressed).
4468 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4470         * grub-core/fs/fshelp.c: Remove variable length arrays.
4471         Reduces fshelp.mod by 116 bytes (23 compressed).
4473 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4475         * grub-core/normal/completion.c: Remove variable length arrays.
4476         * grub-core/normal/menu_entry.c: Likewise.
4478         Reduces normal.mod by 496 bytes.
4480 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4482         * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4483         by 356 bytes (158 compressed).
4485 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4487         * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4488         by 364 bytes (169 compressed).
4490 2013-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
4492         * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4493         bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4494         * include/grub/types.h (grub_unaligned_uint64_t): New type.
4496 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4498         Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4499         bitmasks to small structures of size chosen to fit in registers.
4501 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4503         * conf/Makefile.common: Use -freg-struct-return on i386. This
4504         decreases code size and improves performance.
4506 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4508         * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4510 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4512         * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4513         "(null)" string.
4514         Simplify expressions to save around 256 bytes in kernel.img.
4515         * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4517 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4519         * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4520         Use GRUB_UTIL_FD_O_* rather than O_*.
4522 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4524         Add haiku-specific functions.
4526 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4528         * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4530 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4532         Move stat () and device mode checking into OS-dependent files as
4533         long as performance doesn't suffer.
4535 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4537         Split make_system_path_relative_to_its_root into separate file
4538         relpath.c from getroot.c as it's common between unix and haiku
4539         but otherwise haiku doesn't use any functions from unix getroot.c.
4541 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4543         * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4544         New function.
4545         (grub_util_is_special_file): Likewise.
4547 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4549         * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4550         * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4552 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4554         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4555         grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4557 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4559         * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4560         (load_image): Likewise.
4562 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
4564         * util/grub-render-label.c: Move backend part to ...
4565         * util/render-label.c: ... here.
4567 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4569         * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4570         yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4572 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4574         * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4576 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4578         * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4579         CD-ROM in case when it's declared as having subpartitions.
4581 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4583         Don't add -lm on haiku.
4585         * configure.ac: Define BUILD_LIBM to -lm on most platforms
4586         and empty on haiku.
4587         * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4588         -lm.
4590 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4592         * configure.ac: Use -melf_*_haiku as target on haiku.
4594 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4596         * Makefile.util.def: Add util/setup.c to extra_dist.
4598 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4600         * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4601         unknown types through.
4603 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4605         * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4606         (grub_util_check_char_device): Likewise.
4607         * include/grub/emu/getroot.h: Likewise.
4609 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4611         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4612         memset rather than inline static function.
4614 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4616         * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4617         not doing embedded decompressor.
4619 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4621         * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4622         shadowing.
4623         * grub-core/kern/disk.c: Likewise.
4624         * grub-core/kern/misc.c: Likewise.
4625         * include/grub/parser.h: Likewise.
4626         * include/grub/script_sh.h: Likewise.
4627         * include/grub/zfs/zfs.h: Likewise.
4629 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4631         * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4633 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4635         * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4636         defined before trying to use it.
4638 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4640         * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4641         warning.
4643 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4645         * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4646         Use __unused__ rather than __used__ on gcc < 3.2.
4648 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4650         * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4651         gcc < 4.0.
4652         * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4654 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4656         * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4658 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4660         * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4661         * include/grub/emu/misc.h: Likewise.
4663 2013-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
4665         * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4666         cur_color.
4668 2013-10-18  Vladimir Testov  <vladimir.testov@rosalab.ru>
4670         * grub-core/tests/checksums.h: Regenerated due to progress bar
4671         get_minimal_size changes.
4673 2013-10-17  BVK Chaitanya  <bvk.groups@gmail.com>
4675         Added `tr' command support.
4677         * grub-core/commands/tr.c: New file.
4678         * grub-core/Makefile.core.def: Build rules for new module.
4680         * tests/grub_cmd_tr.in: New test.
4681         * Makefile.util.def: Build rules for new test.
4683 2013-10-17  Vladimir Testov  <vladimir.testov@rosalab.ru>
4685         * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4687 2013-10-17  Vladimir Testov  <vladimir.testov@rosalab.ru>
4689         * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4690         * docs/gurb.texi: Likewise.
4692 2013-10-17  Vladimir Testov  <vladimir.testov@rosalab.ru>
4694         * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4695         Pixmap highlighted section with east and west slices was displayed
4696         incorrectly due to negative width of the central slice.
4698 2013-10-17  Vladimir Testov  <vladimir.testov@rosalab.ru>
4700         * docs/grub.texi: Graphical options information update.
4701         Removed outdated. Updated current. Inserted missed.
4703 2013-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
4705         * docs/grub.texi: Mention few new platform-specific commands.
4707 2013-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
4709         * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4710         currently used so this doesn't really have any effect.
4711         Reported by:    Douglas Ray <dougray>
4713 2013-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
4715         * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4716         compilation but prevents gcc from displaying messages in non-Latin
4717         alphabets.
4718         * conf/Makefile.common: Likewise.
4720 2013-10-16  Hiroyuki YAMAMORI
4722         Handle Japanese special keys.
4723         Reported by: Hiroyuki YAMAMORI.
4724         Codes supplied by: Hiroyuki YAMAMORI.
4726 2013-10-16  Vladimir Testov  <vladimir.testov@rosalab.ru>
4728         * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4730 2013-10-16  Vladimir Testov  <vladimir.testov@rosalab.ru>
4732         * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4733         * docs/grub.texi: Likewise.
4735 2013-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
4737         * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4738         value in case of incomplete read.
4739         (grub_util_fd_write): Likewise.
4741 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4743         * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4745 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4747         * util/grub-editenv.c (create_envblk_file): More from here ...
4748         * util/editenv.c (grub_util_create_envblk_file): ... to here.
4750 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4752         * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4753         canonicalize file name before doing the rest.
4755 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4757         * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4758         mingw32.
4760 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4762         Define grub_util_is_directory/regular/special_file and
4763         use OS-dependent versions rather than to rely on stat().
4765 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4767         * util/grub-mkimage.c: Move backend part to ...
4768         * util/mkimage.c: ... here.
4770 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4772         Allow compilation with mingw64 albeit with warnings due to lack of
4773         %llx/%llu.
4775         * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4776         * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4777         * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4778         * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4779         on mingw64.
4780         * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4782 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4784         Remove leftover references to some of the system headers.
4786 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4788         * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4789         read.
4791 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4793         * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4794         of strerror.
4796 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4798         Split out blocklist retrieving from setup.c to
4799         grub-core/osdep/blocklist.c and add windows implementation since
4800         generic version doesn't work on NTFS on Windows due to aggressive
4801         unflushable cache.
4803 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4805         Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4806         files.
4808 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4810         * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4811         Cut tailing newline. Remove arbitrary limitation. Always use
4812         grub_util_tchar_to_utf8.
4814 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4816         * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4817         * tests/printf_unit_test.c (printf_test): Add %% tests.
4818         Reported by: Paulo Flabiano Smorigo.
4820 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4822         * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4823         implement fsync.
4825 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4827         * configure.ac: Check for nvlist_lookup_string in nvpair since we
4828         use nvlist_lookup_string and don't use nvlist_print.
4830 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4832         Add wrappers around rename, unlink, mkdir, opendir, readdir and
4833         closedir to handle filename charset translation.
4835 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4837         * include/grub/emu/hostdisk.h: Move file operations to
4838         * include/grub/emu/hostfile.h: ... here.
4840 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4842         * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4843         unicode path.
4845 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4847         * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4849 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4851         Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4852         and remove export.h.
4854 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4856         * grub-core/kern/emu/error.c: Removed.
4857         * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4858         explicitly as it's already in libgnu.a.
4860 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4862         * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4863         config-util.h include.
4865 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4867         Split emunet into platform-dependent and GRUB-binding parts. Keep
4868         platform-dependent part in kernel for easy access to OS functions.
4870 2013-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
4872         * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4873         open/read/write.
4875 2013-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
4877         * grub-core/osdep/windows/emuconsole.c: New file.
4879 2013-10-14  Andrey Borzenkov <arvidjaar@gmail.com>
4881         * conf/Makefile.extra-dist: Add osdep/*/init.c
4883 2013-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
4885         * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4887 2013-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
4889         * util/grub-probe.c (probe): Separate different drives in hint-str
4890         by spaces and not newlines.
4891         * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4893 2013-10-14  Andrey Borzenkov <arvidjaar@gmail.com>
4895         * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4896         Handle CD-ROMs.
4898 2013-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
4900         Pass-through unknown E820 types. It required reorganisation of mmap
4901         module.
4903 2013-10-14  Andrey Borzenkov <arvidjaar@gmail.com>
4905         * Makefile.util.def: Add osdep/init.c to grub-mount files.
4907 2013-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
4909         Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4910         fseeko.
4912 2013-10-14  qwertial  <qwertial>
4914         * grub-core/gdb_grub.in: Fix overflow and wrong field.
4916 2013-10-14  Jon McCune <jonmccune@google.com>
4918         * docs/grub.texi: Document new signatures possibility.
4920 2013-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
4922         Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4924 2013-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
4926         * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4927         missing prototype.
4928         (grub_util_tchar_to_utf8): Likewise.
4930 2013-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
4932         * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4933         * grub-core/kern/emu/main.c: Add missing include.
4934         * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4935         Don't call grub_util_init_nls.
4936         * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4937         Likewise.
4939 2013-10-13  Vladimir Serbinenko  <phcoder@gmail.com>
4941         * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4942         stat.
4944 2013-10-13  Vladimir Serbinenko  <phcoder@gmail.com>
4946         * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4948 2013-10-13  Vladimir Serbinenko  <phcoder@gmail.com>
4950         * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4952 2013-10-13  Vladimir Serbinenko  <phcoder@gmail.com>
4954         Add a wrapper for fopen. On unix-like systems just pass-through. On
4955         windows use unicode version.
4957 2013-10-13  Vladimir Serbinenko  <phcoder@gmail.com>
4959         Move set_program_name and init_nls to host_init. On windows
4960         fix in this fuction console and argument charset as well.
4962 2013-10-12  Andrey Borzenkov <arvidjaar@gmail.com>
4964         Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4965         GRUB_ENABLE_CRYPTODISK.
4967         * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4968         GRUB_ENABLE_CRYPTODISK.
4969         * util/grub-mkconfig_lib.in: Likewise.
4971 2013-10-12  Christian Cier-Zniewski <c.cier@gmx.de>
4973         * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4975 2013-10-12  Melki Christian  <Christian.melki@saabgroup.com>
4977         * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4978         error when enabling debug.
4980 2013-10-12  Ilya Bakulin <Ilya_Bakulin@genua.de>
4982         * configure.ac: Use -melf_*_obsd on openbsd.
4984 2013-10-12  Vladimir Serbinenko  <phcoder@gmail.com>
4986         * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4988 2013-10-12  Vladimir Serbinenko  <phcoder@gmail.com>
4990         * include/grub/misc.h: Use gnu_printf rather than printf as format
4991         template since our functions are independent of libc.
4993 2013-10-11  Vladimir Serbinenko  <phcoder@gmail.com>
4995         * util/grub-setup.c (setup): Move copying of partition table as
4996         futher up as possible to avoid possible overwrite by floppy routines.
4998 2013-10-11  Vladimir Serbinenko  <phcoder@gmail.com>
5000         * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
5002 2013-10-10  Vladimir Testov  <vladimir.testov@rosalab.ru>
5004         * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
5005         * docs/grub.texi: Likewise.
5007 2013-10-10  Vladimir Serbinenko  <phcoder@gmail.com>
5009         * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
5010         it's mostly unused. Move vestiges to the callers.
5012 2013-10-10  Vladimir Serbinenko  <phcoder@gmail.com>
5014         * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
5015         version of salt and hash. Use grub_snprintf rather than snprintf.
5017 2013-10-10  Vladimir Serbinenko  <phcoder@gmail.com>
5019         * docs/grub.texi: Fix problem with braces.
5021 2013-10-10  Vladimir Serbinenko  <phcoder@gmail.com>
5023         * conf/Makefile.extra-dist: Fix extra-dist list.
5024         * grub-core/Makefile.core.def: Likewise.
5026 2013-10-10  Vladimir Serbinenko  <phcoder@gmail.com>
5028         * docs/grub.texi: Document disk names used on Windows and AROS.
5030 2013-10-10  Vladimir Serbinenko  <phcoder@gmail.com>
5032         * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
5033         with AROS devs.
5034         * grub-core/osdep/aros/hostdisk.c: Likewise.
5036 2013-10-10  Vladimir Serbinenko  <phcoder@gmail.com>
5038         Avoid including hostfile.h when not necessarry as it pulls
5039         in OS-specific headers which may redefine generic names
5040         like "far".
5042 2013-10-09  Vladimir Testov  <vladimir.testov@rosalab.ru>
5044         * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
5045         scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
5046         scrollbar_bottom_pad
5047         * docs/grub.texi: Likewise.
5049 2013-10-09  Vladimir Testov  <vladimir.testov@rosalab.ru>
5051         * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
5053 2013-10-09  Vladimir Serbinenko  <phcoder@gmail.com>
5055         Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
5057 2013-10-09  Vladimir Serbinenko  <phcoder@gmail.com>
5059         * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
5060         Removed.
5061         * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
5062         Made static.
5064 2013-10-09  Vladimir Serbinenko  <phcoder@gmail.com>
5066         * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
5067         leftover.
5069 2013-10-09  Vladimir Serbinenko  <phcoder@gmail.com>
5071         Move OS-specific driver configuration to grub_util_fd_open. This
5072         moves OS-dependent parts from kern/emu/hostdisk.c to
5073         grub-core/osdep/*/hostdisk.c.
5075 2013-10-09  Vladimir Serbinenko  <phcoder@gmail.com>
5077         * util/grub-mkimage.c (generate_image): Use size_t instead of
5078         grub_size_t.
5079         * util/grub-mkimagexx.c (locate_sections): Likewise.
5080         (load_image): Likewise.
5082 2013-10-09  Vladimir Serbinenko  <phcoder@gmail.com>
5084         * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
5085         size_t.
5086         (grub_util_write_image): Likewise.
5088 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5090         * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
5091         get random when no RNG is available.
5092         * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
5094 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5096         * include/grub/util/lvm.h: Removed.
5098 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5100         * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5101         * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5103 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5105         * grub-core/osdep/windows/sleep.c: Add missing config.h.
5107 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5109         * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5111 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5113         * grub-core/net/drivers/emu/emunet.c: Move to ..
5114         * grub-core/osdep/linux/emunet.c: ..here.
5116 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5118         * util/ieee1275/ofpath.c: Move to ...
5119         * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5120         * grub-core/osdep/basic/ofpath.c: ..here.
5122 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5124         Move password-querying (util-version) routines to grub-core/osdep.
5126 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5128         Move sleep routines to grub-core/osdep.
5130 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5132         Move OS-dependent files to grub-core/osdep and document it.
5134 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5136         * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5137         * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5139 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5141         * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5143 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5145         * util/misc.c: Remove leftover inclusion of malloc.h.
5147 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5149         * include/grub/setjmp.h: Remove leftover GRUBOF.
5151 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5153         * util/raid.c: Fold into ...
5154         * util/getroot_linux.c: ... here. Make all functions static.
5156 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5158         * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5159         macros to GRUB ones.
5161 2013-10-08  Vladimir Testov  <vladimir.testov@rosalab.ru>
5163         * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5164         occasional bug. If there are too many boot entries or too low
5165         scrollbar height then we need to use another formula to calculate
5166         the position and size of the scrollbar thumb.
5168 2013-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
5170         * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5172 2013-10-08  Vladimir Testov  <vladimir.testov@rosalab.ru>
5174         * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5175         * docs/grub.texi: Likewise.
5177 2013-10-08  Vladimir Testov  <vladimir.testov@rosalab.ru>
5179         * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5180         viewport.
5182 2013-10-08  Vladimir Testov  <vladimir.testov@rosalab.ru>
5184         * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5185         minimal width calculations.
5187 2013-10-07  Vladimir Serbinenko  <phcoder@gmail.com>
5189         * docs/grub.texi: Update note on colors on emu console.
5191 2013-10-07  Vladimir Serbinenko  <phcoder@gmail.com>
5193         * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5194         for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5195         it's FS and not GRUB limitation.
5197 2013-10-07  Vladimir Serbinenko  <phcoder@gmail.com>
5199         * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5201 2013-10-07  Vladimir Serbinenko  <phcoder@gmail.com>
5203         * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5205 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5207         * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5208         kernels by version order.
5210 2013-10-04  Vladimir Serbinenko  <phcoder@gmail.com>
5212         * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5214 2013-10-04  Vladimir Serbinenko  <phcoder@gmail.com>
5216         Add AROS hostdisk and getroot routines.
5218 2013-10-04  Vladimir Serbinenko  <phcoder@gmail.com>
5220         Make cryptodisk and diskfilter probe data retrievable programmatically
5221         and not just printable.
5223 2013-10-04  Vladimir Serbinenko  <phcoder@gmail.com>
5225         Split random retrieving code into separate files.
5227 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5229         * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5230         R_ARM_V4BX.
5232 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5234         * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5235         condition.
5236         * grub-core/tests/fake_input.c: Likewise.
5237         * grub-core/tests/cmdline_cat_test.c: Likewise.
5239 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5241         * grub-core/video/capture.c: Do not do finalization when .fini
5242         is called as there is explicit capture_end.
5244 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5246         * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5247         changing windows to avoid crash.
5249 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5251         * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5253 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5255         * po/exclude.pot: Add several strings to exclude.
5257 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5259         * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5261 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5263         * autogen.sh: Add ./util/grub-gen-widthspec.c and
5264         ./util/grub-gen-asciih.c to exclude list.
5266 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5268         * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5269         and don't mark error strings for translation.
5271 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5273         * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5274         properly in case of missing block size.
5276 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5278         * grub-core/lib/arm/setjmp.S: Add missing license section.
5280 2013-10-03  Vladimir Serbinenko  <phcoder@gmail.com>
5282         * po/swiss.sed: Add replacement for key names and for term computer.
5284 2013-10-02  Vladimir Testov <vladimir.testov@rosalab.ru>
5286         * grub-core/gfxmenu/theme_loader.c: New global options for the
5287         theme background image handling. desktop-image-scale-method,
5288         desktop-image-h-align, desktop-image-v-align.
5289         * grub-core/gfxmenu/view.c: Likewise.
5290         * include/gfxmenu_view.h: Likewise.
5291         * include/bitmap_scale.h: Proportional scale functions introduced.
5292         * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5293         put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5294         cases of unexpected input variables for scale functions.
5295         * docs/grub.texi: Updated documentation for new options.
5297 2013-10-02  Vladimir Serbinenko  <phcoder@gmail.com>
5299         * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5301 2013-10-01  Vladimir Testov  <vladimir.testov@rosalab.ru>
5303         * grub-core/tests/checksums.h: Corrected due to changes in
5304         bilinear interpolation function.
5306 2013-10-01  Vladimir Testov  <vladimir.testov@rosalab.ru>
5308         * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5309         to eliminate artefacts in bilinear interpolation.
5311 2013-09-28  Vladimir Serbinenko  <phcoder@gmail.com>
5313         * grub-core/video/readers/tga.c: Support paletted tga.
5315 2013-09-28  Vladimir Serbinenko  <phcoder@gmail.com>
5317         * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5318         incorrect cbcr setting when in color mode.
5320 2013-09-28  Vladimir Serbinenko  <phcoder@gmail.com>
5322         * grub-core/video/readers/png.c: Support paletted images and clean up
5323         greyscale support.
5325 2013-09-28  Vladimir Serbinenko  <phcoder@gmail.com>
5327         * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5328         usage of wrong table which resulted in mishandling of 4-byte
5329         sequences.
5331 2013-09-28  Vladimir Serbinenko  <phcoder@gmail.com>
5333         * grub-core/term/terminfo.c: Add Home and End key sequences.
5335 2013-09-27  Vladimir Serbinenko  <phcoder@gmail.com>
5337         * grub-core/video/readers/png.c (grub_png_decode_image_header):
5338         Fix formula for computing total number of bytes.
5340 2013-09-27  Vladimir Serbinenko  <phcoder@gmail.com>
5342         * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5343         image processing, fix big-endian and support grayscale.
5345 2013-09-27  Vladimir Serbinenko  <phcoder@gmail.com>
5347         * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5348         Correctly will with maximum transparency when using index color.
5350 2013-09-27  Vladimir Serbinenko  <phcoder@gmail.com>
5352         * grub-core/video/readers/png.c: Support grayscale
5354 2013-09-27  Vladimir Serbinenko  <phcoder@gmail.com>
5356         * grub-core/video/readers/jpeg.c: Support grayscale.
5358 2013-09-26  Jon McCune <jonmccune@google.com>
5360         * grub-core/commands/loadenv.c: Support skipping signature check
5361         and variable names filtering.
5363 2013-09-24  Vladimir Serbinenko  <phcoder@gmail.com>
5365         * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5366         * grub-core/kern/emu/hostfs.c: Likewise.
5367         * util/getroot_unix.c: Likewise.
5369 2013-09-24  Vladimir Serbinenko  <phcoder@gmail.com>
5371         * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5372         Migrate all explicit defines to this new one.
5374 2013-09-24  Vladimir Serbinenko  <phcoder@gmail.com>
5376         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5377         grub_util_fd_strerror when using grub_util_fd_*.
5378         (grub_util_fd_open_device): Likewise.
5379         (grub_util_biosdisk_read): Likewise.
5380         (grub_util_biosdisk_write): Likewise.
5381         * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5382         (grub_util_fd_strerror): Likewise.
5383         (grub_util_fd_sync): Likewise.
5384         (grub_util_fd_close): Likewise.
5385         * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5386         (grub_util_fd_close): Likewise.
5387         (grub_util_fd_strerror): Likewise.
5388         * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5389         function proto rather than macro.
5390         (grub_util_fd_sync): Likewise.
5391         (grub_util_fd_open): Likewise.
5392         (grub_util_fd_strerror): New proto.
5394 2013-09-24  Vladimir Serbinenko  <phcoder@gmail.com>
5396         * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5397         platforms on which it doesn't work.
5399 2013-09-24  Vladimir Serbinenko  <phcoder@gmail.com>
5401         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5402         stat immediately to where it's used.
5404 2013-09-24  Vladimir Serbinenko  <phcoder@gmail.com>
5406         * util/getroot.c (grub_util_check_block_device): Move to ...
5407         * util/getroot_unix.c (grub_util_check_block_device): ... here.
5408         * util/getroot.c (grub_util_check_char_device): Move to ...
5409         * util/getroot_unix.c (grub_util_check_char_device): ... here.
5411 2013-09-24  Vladimir Serbinenko  <phcoder@gmail.com>
5413         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5414         disk closing logic.
5416 2013-09-24  Andrey Borzenkov <arvidjaar@gmail.com>
5418         * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5420 2013-09-24  Andrey Borzenkov <arvidjaar@gmail.com>
5422         * docs/grub.texi (File name syntax): Document ZFS filenames
5423         (/volume@snapshot/...).
5425 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5427         * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5428         Always return full path. Fixes a problem with mkrelpath.
5430 2013-09-23  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
5432         * util/grub-install.in: Add GPT PReP support.
5433         * util/grub-probe.c (probe): Support GPT partition type.
5434         (main): Support -t gpt_parttype.
5436 2013-09-23  Aleš Nesrsta  <starous@volny.cz>
5438         * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5440 2013-09-23  Massimo Maggi <me@massimo-maggi.eu>
5442         * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5444 2013-09-23  Tim Hardeck  <thardeck>
5446         * util/grub.d/10_hurd.in: Filter out character for the class.
5447         * util/grub.d/10_kfreebsd.in: Likewise.
5448         * util/grub.d/10_linux.in: Likewise.
5449         * util/grub.d/20_linux_xen.in: Likewise.
5451 2013-09-23  Melki Christian  <Christian.melki@saabgroup.com>
5453         * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5454         "changed".
5456 2013-09-23  Josh Triplett <josh@joshtriplett.org>
5458         * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5459         boot partition.
5461 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5463         * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5464         doesn't use posix_wrap. Keep literal -fno-builtin however.
5466 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5468         * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5470 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5471 2013-09-23  neil
5473         * configure.ac: Do not enable -Wmissing-noreturn as its
5474         usefulness is limited and creates problems on some OS notably with
5475         code generated by bison.
5477 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5478 2013-09-23  neil
5480         * configure.ac: Do not explicitly enable -Waddress as it's not
5481         supported by all gcc and when it is, it's already enabled by -Wall.
5483 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5485         * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5486         desactivated use of EDID at all.
5488 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5489 2013-09-23  neil
5491         * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5492         video if no text is available.
5494 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5495 2013-09-23  neil
5497         * configure.ac: Substitute TARGET_RANLIB.
5499 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5500 2013-09-23  neil
5502         * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5504         Based on patches from AROS.
5506 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5507 2013-09-23  neil
5509         * grub-core/Makefile.am: Override STRIP and RANLIB.
5510         * configure.ac: compute TARGET_RANLIB.
5511         * INSTALL: Document TARGET_RANLIB
5513         Based on patches from AROS.
5515 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5517         * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5518         that floppies are unpartitioned.
5520 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5522         * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5523         Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5525 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5527         * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5528         less nice but more portable.
5529         * grub-core/lib/posix_wrap/wchar.h: Likewise.
5531 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5533         * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5534         for cheat_fd.
5535         * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5536         functions.
5537         (grub_cryptodisk_cheat_insert): Likewise.
5538         (grub_cryptodisk_close): Likewise.
5540 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5542         * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5543         Use windows path for DEFAULT_DIRECTORY.
5545 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5547         * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5548         difference was likely just gcc version, not anything mingw-related.
5550 2013-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
5552         Use Winapi on both cygwin and mingw32 to share more code between both.
5554 2013-09-22  Andrey Borzenkov <arvidjaar@gmail.com>
5556         * util/grub-install.in: Add --grub-editenv option.
5557         * util/grub-install_header (grub_compress_file): Explicitly check for
5558         plain file to avoid cp error.
5560 2013-09-22  Andrey Borzenkov <arvidjaar@gmail.com>
5562         * docs/grub.texi (Device syntax): Document new LVM UUID based device
5563         names; fix LVM driver name (lvm, not lv).
5564         * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5565         names.
5567 2013-09-22  Vladimir Serbinenko  <phcoder@gmail.com>
5569         * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5570         files rather than one file with loads of #if's.
5571         * util/getroot.c: Likewise.
5573 2013-09-22  Vladimir Serbinenko  <phcoder@gmail.com>
5575         * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5577 2013-09-22  Vladimir Serbinenko  <phcoder@gmail.com>
5579         * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5580         GNU/Hurd to the list of checked PRNG.
5582 2013-09-22  Vladimir Serbinenko  <phcoder@gmail.com>
5584         * configure.ac: On FreeBSD use -melf_*_fbsd format.
5586 2013-09-21  Ales Nesrsta <starous@volny.cz>
5588         * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5590 2013-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
5592         * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5593         * grub-core/disk/lvm.c: Add LVM UUIDs.
5594         * util/getroot.c: Use LVM UUIDs whenever possible.
5596 2013-09-19  Andrey Borzenkov <arvidjaar@gmail.com>
5598         * docs/grub.texi (Networking commands): Add documentation for
5599         network related commands.
5601 2013-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
5603         * util/getroot.c (grub_util_open_dm): Check major rather than the name
5604         to determine if device is handled by devmapper.
5605         (convert_system_partition_to_system_disk): Likewise.
5606         (get_dm_uuid): Don't check explicitly if device is mapped, it's
5607         already done in grub_util_open_dm.
5609 2013-09-19  Leif Lindholm  <leif.lindholm@linaro.org>
5611         * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5612         Clean up stack manipulation (sync_caches_armv*)
5614 2013-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
5616         * util/lvm.c: Remove since unused. Remove remaining references.
5618 2013-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
5620         Handle the case of partitioned LVM properly.
5622         * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5623         Stop on meeting LVM, mpath or DMRAID.
5624         (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5625         (read_device_map): Likewise.
5626         * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5627         device is full disk rather than erroring out on LVM and similar cases.
5629 2013-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
5631         * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5633 2013-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
5635         * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5636         4K before the end.
5637         Reported by: Leif Lindholm
5639 2013-09-18  Pawel Wojtalczyk <eyak@wp.pl>
5640 2013-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
5642         * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5643         codes.
5645 2013-09-18  Colin Watson  <cjwatson@ubuntu.com>
5647         * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5648         Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5650 2013-09-18  Douglas Ray <dougray@cpan.org>
5652         * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5653         as secure.
5655 2013-09-18  Aleš Nesrsta  <starous@volny.cz>
5657         * docs/grub.texi: Fix broken link.
5659 2013-09-18  Melki Christian  <Christian.melki@saabgroup.com>
5661         * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5662         to break endless loop.
5664 2013-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
5666         * util/grub-fstest.c: Fix several printf formats.
5667         * util/grub-mkimage.c: Likewise.
5668         * util/grub-mkimagexx.c: Likewise.
5669         * util/grub-script-check.c: Likewise.
5671 2013-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
5673         * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5674         error.
5676 2013-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
5678         * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5680 2013-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
5682         * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5683         removed in current versions cygwin_conv_*.
5685 2013-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
5687         * configure.ac: Disable efiemu runtime on cygwin.
5689 2013-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
5691         * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5692         util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5694 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5696         * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5697         error message.
5699 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5701         * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5702         windows variant.
5703         * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5704         data.
5706 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5708         * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5709         when on x86 and not cygwin.
5710         * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5711         -Wl,-melf_x86_64.
5713 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5715         * configure.ac: Set CPP to build one when checkoing for freetype for
5716         build.
5718 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5720         * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5721         [!GRUB_BUILD]: Remove has_argument.
5723 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5725         * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5726         Replace with a dummy.
5728 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5730         * configure.ac: Don't change host_os from mingw to cygwin.
5732 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5734         * configure.ac: Change target_os from windows to cygwin.
5736 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5738         Handle grub-pe2elf and grub-mkfont for cases when build != host.
5740         * Makefile.am (build-grub-mkfont): Don't include gnulib.
5741         (build-grub-gen-asciih): Likewise.
5742         (build-grub-gen-widthspec): Likewise.
5743         * Makefile.util.def (grub-pe2elf): Remove.
5744         * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5745         * configure.ac: Separate tests for build.
5746         Move ./build-grub-pe2elf to grub-core.
5747         Fix typo.
5748         * grub-core/Makefile.am (build-grub-pe2elf): New target.
5749         * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5750         defined.
5751         * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5752         constants.
5753         * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5754         * util/grub-pe2elf.c: Simplify not to rely on getopt.
5755         * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5757 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5759         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5760         mingw32 as well based on grub_util_get_disk_size.
5761         * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5762         grub_util_get_fd_size.
5763         (sync): Removed.
5764         (fsync): Moved to ...
5765         * grub-core/kern/emu/misc.c (fsync): ... here.
5767 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5769         * include/grub/mm.h (grub_extend_alloc): Remove.
5770         * grub-core/loader/i386/pc/plan9.c: Use own version of
5771         grub_extend_alloc with appropriate types.
5773 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5775         * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5777 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5779         * util/getroot.c: Include sys/wait.h only when we need waitpid.
5781 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5783         Fix dependencies on cygwin.
5785         * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5786         dependencies when used and defined.
5787         * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5789 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5791         * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5792         * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5794 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5796         * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5797         implementation available to cause compile-time rather than runtime
5798         error.
5800 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5802         * util/grub-fstest.c: Don't check for symlinks on windows.
5804 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5806         * INSTALL: Mention unavailability of man pages when cross-compiling.
5808 2013-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
5810         * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5811         and gcry_log_bug.
5812         * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5814 2013-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
5816         * INSTALL: Document cross-compilation.
5817         * acinclude.m4: Determine whether nm support -P and --defined-only.
5818         * configure.ac: Add TARGET_ to all variables pertaining to target
5819         that don't have it yet.
5820         * gentpl.py: Likewise.
5821         * grub-core/Makefile.am: Likewise.
5822         * grub-core/genmod.sh.in: Likewise.
5823         * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5824         as well.
5826 2013-08-21  Ilya Bakulin <Ilya_Bakulin@genua.de>
5828         * configure.ac: Remove -Wempty-body. It's not essential and needs
5829         recent gcc.
5831 2013-08-21  Ilya Bakulin <Ilya_Bakulin@genua.de>
5833         * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5834         * util/getroot.c: Likewise.
5836 2013-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
5838         * grub-core/disk/ahci.c: Add needed explicit cast.
5839         * grub-core/lib/backtrace.c: Likewise.
5840         * grub-core/net/ip.c: Likewise.
5841         * grub-core/net/tcp.c: Likewise.
5842         * grub-core/net/udp.c: Likewise.
5844 2013-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
5846         * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5848 2013-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
5850         * util/import_gcry.py: Add final newline in visibility.h.
5852 2013-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
5854         * conf/Makefile.common: Fix typo.
5856 2013-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
5858         * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5860 2013-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
5862         * Makefile.am (widthspec.h): Fix typo.
5863         * util/grub-gen-widthspec.c: Likewise.
5865 2013-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
5867         Move ascii.h and widthspec.h generation to a separate build-time-only
5868         tool.
5870 2013-08-16  Grégoire Sutre  <gregoire.sutre@gmail.com>
5872         * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5873         Always fill bootdisk info and improve check for NetBSD disklabel.
5875 2013-08-16  Vladimir Serbinenko  <phcoder@gmail.com>
5877         * conf/Makefile.extra-dist: Add util/bin2h.c.
5878         Reported by: floppym.
5880 2013-08-16  Vladimir Serbinenko  <phcoder@gmail.com>
5882         * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5884 2013-08-16  Vladimir Serbinenko  <phcoder@gmail.com>
5886         * configure.ac: Disable unifont and starfield if no freetype was found.
5888 2013-08-16  Vladimir Serbinenko  <phcoder@gmail.com>
5890         * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5891         on NetBSD and OpenBSD.
5893 2013-08-15  Vladimir Testov  <vladimir.testov@rosalab.ru>
5895         * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5897 2013-08-15  Vladimir Testov  <vladimir.testov@rosalab.ru>
5899         * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5900         reduced. Inheritant options are processed during the theme loading.
5902 2013-08-15  Vladimir Testov  <vladimir.testov@rosalab.ru>
5904         * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5906 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5908         * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5910 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5912         * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5913         using qemu.
5915 2013-08-14  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
5917         * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5918         remove-potcdate.sed.
5920 2013-08-14  Andrey Borzenkov <arvidjaar@gmail.com>
5922         *  grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5923         unused attribute from pull argument.
5925 2013-08-14  Andrey Borzenkov <arvidjaar@gmail.com>
5927         *  util/getroot.c (grub_util_is_imsm): Fix descriptor and
5928         memory leak.
5930 2013-08-14  Andrey Borzenkov <arvidjaar@gmail.com>
5932         *  util/getroot.c (pull_lvm_by_command): add --separator option
5933         to vgs call to disable padding of output to 10 characters.
5935 2013-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
5937         * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5938         here ...
5939         * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5940         here.
5942 2013-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
5944         * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5945         length.
5947 2013-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
5949         Fix handling of build-time grub-bin2h and grub-mkfont when doing
5950         full Canadian cross. Tested with build=x86_64, host=arm,
5951         target=ppc-ieee1275.
5953 2013-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
5955         * configure.ac: Error if no $BUILD_CC could be found.
5956         Reported by: DevHC.
5958 2013-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
5960         * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5961         i386-multiboot.
5963 2013-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
5965         * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5966         * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5968 2013-08-13  Colin Watson  <cjwatson@ubuntu.com>
5970         * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5971         grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5972         falling back to the partition device, otherwise a later call to this
5973         function may fail spuriously.
5974         Reported by Axel Beckert.  Fixes Debian bug #708614.
5976 2013-08-12  Grégoire Sutre  <gregoire.sutre@gmail.com>
5978         * autogen.sh: Replace find -not by the POSIX-compliant find !.
5980 2013-08-12  Grégoire Sutre  <gregoire.sutre@gmail.com>
5982         Prevent shadowing of stdlib's devname(3) on BSD.
5984         * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5985         and devlast to diskname and disklast, respectively.
5987 2013-08-11  Colin Watson  <cjwatson@ubuntu.com>
5989         * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5991 2013-08-08  Vladimir Testov  <vladimir.testov@rosalab.ru>
5993         * docs/grub.texi: Introduce terminal window position options:
5994         terminal-left: terminal window's left position
5995         terminal-top: terminal window's top position
5996         terminal-width: terminal window's width
5997         terminal-height: terminal window's height
5998         terminal-border: terminal window's border width
5999         * grub-core/gfxmenu/theme-loader.c: Likewise.
6000         * include/grub/gfxmenu_view.h: Likewise.
6001         * po/exlude.pot: Likewise.
6002         * grub-core/gfxmenu/view.c: Likewise.
6003         Also updated minimal window size.
6004         Also terminal_sanity_check function has been introduced.
6005         * grub-core/tests/checksums.h: Update (terminal window height
6006         is adjusted now for low resolution screen)
6008 2013-08-02  Vladimir Serbinenko  <phcoder@gmail.com>
6010         * grub-core/tests/checksums.h: Update (1-pixel difference in marker
6011         position).
6013 2013-08-02  Vladimir Serbinenko  <phcoder@gmail.com>
6015         * po/exclude.pot: Add few recent exceptions.
6017 2013-08-02  Vladimir Serbinenko  <phcoder@gmail.com>
6019         * tests/grub_func_test.in: Add unicode.pf2.
6021 2013-08-02  Vladimir Serbinenko  <phcoder@gmail.com>
6023         * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
6024         standard rather than noral color, in line with other terminals.
6026 2013-08-02  Vladimir Serbinenko  <phcoder@gmail.com>
6028         * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
6029         analysis.
6031 2013-08-02  Vladimir Serbinenko  <phcoder@gmail.com>
6033         * grub-core/loader/arm/linux.c: Change printf to dprintf.
6035 2013-08-02  Vladimir Serbinenko  <phcoder@gmail.com>
6037         * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
6038         inappropriate printf.
6040 2013-07-25  Andrey Borzenkov <arvidjaar@gmail.com>
6042         * .bzrignore: Remove grub-core/lib/dtc-grub,
6043         grub-core/Makefile.libfdt.def
6044         * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
6046 2013-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
6048         * include/grub/video.h (grub_video_register): Keep double-linked as
6049         well as single-linked invariants.
6050         Reported by: qwertial.
6052 2013-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
6054         * grub-core/commands/nativedisk.c (get_uuid): Handle
6055         GRUB_DISK_DEVICE_UBOOTDISK_ID.
6057 2013-07-25  Vladimir Testov <vladimir.testov@rosalab.ru>
6059         * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
6060         maximum of NW, N, NE heights instead of N's height and maximum of
6061         NW, W, SW widths instead of W's width. (So the box will be always
6062         correctly drawn)
6064 2013-07-20  Grégoire Sutre  <gregoire.sutre@gmail.com>
6066         * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
6067         Fix misuse of variable count.
6069 2013-07-18  Leif Lindholm  <leif.lindholm@arm.com>
6070 2013-07-18  Francesco Lavra  <francescolavra.fl@gmail.com>
6071 2013-07-18  Vladimir Serbinenko  <phcoder@gmail.com>
6073         New ports to arm-uboot and arm-efi.
6074         Mostly by Leif Lindholm with some additions from
6075         Francesco Lavra and cleanup by Vladimir Serbinenko.
6077 2013-07-16  Vladimir Serbinenko  <phcoder@gmail.com>
6079         * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
6080         and not before.
6081         Reported by: Leon Drugi.
6083 2013-07-16  Vladimir Serbinenko  <phcoder@gmail.com>
6085         * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
6086         Reported by: Paulo Flabiano Smorigo.
6088 2013-07-14  Vladimir Testov <vladimir.testov@rosalab.ru>
6090         * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
6092 2013-07-14  Vladimir Testov <vladimir.testov@rosalab.ru>
6094         * grub-core/gfxmenu/gui_list.c: Fix height calculation.
6096 2013-07-14  Vladimir Serbinenko  <phcoder@gmail.com>
6098         * grub-core/fs/zfs/zfs.c: Stylistic fixes.
6100 2013-07-14  Vladimir Serbinenko  <phcoder@gmail.com>
6102         * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6104 2013-07-14  Andrey Borzenkov <arvidjaar@gmail.com>
6106         * grub-core/net/bootp.c: Export net_* variables.
6107         * grub-core/net/net.c: Likewise.
6109 2013-07-14  Vladimir Serbinenko  <phcoder@gmail.com>
6111         * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6113 2013-07-14  Vladimir Serbinenko  <phcoder@gmail.com>
6115         * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6117 2013-07-14  Vladimir Serbinenko  <phcoder@gmail.com>
6119         * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6121 2013-07-14  Vladimir Serbinenko  <phcoder@gmail.com>
6123         * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6125 2013-07-14  Massimo Maggi <me@massimo-maggi.eu>
6127         * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6128         <= 0.
6130 2013-07-14  Massimo Maggi <me@massimo-maggi.eu>
6132         * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6133         functions.
6135 2013-07-14  Massimo Maggi <me@massimo-maggi.eu>
6137         * grub-core/fs/zfs/zfs_lz4.c: New file.
6138         * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6140 2013-07-14  Massimo Maggi <me@massimo-maggi.eu>
6142         * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6144 2013-07-14  Massimo Maggi <me@massimo-maggi.eu>
6146         * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6147         (check_pool_label): Likewise.
6148         * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6150 2013-07-14  Massimo Maggi <me@massimo-maggi.eu>
6152         * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6154 2013-07-13  Andrey Borzenkov <arvidjaar@gmail.com>
6156         * docs/grub.texi (Commands): Document postition parameters
6157         for menuentry command.
6159 2013-07-13  Andrey Borzenkov <arvidjaar@gmail.com>
6161         * util/grub-mknetdir.in: Remove stray line from help output.
6163 2013-07-11  Vladimir Serbinenko  <phcoder@gmail.com>
6165         Remove early sm712 init as there is no reason for it (the "watchdog"
6166         effect was due to wrong GPIO map).
6168 2013-07-11  Vladimir Serbinenko  <phcoder@gmail.com>
6170         * grub-core/commands/pcidump.c: Remove static variables.
6172 2013-07-11  Vladimir Serbinenko  <phcoder@gmail.com>
6174         * grub-core/commands/sleep.c: Refresh screen before sleeping.
6176 2013-07-11  Vladimir Serbinenko  <phcoder@gmail.com>
6178         * configure.ac: Move delimiter after the infos.
6180 2013-07-11  Vladimir Serbinenko  <phcoder@gmail.com>
6182         * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6184 2013-07-11  Vladimir Serbinenko  <phcoder@gmail.com>
6186         * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6187         not filling whole 8x16 space.
6189 2013-07-11  Vladimir Serbinenko  <phcoder@gmail.com>
6191         * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6193 2013-07-11  Vladimir Serbinenko  <phcoder@gmail.com>
6195         * configure.ac: Indicate which liblzma is used if any.
6197 2013-06-21  Paul Wise  <pabs3@bonedaddy.net>
6198 2013-06-21  Craig Sanders <savannah@taz.net.au>
6200         * util/grub-reboot.in: Document submenu usage.
6202 2013-06-25  Colin Watson  <cjwatson@ubuntu.com>
6204         * .bzrignore: Update with a number of new test-related files.
6206 2013-06-25  Colin Watson  <cjwatson@ubuntu.com>
6208         * util/grub-script-check.c: Fail on scripts containing no
6209         commands, to guard against corrupted grub-mkconfig setups that
6210         produce no useful output.
6211         * tests/grub_script_no_commands.in: New test.
6212         * Makefile.util.def (grub_script_no_commands): Add.
6213         Reported by Hans Putter.  Fixes Debian bug #713886.
6215 2013-06-16  Andrey Borzenkov <arvidjaar@gmail.com>
6217         * grub-core/disk/diskfilter.c: Forgot to remove comment
6218         from previous commit.
6220 2013-06-16  Andrey Borzenkov <arvidjaar@gmail.com>
6222         * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6223         grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6225 2013-06-16  Andrey Borzenkov <arvidjaar@gmail.com>
6227         * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6229 2013-06-16  Andrey Borzenkov <arvidjaar@gmail.com>
6231         * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6232         rescan diskfilter devices until nothing new is found.
6234 2013-06-16  Vladimir Serbinenko  <phcoder@gmail.com>
6236         Fix casts when compiling coreboot-specific code for 64-bit EFI.
6238 2013-06-16  Vladimir Serbinenko  <phcoder@gmail.com>
6240         Don't try to detect cbfs on *-emu.
6242 2013-06-16  Vladimir Serbinenko  <phcoder@gmail.com>
6244         * grub-core/term/gfxterm.c: USe right background color when scrolling.
6246 2013-06-16  Vladimir Serbinenko  <phcoder@gmail.com>
6248         Add support for processed coreboot payload chainloading.
6250 2013-06-16  Vladimir Serbinenko  <phcoder@gmail.com>
6252         Enable coreboot information commands even when not loaded as
6253         coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6255 2013-06-15  Vladimir Serbinenko  <phcoder@gmail.com>
6257         Support for cbfs. Also factor out the part which is common
6258         for all archives to a separate module. This splits tar from cpio
6259         as they are very different but keeps cpio, cpio_be, odc and newc
6260         together since they're very similar.
6262 2013-06-15  David Michael  <fedora.dm0@gmail.com>
6264         * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6265         (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6267 2013-06-15  Vladimir Serbinenko  <phcoder@gmail.com>
6269         * tests/grub_script_eval.in: Really add the eval test.
6271 2013-06-14  Vladimir Serbinenko  <phcoder@gmail.com>
6273         Move flavour-specific parts out of common cpio.c file and
6274         rename remaining to cpio_common.c
6276 2013-06-07  Andrey Borzenkov <arvidjaar@gmail.com>
6278         * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6279         off new function grub_script_execute_new_scope. Change callers to use
6280         either of them as appropriate.
6281         * grub-core/commands/eval.c: New command eval.
6282         * docs/grub.texi (Commands): Document it.
6284 2013-06-07  Andrey Borzenkov <arvidjaar@gmail.com>
6286         * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6287         to fetch values when listing.
6289 2013-06-07  Andrey Borzenkov <arvidjaar@gmail.com>
6291         Fix make dist on non-pc.
6293 2013-06-07  Francesco Lavra  <francescolavra.fl@gmail.com>
6295         * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6296         without a device name.
6298 2013-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
6300         Remove enable_executable_check as it's not needed anymore.
6301         Reported by: dougray.
6303 2013-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
6305         * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6306         ambigouos RAID before discovering RAIDs on top of it.
6307         Reported by: bodom.
6309 2013-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
6311         Fix typo (failback vs fallback).
6313 2013-05-31  Andrey Borzenkov <arvidjaar@gmail.com>
6315         * util/grub.d/30_os-prober.in: Add support for probing EFI
6316         System Partition (as of os-prober 1.58).
6318 2013-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
6320         * configure.ac: Add yet another path to unifont. For parabola.
6322 2013-05-30  Josh Triplett  <josh@joshtriplett.org>
6324         * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6325         handling to copy the killed characters to the kill buffer as
6326         UCS4 stored as grub_uint32_t rather than as 8-bit characters
6327         stored as char.  Eliminates UCS4 truncation and corruption
6328         observed when killing characters with Ctrl-u and yanking them
6329         back with Ctrl-y.
6331 2013-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
6333         Detach optional parts of gfxterm and integrate in with coreboot init.
6335 2013-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
6337         Move blit and fill dispatcher to appropriate files to decrease export
6338         and relocation overhead.
6340 2013-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
6342         * grub-core/font/font.c, include/grub/font.h: Inline simple font
6343         functions.
6345 2013-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
6347         * grub-core/Makefile.am: Fix compilation problem with some
6348         automake versions.
6350 2013-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
6352         * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6354 2013-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
6356         * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6357         automake versions.
6359 2013-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
6361         * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6362         SSDT.
6364 2013-05-15  Radosław Szymczyszyn  <lavrin@gmail.com>
6366         * grub-core/partmap/dfly.c: New partition map.
6368 2013-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
6370         * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6371         checking.
6372         Reported by: Francesco Lavra.
6374 2013-05-14  Andrey Borzenkov <arvidjaar@gmail.com>
6376         * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6377         dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6378         false conditions.
6379         * conf/Makefile.common: define dist_grubconf_DATA
6381 2013-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
6383         Progressively skip menu elements on small terminals rather
6384         than crashing.
6386 2013-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
6388         * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6389         to avoid losing last column.
6391 2013-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
6393         * po/exclude.pot: Add missing string "%C".
6395 2013-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
6397         * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6398         after the test.
6400 2013-05-11  Vladimir Serbinenko  <phcoder@gmail.com>
6402         * util/grub-install.in: Gettextize "Not found" message.
6404 2013-05-11  Vladimir Serbinenko  <phcoder@gmail.com>
6406         Fix distfiles list.
6407         Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6409 2013-05-11  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
6411         * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6412         present.
6413         * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6415 2013-05-11  Vladimir Serbinenko  <phcoder@gmail.com>
6417         * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6419 2013-05-11  Vladimir Serbinenko  <phcoder@gmail.com>
6421         * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6422         attribute since structure is not necessarily aligned.
6424 2013-05-11  Andrey Borzenkov <arvidjaar@gmail.com>
6426         * docs/grub.texi (Device syntax): Clarify description of network
6427         drives.
6429 2013-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
6431         Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6432         for vasprintf presence.
6434 2013-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
6436         * util/grub-install.in: Handle efibootmgr presence check.
6437         Reported by: Leif Lindholm.
6439 2013-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
6441         * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6442         new strings to translate.
6444 2013-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
6446         * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6447         yet another string (pun intended) to translate.
6449 2013-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
6451         * po/POTFILES-shell.in: Autogenerate it.
6453 2013-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
6455         * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6457 2013-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
6459         * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6460         misnomer.
6462 2013-05-08  Andrey Borzenkov <arvidjaar@gmail.com>
6464         * docs/grub.texi (Network): Add description of net_default_interface,
6465         net_default_ip and net_default_mac. Rewrite variables description
6466         to emphasize that they are per-interface.
6468 2013-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
6470         New test: cmdline and cat.
6472 2013-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
6474         * grub-core/commands/cat.c: Show UTF-8 characters.
6476 2013-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
6478         * conf/Makefile.common: Poison float and double on non-emu.
6480 2013-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
6482         * configure.ac: Don't disable extended registers on emu.
6484 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6486         * configure.ac: Don't use extended registers on x86_64.
6487         Reported by: Peter Jones.
6489 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6491         * grub-core/term/efi/console.c: Fix compile error.
6493 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6495         Compressed HFS+ support.
6497 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6499         * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6500         pixel".
6502 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6504         Menu color test.
6506 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6508         * grub-core/tests/setjmp_test.c: New test.
6510 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6512         New variables 'net_default_*' to determine MAC/IP of default interface.
6514 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6516         * tests/gettext_strings_test.in: A test to check for strings not
6517         marked for translation.
6519 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6521         * autogen.sh: Exclude unused libgcrypt files from translation.
6523 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6525         Simplify few strings.
6527 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6529         Mark few forgotten strings for translation.
6531 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6533         * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6534         rather than printf.
6536 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6538         * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6539         rather than printf.
6540         * grub-core/video/readers/tga.c: Likewise.
6542 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6544         * tests/priority_queue_unit_test.cc: New test.
6546 2013-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
6548         * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6549         than printf.
6551 2013-05-06  Andrey Borzenkov <arvidjaar@gmail.com>
6553         Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6554         variable for one time boot menu entry.
6556 2013-05-05  Bean  <bean123ch@gmail.com>
6558         * grub-core/commands/testspeed.c: New command testspeed.
6560 2013-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
6562         Factor-out human-size printing.
6564 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6566         Agglomerate more mallocs to speed-up gfxterm.
6568 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6570         Speed-up gfxterm by slightly agglomerating mallocs.
6572 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6574         More video checks.
6576 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6578         Speed-up gfxterm by saving intermediate results in index+alpha
6579         format.
6581 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6583         * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6584         test.
6586 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6588         * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6589         line of timeout as it may contain the rest of long line.
6591 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6593         * grub-core/normal/main.c: Fix freed memory dereference.
6595 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6597         Fix several memory leaks.
6599 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6601         * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6603 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6605         * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6607 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6609         Fix test -a and -o precedence.
6610         Reported by: adrian15.
6612 2013-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
6614         * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6616 2013-05-03  Andrey Borzenkov <arvidjaar@gmail.com>
6618         Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6619         and add it as source to functional_test module.
6621 2013-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
6623         * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6625 2013-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
6627         New series of tests for gfxterm and gfxmenu.
6629 2013-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
6631         * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6632         the theme path relative to $prefix/themes.
6634 2013-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
6636         * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6637         Fix order bug.
6638         (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6640 2013-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
6642         * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6643         descriptor.
6645 2013-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
6647         * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6648         grub_gfxmenu_timeout_notifications.
6649         (grub_gfxmenu_view_destroy): Likewise.
6651 2013-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
6653         * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6655 2013-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
6657         Several fixes to ieee1275 and big-endian video.
6659 2013-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
6661         Add missing exports on mips.
6663 2013-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
6665         * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6666         if no unifont is found.
6667         Restore original keyboard.
6669 2013-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
6671         * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6672         GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6674 2013-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
6676         First automated video test (running videotest and comparing results)
6678 2013-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
6680         * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6681         instead of 2 to have full RGB/CMY test pattern.
6683 2013-04-30  Vladimir Serbinenko  <phcoder@gmail.com>
6685         Add few more tests.
6687 2013-04-30  Vladimir Serbinenko  <phcoder@gmail.com>
6689         * include/grub/arc/arc.h: Account for missing "other" peripheral on
6690         ARCS. All users updated.
6692 2013-04-30  Vladimir Serbinenko  <phcoder@gmail.com>
6694         * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6696 2013-04-30  Vladimir Serbinenko  <phcoder@gmail.com>
6698         * grub-core/partmap/amiga.c: Fix size of checksummed block.
6700 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6702         * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6703         Reported by: qwertial.
6705 2013-04-29  Vladimir Testov <vladimir.testov@rosalab.ru>
6707         * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6708         with syntax "XXX deg"/"XXX °".
6710 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6712         Make PCI init in i386-qemu port more robust.
6714 2013-04-29  Vladimir Testov <vladimir.testov@rosalab.ru>
6716         * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6717         cached view is reused.
6718         * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6719         open boot menus.
6721 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6723         Unify more code in grub-install_header.
6725 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6727         Add few new tests.
6729 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6731         Enforce disabling of firmware disk drivers when native drivers kick in.
6733 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6735         * grub-core/commands/nativedisk.c: Customize the list of modules on
6736         platform. Don't try to search for disks already using native drivers.
6738 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6740         * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6741         platforms.
6743 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6745         * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6746         handling of variables containing backslash.
6748 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6750         * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6751         dereference.
6752         Reported by: qwertial.
6754 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6756         * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6758 2013-04-29  Vladimir Serbinenko  <phcoder@gmail.com>
6760         * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6761         dereference.
6762         Reported by: qwertial.
6764 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6766         * docs/grub.texi: Add a comment about usefullness of nativedisk.
6768 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6770         * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6772 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6774         New command `nativedisk'.
6776 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6778         * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6779         * grub-core/loader/i386/bsd.c: Likewise.
6781 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6783         * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6785 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6787         * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6788         grub_get_unaligned16 rather than shifts.
6790 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6792         * grub-core/kern/file.c: Use const char * rather than casting to
6793         non-const.
6795 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6797         * grub-core/commands/probe.c: Add missing grub_device_close.
6799 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6801         * INSTALL: Document linguas.sh.
6803 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6805         Remove POTFILES.in and regenerate it in autogen.sh.
6807 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6809         Move --directory/--override-directorry to grub-install_header and unify.
6811 2013-04-28  Vladimir Serbinenko  <phcoder@gmail.com>
6813         * grub-core/term/morse.c: Macroify dih and dah.
6815 2013-04-27  Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6817         * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6819 2013-04-27  Vladimir Serbinenko  <phcoder@gmail.com>
6821         * grub-core/term/ns8250.c: Systematically probe ports by writing
6822         to SR before using them.
6824 2013-04-27  Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6826         * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6827         disks.
6828         (check_sas): Get sas_adress info.
6830 2013-04-27  Vladimir Serbinenko  <phcoder@gmail.com>
6832         * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6833         ports.
6835 2013-04-27  Leon Drugi <eyak>
6837         * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6838         BSS clearing.
6840 2013-04-27  Vladimir Serbinenko  <phcoder@gmail.com>
6842         Core compression test.
6844 2013-04-27  Vladimir Serbinenko  <phcoder@gmail.com>
6846         Implement grub_machine_get_bootlocation for ARC.
6848 2013-04-27  Vladimir Serbinenko  <phcoder@gmail.com>
6850         Improve AHCI detection and command issuing.
6852 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6854         Fix pseries test.
6856 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6858         Make 'make check' work on emu.
6860 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6862         Replace libcurses with our own vt100 handling for the ease of testing
6863         and decreasing prerequisites.
6865 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6867         * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6869 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6871         * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6872         compile when not needed.
6874 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6876         * tests/pseries_test.in: New test.
6878 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6880         Add test to check that different boot mediums work.
6882 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6884         * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6885         ofw limited ISO support.
6887 2013-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
6889         * configure.ac: Fix loongson conditional.
6891 2013-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
6893         Enable mipsel-arc.
6895 2013-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
6897         Add serial on ARC platform.
6899 2013-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
6901         * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6902         commit.
6904 2013-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
6906         * tests/partmap_test.in: Add missing double semicolon.
6908 2013-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
6910         * util/grub-mkrescue.in: Fix loongson filename.
6912 2013-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
6914         * util/grub-mkrescue.in: Move all files that don't have a location
6915         set in stone under /boot/grub. Use ISO hard links rather than copies
6916         to save some space.
6918 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6920         * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6921         bogus SLOF values.
6923 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6925         Make check work on mips-arc.
6927 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6929         * util/grub-mkrescue.in: Alias sashARCS as sash.
6931 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6933         * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6934         it's serial.
6936 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6938         * util/grub-install.in: Fix target fo qemu_mips.
6939         Fix extension on EFI.
6941 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6943         * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6944         in front of chosen entry to mark it even if highlighting is lost.
6946 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6948         * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6949         gfxpayload=keep if cbfb is active.
6951 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6953         * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6955 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6957         Add missing video ids to coreboot and ieee1275 video.
6959 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6961         * util/grub-mkrescue.in: Add mips-arc support.
6963 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6965         * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6967 2013-04-24  Vladimir Serbinenko  <phcoder@gmail.com>
6969         Move mips-arc link address. Previous link address was chosen
6970         in belief that RAM on SGI platforms grows down while in fact it
6971         grows up from an unusual base.
6973 2013-04-21  Vladimir Serbinenko  <phcoder@gmail.com>
6975         * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6976         Fix a type which prevented CD-ROM and floppy boot.
6978 2013-04-21  Vladimir Serbinenko  <phcoder@gmail.com>
6980         Support coreboot framebuffer.
6982         * grub-core/video/i386/coreboot/cbfb.c: New file.
6984 2013-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
6986         * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6987         detecting too small regions.
6989 2013-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
6991         * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6993 2013-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
6995         * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6996         Remove dprintf.
6997         * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6999 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
7001         * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
7002         of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
7003         * grub-core/loader/powerpc/ieee1275/linux.c
7004         (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
7006 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
7008         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7009         Look for /boot-rom as well as /rom/boot-rom.
7011 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
7013         * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
7014         handling when creating text_layer failed.
7015         * grub-core/video/video.c (grub_video_create_render_target):
7016         Set result to 0 on error.
7017         (grub_video_delete_render_target): Do not dereference NULL.
7019 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
7021         * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
7022         GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
7023         * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
7024         (grub_linux_load64): Mask out 2 high bits.
7026 2013-04-19  Andrey Borzenkov <arvidjaar@gmail.com>
7028         * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
7029         more place.
7031 2013-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
7033         Add support for pseries and other bootinfo machines to grub-mkrescue.
7035         Tested by: Paulo Flabiano Smorigo.
7037 2013-04-17  Vladimir Serbinenko  <phcoder@gmail.com>
7039         * util/grub-mkrescue.in: Add GPT for EFI boot.
7041 2013-04-17  Vladimir Serbinenko  <phcoder@gmail.com>
7043         * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
7044         It improves performance in qemu.
7046 2013-04-17  Vladimir Serbinenko  <phcoder@gmail.com>
7048         * build-aux/snippet: Add missing gnulib files.
7050 2013-04-16  Andrey Borzenkov <arvidjaar@gmail.com>
7052         * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
7054 2013-04-16  Andrey Borzenkov <arvidjaar@gmail.com>
7056         * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
7058 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
7059 2013-04-15  Peter Jones <pjones@redhat.com>
7061         * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
7062         sectors.
7063         Based on patch by Peter Jones.
7065 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
7067         Fix DMRAID partition handling.
7069 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
7071         * tests/grub_cmd_date.in: Skip on sparc64.
7073 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
7075         * tests/grub_script_expansion.in: Use fixed-string grep to skip over
7076         firmware error messages.
7078 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
7080         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
7081         source and destination differ.
7083 2013-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
7085         * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
7086         detection.
7088 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7090         * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
7091         match config-util.h to avoid warnings and increase compatibility.
7093 2013-04-14  Szymon Janc <szymon@janc.net.pl>
7094 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7096         Add option to compress files on install/image creation.
7098 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7100         * docs/grub-dev.texi: Rearrange menu to match the section order.
7101         Reported by: Bryan Hundven.
7103 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7105         * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7107 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7109         Move GRUB out of system area when using xorriso 1.2.9 or later.
7111 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7113         * tests/grub_cmd_date.in: Add missing exit 1.
7115 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7117         * tests/partmap_test.in: Skip on sparc64.
7119 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7121         Support grub-shell on sparc64.
7123 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7125         Support mkrescue on sparc64.
7127 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7129         Allow IEEE1275 ports on path even if it wasn't detected automatically.
7130         Needed on OpenBIOS due to incomplete device tree.
7132 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7134         * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7135         would be otherwise excluded.
7137 2013-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
7139         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7140         Inline name defines used only once.
7142 2013-04-13  Vladimir Serbinenko  <phcoder@gmail.com>
7144         Fix memory leaks in ofnet.
7145         Reported by: Francesco Lavra.
7147 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7149         * docs/man/grub-glue-efi.h2m: Add missing file.
7151 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7153         * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7155 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7157         Better support Apple Intel Macs on CD.
7159 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7161         Replace stpcpy with grub_stpcpy in tools.
7163 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7165         Handle Japanese special keys.
7166         Reported by: Hiroyuki YAMAMORI.
7167         Codes supplied by: Hiroyuki YAMAMORI.
7169 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7171         * util/grub-mkimage.c: Document memdisk implying --prefix.
7173 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7175         * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7176         much we can do about it anyway.
7178 2013-04-12  Aleš Nesrsta  <starous@volny.cz>
7180         Fix handling of split transfers.
7182 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7184         * grub-core/net/http.c: Fix bad free.
7186 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7188         * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7189         than buffer size.
7191 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7193         Disable partmap check on i386-ieee1275 due to openfirmware issues.
7195 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7197         * tests/util/grub-shell.in: Fix it on powerpc.
7199 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7201         Turn off QEMU ACPI-way since new releases don't have shutdown port
7202         anymore.
7204 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7206         * docs/grub.texi: Update coreboot status info.
7208 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7210         * tests/grub_cmd_date.in: New test for datetime.
7212 2013-04-12  Vladimir Serbinenko  <phcoder@gmail.com>
7214         * tests/partmap_test.in: Fix missing qemudisk setting.
7216 2013-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
7218         Support i386-ieee1275 grub-mkrescue and make check on it.
7220 2013-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
7222         Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7223         feature for it.
7225 2013-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
7227         * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7228         GRUB_CMDLINE_XEN_DEFAULT.
7229         Reported by:    Marc Warne (GigaTux) <gigatux>
7231 2013-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
7233         Import new gnulib.
7235 2013-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
7237         Use ACPI shutdown intests as traditional port was removed.
7239 2013-04-11  Andrey Borzenkov <arvidjaar@gmail.com>
7241         * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7242         distinction.
7244 2013-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
7246         Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7247         Fix few warining messages and leaks while on it.
7249 2013-04-09  Andrey Borzenkov <arvidjaar@gmail.com>
7251         * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7252         links under grub-core/lib/libgcrypt-grub/mpi.
7254 2013-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
7256         Fix ia64-efi image generation on big-endian machines. Deduplicate
7257         some code while on it.
7258         Reported by: Leif Lindholm.
7260 2013-04-08  Andrey Borzenkov <arvidjaar@gmail.com>
7262         * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7263         as extra_dist.
7265 2013-04-08  Andrey Borzenkov <arvidjaar@gmail.com>
7267         * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7269 2013-04-08  Bryan Hundven <bryanhundven@gmail.com>
7271         * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7272         texinfo-5.1.
7274 2013-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
7276         * grub-core/normal/term.c: Few more fixes for menu entry editor
7277         rendering.
7278         Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7280 2013-04-07  Vladimir Serbinenko  <phcoder@gmail.com>
7282         * grub-core/normal/term.c: Few more fixes for menu entry editor
7283         rendering.
7284         Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7286 2013-04-06  Andrey Borzenkov <arvidjaar@gmail.com>
7288         * conf/Makefile.extra-dist (EXTRA_DIST): Add
7289         grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7291 2013-04-06  Andrey Borzenkov <arvidjaar@gmail.com>
7293         * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7294         instead of hardcoding grub.mo.
7296 2013-04-05  Fedora Ninjas <grub2-owner@fedoraproject.org>
7298         * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7300 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
7302         Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7303         grub-core/disk/geli.c.
7305 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
7307         * util/grub-mkfont.c: Prefer enum to #define.
7309 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
7311         * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7313 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
7315         Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7317 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
7319         Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7321 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
7323         * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7325 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
7327         * include/grub/bsdlabel.h: Use enums.
7329 2013-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
7331         Move GRUB_CHAR_BIT to types.h.
7333 2013-04-04  Andrey Borzenkov <arvidjaar@gmail.com>
7335         * docs/grub.texi: Document more user commands.
7337 2013-04-04  Andrey Borzenkov  <arvidjaar@gmail.com>
7339         * docs/grub.texi: Document menuentry --id option.
7341 2013-04-04  Francesco Lavra  <francescolavra.fl@gmail.com>
7343         * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7345 2013-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
7347         Unify file copying setup across different install scripts. Add
7348         options for performing partial install.
7350 2013-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
7351 2013-04-04  Peter Jones <pjones@redhat.com>
7353         * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7355 2013-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
7357         Use TSC as a possible time source on i386-ieee1275.
7359 2013-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
7361         * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7362         Init err.
7364 2013-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
7366         * util/grub-setup.c (setup): Handle some corner cases.
7368 2013-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
7370         * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7372 2013-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
7374         * grub-core/commands/verify.c: Save verified file to avoid it being
7375         tampered with after verification was done.
7377 2013-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
7379         * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7380         reported width by one to compensate for curesor algorithm problem.
7382 2013-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
7384         Fix screen corruption in menu entry editor and simplify the code
7385         flow while on it.
7387 2013-04-03  Andrey Borzenkov <arvidjaar@gmail.com>
7389         * util/grub-mount.c (fuse_init): Return error if fuse_main
7390         failed.
7392 2013-04-03  Francesco Lavra  <francescolavra.fl@gmail.com>
7394         * include/grub/elf.h: Add missing ARM relocation codes and fix
7395           existing ones.
7397 2013-04-03  Vladimir Testov <vladimir.testov@rosalab.ru>
7399         * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7401 2013-04-03  Vladimir Testov <vladimir.testov@rosalab.ru>
7402 2013-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
7404         * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7405         into account when calculating radius.
7407 2013-04-03  Vladimir Testov <vladimir.testov@rosalab.ru>
7409         * grub-core/gfxmenu/view.c: Fix off-by-one error.
7411 2013-04-03  Vladimir Testov <vladimir.testov@rosalab.ru>
7413         * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7415 2013-04-01  Radosław Szymczyszyn <lavrin@gmail.com>
7417         * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7418         missing closing bracket.
7420 2013-04-01  Radosław Szymczyszyn <lavrin@gmail.com>
7422         * INSTALL: Mention xorriso requirement.
7424 2013-03-31  Andrey Borzenkov <arvidjaar@gmail.com>
7426         * grub-core/commands/verify.c: Fix hash algorithms values for
7427         the first three hashes - they start with 1, not with 0.
7429 2013-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
7431         * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7432         Try terminating EFI services several times due to quirks in some
7433         implementations.
7435 2013-03-26  Colin Watson  <cjwatson@ubuntu.com>
7437         * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7438           skipping Event, Device, Processor, PowerRes, ThermalZone, and
7439           BankField extended opcodes.
7440           (get_sleep_type): Add minimal scope handling (just enough to
7441           handle setting the scope to the root path).
7442           (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7443         * include/grub/acpi.h: Add enumeration values for Event, Device,
7444           Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7446 2013-03-26  Vladimir Testov <vladimir.testov@rosalab.ru>
7448         * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7449         memory leak.
7451 2013-03-25  Vladimir Serbinenko  <phcoder@gmail.com>
7453         * grub-core/disk/ahci.c: Give more time for AHCI request.
7455 2013-03-25  Vladimir Serbinenko  <phcoder@gmail.com>
7457         * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7458         command.
7460 2013-03-25  Vladimir Serbinenko  <phcoder@gmail.com>
7462         Replace the region at 0 from coreboot tables to available in BSD
7463         memory map.
7465 2013-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
7467         * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7468         non-BIOS platforms.
7470 2013-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
7472         * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7473         platforms.
7475 2013-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
7477         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7478         handling of multi-device filesystems.
7480 2013-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
7482         * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7483         platforms.
7485 2013-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
7487         Add new 'proc' filesystem framework and put luks_script into it.
7489 2013-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
7491         * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7492         and qemu.
7494 2013-03-22  Vladimir Serbinenko  <phcoder@gmail.com>
7496         * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7498 2013-03-22  Vladimir Serbinenko  <phcoder@gmail.com>
7500         Add ability to generate newc additions on runtime.
7502 2013-03-22  Vladimir Serbinenko  <phcoder@gmail.com>
7504         * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7505         description.
7507 2013-03-21  Vladimir Serbinenko  <phcoder@gmail.com>
7509         * po/POTFILES.in: Regenerate.
7511 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
7513         * grub-core/commands/verify.c (hashes): Add several hashes
7514         from the spec.
7516 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
7518         Slight improve in USB-related boot-time checkpoints.
7520 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
7522         * grub-core/commands/boottime.c: Fix copyright header.
7524 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
7526         New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7527         coreboot tables content. Support for cbmemc.
7529 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
7531         Fix a conflict between ports structures with 2 controllers of
7532         same kind.
7534 2013-03-20  Vladimir Serbinenko  <phcoder@gmail.com>
7536         * include/grub/boottime.h: Add missing file.
7538 2013-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
7540         Initialize USB ports in parallel to speed-up boot.
7542 2013-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
7544         Fix USB devices not being detected when requested
7545         due to delayed attach.
7547 2013-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
7549         Implement boot time analysis framework.
7551 2013-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
7553         Remove get_endpoint_descriptor and change all functions needing
7554         descriptor to just receive it as argument rather than endpoint
7555         address.
7557 2013-03-19  Aleš Nesrsta  <starous@volny.cz>
7559         Better estimate the maximum USB transfer size.
7561 2013-03-17  Vladimir Serbinenko  <phcoder@gmail.com>
7563         Resend a packet if we got the wrong buffer in status.
7565 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7567         * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7568         multiplication rather than division.
7570 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7572         * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7573         than divisions.
7575 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7577         * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7578         operations to have intended shifts and not divisions.
7580 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7582         * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7583         intended shifts rather than division.
7585 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7587         * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7588         computation for some years before epoch. Avode confusing division
7589         while on it.
7591 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7593         * grub-core/video/i386/pc/vbe.c
7594         (grub_video_vbe_print_adapter_specific_info): Replace division by
7595         shifts.
7597 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7599         Adjust types in gdb module to have intended unsigned shifts rather than
7600         signed divisions.
7602 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7604         * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7605         maximum size is 4G - 1 on hfs
7607 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7609         Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7611 2013-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
7613         * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7614         function.
7616 2013-03-07  Andrey Borzenkov <arvidjaar@gmail.com>
7618         * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7619         causing gcc error with gcc 4.7.1.
7621 2013-03-07  Nickolai Zeldovich <nickolai@csail.mit.edu>
7623         * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7624         dereference null pointer. While the code is technically correct, gcc
7625         may eliminate a null check if pointer is already dereferenced.
7627 2013-03-07  Nickolai Zeldovich <nickolai@csail.mit.edu>
7629         * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7630         OOM check.
7631         * grub-core/normal/term.c (read_terminal_list): Likewise.
7633 2013-03-07  Vladimir Serbinenko  <phcoder@gmail.com>
7635         Lift up core size limits on some platforms. Fix potential memory
7636         corruption with big core on small memory systems. Document remaining
7637         limits.
7639 2013-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
7641         * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7642         gotoxy to 0,0.
7644 2013-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
7646         Remove all trampoline support. Add -Wtrampolines when
7647         present. Remove symbols used for trampolines to make
7648         link fail if trampolines are present.
7650 2013-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
7652         * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7653         append out of its parent.
7655 2013-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
7657         * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7658         parent.
7660 2013-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
7662         * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7663         all vars to a macro. All users updated.
7665 2013-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
7667         * grub-core/disk/ieee1275/nand.c: Fix compilation on
7668         i386-ieee1275.
7670 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7672         * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7674 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7676         * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7678 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7680         Move to more hookless approach in IEEE1275 devices handling.
7682 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7684         * grub-core/kern/term.c (grub_term_normal_color),
7685         (grub_term_highlight_color): Add back lost defaults.
7687 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7689         Make elfload not use hooks. Opt for flags and iterators instead.
7691 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7693         * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7694         * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7696 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7698         * grub-core/script/execute.c (gettext_append): Remove nested functions.
7700 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7702         * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7703         hook pass-through parameter. All users updated and unnested.
7705 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7707         * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7708         out of its parent.
7710 2013-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
7712         * grub-core/fs/hfs.c: Remove nested functions.
7714 2013-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
7716         * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7717         the context through.
7718         (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7720 2013-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
7722         * util/grub-editenv.c (list_variables): Move print_var out of its
7723         parent.
7725 2013-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
7727         * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7728         function.
7730 2013-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
7732         * grub-core/gentrigtables.c: Make tables const.
7734 2013-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
7736         Remove nested functions from videoinfo iterators.
7738 2013-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
7740         * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7741         for 64-bit platforms.
7743 2013-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
7745         * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7746         a FOR_CHILDREN macro.
7748 2013-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
7750         * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7751         platform from firmware path.
7753 2013-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
7755         Enable linux16 on non-BIOS systems for i.a. memtest.
7757         * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7758         correctly.
7759         * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7761 2013-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
7763         * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7764         Fix end of table condition.
7766 2013-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
7768         * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7769         out of its parent.
7771 2013-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
7773         * grub-core/fs/jfs.c: Remove nested functions.
7775 2013-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
7777         * grub-core/fs/minix.c: Remove nested functions.
7779 2013-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
7781         * grub-core/fs/iso9660.c: Remove nested functions.
7783 2013-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
7785         * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7786         of parent function.
7788 2013-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
7790         * util/grub-fstest.c: Remove nested functions.
7792 2013-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
7794         * grub-core/loader/machoXX.c: Remove nested functions.
7796 2013-02-27  Colin Watson  <cjwatson@ubuntu.com>
7798         Remove nested functions from disk and file read hooks.
7800         * include/grub/disk.h (grub_disk_read_hook_t): New type.
7801         (struct grub_disk): Add read_hook_data member.
7802         * include/grub/file.h (struct grub_file): Likewise.
7803         * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7804         argument.
7806         Update all callers.
7808 2012-02-27  Andrey Borzenkov <arvidjaar@gmail.com>
7810         * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7811         Fix off by one error in enumerating extended partitions.
7813 2013-02-26  Andrey Borzenkov <arvidjaar@gmail.com>
7815         * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7816         memory leak if device name is not found.
7818 2013-02-25  Andrey Borzenkov <arvidjaar@gmail.com>
7820         * grub-core/normal/menu_entry.c (update_screen): remove
7821         unused variable `off' which caused scroll down arrow to be always shown.
7823 2013-02-25  Andrey Borzenkov <arvidjaar@gmail.com>
7825         * grub-core/normal/menu_entry.c (insert_string): fix off by one
7826         access to unallocated memory.
7828 2013-02-25  Andrey Borzenkov <arvidjaar@gmail.com>
7830         * Makefile.util.def: Add partmap/msdos.c to common library.
7831         * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7832         * grub-core/disk/ldm.c: Check for existence of
7833         GRUB_PC_PARTITION_TYPE_LDM.
7835 2013-02-25  Vladimir Serbinenko  <phcoder@gmail.com>
7837         * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7838         sizes and display sector size.
7840 2013-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
7842         Implement new command cmosdump.
7844 2013-02-19  Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7846         Support Openfirmware disks with non-512B sectors.
7848         * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7849         size of the disk.
7850         * (grub_ofdisk_get_block_size): New function.
7851         * (grub_ofdisk_prepare): Use the correct block size.
7852         * (grub_ofdisk_read): Likewise.
7853         * (grub_ofdisk_write): Likewise.
7854         * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7855         New proto.
7857 2013-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
7859         * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7861 2013-02-04  Vladimir Serbinenko  <phcoder@gmail.com>
7863         * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7864         on first error.
7866 2013-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
7868         * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7869         freeing it.
7871 2013-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
7873         Implement USBDebug (full USB stack variant).
7875 2013-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
7877         * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7878         unless they have unexpected values.
7880 2013-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
7882         * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7883         grub_print_error.
7885 2013-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
7887         * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7888         zero-out of port structure.
7890 2013-01-30  Vladimir Serbinenko  <phcoder@gmail.com>
7892         * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7893         of extended attributes.
7895 2013-01-27  Andrey Borzenkov <arvidjaar@gmail.com>
7897         * util/grub-install.in: change misleading comment about
7898         device.map creation
7900 2013-01-27  Vladimir Serbinenko  <phcoder@gmail.com>
7902         * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7903         when menu highlight color isn't set.
7905 2013-01-27  C. Masloch  <pushbx@38.de>
7907         Improve FreeDOS direct loading support compatibility.
7909         * include/grub/i386/relocator.h (grub_relocator16_state):
7910         New member ebp.
7911         * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7912         variable.
7913         (grub_relocator16_boot): Handle %ebp.
7914         * grub-core/lib/i386/relocator16.S: Likewise.
7915         * grub-core/loader/i386/pc/freedos.c:
7916         Load BPB to pass kernel which partition to load from.
7917         Check that kernel file is not too large.
7918         Set register dl to BIOS unit number as well.
7920 2013-01-22  Colin Watson  <cjwatson@ubuntu.com>
7922         * util/grub-reboot.in (usage): Document the need for
7923         GRUB_DEFAULT=saved.
7924         * util/grub-set-default.in (usage): Likewise.
7925         Reported by: Brian Candler.  Fixes Ubuntu bug #1102925.
7927 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
7929         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7930         than defining WORDS_BIGENDIAN manually.
7932 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
7934         * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7935         invariants.
7937 2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
7939         * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7940         nested.
7941         (blit_comb: add_device_width): Likewise.
7943 2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
7945         Remove nested functions from USB iterators.
7947         * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7948         (grub_usb_controller_iterate_hook_t): Likewise.
7949         (grub_usb_iterate): Add hook_data argument.
7950         (grub_usb_controller_iterate): Likewise.
7951         (struct grub_usb_controller_dev.iterate): Likewise.
7953         Update all implementations and callers.
7955 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
7957         * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7958         margin when not needed.
7960 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
7962         Make color variables global instead of it being per-terminal.
7964 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
7966         * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7967         asterisk.
7969 2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
7971         Fix powerpc and sparc64 build failures caused by un-nesting memory
7972         map iterators.
7974 2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
7976         * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7977         parameter declarations.
7979 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
7981         * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7983 2013-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
7985         Improve spkmomdem reliability by adding a separator between bytes.
7987 2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
7989         * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7990         an Acer registration utility with several sightings in the wild.
7991         Reported by: Rickard Westman.  Fixes Ubuntu bug #987022.
7993 2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
7995         Remove nested functions from filesystem directory iterators.
7997         * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7998         (struct grub_fs.dir): Add hook_data argument.
8000         Update all implementations and callers.
8002 2013-01-21  Colin Watson  <cjwatson@ubuntu.com>
8004         * docs/grub.texi (Multi-boot manual config): Fix typo for
8005         "recommended".
8007 2013-01-20  Leif Lindholm  <leif.lindholm@arm.com>
8009         * util/grub-mkimage.c (main): Postpone freeing arguments.output
8010         until after its use in generate_image.
8012 2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
8014         * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
8015         initrd size to addr_min, since the initrd will be allocated after
8016         this address.
8018 2013-01-20  Andrey Borzenkov <arvidjaar@gmail.com>
8020         * conf/Makefile.common: Fix autogen rules to pass definition
8021         files on stdin; Makefile.util.am needs Makefile.utilgcry.def
8023 2013-01-20  Leif Lindholm  <leif.lindholm@arm.com>
8025         * include/grub/elf.h: Update ARM definitions based on binutils.
8027 2013-01-20  Aleš Nesrsta  <starous@volny.cz>
8029         Split long USB transfers into short ones.
8031 2013-01-20  Andrey Borzenkov <arvidjaar@gmail.com>
8033         * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
8034         is interrupted by ESC.
8036 2013-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
8038         * util/grub-script-check.c (main): Uniform the error message.
8040 2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
8042         Remove nested functions from ELF iterators.
8044 2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
8046         Remove nested functions from device iterators.
8048         * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
8049         (grub_arc_iterate_devs): Add hook_data argument.
8050         * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
8051         (struct grub_ata_dev.iterate): Add hook_data argument.
8052         * include/grub/device.h (grub_device_iterate_hook_t): New type.
8053         (grub_device_iterate): Add hook_data argument.
8054         * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
8055         (struct grub_disk_dev.iterate): Add hook_data argument.
8056         (grub_disk_dev_iterate): Likewise.
8057         * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
8058         Likewise.
8059         * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
8060         Likewise.
8061         * include/grub/partition.h (grub_partition_iterate_hook_t): New
8062         type.
8063         (struct grub_partition_map.iterate): Add hook_data argument.
8064         (grub_partition_iterate): Likewise.
8065         * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
8066         (struct grub_scsi_dev.iterate): Add hook_data argument.
8068         Update all callers.
8070 2013-01-20  Colin Watson  <cjwatson@ubuntu.com>
8072         Fix typos for "developer" and "development".
8074 2013-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
8076         Add license header to spkmodem-recv.c.
8078 2013-01-17  Vladimir Serbinenko  <phcoder@gmail.com>
8080         Rewrite spkmodem to use PIT for timing. Double the speed.
8082 2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
8084         Add new command pcidump.
8086 2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
8088         New terminal outputs using serial: morse and spkmodem.
8090 2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
8092         Improve bidi handling in entry editor.
8094 2013-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
8096         * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
8097         argument to prevent name collision.
8099 2013-01-15  Colin Watson  <cjwatson@ubuntu.com>
8101         Remove nested functions from script reading and parsing.
8103         * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8104         getline_data argument, passed to getline.
8105         * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8106         getline_data argument, passed to grub_parser_split_cmdline.
8107         * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8108         lexerstate->getline_data to lexerstate->getline.
8109         (grub_script_lexer_init): Add getline_data argument, saved in
8110         lexerstate->getline_data.
8111         * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8112         argument, passed to grub_script_parse.
8113         * grub-core/script/script.c (grub_script_parse): Add getline_data
8114         argument, passed to grub_script_lexer_init.
8115         * include/grub/parser.h (grub_parser_split_cmdline): Update
8116         prototype.  Update all callers to pass appropriate getline data.
8117         (struct grub_parser.parse_line): Likewise.
8118         (grub_rescue_parse_line): Likewise.
8119         * include/grub/reader.h (grub_reader_getline_t): Add void *
8120         argument.
8121         * include/grub/script_sh.h (struct grub_lexer_param): Add
8122         getline_data member.
8123         (grub_script_parse): Update prototype.  Update all callers to pass
8124         appropriate getline data.
8125         (grub_script_lexer_init): Likewise.
8126         (grub_normal_parse_line): Likewise.
8128         * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8129         data argument.
8130         * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8131         static instead of nested.  Rename to ...
8132         (grub_parser_execute_getline): ... this.
8133         * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8134         data argument.
8135         * grub-core/normal/main.c (read_config_file: getline): Make static
8136         instead of nested.  Rename to ...
8137         (read_config_file_getline): ... this.
8138         (grub_normal_read_line): Add unused data argument.
8139         * grub-core/script/execute.c (grub_script_execute_sourcecode:
8140         getline): Make static instead of nested.  Rename to ...
8141         (grub_script_execute_sourcecode_getline): ... this.
8142         * util/grub-script-check.c (main: get_config_line): Make static
8143         instead of nested.
8145 2013-01-15  Colin Watson  <cjwatson@ubuntu.com>
8147         Remove nested functions from memory map iterators.
8149         * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8150         argument, passed to hook.
8151         * grub-core/kern/i386/coreboot/mmap.c
8152         (grub_linuxbios_table_iterate): Likewise.
8153         (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8154         instead of nested.
8155         (grub_machine_mmap_iterate): Add hook_data argument.
8156         * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8157         Add hook_data argument, passed to hook.
8158         * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8159         Likewise.
8160         * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8161         Likewise.
8162         * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8163         Likewise.
8164         * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8165         Likewise.
8166         * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8167         Likewise.
8168         * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8169         Likewise.
8170         * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8171         (grub_machine_mmap_iterate): Likewise.
8172         * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8173         * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8174         prototype.
8175         * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8176         Remove NESTED_FUNC_ATTR from here and from all users.
8177         (grub_mmap_iterate): Update prototype.
8178         (grub_efi_mmap_iterate): Update prototype.  Update all callers to
8179         pass appropriate hook data.
8180         (grub_machine_mmap_iterate): Likewise.
8182         * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8183         static instead of nested.
8184         * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8185         Rename to ...
8186         (lsmmap_hook): ... this.
8187         * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8188         Likewise.
8189         (grub_efiemu_mmap_fill: fill_hook): Likewise.
8190         * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8191         heap_init): Likewise.
8192         * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8193         Rename to ...
8194         (mmap_iterate_hook): ... this.
8195         * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8196         Likewise.
8197         * grub-core/lib/ieee1275/relocator.c
8198         (grub_relocator_firmware_get_max_events: count): Likewise.
8199         (grub_relocator_firmware_fill_events: fill): Likewise.  Rename
8200         to ...
8201         (grub_relocator_firmware_fill_events_iter): ... this.
8202         * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8203         hook): Likewise.  Rename to ...
8204         (grub_relocator_alloc_chunk_align_iter): ... this.
8205         * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8206         Rename to ...
8207         (generate_e820_mmap_iter): ... this.
8208         * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8209         Rename to ...
8210         (count_hook): ... this.
8211         (grub_linux_boot: hook): Likewise.  Rename to ...
8212         (grub_linux_boot_mmap_find): ... this.
8213         (grub_linux_boot: hook_fill): Likewise.  Rename to ...
8214         (grub_linux_boot_mmap_fill): ... this.
8215         * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8216         hook): Likewise.  Rename to ...
8217         (grub_fill_multiboot_mmap_iter): ... this.
8218         * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8219         hook): Likewise.  Rename to ...
8220         (count_hook): ... this.
8221         * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8222         hook): Likewise.  Rename to ...
8223         (grub_fill_multiboot_mmap_iter): ... this.
8224         * grub-core/loader/powerpc/ieee1275/linux.c
8225         (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8226         * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8227         Likewise.  Rename to ...
8228         (alloc_phys_choose): ... this.
8229         (determine_phys_base: get_physbase): Likewise.
8230         * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8231         find_hook): Likewise.
8232         * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8233         (malloc_hook: count_hook): Likewise.
8234         * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8235         Likewise.  Rename to ...
8236         (lower_hook): ... this.
8237         (grub_mmap_get_upper: hook): Likewise.  Rename to ...
8238         (upper_hook): ... this.
8239         (grub_mmap_get_post64: hook): Likewise.  Rename to ...
8240         (post64_hook): ... this.
8241         * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8242         Likewise.  Rename to ...
8243         (lower_hook): ... this.
8244         (grub_mmap_get_upper: hook): Likewise.  Rename to ...
8245         (upper_hook): ... this.
8246         * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8247         (grub_mmap_iterate: fill_hook): Likewise.
8248         (fill_mask): Pass addr and mask within a single struct.
8249         (grub_cmd_badram: hook): Make static instead of nested.  Rename
8250         to ...
8251         (badram_iter): ... this.
8252         (grub_cmd_cutmem: hook): Likewise.  Rename to ...
8253         (cutmem_iter): ... this.
8255 2013-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
8257         * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8258         delimit path in strings using quotes.
8259         * util/getroot.c (grub_guess_root_devices): Likewise.
8260         (grub_make_system_path_relative_to_its_root): Likewise.
8261         * util/grub-probe.c (probe): Likewise.
8262         * util/ieee1275/ofpath.c (find_obppath): Likewise.
8263         (xrealpath): Likewise.
8265 2013-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
8267         Fix compilation with older compilers.
8269         * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8270         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8271         declarations.
8272         * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8273         * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8274         * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8275         identifier with b.
8276         * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8277         * include/grub/crypto.h: Add type defines.
8278         * util/import_gcrypth.sed: Remove duplicate type defines.
8280 2013-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
8282         New command list_trusted.
8284         * grub-core/commands/verify.c (grub_cmd_list): New function.
8286 2013-01-13  Colin Watson  <cjwatson@ubuntu.com>
8288         * util/grub-mkimage.c (generate_image): Fix "size of public key"
8289         info message.
8291 2013-01-13  Colin Watson  <cjwatson@ubuntu.com>
8293         Remove nested functions from PCI iterators.
8295         * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8296         passed to hook.  Update all callers to pass appropriate hook data.
8297         * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8298         * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8299         Remove NESTED_FUNC_ATTR from here and from all users.
8300         (grub_pci_iterate): Update prototype.
8301         * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8302         instead of nested.  Rename to ...
8303         (grub_cs5536_find_iter): ... this.
8304         * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8305         * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8306         Likewise.
8307         * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8308         Likewise.
8309         * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8310         Likewise.
8311         * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8312         Likewise.
8313         * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8314         * grub-core/video/radeon_fuloong2e.c
8315         (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8316         * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8317         find_card): Likewise.
8318         * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8319         Likewise.
8321 2013-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
8323         * grub-core/commands/verify.c: Mark messages for translating.
8325 2013-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
8327         * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8328         fatal.
8330 2013-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
8332         * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8333         fatal.
8335 2013-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
8337         * autogen.sh: Do not try to delete nonexistant files.
8338         * util/import_gcrypth.sed: Add some missing header removals.
8340 2013-01-12  Colin Watson  <cjwatson@ubuntu.com>
8342         Clean up dangling references to grub-setup.
8343         Fixes Ubuntu bug #1082045.
8345         * docs/grub.texi (Images): Refer generally to grub-install rather
8346         than directly to grub-setup.
8347         (Installing GRUB using grub-install): Remove direct reference to
8348         grub-setup.
8349         (Device map) Likewise.
8350         (Invoking grub-install): Likewise.
8351         * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8352         * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8353         * util/grub-install.in (usage): Likewise.
8355         * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8356         Apply to grub-bios-setup and grub-sparc64-setup rather than to
8357         grub-setup.
8358         * configure.ac: Remove grub_setup output variable.
8360         * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8361         to grub-bios-setup.
8362         * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8363         grub-setup to grub-sparc64-setup.
8365 2013-01-11  Vladimir Serbinenko  <phcoder@gmail.com>
8367         Import gcrypt public-key cryptography and implement signature checking.
8369 2013-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
8371         * grub-core/fs/ntfs.c: Ue more appropriate types.
8372         * grub-core/fs/ntfscomp.c: Likewise.
8373         * include/grub/ntfs.h: Likewise.
8375 2013-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
8377         Support Apple FAT binaries on non-Apple platforms.
8379         * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8380         * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8381         Likewise.
8382         * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8383         Apple FAT binaries.
8385 2013-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
8387         * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8388         sector devices.
8390 2013-01-07  Colin Watson  <cjwatson@ubuntu.com>
8392         * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8393         explicitly zeroing elements.
8394         * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8395         * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8396         of elements in a structure already allocated using grub_zalloc.
8397         * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8399 2013-01-07  Colin Watson  <cjwatson@ubuntu.com>
8401         * docs/grub.texi (grub_cpu): New subsection.
8402         (grub_platform): Likewise.
8404 2013-01-07  Vladimir Serbinenko  <phcoder@gmail.com>
8406         * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8408 2013-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
8410         * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8411         divisions.
8413 2013-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
8415         * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8416         * grub-core/fs/ntfscomp.c: Likewise.
8417         * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8418         (grub_ntfs_comp): Likewise.
8420 2013-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
8422         * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8423         Rename to ...
8424         (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8425         of groups_per_block. All users updated.
8427 2013-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
8429         * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8430         grub_error properly.
8431         * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8432         * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8434 2013-01-03  Vladimir Serbinenko  <phcoder@gmail.com>
8436         * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8437         always in /boot/zfs.
8438         Reported by: Yuta Satoh.
8440 2013-01-03  Yuta Satoh  <nigoro>
8442         * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8443         ${grub_probe}
8445 2013-01-03  Vladimir Serbinenko  <phcoder@gmail.com>
8447         * configure.ac: Extend -Wno-trampolines to host.
8449 2013-01-03  Vladimir Serbinenko  <phcoder@gmail.com>
8451         * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8452         entry->len = 0.
8454 2013-01-03  Colin Watson  <cjwatson@ubuntu.com>
8456         * docs/grub.texi (Invoking grub-mkrelpath): New section.
8457         (Invoking grub-script-check): Likewise.
8459 2013-01-03  Colin Watson  <cjwatson@ubuntu.com>
8461         * docs/grub.texi (Invoking grub-mount): New section.
8462         Reported by: Filipus Klutiero.  Fixes Debian bug #666427.
8464 2013-01-02  Colin Watson  <cjwatson@ubuntu.com>
8466         * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8467         test failures, so that a failing unit test correctly causes 'make
8468         check' to fail.
8470 2013-01-02  Colin Watson  <cjwatson@ubuntu.com>
8472         Fix failing printf test.
8474         * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8475         '$' in the correct order when collecting type information.
8477 2013-01-02  Colin Watson  <cjwatson@ubuntu.com>
8479         * docs/grub.texi (configfile): Explain environment variable
8480         handling.
8481         (source): New section.
8482         Reported by: Arbiel Perlacremaz.  Fixes Savannah bug #35564.
8484 2012-12-31  Colin Watson  <cjwatson@ubuntu.com>
8486         Remove several trivially-unnecessary uses of nested functions.
8488         * grub-core/commands/i386/pc/sendkey.c
8489         (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8490         instead of nested.
8491         * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8492         Rename to ...
8493         (legacy_file_getline): ... this.
8494         * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8495         Likewise.
8496         * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8497         * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise.  Rename
8498         to ...
8499         (probe_dummy_iter): ... this.
8500         * grub-core/kern/i386/coreboot/mmap.c
8501         (grub_linuxbios_table_iterate: check_signature): Likewise.
8502         * grub-core/kern/parser.c (grub_parser_split_cmdline:
8503         check_varstate): Likewise.  Mark inline.
8504         * grub-core/lib/arg.c (find_short: fnd_short): Likewise.  Pass
8505         an additional parameter.
8506         (find_long: fnd_long): Likewise.  Pass two additional parameters.
8507         * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8508         * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8509         * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8510         Likewise.  Rename to ...
8511         (grub_cmos_find_port_iter): ... this.
8512         * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8513         Rename to ...
8514         (find_rtc_iter): ... this.
8516         * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8517         function directly into the function body, since it is only called
8518         once.
8520 2012-12-30  Colin Watson  <cjwatson@ubuntu.com>
8522         * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8523         __attribute__ ((unused)).
8524         * grub-core/video/bochs.c (find_card): Likewise.
8525         * grub-core/video/cirrus.c (find_card): Likewise.
8526         * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8527         * grub-core/video/sis315pro.c (find_card): Likewise.
8528         * grub-core/video/sm712.c (find_card): Likewise.
8530 2012-12-28  Colin Watson  <cjwatson@ubuntu.com>
8532         * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8533         Fixes Savannah bug #37821.
8535 2012-12-28  Colin Watson  <cjwatson@ubuntu.com>
8537         Apply program name transformations at build-time rather than at
8538         run-time.  Fixes Debian bug #696465.
8540         * acinclude.m4 (grub_TRANSFORM): New macro.
8541         * configure.ac: Create output variables with transformed names for
8542         most programs.
8543         * util/bash-completion.d/grub-completion.bash.in: Use
8544         pre-transformed variables for program names.
8545         * util/grub-install.in: Likewise.
8546         * util/grub-kbdcomp.in: Likewise.
8547         * util/grub-mkconfig.in: Likewise.
8548         * util/grub-mkconfig_lib.in: Likewise.
8549         * util/grub-mknetdir.in: Likewise.
8550         * util/grub-mkrescue.in: Likewise.
8551         * util/grub-mkstandalone.in: Likewise.
8552         * util/grub-reboot.in: Likewise.
8553         * util/grub-set-default.in: Likewise.
8554         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8555         * tests/util/grub-shell-tester.in: Remove unused assignment.
8556         * tests/util/grub-shell.in: Likewise.
8557         * util/grub.d/00_header.in: Likewise.
8559 2012-12-28  Colin Watson  <cjwatson@ubuntu.com>
8561         Backport gnulib fixes for C11.  Fixes Savannah bug #37738.
8563         * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8564         HAVE_RAW_DECL_GETS.
8565         * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8567 2012-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
8569         * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8570         Reported by: Eriks Latosheks <foresterlv>.
8572 2012-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
8574         * docs/grub.texi (Network): Update instructions on generating netboot
8575         image.
8577 2012-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
8579         * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8580         around device name if necessarry.
8582 2012-12-10  Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8584         * util/grub-install.in: Follow the symbolic link parameter added
8585         to the file command.
8587 2012-12-10  Andrey Borzenkov <arvidjaar@gmail.com>
8589         * util/grub-install.in: Remove stale TODO.
8591 2012-12-10  Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8593         * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8594         dynamic allocation for the bootpath buffer.
8596 2012-12-10  Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8598         * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8599         window too small.
8601 2012-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
8603         * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8604         argument rather than font name. All users updated.
8605         (grub_gfxterm_set_window): Likewise.
8607 2012-12-10  Vladimir Testov  <vladimir.testov@rosalab.ru>
8609         * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8610         from working.
8612 2012-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
8614         * util/getroot.c (convert_system_partition_to_system_disk): Support
8615         nbd disks.
8617 2012-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
8619         * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8620         infinite loop on corrupted FS.
8622 2012-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
8624         Fix big-endian mtime.
8626         * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8627         together sec and usec.
8628         (grub_ufs_dir): Use correct byteswapping for UFS time.
8630 2012-12-08  Vladimir Serbinenko  <phcoder@gmail.com>
8632         Support big-endian UFS1.
8634         * Makefile.util.def (libgrubmods): Add ufs_be.c
8635         * grub-core/Makefile.core.def (ufs1_be): New module.
8636         * grub-core/fs/ufs_be.c: New file.
8637         * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8638         the file.
8640 2012-11-28  Leif Lindholm  <leif.lindholm@arm.com>
8642         * include/grub/types.h: Fix functionality unaffecting typo in
8643         GRUB_TARGET_WORDSIZE conditional macro.
8645 2012-11-28  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
8647         * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8649 2012-10-28  Grégoire Sutre  <gregoire.sutre@gmail.com>
8651         * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8652         that /netbsd appears first (when it exists).
8654 2012-10-12  Christoph Junghans  <ottxor@gentoo.org>
8656         * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8657         Fixes Savannah bug #37558.
8659 2012-10-12  Colin Watson  <cjwatson@ubuntu.com>
8661         * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8662         description of extract_entries_configfile.
8664 2012-10-05  Colin Watson  <cjwatson@ubuntu.com>
8666         * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8667         preferred_address.
8668         (grub_cmd_linux): Likewise.
8669         * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8670         preferred_lifetime.  Update all users.
8672 2012-09-26  Colin Watson  <cjwatson@ubuntu.com>
8674         * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8675         Reported by: Daniel Kahn Gillmor.  Fixes Debian bug #688799.
8677 2012-09-26  Colin Watson  <cjwatson@ubuntu.com>
8679         * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8680         errors from grub-probe to /dev/null, not stdout.
8682 2012-09-26  Vladimir Serbinenko  <phcoder@gmail.com>
8684         * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8685         sector 1.
8687 2012-09-24  Colin Watson  <cjwatson@ubuntu.com>
8689         * util/grub-install.in: Make the error message if $source_dir
8690         doesn't exist more useful.
8692 2012-09-22  Colin Watson  <cjwatson@ubuntu.com>
8694         Fix grub-emu build on FreeBSD.
8696         * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8697         * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8698         headers on Linux.
8699         (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8700         implementation is currently Linux-specific.
8701         * util/getroot.c (exec_pipe): Define only on Linux or when either
8702         libzfs or libnvpair is unavailable.
8703         (find_root_devices_from_poolname): Remove unused path variable.
8705 2012-09-19  Colin Watson  <cjwatson@ubuntu.com>
8707         * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8708         incorrect off-by-one fix from 2011-02-12.  A 62-sector core image
8709         should fit before end == 63.
8711 2012-09-19  Colin Watson  <cjwatson@ubuntu.com>
8713         * util/grub-setup.c (write_rootdev): Remove unused core_img
8714         parameter.  Update all callers.
8715         (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8716         'gcc -Wunused-but-set-variable'.  Remove unnecessary nested #ifdef
8717         GRUB_SETUP_BIOS.
8719 2012-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
8721         * util/grub-mkconfig_lib.in (grub_tab): New variable.
8722         (grub_add_tab): New function.
8723         * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8724         * util/grub.d/10_illumos.in: Likewise.
8725         * util/grub.d/10_kfreebsd.in: Likewise.
8726         * util/grub.d/10_linux.in: Likewise.
8727         * util/grub.d/10_netbsd.in: Likewise.
8728         * util/grub.d/10_windows.in: Likewise.
8729         * util/grub.d/10_xnu.in: Likewise.
8730         * util/grub.d/20_linux_xen.in: Likewise.
8731         * util/grub.d/30_os-prober.in: Likewise.
8733 2012-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
8735         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8736         GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8737         * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8738         ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8739         * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8740         ieee1275-nocursor.
8741         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8742         GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8744 2012-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
8746         * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8747         le-conversion.
8748         Reported by: BURETTE, Bernard.
8750 2012-09-17  Colin Watson  <cjwatson@ubuntu.com>
8752         * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8753         from comment.
8755 2012-09-14  Colin Watson  <cjwatson@ubuntu.com>
8757         * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8758         IEEE1275 machines.  Fixes powerpc-emu compilation.
8759         * include/grub/terminfo.h: Likewise.
8761 2012-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
8763         * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8764         a const pointer.
8765         * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8766         const pointer.
8767         (efiemu_set_variable): Make vendor_guid a const pointer.
8769 2012-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
8771         Don't require grub-mkconfig_lib to generate manpages for programs.
8773         * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8774         dependencies, don't add grub-mkconfig_lib.
8775         (program): Pass empty adddeps.
8776         (script): Pass grub-mkconfig_lib as adddeps.
8778 2012-09-11  Vladimir Serbinenko  <phcoder@gmail.com>
8780         * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8781         * util/getroot.c (grub_find_device): Likewise.
8782         (get_mdadm_uuid): Likewise.
8783         (grub_util_is_imsm): Likewise.
8784         (grub_util_pull_device): Likewise.
8785         * util/grub-probe.c (probe): Likewise.
8787 2012-09-10  Benoit Gschwind <gschwind>
8789         * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8790         (devs): Add devpath_8.
8792 2012-09-08  Peter Jones <pjones@redhat.com>
8794         * grub-core/Makefile.core.def (efifwsetup): New module.
8795         * grub-core/commands/efi/efifwsetup.c: New file.
8796         * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8797         * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8798         New define.
8799         * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8801 2012-09-05  Jiri Slaby <jslaby@suse.cz>
8803         * configure.ac: Add SuSe path.
8805 2012-09-05  Colin Watson  <cjwatson@ubuntu.com>
8807         * NEWS: Fix typo.
8809 2012-09-05  Colin Watson  <cjwatson@ubuntu.com>
8811         * util/import_gcry.py: Sort cipher_files, to make build system
8812         generation more deterministic.
8814 2012-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
8816         * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8817         * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8818         (grub_set_datetime): Likewise.
8820 2012-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
8822         * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8823         warnings.
8825 2012-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
8827         * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8829 2012-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
8831         * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8833 2012-09-04  Colin Watson  <cjwatson@ubuntu.com>
8835         * Makefile.am (EXTRA_DIST): Add linguas.sh.  It's only strictly
8836         required for checkouts from bzr, but it may be useful for users or
8837         distributors wishing to update translations against a tarball
8838         distribution, and it can be helpful for the tarball to be a superset
8839         of what's in bzr.
8841 2012-09-04  Colin Watson  <cjwatson@ubuntu.com>
8843         * Makefile.am (EXTRA_DIST): Add
8844         grub-core/tests/boot/linux.init-mips.S,
8845         grub-core/tests/boot/linux.init-ppc.S, and
8846         grub-core/tests/boot/linux-ppc.cfg.
8848 2012-09-04  Colin Watson  <cjwatson@ubuntu.com>
8850         * grub-core/mmap/mips/loongson: Remove empty directory.
8852 2012-09-04  Colin Watson  <cjwatson@ubuntu.com>
8854         * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8855         gone.
8857 2012-09-04  Colin Watson  <cjwatson@ubuntu.com>
8859         * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8860         grub-sparc64-setup.
8862 2012-08-05  Grégoire Sutre  <gregoire.sutre@gmail.com>
8864         * configure.ac: Strengthen the test for working -nostdinc -isystem.
8866 2012-07-31  Grégoire Sutre  <gregoire.sutre@gmail.com>
8868         * po/POTFILES.in: Regenerated.
8870 2012-07-31  Grégoire Sutre  <gregoire.sutre@gmail.com>
8872         * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8873         (NetBSD): New subsection.
8875 2012-07-22  Ales Nesrsta  <starous@volny.cz>
8877         * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8878         * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8880 2012-07-22  Vladimir Serbinenko  <phcoder@gmail.com>
8882         * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8883         * util/grub.d/10_hurd.in: Add missing quoting.
8884         * util/grub.d/10_illumos.in: Likewise.
8885         * util/grub.d/10_kfreebsd.in: Likewise.
8886         * util/grub.d/10_linux.in: Likewise.
8887         * util/grub.d/20_linux_xen.in: Likewise.
8889 2012-07-22  Vladimir Serbinenko  <phcoder@gmail.com>
8891         New command `lsefi'.
8893         * grub-core/Makefile.core.def (lsefi): New module.
8894         * grub-core/commands/efi/lsefi.c: New file.
8895         * include/grub/efi/api.h: Add more GUIDs.
8897 2012-07-22  Vladimir Serbinenko  <phcoder@gmail.com>
8899         * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8900         (grub_bsd_elf32_hook): Likewise.
8901         (grub_bsd_elf64_size_hook): Likewise.
8902         (grub_bsd_elf64_hook): Likewise.
8903         (grub_bsd_load_elf): Likewise.
8905 2012-07-22  Vladimir Serbinenko  <phcoder@gmail.com>
8907         * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8908         if hash function is unavailable.
8909         (dec_stream_header): Likewise.
8911 2012-07-22  Vladimir Serbinenko  <phcoder@gmail.com>
8913         * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8914         filter state.
8916 2012-07-22  Vladimir Serbinenko  <phcoder@gmail.com>
8918         Fix coreboot compilation.
8920         * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8921         (grub_vga_text_init_real): ... this.
8922         (grub_vga_text_fini): Rename to ...
8923         (grub_vga_text_fini_real): ... this.
8925 2012-07-07  Vladimir Serbinenko  <phcoder@gmail.com>
8927         * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8929 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
8931         * grub-core/lib/legacy_parse.c: Support clear and testload.
8933 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
8935         * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8937 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
8939         * grub-core/fs/ext2.c: Experimental support for 64-bit.
8941 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
8943         * grub-core/net/tftp.c (ack): Fix endianness problem.
8944         (tftp_receive): Likewise.
8945         Reported by: Michael Davidsaver.
8947 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
8949         * gentpl.py: Make mans depend on grub-mkconfig_lib.
8951 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
8953         * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8954         * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8955         * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8957 2012-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
8959         * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8960         efi_mmap_size.
8961         Reported by: Stuart Hayes.
8963 2012-06-28  Vladimir Serbinenko  <phcoder@gmail.com>
8965         Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8967         * grub-core/Makefile.core.def (mda_text): New module.
8968         * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8969         * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8970         * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8971         * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8972         here.
8973         * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8974         * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8975         * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8976         here.
8977         * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8978         to ..
8979         * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8980         ... here
8981         * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8982         here.
8983         * grub-core/term/i386/vga_common.c: Removed.
8984         * include/grub/i386/vga_common.h: Likewise.
8985         * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8986         (grub_vga_cr_bw_read): Likewise.
8987         * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8988         (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8989         * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8990         grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8991         grub_vga_cr_read/grub_vga_cr_write.
8992         (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8994 2012-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
8996         * configure.ac: Bump version to 2.00.
8997         * grub-core/normal/main.c (features): Add feature_200_final.
8999 2012-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
9000 2012-06-27  Jordan Uggla  <jordan.uggla@gmail.com>
9002         * NEWS: Fix unclarity and language mistakes.
9004 2012-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
9006         * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
9007         additional size to 3 pages.
9008         Reported by: Stuart Hayes.
9010 2012-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
9012         * NEWS: Add 2.00 entry.
9014 2012-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
9016         * grub-core/commands/wildcard.c (check_file): Fix bad logic.
9017         put explicit "/" for empty path.
9018         (wildcard_expand): Improve dprintf.
9020 2012-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
9022         * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
9023         it's equal to currnode. This can happen with "" symlink.
9025 2012-06-27  Yves Blusseau <blusseau@zetam.org>
9027         * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
9028         echo shell command by printf command.
9030 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9032         * grub-core/term/arc/console.c (grub_console_init_output): Add one since
9033         the value returned by firmware is the maximal position, not diumension.
9034         (grub_terminfo_output_state): Use a more sane fallback.
9036 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9038         * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
9040 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9042         * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
9043         frequency to 150 MHz.
9045 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9047         Apple fixes.
9049         * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
9050         __APPLE_
9051         * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
9052         definition.
9053         * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
9055 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9057         Handle slash in HFS label.
9059         * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
9060         (grub_hfs_dir): Tanslate slash.
9061         (grub_hfs_label): Don't translate slash.
9063 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9065         * grub-core/commands/ls.c (grub_ls_list_devices): Disable
9066         network protocol listing since it introduces problematic dependency on
9067         net module.
9069 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9071         * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
9073 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9075         Init video early on yeeloong to avoid being rebooted by watchdog.
9077         * grub-core/Makefile.am (gensm712): New target.
9078         (sm712_start.S): Likewise.
9079         (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
9080         * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
9081         * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
9082         description.
9083         * include/grub/vga.h: Move registry definitions to...
9084         * include/grub/vgaregs.h: ... here.
9086 2012-06-26  Vladimir Serbinenko  <phcoder@gmail.com>
9088         * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
9089         signedness.
9091 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
9093         * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
9094         platforms with firmware disk drivers in the core.
9096 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
9098         * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
9099         informative verbose message.
9100         (read_lv): Handle 64-bit segment size.
9102 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
9104         * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9106 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
9108         * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9109         character but still remove trainling spaces.
9110         (grub_fat_label): Ignore archive flag.
9112 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
9114         * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9115         cast between linux_kernel_header and linux_kernel_params.
9117 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
9119         * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9120         type for size.
9121         (grub_raid6_recover_func_t): Likewise.
9122         * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9123         * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9125 2012-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
9127         * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9129 2012-06-25  Grégoire Sutre  <gregoire.sutre@gmail.com>
9131         Fix overflow.
9133         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9134         [__NetBSD__]: Add explicit cast before bitshift.
9136 2012-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
9138         * configure.ac: Bump to 2.00~rc1.
9140 2012-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
9142         * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9143         half of $a0.
9145 2012-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
9146 2012-06-23  Jordan Uggla  <jordan.uggla@gmail.com>
9148         * docs/grub.texi: Fix search syntax.
9149         (Multi-boot manual config): Put msdos rather than GPT example.
9150         Grammar corrections.
9152 2012-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
9154         * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9156 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9158         * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9160 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9162         * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9163         message on double free. Put the value of magic in case of mismatch.
9165 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9167         Speed-up video on yeeloong.
9169         * grub-core/video/sm712.c (framebuffer): Remove render_target and
9170         add cached_ptr.
9171         (grub_video_sm712_video_fini): Unmap cached_ptr.
9172         (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9173         (grub_video_sm712_set_active_render_target): Removed.
9174         (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9175         (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9176         sync caches.
9178 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9180         Avoid flushing the same line multiple times on loongson.
9182         * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9183         Step in 32 bytes and not 1 byte.
9184         * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9185         Likewise.
9187 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9189         * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9190         subvolumes.
9192 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9194         Implement flow control for http.
9196         * grub-core/net/http.c (parse_line): Handle response 206.
9197         (http_receive): Stall if too many packets are in the queue.
9198         (http_establish): Fix range header.
9199         (http_seek): Fix double free.
9200         (http_close): Likewise.
9201         (http_packets_pulled): New function.
9202         (grub_http_protocol): Set http_seek
9203         * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9204         (ack_real): Set window depending on i_stall.
9205         (grub_net_send_tcp_packet): Likewise.
9206         (grub_net_tcp_stall): New function.
9207         (grub_net_tcp_unstall): Likewise.
9208         * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9209         (grub_net_tcp_unstall): Likewise.
9211 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9213         * grub-core/net/tftp.c: Decrease stall to 50 packets.
9215 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9217         * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9219 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9221         * tests/util/grub-shell.in: Fix a typo.
9223 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9225         Implement flow control for tftp.
9227         * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9228         packets but stop only if stop condition is satisfied.
9229         (grub_net_fs_read_real): Call packets_pulled after real read. Use
9230         `stall' instead of `eof' as stop condition.
9231         * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9232         (http_err): Likewise.
9233         * grub-core/net/tftp.c (ack): Replace the first argument with data
9234         instead of socket.
9235         (tftp_receive): Stall if too many packets are in wait queue.
9236         (tftp_packets_pulled): New function.
9237         (grub_tftp_protocol): Set packets_pulled.
9238         * include/grub/net.h (grub_net_packets): New field count.
9239         (grub_net_put_packet): Increment count.
9240         (grub_net_remove_packet): Likewise.
9241         (grub_net_app_protocol): New field `packets_pulled'.
9242         (grub_net): New field `stall'.
9244 2012-06-22  Vladimir Serbinenko  <phcoder@gmail.com>
9246         * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9247         sync part to handle them.
9249 2012-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
9251         * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9252         * grub-core/net/drivers/ieee1275/ofnet.c
9253         (grub_ieee1275_net_config_real): Likewise.
9255 2012-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
9257         * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9258         the direct route for server/gateway.
9260 2012-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
9262         * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9263         IP address to server name since we may not hame the DNS.
9265 2012-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
9267         * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9268         freeing random buffer on failure.
9269         * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9271 2012-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
9273         * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9275 2012-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
9277         * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9278         reserved bytes.
9279         * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9280         * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9281         Handle malloc error correctly.
9283 2012-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
9285         * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9286         blocks.
9288 2012-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
9290         * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9291         increment.
9293 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9295         * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9296         none is explicitly specified.
9298 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9300         * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9301         while reallocating.
9303 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9305         Respect netmask from bootp/dhcp.
9307         * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9308         (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9309         * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9310         into ...
9311         (grub_net_add_ipv4_local): ... this.
9312         (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9313         * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9314         (grub_net_add_ipv4_local): New proto.
9316 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9318         * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9319         determining EFI memory map size.
9321 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9323         * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9325 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9327         * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9328         when looking for partition separator.
9330 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9332         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9333         Escape commas.
9335 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9337         Restructure FAT driver to avoid hook in label reading as it hits a
9338         GCC bug.
9340         * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9341         * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9342         (grub_fat_iterate_dir): Split into ...
9343         (grub_fat_iterate_init): ... this, ...
9344         (grub_fat_iterate_fini): ... this, ...
9345         (grub_fat_iterate_dir_next): ... and this. All users updated.
9347 2012-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
9349         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9350         GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9351         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9352         GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9353         * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9354         New fields last_key and last_key_time.
9355         * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9356         extended key-esc into extended key-extended key.
9358 2012-06-19  Vladimir Serbinenko  <phcoder@gmail.com>
9360         Avoid unnecessary memcpy of whole video buffer.
9362         * grub-core/video/fb/video_fb.c (dirty): New struct.
9363         (framebuffer): Add members current_dirty and previous_dirty.
9364         (dirty): New function.
9365         (grub_video_fb_fill_rect): Update dirty.
9366         (common_blitter): Likewise.
9367         (grub_video_fb_scroll): Likewise.
9368         (doublebuf_blit_update_screen): Copy only dirty part.
9369         (doublebuf_pageflipping_update_screen): Likewise.
9370         (grub_video_fb_doublebuf_blit_init): Init dirty.
9371         (doublebuf_pageflipping_init): Likewise.
9372         (grub_video_fb_setup): Likewise.
9374 2012-06-19  Vladimir Serbinenko  <phcoder@gmail.com>
9376         * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9377         poll rate.
9379 2012-06-19  Vladimir Serbinenko  <phcoder@gmail.com>
9381         Fix wildcard regexp dot and other special characters handling.
9382         Reported by: Robert Mabee.
9384         * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9385         (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9386         (split_path): Trigger expansion on '?'.
9387         (unescape): New function.
9388         (wildcard_expand): Unescape parts copied without globbing.
9389         * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9390         (grub_script_arglist_to_argv): Don't unescape expansions.
9392 2012-06-19  Vladimir Serbinenko  <phcoder@gmail.com>
9394         * include/grub/net.h (grub_net_card): New member txbufsize.
9395         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9396         GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9397         GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9398         * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9399         txbufsize.
9400         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9401         compatible property to check for macs. Set
9402         GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9403         GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9404         * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9405         if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9406         (send_card_buffer): Use txbuf.
9407         (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9408         nested function out of the parent while on it.
9410 2012-06-19  Vladimir Serbinenko  <phcoder@gmail.com>
9412         * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9413         presence check.
9414         (grub_ieee1275_net_config_real): Fix config pointer.
9416 2012-06-19  Vladimir Serbinenko  <phcoder@gmail.com>
9418         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9419         filename parsing to non-block devices.
9421 2012-06-19  Vladimir Serbinenko  <phcoder@gmail.com>
9423         * grub-core/kern/device.c (grub_device_open): Remove dead code.
9425 2012-06-18  Vladimir Serbinenko  <phcoder@gmail.com>
9427         * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9428         All users updated.
9430 2012-06-18  Vladimir Serbinenko  <phcoder@gmail.com>
9432         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9433         UUID search command even if hints probing failed.
9435 2012-06-18  Vladimir Serbinenko  <phcoder@gmail.com>
9437         * po/POTFILES.in: Regenerated.
9439 2012-06-17  Vladimir Serbinenko  <phcoder@gmail.com>
9441         Speed-up video on fuloong.
9443         * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9444         New function.
9445         (grub_pci_device_unmap_range): Handle non-cached address.
9446         * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9447         add direct_ptr.
9448         (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9449         (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9450         (grub_video_sis315pro_set_active_render_target): Removed.
9451         (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9452         (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9453         (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9454         sync caches.
9455         * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9456         New proto.
9458 2012-06-16  Vladimir Serbinenko  <phcoder@gmail.com>
9460         * docs/grub.texi (Multi-boot manual config): New section.
9462 2012-06-15  Vladimir Serbinenko  <phcoder@gmail.com>
9464         Avoid slow read-back from VRAM.
9466         * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9467         Move from here ...
9468         * grub-core/video/fb/video_fb.c
9469         (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9470         * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9471         (front_target): Remove front_target. Add pages.
9472         (grub_video_fb_init): Skip setting front_pages.
9473         (grub_video_fb_fini): Likewise.
9474         (doublebuf_blit_update_screen): Use pages.
9475         (grub_video_fb_doublebuf_blit_init): Likewise.
9476         (doublebuf_pageflipping_init): Allocate offscreen buffer.
9477         (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9478         (grub_video_fb_setup): Prefer doublebuffing.
9480 2012-06-15  Vladimir Serbinenko  <phcoder@gmail.com>
9482         * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9483         gzio.
9485 2012-06-15  Vladimir Serbinenko  <phcoder@gmail.com>
9487         Add loongson tests.
9489         * tests/util/grub-shell.in: Handle loongson.
9490         * tests/partmap_test.in: Add loongson to the list of platform using ATA
9491         drivers.
9492         * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9493         Reboot instead of shutdown if REBOOT is defined.
9495 2012-06-15  Vladimir Serbinenko  <phcoder@gmail.com>
9497         * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9498         sized ports since unlike on real hardware qemu supports only 32-bit
9499         regs.
9501 2012-06-15  Vladimir Serbinenko  <phcoder@gmail.com>
9503         * Makefile.util.def (grub-mkrescue): Enable on loongson.
9504         * util/grub-mkrescue.in: Handle loongson.
9506 2012-06-14  Vladimir Serbinenko  <phcoder@gmail.com>
9508         * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9509         Set is_part appropriately.
9510         (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9511         names. Canonicalize partition without full disk.
9513 2012-06-13  Vladimir Serbinenko  <phcoder@gmail.com>
9515         Revert usb-quiesce since it's wrong.
9517         * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9518         (grub_ofdisk_init): Don't do quiesce.
9520 2012-06-13  Vladimir Serbinenko  <phcoder@gmail.com>
9522         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9523         PowerMac workaround to Xserves as well.
9524         Information supplied by: Benjamin Herrenschmidt.
9526 2012-06-13  Vladimir Serbinenko  <phcoder@gmail.com>
9528         Don't assume that beginning address is also the entry point on ppc.
9530         * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9531         (grub_linux_boot): Use linux_entry.
9532         (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9533         (grub_linux_load64): Likewise.
9535 2012-06-13  Vladimir Serbinenko  <phcoder@gmail.com>
9537         * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9539 2012-06-13  Vladimir Serbinenko  <phcoder@gmail.com>
9541         * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9542         needlessly lose the console.
9544 2012-06-13  Vladimir Serbinenko  <phcoder@gmail.com>
9546         * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9547         space.
9549 2012-06-11  Vladimir Serbinenko  <phcoder@gmail.com>
9551         Remove non-functional EFI grub_get_rtc. Put a better fatal message
9552         than current grub_get_rtc() not implemented when booted with
9553         coreboot without TSC.
9555         * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9556         Add machine/time.h to kernel headers on loongson.
9557         * grub-core/Makefile.core.def (kernel): Remove
9558         kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9559         * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9560         (grub_get_rtc): Likewise.
9561         * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9562         * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9563         * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9564         * grub-core/kern/i386/tsc.c (grub_tsc_init)
9565         [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9566         rather than installing known non-working time source.
9567         * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9568         * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9569         * include/grub/time.h: Don't include machine/time.h.
9570         * include/grub/efi/time.h: Removed.
9571         * include/grub/i386/efi/time.h: Likewise.
9572         * include/grub/i386/ieee1275/time.h: Likewise.
9573         * include/grub/powerpc/ieee1275/time.h: Likewise.
9574         * include/grub/sparc64/ieee1275/time.h: Likewise.
9575         * include/grub/x86_64/efi/time.h: Likewise.
9577 2012-06-11  Vladimir Serbinenko  <phcoder@gmail.com>
9579         Remove dot on i and j when combining with above diacritics.
9581         * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9582         value.
9583         (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9584         * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9585         with dotless variants when any combining above is present.
9587 2012-06-09  Vladimir Serbinenko  <phcoder@gmail.com>
9589         * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9590         text and not binary.
9592 2012-06-09  Vladimir Serbinenko  <phcoder@gmail.com>
9594         Stop polling as soon as we have the packet we were waiting for.
9596         * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9597         All users updated.
9598         * grub-core/net/arp.c (have_pending): New var.
9599         (pending_req): Likewise.
9600         (grub_net_arp_send_request): Fill pending_req and use have_pending as
9601         stop indicator.
9602         (grub_net_arp_receive): Set have_pending.
9603         * grub-core/net/dns.c (recv_data): New field stop.
9604         (recv_hook): Set stop.
9605         (grub_net_dns_lookup): Init stop and use as stop condition.
9606         * grub-core/net/http.c (http_establish): Use headers_recv as stop
9607         condition.
9608         * grub-core/net/net.c (grub_net_poll_cards): New argument
9609         stop_condition. Stop when it goes true.
9610         * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9611         indicator.
9612         * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9614 2012-06-09  Vladimir Serbinenko  <phcoder@gmail.com>
9616         Keep TX and RX buffers on EFI rather than always allocate new ones.
9618         * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9619         card. All users updated.
9620         (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9621         * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9622         (get_card_packet): Likewise.
9623         (grub_efinet_findcards): Init new fields.
9625 2012-06-09  Vladimir Serbinenko  <phcoder@gmail.com>
9627         * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9628         compilation error on sparc64.
9630 2012-06-09  Vladimir Serbinenko  <phcoder@gmail.com>
9632         Use ITC on IA64 rather than broken routine based on daytime.
9634         * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9635         ia64.
9636         (grub_get_rtc) [__ia64__]: Likewise.
9637         * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9638         (get_itc): New function.
9639         (grub_rtc_get_time_ms): Likewise.
9640         (grub_machine_init): Calibrate ITC.
9641         * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9642         Keep only on non-ia64. Don't export since it's broken and used only
9643         if TSC is unavailable.
9645 2012-06-09  Vladimir Serbinenko  <phcoder@gmail.com>
9647         * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9648         even if it's used.
9649         (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9650         Skip if parent is unused.
9652 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9654         * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9656 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9658         Fix wildcard escaping.
9660         * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9661         * grub-core/script/execute.c (wildcard_escape): .. to here.
9662         Don't escape dot.
9663         * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9664         * grub-core/script/execute.c (wildcard_unescape): .. to here.
9665         Don't escape dot.
9666         * grub-core/script/execute.c (gettext_append): Always escape.
9667         (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9668         * grub-core/script/yylex.l: Don't cut away the escaping.
9669         * tests/grub_script_echo1.in: Add tests with wildcard.
9671 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9673         * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9674         (ftdi_hw_configure): Likewise.
9675         * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9676         define.
9677         (real_config): Handle 1.5 stop bits.
9678         (pl2303_hw_configure): Likewise.
9680 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9682         * Makefile.am: Add ppc linux bootcheck.
9683         * grub-core/tests/boot/linux-ppc.cfg: New file.
9684         * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9686 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9688         * tests/grub_script_expansion.in: Skip network protocols.
9690 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9692         * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9694 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9696         * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9697         --rom-directory.
9698         Add -graft-points.
9700 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9702         ESCC serial driver for conducting sautomated tests in qemu.
9703         Not tested on real hardware.
9705         * include/grub/serial.h (grub_serial_port): New field escc_desc.
9706         * grub-core/term/ieee1275/escc.c: New file.
9707         * grub-core/Makefile.core.def (escc): New module.
9709 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9711         * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9712         invalid on error.
9713         (serial_hw_fetch): Don't read invalid handle.
9714         (serial_hw_put): Don't write into invalid handle.
9716 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9718         Add a 1.5 stop bits value.
9720         * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9721         * include/grub/serial.h (grub_serial_stop_bits_t): Add
9722         GRUB_SERIAL_STOP_BITS_1_5.
9724 2012-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
9726         * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9727         value rather than let it uninited.
9729 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
9731         * grub-core/commands/wildcard.c (+check_file): New function.
9732         (wildcard_expand): Don't expand to non-existing files, expand with
9733         suffix and not attempt to expand if not needed.
9735 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
9737         * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9738         out of partitions containing other partitions.
9740 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
9742         Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9743         on some qemu versions with GRUB.
9745         * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9746         define.
9747         (grub_openbsd_bootarg_pcibios): New struct.
9748         * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9749         Add PCIINFO.
9751 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
9753         * tests/util/grub-shell.in: Trim firmware output on EFI.
9755 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
9757         * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9758         and coreboot since it's already in kernel.
9760 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
9762         * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9763         * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9764         to here. New return value start. All users updated.
9765         Recursively scan linear mappings.
9766         * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9767         proto.
9768         * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9769         Use grub_util_get_dm_node_linear_info.
9770         * util/getroot.c (convert_system_partition_to_system_disk): Use
9771         grub_util_info rather than grub_dprintf.
9772         (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9774 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
9776         Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9778         * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9779         * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9781 2012-06-07  Vladimir Serbinenko  <phcoder@gmail.com>
9783         * include/grub/types.h (grub_set_unaligned64): New function.
9784         * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9785         (setup): Likewise.
9787 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9789         * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9790         (grub_ofdisk_fini): Quiesce USB devices.
9792 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9794         * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9795         caches.
9797 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9799         * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9801 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9803         * grub-core/disk/pata.c (grub_pata_pio_read)
9804         [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9805         (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9807 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9809         Extend automated tests to qemu-mips.
9811         * Makefile.am: reorganise tests and enable qemu-mips.
9812         * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9813         * grub-core/tests/boot/linux.init-mips.S: New file.
9814         * tests/partmap_test.in: Handle ata0 disks.
9815         * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9816         non-pc i386.
9818 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9820         * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9821         ia64.
9822         * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9823         quotes while on it.
9825 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9827         * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9828         (grub_halt): Likewise.
9829         * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9831 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9833         * grub-core/term/serial.c (grub_serial_register)
9834         [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9835         the behaviour in line with x86 platforms.
9837 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9839         * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9840         (grub_ata_strncpy): Likewise.
9841         (grub_ata_identify): Add missing byteswaps.
9843 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9845         * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9846         byte-swap.
9847         (screen_read_char): Likewise.
9848         (grub_vga_text_cls): Likewise.
9850 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9852         * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9853         filenames.
9854         (make_file_path): Likewise.
9856 2012-06-06  Vladimir Serbinenko  <phcoder@gmail.com>
9858         * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9859         machines.
9860         Tested by: Paulo Flabiano Smorigo.
9861         Crucial information about API supplied by: Coleen <Last name unknown>.
9862         Reviewed by: Coleen <Last name unknown>.
9864 2012-06-05  Vladimir Serbinenko  <phcoder@gmail.com>
9866         * util/grub-mkimage.c: Disable -Wcast-align.
9868 2012-06-05  Vladimir Serbinenko  <phcoder@gmail.com>
9870         * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9871         as they are fatal.
9873 2012-06-05  Vladimir Serbinenko  <phcoder@gmail.com>
9875         * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9877 2012-06-05  Vladimir Serbinenko  <phcoder@gmail.com>
9879         * util/grub-probe.c (escape_of_path): Fix double free.
9881 2012-06-05  Vladimir Serbinenko  <phcoder@gmail.com>
9883         * grub-core/commands/videoinfo.c (hook): Show pitch.
9885 2012-06-05  Vladimir Serbinenko  <phcoder@gmail.com>
9887         * util/grub.d/20_linux_xen.in: Skip xen-syms.
9889 2012-06-05  Vladimir Serbinenko  <phcoder@gmail.com>
9891         * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9892         (probe): Add ieee1275 to OFW devices.
9894 2012-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
9896         * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9898 2012-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
9900         Handle IBM OFW path.
9902         * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9903         available.
9904         (of_path_of_scsi): Handle vdevice.
9906 2012-06-03  Vladimir Serbinenko  <phcoder@gmail.com>
9908         * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9909         Allocate in multiples of 16 to avoid adding a few bytes free region the
9910         windows bugs upon.
9912 2012-06-03  Vladimir Serbinenko  <phcoder@gmail.com>
9914         * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9915         Allocate in multiples of 16 to avoid adding a few bytes free region the
9916         windows bugs upon.
9917         * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9919 2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
9921         * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9922         resolutions.
9923         * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9924         * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9926 2012-06-02  Isao Shimizu  <isaoshimizu@gmail.com>
9928         * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9930 2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
9932         * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9933         resulted in \\ at the end of the line.
9935 2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
9937         * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9938         (grub_parser_cmdline_state): Likewise.
9939         (grub_parser_split_cmdline): Likewise.
9941 2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
9943         * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9944         /dev/root and /dev/dm-*.
9946 2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
9948         * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9949         fix partially stale display.
9951 2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
9953         * grub-core/normal/menu_entry.c (backward_char): Use right line for
9954         substraction.
9956 2012-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
9958         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9959         Fix MBR remapping workaround.
9960         (grub_util_biosdisk_read) [__linux__]: Likewise.
9962 2012-06-01  Vladimir Serbinenko  <phcoder@gmail.com>
9964         * util/grub-install.in: Check for ieee1275 and not ieee1276.
9966 2012-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
9968         * configure.ac: Bump to beta6.
9970 2012-05-31  Christer Weinigel <christer@weinigel.se>
9972         * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9974 2012-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
9976         * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9977         (grub_cmd_linux): Likewise.
9979 2012-05-31  Christer Weinigel <christer@weinigel.se>
9981         Fix EHCI low-speed.
9983         * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9984         (GRUB_EHCI_MULT_TWO): Likewise.
9985         (GRUB_EHCI_MULT_THREE): Likewise.
9986         (GRUB_EHCI_CMASK_MASK): New enum value.
9987         (GRUB_EHCI_SMASK_MASK): Likewise.
9988         (GRUB_EHCI_CMASK_OFF): Likewise.
9989         (GRUB_EHCI_SMASK_OFF): Likewise.
9990         (grub_ehci_pci_iter): Enable periodic schedule.
9991         (grub_ehci_parse_notrun): Likewise.
9992         (grub_ehci_restore_hw): Likewise.
9993         (grub_ehci_setup_qh): Set flags for low speed transfers.
9994         (grub_ehci_find_qh): Use periodic list for low speed.
9995         (grub_ehci_setup_transfer): Check periodic queue as well.
9996         (grub_ehci_check_transfer): Likewise.
9997         (grub_ehci_cancel_transfer): Cancel periodic transfer.
9999 2012-05-31  Paulo Flabiano Smorigo  <pfsmorigo@br.ibm.com>
10001         * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
10002         parameter is used.
10004 2012-05-31  Peter Jones <pjones@redhat.com>
10006         * include/grub/i386/linux.h (linux_kernel_params): Add v206.
10007         * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
10008         (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
10010 2012-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
10012         * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
10013         uninited variable. Allocate at least setup_sects.
10015 2012-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
10017         Fix handling of EFI with big memory maps.
10019         * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
10020         (real_mode_mem): Likewise.
10021         (real_mode_target): Likewise.
10022         (real_mode_pages): Likewise.
10023         (prot_mode_pages): Likewise.
10024         (linux_params): New var.
10025         (linux_cmdline): Likewise.
10026         (free_pages): Don't set real mode variables.
10027         (allocate_pages): Don't allocate real mode memory.
10028         (grub_e820_add_region): Remove the limit.
10029         (grub_linux_boot): Allocate and copy real mode memory.
10030         (grub_linux_unload): Free linux_cmdline.
10031         (grub_cmd_linux): Use temporary storage for parameters.
10032         (grub_cmd_initrd): Likewise.
10033         * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
10034         (linux_kernel_params): Make it 1K big.
10036 2012-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
10038         * Makefile.util.def: Remove -Wno-format.
10039         * grub-core/Makefile.core.def: Likewise.
10041 2012-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
10043         * tests/cmp_unit_test.c: Add missing failure message.
10044         * tests/example_unit_test.c: Likewise.
10045         * tests/printf_unit_test.c: Likewise.
10047 2012-05-30  Vladimir Serbinenko  <phcoder@gmail.com>
10049         * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
10050         relaxation of protective MBR requirements.
10052 2012-05-29  Vladimir Serbinenko  <phcoder@gmail.com>
10054         * configure.ac: Add condition for COND_HOST_XNU.
10055         * Makefile.util.def (10_xnu): New script.
10056         * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
10058 2012-05-29  Vladimir Serbinenko  <phcoder@gmail.com>
10060         * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
10061         objconv bug.
10063 2012-05-29  Vladimir Serbinenko  <phcoder@gmail.com>
10065         * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
10066         Binary on other platforms stays identical.
10068 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10070         * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
10071         Apple.
10073 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10075         * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
10077 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10079         * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
10080         rather than defining size_t ourselves to avoid conflict.
10082 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10084         * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
10085         initialisation to avoid __bzero reference.
10087 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10089         * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
10090         version.
10091         * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
10092         * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
10093         * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
10094         * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
10095         * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
10097 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10099         * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
10100         * grub-core/kern/misc.c: Likewise.
10101         * grub-core/loader/i386/xnu.c: Likewise.
10102         * include/grub/i386/tsc.h: Likewise.
10103         * include/grub/symbol.h: Likewise.
10105 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10107         * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10108         * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10109         on older compiler.
10111 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10113         * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10114         Implement Apple flavour.
10115         (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10117 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10119         * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10120         (memmove) [__APPLE__]: Likewise.
10121         (memcpy) [__APPLE__]: Likewise.
10122         (memset) [__APPLE__]: Likewise.
10123         * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10124         (memmove) [__APPLE__]: Likewise.
10125         (memcpy) [__APPLE__]: Likewise.
10126         (memset) [__APPLE__]: Likewise.
10128 2012-05-28  Vladimir Serbinenko  <phcoder@gmail.com>
10130         * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10131         dependency discard.
10133 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10135         * grub-core/normal/main.c (read_config_file): Provide config_file and
10136         config_directory.
10137         * util/grub.d/41_custom.in: Use config_directoy when available.
10139 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10141         * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10142         (grub_bfs_dir): Likewise.
10144 2012-05-27  Peter Jones <pjones@redhat.com>
10146         The old code gives arguments to a printf function which can't work
10147         correctly, and the compiler complains.
10149         * grub-core/tests/example_functional_test.c (example_test): Add
10150         missing text.
10151         * grub-core/tests/lib/test.c (add_failure): Rewrite.
10152         * include/grub/test.h (grub_test_assert_helper): New declaration.
10153         (grub_test_assert): Use grub_test_assert_helper.
10155 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10157         * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10158         (exfctest): ... this to avoid overlong filenames.
10159         All users updated.
10161 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10163         Handle "." and ".." on squashfs.
10165         * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10166         Make inode numbers into stack.
10167         (grub_squash_read_symlink): Use stack.
10168         (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10169         (make_root_node): Fill stack.
10170         (grub_squash_open): Use stack.
10172 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10174         * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10175         freeing.
10177 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10179         * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10180         stderr on test calls.
10182 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10184         * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10186 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10188         * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10190 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10192         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10193         "..".
10195 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10197         * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10198         (grub_hfsplus_iterate_dir): Add "." and "..".
10200 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10202         * grub-core/fs/cpio.c (canonicalize): Handle "..".
10203         (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10205 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10207         * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10208         (find_path): Handle "." and "..".
10210 2012-05-27  Vladimir Serbinenko  <phcoder@gmail.com>
10212         * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10213         (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10214         (grub_affs_iterate_dir): Handle hardlinks.
10216 2012-05-26  Matthew Garrett  <mjg@redhat.com>
10218         * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10219         (grub_efi_console_fini): Likewise.
10220         * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10221         (grub_video_gop_fill_mode_info): Rename to ...
10222         (grub_video_gop_fill_real_mode_info): ... this.
10223         (grub_video_gop_fill_mode_info): New function.
10224         (grub_video_gop_setup): Setup double framebuffer.
10225         (grub_video_gop_get_info_and_fini): Use original framebuffer.
10226         Free offscreen.
10227         (grub_video_gop_swap_buffers): Copy framebuffer.
10228         (grub_video_gop_fini): Free offscreen buffer.
10229         * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10230         New enum.
10231         (grub_efi_gop_blt_pixel): New struct.
10233 2012-05-26  Vladimir Serbinenko  <phcoder@gmail.com>
10235         * gentpl.py: Remove error disabling for objconv.
10237 2012-05-26  Vladimir Serbinenko  <phcoder@gmail.com>
10239         * configure.ac: Remove -Wunitialized as it's not available on older
10240         compilers.
10242 2012-05-26  Vladimir Serbinenko  <phcoder@gmail.com>
10244         Fix extent overflow comparator.
10246         * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10247         (grub_hfsplus_read_block): Set type.
10248         (grub_hfsplus_cmp_extkey): Compare type.
10250 2012-05-25  Vladimir Serbinenko  <phcoder@gmail.com>
10252         * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10254 2012-05-24  Vladimir Serbinenko  <phcoder@gmail.com>
10256         * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10257         than 0.
10259 2012-05-24  Vladimir Serbinenko  <phcoder@gmail.com>
10261         * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10262         (dejavu_bold_14.pf2): New target.
10264 2012-05-24  Vladimir Serbinenko  <phcoder@gmail.com>
10266         * configure.ac: Fix djvu font detection.
10268 2012-05-23  Vladimir Serbinenko  <phcoder@gmail.com>
10270         * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10271         ext* instead of ext2.
10273 2012-05-23  Vladimir Serbinenko  <phcoder@gmail.com>
10275         * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10276         name with \0.
10278 2012-05-22  Jordan Uggla  <jordan.uggla@gmail.com>
10280         * docs/grub-dev.texi: Remove dot from .png.
10282 2012-05-22  Vladimir Serbinenko  <phcoder@gmail.com>
10284         * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10285         protective entry in any slot.
10286         * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10287         if protective entry is found in any slot.
10289         Protective entry in non-first slot make no sense but is a widespread
10290         brain damage.
10292 2012-05-22  Vladimir Serbinenko  <phcoder@gmail.com>
10294         * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10296 2012-05-22  Vladimir Serbinenko  <phcoder@gmail.com>
10298         * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10299         with old reiserfs.
10300         (grub_reiserfs_open): Don't free root.
10302 2012-05-22  Vladimir Serbinenko  <phcoder@gmail.com>
10304         * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10305         after freeing for safety.
10307 2012-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
10309         * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10310         Reported by: Jordan Uggla.
10312 2012-05-21  Jordan Uggla  <jordan.uggla@gmail.com>
10314         * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10315         actual implementation. Specifically, clarify that the grub menu will
10316         be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10317         passed.
10319 2012-05-21  Benjamin Herrenschmidt <benh@kernel.crashing.org>
10321         * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10322         of r0.
10324 2012-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
10326         Remove unjustified hard dependency of normal.mod on gfxterm.
10328         * include/grub/term.h (grub_term_output): New member fullscreen.
10329         * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10330         * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10331         (grub_gfxterm): Set .fullscreen.
10332         * grub-core/normal/menu.c (menu_init): Use fullscreen.
10333         * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10335 2012-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
10337         * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10338         mentioning possible problems with non-ASCII (non-compliant) ISOs.
10339         Mention case-insensitive AFFS, SFS and JFS.
10341 2012-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
10343         * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10345 2012-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
10347         * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10348         a bad FS.
10350 2012-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
10352         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10353         ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10355 2012-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
10357         * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10358         (grub_jfs_mount): Fill caseins.
10359         (grub_jfs_find_file): Respect caseins.
10361 2012-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
10363         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10364         through UTF-16.
10366 2012-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
10368         * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10369         New argument origpath. All users updated.
10371 2012-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
10373         * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10374         (read_attr): Ensure that we read start of possibly compressed block.
10376 2012-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
10378         * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10379         (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10380         All users updated.
10382 2012-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
10384         * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10385         dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10386         (dejavu.pf2): Replace with ...
10387         (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10388         this.
10390 2012-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
10392         * util/grub.d/20_linux_xen.in: Add missing line.
10394 2012-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
10396         * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10397         (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10398         (grub_utf16_to_utf8): Likewise.
10400 2012-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
10402         * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10403         GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10404         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10405         GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10406         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10407         GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10409 2012-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
10411         * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10412         a bad FS.
10414 2012-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
10416         * grub-core/fs/udf.c (read_string): Bail out on size=0.
10417         (grub_udf_read_symlink): Handle read_string failure.
10419 2012-05-12  Vladimir Serbinenko  <phcoder@gmail.com>
10421         * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10422         comment.
10424 2012-05-12  Vladimir Serbinenko  <phcoder@gmail.com>
10426         Fix handling of UDF symlinks.
10428         * grub-core/fs/udf.c (read_string): New argument outbuf.
10429         All users updated.
10430         (grub_ufs_read_symlink): Rename to ...
10431         (grub_udf_read_symlink): ... this. All users updated.
10432         Handle symlinks with more than one component.
10434 2012-05-12  Vladimir Serbinenko  <phcoder@gmail.com>
10436         * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10437         symlinks. Replace leading colon with a slash.
10439 2012-05-12  Vladimir Serbinenko  <phcoder@gmail.com>
10441         * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10442         filename.
10444 2012-05-12  Vladimir Serbinenko  <phcoder@gmail.com>
10446         * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10447         match in inner node.
10449 2012-05-12  Vladimir Serbinenko  <phcoder@gmail.com>
10451         * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10452         * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10453         * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10454         * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10455         * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10456         * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10457         * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10458         * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10459         * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10461 2012-05-11  Vladimir Serbinenko  <phcoder@gmail.com>
10463         Use grub-probe and not cmp to check that disk is empty.
10465         * util/grub-install.in: Use grub-probe for zero-check.
10466         * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10467         (probe): Handle PRINT_ZERO_CHECK.
10468         (argp_parser): Handle -t zero_check.
10470 2012-05-11  Vladimir Serbinenko  <phcoder@gmail.com>
10472         Flush block cache on adding disk to device map.
10474         * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10475         (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10476         adding.
10477         (read_device_map): Likewise.
10478         (open_device): Flush on opening.
10480 2012-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
10482         * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10483         (handle_symlink): Fix off-by-one error.
10484         Canonicalize the target.
10485         (grub_cpio_dir): Canonicalize the name.
10486         Fix memory leak.
10487         Set directory.
10488         (grub_cpio_open): Canonicalize the name.
10490 2012-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
10492         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10493         handling.
10495 2012-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
10497         * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10498         * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10500 2012-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
10502         * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10503         * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10504         All users updated.
10506 2012-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
10508         * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10509         counterpart.
10511 2012-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
10513         Fix UFS1 big file support.
10515         * grub-core/fs/ufs.c (INODE): Removed.
10516         (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10517         64-bit.
10518         (INODE_MODE): Simplify.
10519         (grub_ufs_inode): Use uint64_t for size and not int64_t.
10520         (grub_ufs_lookup_symlink): Don't use INODE.
10522 2012-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
10524         Fix minixfs with non-power-of-two blocks since it's supported by minix.
10526         * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10527         (grub_minix_data): Replace log_block_size with block_size.
10528         (grub_minix_read_file): Use block_size but avoid 64-bit division.
10529         (grub_minix_mount): Fill block_size.
10531 2012-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
10533         * configure.ac: Bump to beta5.
10535 2012-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
10537         Fix wrapped HFS+ handling.
10539         * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10540         blocks_start. All users updated.
10541         * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10542         wrapping offset.
10543         (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10545 2012-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
10547         Fix long symlinks on reiserfs.
10549         * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10550         (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10551         (grub_reiserfs_iterate_dir): Save size for non-directories.
10552         (grub_reiserfs_open): Don't reread stat block as we already know the
10553         size.
10554         (grub_reiserfs_read): Split into...
10555         (grub_reiserfs_read_real): ... and ...
10556         (grub_reiserfs_read): ...this.
10558 2012-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
10560         Fix non-indexed JFS.
10562         * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10563         (grub_jfs_data): New field namecomponentlen.
10564         (grub_jfs_mount): Fill namecomponentlen.
10565         (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10567 2012-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
10569         * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10570         * tests/grub_script_echo1.in: Add tests.
10572 2012-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
10574         * util/grub-install.in: Ignore empty devicetree directory.
10576 2012-05-08  Bean  <bean123ch@gmail.com>
10578         * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10579         All users updated.
10580         (free_rsm): Free header as well.
10581         (free_old_fragments): Fix memory leak.
10582         * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10583         * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10584         (destroy_pq): Likewise.
10585         * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10587 2012-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
10589         * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10590         resulting hash as a precaution.
10592 2012-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
10594         * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10595         '_' in variable names.
10596         * grub-core/net/net.c (grub_net_network_level_interface_register):
10597         Likewise.
10599 2012-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
10601         Fix AFFS with non-512B blocks.
10603         * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10604         (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10605         (grub_affs_data): Replace blocksize with log_blocksize.
10606         (grub_affs_read_block): Fix non-512B blocks.
10607         (grub_affs_read_symlink): Likewise.
10608         (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10609         (grub_affs_read): Fix non-512B blocks.
10610         (grub_affs_label): Likewise.
10611         (grub_affs_mtime): Likewise.
10612         (grub_affs_mount): Fix block detection routine.
10614 2012-05-08  Vladimir Serbinenko  <phcoder@gmail.com>
10616         Add filesystem mtime to AFFS.
10618         * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10619         (aftime2ctime): New function.
10620         (grub_affs_dir): Use aftime2ctime.
10621         (grub_affs_label): Fix return value.
10622         (grub_affs_mtime): New function.
10623         (grub_affs_fs): Add mtime.
10625 2012-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
10627         * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10628         UTF-8.
10630 2012-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
10632         * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10633         UTF-8.
10635 2012-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
10637         * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10639 2012-05-07  Vladimir Serbinenko  <phcoder@gmail.com>
10641         * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10642         flags.
10643         (FLAGS_CASE_SENSITIVE): New enum value.
10644         (cache_entry): New struct.
10645         (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10646         cache_size and cache.
10647         (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10648         Add log_blocksize and fshelp_flags.
10649         (grub_sfs_read_extent): Handle non-512 blocks.
10650         (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10651         (grub_sfs_read_file): Handle non-512 blocks.
10652         (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10653         fshelp_flags.
10654         (grub_sfs_read_symlink): Handle non-512 blocks.
10655         (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10656         (grub_sfs_dir): Free cache.
10657         (grub_sfs_close): Likewise.
10659 2012-05-06  Vladimir Serbinenko  <phcoder@gmail.com>
10661         * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10662         filesystems.
10664 2012-05-06  Vladimir Serbinenko  <phcoder@gmail.com>
10666         * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10668 2012-05-06  Vladimir Serbinenko  <phcoder@gmail.com>
10670         * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10672 2012-05-06  Vladimir Serbinenko  <phcoder@gmail.com>
10674         * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10675         (grub_sfs_read_extent): Likewise.
10676         (grub_sfs_read_block): Likewise.
10677         (grub_sfs_mount): Likewise.
10678         (grub_sfs_iterate_dir): Likewise.
10679         (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10680         (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10682 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10684         Fix errors on compressed NTFS with 512B clusters.
10686         * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10687         types.
10688         * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10689         not 0.
10690         * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10691         Relax check for inline extents.
10692         (ntfscomp): Return correct -1 on error and not 0.
10694 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10696         * util/grub-install.in: Fix handling of prefix containing spaces.
10698 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10700         * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10701         (grub_squash_read_data): Fix offset byte-swapping.
10703 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10705         * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10706         per common usage and preffered in several parts of code.
10707         (grub_memcmp): Likewise.
10708         (grub_strncmp): Likewise.
10709         * include/grub/misc.h (grub_strcasecmp): Likewise.
10710         (grub_strncasecmp): Likewise.
10711         * Makefile.util.def (cmp_test): New test.
10712         (grub_script_strcmp): Likewise.
10713         * tests/cmp_unit_test.c: New file.
10714         * tests/grub_script_strcmp.in: Likewise.
10715         * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10717 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10719         * include/grub/pci.h: Move enums into no-asm part.
10721 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10723         * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10725 2012-05-04  Samuel Thibault <samuel.thibault@ens-lyon.org>
10727         * util/getroot.c (find_hurd_root_device): Try to make error message
10728         and comments to translators clearer.
10730 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10732         * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10734 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10736         * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10737         btrfs.
10739 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10741         * docs/grub.cfg: Update.
10743 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10745         * docs/grub.texi (PXE): Remove not present variables.
10747 2012-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
10749         * grub-core/net/net.c (defserver_set_env): New function.
10750         (defserver_get_env): Likewise.
10751         (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10753 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10755         * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10756         entries.
10758 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10760         * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10761         * grub-core/kern/emu/hostdisk.c: Likewise.
10763 2012-05-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10765         Handle hurd userspace partitions.
10767         * util/getroot.c (find_hurd_root_device): New function.
10768         (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10770 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10772         * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10773         names.
10774         Reported by: Bastian Blank.
10776 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10778         * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10779         crossing page boundary.
10781 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10783         Fix B-tree search in BFS, especially in presence of non-ASCII
10784         characters.
10786         * grub-core/fs/bfs.c (bfs_strcmp): New function.
10787         (find_in_b_tree): Use standard bsearch + btree algorithm.
10789 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10791         * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10792         and so on.
10794 2012-05-03  Matthew Garrett  <mjg@redhat.com>
10795 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10797         Suspend broadcom cards in order to stop their DMA.
10799         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10800         * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10801         (pci): Don't build on x86 EFI.
10802         * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10803         * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10804         New function.
10805         (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10806         stop_broadcom if running on EFI.
10807         * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10808         (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10809         (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10810         (grub_pci_find_capability): New proto.
10812 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10814         * docs/grub.texi: Remove dot from the extension as it apparently
10815         doesn't work with some makeinfo versions.
10817 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10819         * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10820         with GRUB expectance.
10822 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10824         * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10826 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10828         * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10829         zero after directory block since last entry may be not 0-terminated if
10830         it ends on block boundary. Use continue instead of if spanning whole
10831         loop.
10833 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10835         Support 4K sectors UDF inline files.
10837         * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10838         (grub_udf_extended_file_entry): Likewise.
10839         (grub_fshelp_node): Name the anonymous union. Put block at the end.
10840         All users updated.
10841         (get_fshelp_size): New function.
10842         (grub_udf_read_icb): Read whole block.
10843         (grub_udf_iterate_dir): Likewise.
10844         (grub_udf_dir): Likewise.
10845         (grub_udf_open): Likewise.
10847 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10849         * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10851 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10853         * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10854         inline symlinks in addition to workaround.
10856 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10858         * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10860 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10862         * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10864 2012-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
10866         * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10868 2012-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
10870         Fix reiserfs big seek times.
10872         * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10873         exact. All users updated.
10874         (grub_reiserfs_read): Use nearest btree search for seeking.
10875         Fix return value on error.
10877 2012-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
10879         * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10880         entries.
10881         * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10882         * docs/grub.texi: Update menuentry description.
10884 2012-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
10886         * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10887         crash when embedding onto filesystem.
10889 2012-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
10891         * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10892         name.
10894 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10896         * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10898 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10900         * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10901         commit.
10903 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10904 2012-05-01  Bean  <bean123ch@gmail.com>
10906         * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10908 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10910         * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10911         Special behaviour for len = 0 to read whole file isn't used anywhere and
10912         can cause buffer ovewrflows in several places.
10914 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10916         * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10918 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10920         Handle RAIDZ on non-512B sectors.
10922         * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10923         max_children_ashift.
10924         (fill_vdev_info_real): Fill max_children_ashift.
10925         (read_device): Use max_children_ashift.
10927 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10929         * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10931 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10933         * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10934         disk names.
10935         * docs/grub.texi: Update device.map parts.
10937 2012-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
10939         Don't scan into non-diskfilter devices having diskfilter names.
10941         * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10942         (scan_disk): New argument accept_diskfilter. Fix recursion depth
10943         handling.
10944         (scan_disk_hook): New function.
10946 2012-04-29  Bean  <bean123ch@gmail.com>
10948         * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10949         allocation.
10951 2012-04-29  Mads Kiilerich  <mads@kiilerich.com> (tiny)
10953         * configure.ac: Detect starfield theme font path
10954         /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10956 2012-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
10958         * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10959         geometry on serial consoles.
10961 2012-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
10963         * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10964         because of network consoles.
10966 2012-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
10968         * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10969         handling.
10971 2012-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
10973         * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10974         falls on Q syndrom.
10976 2012-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
10978         * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10979         Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10981 2012-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
10983         * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10984         Allocate at lest 8192 for temporary buffer as required for lzo.
10986 2012-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
10988         * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10989         to cluster_bits, since it's already added in.
10990         (grub_fat_read_data): Likewise.
10992 2012-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
10994         * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10995         as long as cluster size is multiple of 512 bytes.
10997 2012-04-23  Vladimir Serbinenko  <phcoder@gmail.com>
10999         * util/grub-mkrescue.in: Fix locale directory.
11001 2012-04-23  Vladimir Serbinenko  <phcoder@gmail.com>
11003         * grub-core/kern/emu/hostdisk.c (map): Make static.
11005 2012-04-23  Bean  <bean123ch@gmail.com>
11007         * util/grub-fstest.c (fstest): Add missing break.
11009 2012-04-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11011         Fix hurd build.
11013         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
11014         not define nr variable.
11015         * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
11016         find_root_devices_from_poolname, find_root_devices_from_libzfs,
11017         grub_find_device): Do not define.
11019 2012-04-21  Vladimir Serbinenko  <phcoder@gmail.com>
11021         Fix kfreebsd compile and behaviour.
11023         * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
11024         format-security.
11025         * util/getroot.c: Fix wait.h include.
11026         (grub_guess_root_devices): Error if grub_find_device fails.
11027         (grub_util_get_geom_abstraction): Fix shadowing and format-security.
11028         (grub_util_get_dev_abstraction): Likewise.
11029         (grub_util_pull_device): Likewise.
11030         (grub_util_get_grub_dev): Likewise.
11031         * util/lvm.c (grub_util_lvm_isvolume): Likewise.
11033 2012-04-21  Vladimir Serbinenko  <phcoder@gmail.com>
11035         Fix and unify wholedisk detection.
11037         * util/getroot.c (convert_system_partition_to_system_disk): New argument
11038         is_part. All users updated.
11039         (device_is_wholedisk): Removed.
11040         (grub_util_biosdisk_get_grub_dev): Use is_part.
11042 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11044         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
11045         mode.
11047 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11049         * configure.ac: Bump to beta4.
11051 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11053         * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
11054         --fs-uuid --set UUID syntax.
11056 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11058         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
11059         disunification.
11061 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11063         * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
11065 2012-04-18  Mads Kiilerich <mads@kiilerich.com>
11067          * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
11069 2012-04-18  Mike Gilbert  <floppym@gentoo.org>
11071         * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
11073 2012-04-18  Bean  <bean123ch@gmail.com>
11075         * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
11076         place.
11078 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11080         * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
11081         users updated.
11082         (grub_util_biosdisk_read): Handle Linux partitions not exactly
11083         corresponding to GRUB partitions.
11084         (grub_util_biosdisk_write): Likewise.
11086 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11088         Scan mdraid before LVM.
11090         * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
11091         (grub_diskfilter_register_front): ... this.
11092         (grub_diskfilter_register_back): New function.
11093         All users of grub_diskfilter_register updated.
11095 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11097         * util/grub-install.in: Fix an automatic target detection bug.
11099 2012-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
11101         * util/grub-install.in: New option --efi-directory.
11103 2012-04-17  Vladimir Serbinenko  <phcoder@gmail.com>
11105         * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11106         boot services if we have no other choice.
11108 2012-04-14  Vladimir Serbinenko  <phcoder@gmail.com>
11110         * util/grub-mknetdir.in: Rename --override-directory to --directory and
11111         document it.
11112         * tests/util/grub-shell.in: Update to --directory.
11114 2012-04-13  Vladimir Serbinenko  <phcoder@gmail.com>
11116         * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11118 2012-04-13  Vladimir Serbinenko  <phcoder@gmail.com>
11120         * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11121         (grub_minix_read_file): Likewise.
11122         (grub_minix_read_inode): Likewise.
11123         (grub_minix_find_file): Likewise.
11124         (grub_minix_dir): Likewise.
11126 2012-04-13  Vladimir Serbinenko  <phcoder@gmail.com>
11128         * util/grub-setup.c (setup): Fix partition handling and blocklist
11129         check.
11131 2012-04-13  Vladimir Serbinenko  <phcoder@gmail.com>
11133         * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11134         redundant buggy overlap check.
11136 2012-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
11138         * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11139         and grub-mknetdir.
11141 2012-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
11143         * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11144         kh.loadflags on pre-2.00 kernels.
11146 2012-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
11148         Terminate UNDI and PXE before launching the payload to avoid problems
11149         with DMA.
11151         * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11152         (grub_loader_flags): ... this. All users updated.
11153         (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11154         * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11155         loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11156         * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11157         function.
11158         (grub_pxe_restore): Likewise.
11159         (fini_hnd): New var.
11160         (GRUB_MOD_INIT): Register shutdown hook.
11161         (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11162         * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11163         (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11164         (grub_loader_set): Rename second argument to flags.
11166 2012-04-07  Vladimir Serbinenko  <phcoder@gmail.com>
11168         * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11169         written bytes.
11170         (grub_get_num_of_utf8_bytes): New function.
11171         (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11172         * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11173         executing it.
11174         * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11175         (grub_ucs4_to_utf8): Change return type.
11177 2012-04-07  Vladimir Serbinenko  <phcoder@gmail.com>
11179         * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11180         warning.
11181         * grub-core/fs/bfs.c (hop_level): Likewise.
11182         * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11184 2012-04-07  Vladimir Serbinenko  <phcoder@gmail.com>
11186         * grub-core/lib/adler32.c: Recode due to license unclearness.
11188 2012-04-07  Vladimir Serbinenko  <phcoder@gmail.com>
11190         * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11191         (test_header): Likewise.
11193 2012-04-07  Vladimir Serbinenko  <phcoder@gmail.com>
11195         Fix --help formatting.
11197         * util/grub-mkconfig_lib.in (print_option_help): New function.
11198         (grub_fmt): Likewise.
11199         * util/grub-install.in: Use print_option_help and grub_fmt.
11200         * util/grub-kbdcomp.in: Likewise.
11201         * util/grub-mkconfig.in: Likewise.
11202         * util/grub-mknetdir.in: Likewise.
11203         * util/grub-mkrescue.in: Likewise.
11204         * util/grub-mkstandalone.in: Likewise.
11205         * util/grub-reboot.in: Likewise.
11206         * util/grub-set-default.in: Likewise.
11207         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11209 2012-04-07  Vladimir Serbinenko  <phcoder@gmail.com>
11211         * linguas.sh: Remove autogenerated *.po.
11213 2012-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
11215         * po/README: Move language fetcing to ...
11216         * linguas.sh: ... here.
11217         * po/README: Point to linguas.sh.
11219 2012-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
11221         * po/README: Exclude ko.po due to disclaimer problems.
11223 2012-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
11225         * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11226         len = 0.
11227         (grub_gettext_translate_real): Handle 0th string.
11228         (grub_gettext_translate): Ensure that "" isn't translated.
11230 2012-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
11232         * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11233         TRANSLATORS comment.
11234         (grub_diskfilter_print_partmap): Propagate changing of error into
11235         warning.
11237 2012-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
11239         * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11240         to uint64_t to prevent overflow.
11241         (grub_diskfilter_lv): Increase start_extent and extent_count
11242         to uint64_t to prevent overflow.
11244 2012-04-01  Vladimir Serbinenko  <phcoder@gmail.com>
11246         * configure.ac: Increase version.
11248 2012-04-01  Vladimir Serbinenko  <phcoder@gmail.com>
11250         Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11252         * po/Rules-translit: New file.
11253         * po/arabic.sed: Likewise.
11254         * po/cyrillic.sed: Likewise.
11255         * po/greek.sed: Likewise.
11256         * po/hebrew.sed: Likewise.
11257         * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11258         * po/Makefile.in.in: Add extra_dist4.
11260 2012-04-01  Vladimir Serbinenko  <phcoder@gmail.com>
11262         Handle big-endian minixfs (fixes minixfs tests on bigendian).
11264         * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11265         modify names. Introduce MODE_BIGENDIAN.
11266         * grub-core/fs/minix_be.c: New file.
11267         * grub-core/fs/minix2_be.c: Likewise
11268         * grub-core/fs/minix3_be.c: Likewise.
11269         * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11270         minix3_be.
11271         * grub-core/Makefile.core.def (minix_be): New module.
11272         (minix2_be): Likewise.
11273         (minix3_be): Likewise.
11275 2012-04-01  Felix <email@hamburg.de>
11277         * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11278         (devs): Add MBP 2011.
11280 2012-04-01  Vladimir Serbinenko  <phcoder@gmail.com>
11282         * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11284 2012-04-01  Vladimir Serbinenko  <phcoder@gmail.com>
11286         * grub-core/normal/cmdline.c (print_completion): New field
11287         prompt_len.
11288         (grub_cmdline_get): Handle width properly.
11290 2012-04-01  Vladimir Serbinenko  <phcoder@gmail.com>
11292         * grub-core/commands/lsacpi.c (options): Add missing terminator.
11294 2012-03-31  Vladimir Serbinenko  <phcoder@gmail.com>
11296         * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11297         after 29th of February.
11299 2012-03-31  Vladimir Serbinenko  <phcoder@gmail.com>
11301         Fix exfat endianness handling.
11303         * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11304         (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11305         (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11306         Byte-swap utf16 when necessary.
11307         (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11309 2012-03-31  Anton Blanchard  <anton@samba.org>
11310 2012-03-31  Vladimir Serbinenko  <phcoder@gmail.com>
11312         Fix btrfs endianness handling.
11314         * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11315         (lower_bound): Make root uint64_t. Use root in le.
11316         (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11317         (find_path): Fix template key init.
11318         (grub_btrfs_dir): Fix mtime byteswap.
11319         * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11321 2012-03-31  Vladimir Serbinenko  <phcoder@gmail.com>
11323         * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11324         recursion_depth. Break infinite resursions. All users updated.
11326 2012-03-31  Vladimir Serbinenko  <phcoder@gmail.com>
11328         * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11329         after free.
11330         Reported by: Peter Jones.
11332 2012-03-31  Anton Blanchard  <anton@samba.org>
11334         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11335         8 bit values.
11337 2012-03-28  Vladimir Serbinenko  <phcoder@gmail.com>
11339         * util/grub-install.in: Fix nvram call for PreP.
11341 2012-03-28  Vladimir Serbinenko  <phcoder@gmail.com>
11343         * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11344         the error when some elements are missing into a warning.
11346 2012-03-28  Vladimir Serbinenko  <phcoder@gmail.com>
11348         * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11350 2012-03-28  Colin Watson  <cjwatson@ubuntu.com>
11352         * docs/grub.texi (Invoking grub-probe): New section.
11353         Reported by: Filipus Klutiero.  Fixes Debian bug #666031.
11355 2012-03-27  Vladimir Serbinenko  <phcoder@gmail.com>
11357         Fix tab and wide character handling in editor and menu.
11359         * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11360         agglomerate control characters with combining marks.
11361         (bidi_line_wrap): Allow break on tab.
11362         (grub_unicode_get_comb_start): New function.
11363         * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11364         and tab correctly.
11365         * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11366         with a space.
11367         * grub-core/normal/term.c (print_ucs4_terminal): New argument
11368         fixed_tab_size. All users updated.
11369         * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11370         (grub_term_getcharwidth): Handle \t.
11371         * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11372         and copy.
11374 2012-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
11376         Handle big-endian mdraid.
11378         * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11379         * grub-core/Makefile.core.def (mdraid09_be): New module.
11380         * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11381         rather than grub_le_to_cpu* and grub_cpu_to_le*.
11382         * grub-core/disk/mdraid_linux_be.c: New file.
11384 2012-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
11386         * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11388 2012-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
11390         * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11391         missing quotes which caused confusion among translators.
11393 2012-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
11395         * util/grub-mkconfig_lib.in: Fix typo.
11397 2012-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
11399         * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11400         spaces.
11401         * tests/grub_script_leading_whitespace.in: New file.
11402         * Makefile.util.def (grub_script_leading_whitespace): New test.
11404 2012-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
11406         * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11407         to work.
11409 2012-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
11411         * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11412         starts with control character.
11414 2012-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
11416         * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11417         overflow.
11418         (grub_gdb_outbuf): Likewise.
11420 2012-03-19  Vladimir Serbinenko  <phcoder@gmail.com>
11422         * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11423         zero terminator. Fixes a crash.
11425 2012-03-11  Vladimir Serbinenko  <phcoder@gmail.com>
11427         * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11428         beyond 4 GiB.
11429         (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11430         images independently of preffered adderss field.
11432 2012-03-11  Vladimir Serbinenko  <phcoder@gmail.com>
11434         * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11435         * grub-core/commands/regexp.c: Likewise.
11436         * grub-core/loader/i386/linux.c: Likewise.
11437         * grub-core/partmap/msdos.c: Likewise.
11438         * grub-core/script/execute.c: Likewise.
11439         * grub-core/term/gfxterm.c: Likewise.
11441 2012-03-11  Vladimir Serbinenko  <phcoder@gmail.com>
11443         Add variable parsing in $"..." and fix several mismatches with bash.
11445         * Makefile.util.def (grub_script_gettext): New test.
11446         * grub-core/script/execute.c (parse_string): New function.
11447         (gettext_append): Likewise.
11448         (grub_script_arglist_to_argv): Use gettext_append.
11449         * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11450         * tests/grub_script_gettext.in: New file.
11452 2012-03-11  Vladimir Serbinenko  <phcoder@gmail.com>
11454         Fix handling of leading spaces in scripts.
11456         * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11457         spaces.
11458         * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11459         other than skipping \r. All users updated.
11460         * tests/grub_script_echo1.in: Add space-related tests.
11461         * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11463 2012-03-11  Vladimir Serbinenko  <phcoder@gmail.com>
11465         * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11467 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11469         * configure.ac: Bump up the version to beta2.
11471 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11473         Fix gettext reload bugs (e.g. inability to disable gettext
11474         once enabled).
11476         * grub-core/gettext/gettext.c: Encapsulate all static variables in
11477         main_context and secondary_context. All functions updated.
11478         (grub_gettext_translate): Rename to ...
11479         (grub_gettext_translate_real): ... this. Return NULL on failed
11480         translate.
11481         (grub_gettext_translate): Handle secondary context.
11482         (grub_gettext_delete_list): Close file and zero-out the context.
11483         (grub_mofile_open): Don't call grub_gettext_delete_list.
11484         Don't close file.
11485         (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11486         if locale="" to avoid pointless error message.
11487         (grub_gettext_env_write_lang): Update lang even if load fails.
11488         Handle secondary context.
11489         (grub_gettext_reread_prefix): New function.
11490         (read_main): Likewise.
11491         (read_secondary): Likewise.
11492         (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11493         (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11494         * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11495         * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11497 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11499         * configure.ac: Decrease warning level to avoid spurious warnings and
11500         to be able to compile with GCC 4.2.
11501         * Makefile.util.def: Remove -Wno-error=logical-op.
11503 2012-03-10  William Bittner <william.bittner@gmail.com>
11505         * util/import_unicode.py: Add missing brackets around string for
11506         python 3 support.
11508 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11510         Fix efi chainloader on network root.
11512         * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11513         network devices.
11514         * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11515         New function.
11517 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11519         * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11520         unused show_text member.
11521         * docs/grub.texi: Document "text" property.
11523 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11525         * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11526         in dprintf.
11528 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11530         Fix IMSM handling on Fedora.
11532         * util/getroot.c (grub_util_is_imsm): New function.
11533         (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11535 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11537         * Makefile.am: Strip gold section.
11538         * conf/Makefile.common: Likewise.
11539         * gentpl.py: Likewise.
11540         * grub-core/Makefile.core.def: Likewise.
11541         * grub-core/genmod.sh.in: Likewise.
11543 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11545         * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11546         * util/grub.d/20_linux_xen.in: Likewise.
11547         Based on Debian patch.
11549 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11551         * util/grub.d/10_linux.in: Fix syntax error resulting in
11552         Richard Laager's patch.
11553         * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11555 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11557         * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11558         dependencies.
11560 2012-03-10  Richard Laager <rlaager@wiktel.com>
11562         * util/grub.d/10_linux.in: Fix ZFS root passing.
11564 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11566         * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11567         * grub-core/commands/xnu_uuid.c: Likewise.
11568         * grub-core/loader/efi/appleloader.c: Likewise.
11569         * grub-core/script/execute.c: Likewise.
11570         * grub-core/script/main.c: Likewise.
11571         * util/grub-mkfont.c: Likewise.
11573 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11575         * util/grub-mkfont.c (options): Use more appropriate "select" that
11576         "set" for face index.
11578 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11580         * util/grub-editenv.c (options): Gettextize command summaries.
11582 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11584         * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11585         "out of memory" error messagge.
11587 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11589         * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11590         of diskfilter for diskfilter on diskfilter support.
11592 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11594         * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11596 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11598         * util/grub-install.in: Check for themes/starfield/theme.txt and not
11599         themes/starfield.
11601 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11603         * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11605 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11607         * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11609 2012-03-10  Vladimir Serbinenko  <phcoder@gmail.com>
11611         * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11612         of error message.
11614 2012-03-09  Vladimir Serbinenko  <phcoder@gmail.com>
11616         * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11618 2012-03-09  Vladimir Serbinenko  <phcoder@gmail.com>
11620         * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11621         message.
11622         * util/grub-install.in: Fix and gettextize error message.
11624 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
11626         * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11627         Gettextize.
11628         * util/grub-mount.c (options): Likewise.
11630 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
11632         * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11633         gettextize.
11634         * grub-core/commands/search_wrap.c (options): Likewise.
11636 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
11638         * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11640 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
11642         * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11643         size calculation.
11644         * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11645         none is known.
11647 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
11649         * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11650         "temporary" since it's used in identifier and is limited in space.
11652 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
11654         * po/POTFILES.in: Regenerate. Include *.h since they contain
11655         translatable strings as well.
11657 2012-03-08  Vladimir Serbinenko  <phcoder@gmail.com>
11659         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11660         byte-swap on big-endian.
11661         Reported by: Lennart Sorensen
11663 2012-03-07  Vladimir Serbinenko  <phcoder@gmail.com>
11665         * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11666         (allocate_pages): Improve dprintf.
11667         (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11668         code32_start. Fill code32_start and kernel_alignment in params.
11669         (grub_cmd_initrd): Use prot_init_space.
11671 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11673         * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11675 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11677         * util/grub-install.in: Add missing dot at the end of sentence.
11679 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11681         * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11682         * grub-core/commands/videotest.c: Likewise.
11683         * grub-core/loader/i386/linux.c: Likewise.
11685 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11687         * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11688         sentence.
11689         Reported by: Milo Casagrande.
11691 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11693         * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11694         * grub-core/commands/gptsync.c: Likewise.
11695         * grub-core/commands/hashsum.c: Likewise.
11696         * grub-core/commands/i386/pc/sendkey.c: Likewise.
11697         * grub-core/commands/legacycfg.c: Likewise.
11698         * grub-core/io/gzio.c: Likewise.
11699         * grub-core/net/net.c: Likewise.
11700         * grub-core/term/gfxterm.c: Likewise.
11701         * grub-core/term/terminfo.c: Likewise.
11702         * grub-core/tests/test_blockarg.c: Likewise.
11703         * grub-core/video/video.c: Likewise.
11704         * util/grub-install.in: Likewise.
11705         * util/grub-mkfont.c: Likewise.
11707 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11709         * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11711 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11713         * grub-core/commands/search_wrap.c (options): Fix a typo.
11714         Reported by: David Prévot.
11716 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11718         * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11719         description.
11721 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11723         * util/grub-script-check.c (main): Fix a syntax error message which was
11724         unclear.
11726 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11728         * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11730 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11732         * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11733         messages.
11735 2012-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
11737         * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11738         without argument.
11739         * util/grub-mount.c (options): Likewise.
11741 2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
11743         * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11745 2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
11747         * grub-core/net/http.c: Add TRANSLATORS comments.
11748         * grub-core/normal/cmdline.c: Likewise.
11749         * grub-core/normal/misc.c: Likewise.
11750         * grub-core/partmap/msdos.c: Likewise.
11751         * grub-core/parttool/msdospart.c: Likewise.
11752         * grub-core/script/execute.c: Likewise.
11753         * grub-core/script/main.c: Likewise.
11754         * grub-core/term/terminfo.c: Likewise.
11755         * grub-core/video/bitmap.c: Likewise.
11756         * util/grub-install.in: Likewise.
11757         * util/grub-mkimage.c: Likewise.
11758         * util/grub-mklayout.c: Likewise.
11759         * util/grub-setup.c: Likewise.
11761 2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
11763         * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11764         with similar messages in grub-fstest.
11766 2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
11768         * util/grub-install.in: Unify "option requires an argument" message
11769         with similar messages in other files.
11770         * util/grub-mkconfig.in: Likewise.
11772 2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
11774         * util/grub-set-default.in: Replace printf with gettext_printf (the
11775         string in in question is already translated from grub-reboot)
11777 2012-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
11779         * configure.ac: Bump up the version to beta1.
11781 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11783         * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11784         case when min_align = 0.
11786 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11788         * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11789         and fix a case when line_start overflows.
11791 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11793         * util/grub-reboot.in (usage): Mention id posibility.
11794         * util/grub-set-default.in (usage): Likewise.
11796 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11798         * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11799         * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11800         * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11801         * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11802         * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11803         * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11804         * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11806 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11808         * grub-core/commands/menuentry.c (options): Remove
11809         GRUB_ARG_OPTION_REPEATABLE.
11810         Reported by: Andreas Vogel
11812 2012-03-04  Andreas Vogel <Andreas.Vogel@anvo-it.de>
11814         * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11816 2012-03-04  Hideki EIRAKU <hdk1983@gmail.com>
11818         * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11819         error.
11821 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11823         Use sort -V by the idea of Georgi Georgiev.
11825         * util/grub-mkconfig_lib.in (version_sort): New function.
11826         (version_test_numeric): Use version_sort.
11828 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11830         Use submenus in grub-mkconfig.
11832         * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11833         * util/grub-mkconfig_lib.in (grub_quote): New function.
11834         (gettext_printf): Use gettext and not gettext_quoted to fix several
11835         messages.
11836         * util/grub.d/10_hurd.in: Use submenus.
11837         * util/grub.d/10_kfreebsd.in: Likewise.
11838         * util/grub.d/10_linux.in: Likewise.
11839         * util/grub.d/10_netbsd.in: Likewise.
11840         * util/grub.d/20_linux_xen.in: Likewise.
11841         * util/grub.d/30_os-prober.in: Likewise.
11842         * util/grub.d/10_illumos.in: Add missing quoting.
11843         * util/grub.d/10_windows.in: Likewise.
11845 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11847         Fix menu title instability bug.
11849         * grub-core/commands/menuentry.c (options): New option --id.
11850         (grub_normal_add_menu_entry): New argument id. All users updated.
11851         (grub_cmd_menuentry): Handle --id.
11852         (grub_menu_init): Accept unknown arguments.
11853         * grub-core/normal/main.c (features): Add feature_menuentry_id and
11854         feature_menuentry_options.
11855         * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11856         saved_entry.
11857         (get_entry_number): Match with id as well.
11858         * include/grub/menu.h (grub_menu_entry): New member id.
11859         * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11860         * util/grub.d/00_header.in: Define menuentry_id_option.
11861         * util/grub.d/10_hurd.in: Define id.
11862         * util/grub.d/10_illumos.in: Likewise.
11863         * util/grub.d/10_kfreebsd.in: Likewise.
11864         * util/grub.d/10_linux.in: Likewise.
11865         * util/grub.d/10_netbsd.in: Likewise.
11866         * util/grub.d/10_windows.in: Likewise.
11867         * util/grub.d/20_linux_xen.in: Likewise.
11868         * util/grub.d/30_os-prober.in: Likewise.
11870 2012-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
11872         * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11873         "scope" with "body".
11875 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11877         * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11878         * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11879         prot_size and prot_file_size.
11881 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11883         * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11884         All users updated. If easily=1 require raid-5/-6 to be full.
11885         (is_node_readable): Likewise.
11886         (scan_devices): Scan incomplete but readable LVs at the end.
11887         (grub_diskfilter_memberlist): Pull missing devices.
11888         (insert_array): Skip scanning until device is complete or scan is
11889         done otherwise.
11890         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11891         check.
11892         * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11893         * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11895 2012-03-03  Matthew Garrett  <mjg@redhat.com>
11896 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11898         Avoid EFI boot services when loading Linux.
11900         * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11901         avoid_efi_bootservices. All users updated.
11902         * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11903         argument avoid_efi_bootservices. All users updated.
11904         Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11905         * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11906         align, min_align, relocatable, prefered_address. All users updated.
11907         Allocate avoiding boot services if kernel is relocatable.
11908         (grub_cmd_linux): Check if kernel is relocatable.
11909         * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11910         (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11911         Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11912         avoid_efi_boot_services.
11913         (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11914         * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11915         (linux_kernel_params): Likewise.
11917 2012-03-03  Matthew Garrett  <mjg@redhat.com>
11918 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11920         Use EDID on EFI.
11922         * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11923         datasize_out.
11924         * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11925         modes. Set gop_handle.
11926         (grub_video_gop_get_edid): New function.
11927         (grub_gop_get_preferred_mode): Likewise.
11928         (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11929         (grub_video_efi_gop_adapter): Set .get_edid.
11930         * include/grub/efi/edid.h: New file.
11931         * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11933 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11935         * util/grub-install.in: Load efivars unconditionally.
11937 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11939         * po/Rules-piglatin: Change suffix from .po-update-en to
11940         .po-update-en-piglatin.
11942 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11944         Add a pig farm.
11946         * po/piglatin.sed: New file.
11947         * po/en@piglatin.header: Likewise.
11948         * po/Rules-piglatin: Likewise.
11949         * po/README: Add en@piglatin to autogenerated languages.
11951 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11953         * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11954         "Command for ...".
11955         * grub-core/commands/hdparm.c (options): Use "Display" rather than
11956         "Check" since we don't check anything.
11957         * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11958         is 64-bit one.
11959         * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11960         * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11961         (grub_md_sha512_real): Likewise.
11963 2012-03-03  Vladimir Serbinenko  <phcoder@gmail.com>
11965         * grub-core/commands/gptsync.c: Fix typographic quoting.
11966         * grub-core/commands/ieee1275/suspend.c: Likewise.
11967         * grub-core/commands/parttool.c: Likewise.
11968         * grub-core/commands/search_wrap.c: Likewise.
11969         * grub-core/commands/videoinfo.c: Likewise.
11970         * grub-core/gfxmenu/gui_label.c: Likewise.
11971         * grub-core/hello/hello.c: Likewise.
11972         * grub-core/kern/emu/main.c: Likewise.
11973         * grub-core/net/net.c: Likewise.
11974         * grub-core/normal/menu.c: Likewise.
11975         * grub-core/normal/menu_text.c: Likewise.
11976         * grub-core/normal/misc.c: Likewise.
11977         * util/grub-editenv.c: Likewise.
11978         * util/grub-install.in: Likewise.
11979         * util/grub-kbdcomp.in: Likewise.
11980         * util/grub-mkconfig.in: Likewise.
11981         * util/grub-mknetdir.in: Likewise.
11982         * util/grub-mkrescue.in: Likewise.
11983         * util/grub-mkstandalone.in: Likewise.
11984         * util/grub-reboot.in: Likewise.
11985         * util/grub-set-default.in: Likewise.
11986         * util/grub-setup.c: Likewise.
11987         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11989 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
11991         * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11992         * grub-core/commands/keystatus.c: Likewise.
11993         * grub-core/commands/loadenv.c: Likewise.
11994         * grub-core/commands/probe.c: Likewise.
11995         * grub-core/commands/regexp.c: Likewise.
11996         * grub-core/commands/true.c: Likewise.
11997         * grub-core/commands/videoinfo.c: Likewise.
11998         * grub-core/disk/cryptodisk.c: Likewise.
11999         * grub-core/disk/ldm.c: Likewise.
12000         * grub-core/disk/loopback.c: Likewise.
12001         * grub-core/disk/luks.c: Likewise.
12002         * grub-core/fs/zfs/zfsinfo.c: Likewise.
12003         * grub-core/kern/disk.c: Likewise.
12004         * grub-core/kern/emu/hostdisk.c: Likewise.
12006 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12008         * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
12009         * util/grub-install.in: Add missing quote in the comment.
12011 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12013         * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
12014         * grub-core/commands/lsmmap.c: Likewise.
12015         * grub-core/commands/minicmd.c: Likewise.
12016         * grub-core/commands/mips/loongson/lsspd.c: Likewise.
12017         * grub-core/commands/regexp.c: Likewise.
12018         * grub-core/gdb/gdb.c: Likewise.
12019         * grub-core/term/gfxterm.c: Likewise.
12020         * util/grub-mkconfig.in: Likewise.
12021         * util/grub-mkfont.c: Likewise.
12022         * util/grub-mklayout.c: Likewise.
12023         * util/grub-mknetdir.in: Likewise.
12024         * util/grub-mkrescue.in: Likewise.
12025         * util/grub.d/30_os-prober.in: Likewise.
12027 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12029         * grub-core/commands/videoinfo.c (hook): Replace "Direct"
12030         with "Direct color" and "Packed" with "Packed pixel".
12031         (grub_cmd_videoinfo): Simplify legend.
12033 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12035         * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
12036         absolutely unclear error message.
12038 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12040         * util/grub-mkstandalone.in: Remove confusing leftover print.
12042 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12044         * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
12045         comments.
12046         * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
12047         (GRUB_MOD_INIT): Likewise.
12048         * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
12049         VGA mode.
12050         * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
12051         comments.
12052         * util/grub-install.in (usage): Likewise.
12053         Spell ID in whole letters.
12054         Add missing ending dot.
12055         Quote variables.
12056         * util/grub-reboot.in: Fix capitalisation.
12057         * util/grub-set-default.in: Likewise.
12059 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12061         * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
12062         (exec_pipe) [CYGWIN || MINGW32]: Likewise.
12063         (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
12064         (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
12065         Disable -Werror for -Wdeprecated-declarations.
12066         (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
12067         (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
12068         (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
12069         (grub_util_get_grub_dev): Make luks handling dependent on
12070         HAVE_DEVICE_MAPPER and not __linux__.
12071         (get_win32_path): Fix format security.
12072         (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
12073         (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
12074         Don't try grub_find_zpool_from_dir.
12075         (grub_make_system_path_relative_to_its_root) [!__linux__]:
12076         #ifdef-out paresdir.
12078 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12080         * util/grub-pe2elf.c (usage): Add missing noreturn.
12081         (write_section_data): Rename name to shname to avoid shadowing.
12082         (write_symbol_table): Rename name to symname to avoid shadowing.
12083         Fix write_reloc_section call.
12085 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12087         * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
12088         to ensure that it's after the last byte of .text.
12090 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12092         * util/ieee1275/ofpath.c (my_isdigit): New function.
12093         (trailing_digits): Use my_isdigit.
12094         (strip_trailing_digits): Likewise.
12096 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12098         * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
12099         * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12101 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12103         * grub-core/kern/i386/pc/startup.S: Define __start.
12105 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12107         * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12108         strip already transforms he format.
12110 2012-03-02  Vladimir Serbinenko  <phcoder@gmail.com>
12112         * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12114 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12116         * util/grub-install.in: Add missing gettext init.
12117         * util/grub-kbdcomp.in: Likewise.
12118         * util/grub-mkconfig.in: Likewise.
12119         * util/grub-mknetdir.in: Likewise.
12120         * util/grub-mkrescue.in: Likewise.
12121         * util/grub-mkstandalone.in: Likewise.
12122         * util/grub-reboot.in: Likewise.
12123         * util/grub-set-default.in: Likewise.
12124         * util/grub.d/00_header.in: Likewise.
12125         * util/grub.d/10_hurd.in: Likewise.
12126         * util/grub.d/10_windows.in: Likewise.
12127         * util/grub.d/30_os-prober.in: Likewise.
12128         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12130 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12132         * po/Rules-swiss: Fix header comment.
12134 2012-02-29  Andreas Vogel <anvoit>
12136         * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12137         resulted in leak of arguments.
12139 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12141         * grub-core/boot/i386/pc/startup_raw.S: Use separate
12142         reed_solomon_size const definition instead of computing it since
12143         Apple assembler doesn't support the later.
12145 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12147         * gentpl.py (kernel): Rewrite Apple part.
12149 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12151         * include/grub/kernel.h (FOR_MODULES): Check module magic.
12153 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12155         * util/grub-mkimagexx.c (locate_sections): Support non-standard
12156         ELF section gap.
12157         (load_image): Likewise.
12159 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12161         * configure.ac: Fix a typo in previous commit.
12163 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12165         Don't add -Wl,-N on Apple platform.
12167         * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12168         * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12170 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12172         * grub-core/Makefile.core.def (lzma_decompress): Use
12173         TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12175 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12177         * grub-core/genmod.sh.in: Rewrite the Apple part.
12179 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12181         * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12182         comparison.
12184 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12186         * acinclude.m4 (grub_CHECK_PIC): New test.
12187         * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12189 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12191         * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12192         to avoid the warning.
12194 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12196         * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12197         (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12198         after. All users updated.
12200 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12202         Use the common size routine in hostfs so we can read disks as well.
12204         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12205         (grub_util_get_fd_size): ... this. Return size in bytes.
12206         All users updated.
12207         * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12208         grub_util_get_fd_size.
12210 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12212         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12213         Add blocksize retrieval.
12215 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12217         * configure.ac: Restore CFLAGS after efiemu check.
12219 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12221         * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12222         Apple bug.
12224 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12226         * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12228 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12230         * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12231         (grub_cmd_halt): Likewise.
12233 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12235         * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12236         for local arithmetics.
12237         Break %sp init into 2 instructions.
12238         Add 0 byte at the end.
12240 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12242         * grub-core/disk/diskfilter.c (read_segment): Initialise err
12243         before loops.
12245 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12247         * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12248         for context.
12250 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12252         * grub-core/disk/ldm.c (make_vg): Init part.name.
12253         (grub_ldm_detect): Silence spurious warning.
12254         (grub_util_is_ldm): Likewise.
12256 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12258         * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12259         sane value to avoid a spurious warning.
12261 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12263         * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12264         (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12266 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12268         * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12269         * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12271 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12273         * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12274         hardcoding the relevant info.
12276 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12278         * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12279         missing const qualifiers.
12280         * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12282 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12284         * util/getroot.c [__APPLE__]: Add missing includes.
12285         (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12287 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12289         * util/grub-mkimage.c (generate_image): Silence spurious warning.
12291 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12293         * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12294         avoid conflicts.
12296 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12298         * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12300 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12302         * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12303         and grub_file_close call.
12305 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12307         Add LZSS Mach-O support (needed for new xnu kernelcache).
12309         * grub-core/Makefile.core.def (xnu): Add file lzss.c
12310         * grub-core/loader/lzss.c: New file.
12311         * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12312         on Mach-O open failure.
12313         * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12314         Don't free cmdsXX in uncompressedXX is set.
12315         (grub_macho_file): Init new fields.
12316         New argument is_64bit. All users updated.
12317         Handle compressed. Error out if no suitable architecture is found.
12318         Don't close file.
12319         (grub_macho_open): New argument is_64bit. All users updated.
12320         * grub-core/loader/macho32.c: Add defines for new fields.
12321         * grub-core/loader/macho64.c: Likewise.
12322         * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12323         (grub_macho_parse): Handle compressed.
12324         Defer actual processing if compressed.
12325         (grub_macho_cmds_iterate): Decompress if compressed. New argument
12326         "filename". All users updated.
12327         (grub_macho_size): New argument "filename". All users updated.
12328         (grub_macho_get_entry_point): Likewise.
12329         (grub_macho_load): Handle compressed.
12330         * include/grub/macho.h (grub_macho_lzss_header): New struct.
12331         (GRUB_MACHO_LZSS_OFFSET): New define.
12332         (grub_decompress_lzss): New proto.
12333         * include/grub/machoload.h (grub_macho_file): New fields to handle
12334         compressed.
12335         (grub_macho_contains_macho64): Remove proto.
12336         (grub_macho_contains_macho32): Likewise.
12337         * util/grub.d/30_os-prober.in: Use kernel cache if available.
12339 2012-02-29  Vladimir Serbinenko  <phcoder@gmail.com>
12341         * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12343 2012-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
12345         Fix make dist.
12347         * Makefile.am (starfield_theme_files): New var.
12348         (starfield_DATA): Use starfield_theme_files.
12349         (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12350         Add bootcheck-related files.
12351         * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12352         * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12353         and font_char_metrics.txt.
12354         * grub-core/Makefile.core.def (kernel): Update extra_dist.
12355         (setjmp): Add lib/ia64/longjmp.S.
12356         * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12357         * po/POTFILES.in: Regenerate.
12358         * po/Rules-swiss: use DISTFILES.common.extra2 and not
12359         DISTFILES.common.extra1.
12360         * util/devicemap.c: Removed.
12361         * grub-core/lib/i386/relocator_backward.S: Likewise.
12362         * util/import_gcry.py: Remove unused files. Add extra_dist for
12363         ChangeLog.
12365 2012-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
12367         * grub-core/gettext/gettext.c (grub_mofile_open): Call
12368         grub_gettext_delete_list before changing grub_gettext_max to avoid
12369         running out of array bounds.
12371 2012-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
12373         * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12374         grub_vga_text_init/grub_vga_text_fini.
12376 2012-02-28  Vladimir Serbinenko  <phcoder@gmail.com>
12378         * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12380 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12382         * configure.ac: Bump to 2.00~beta0.
12384 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12386         * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12387         missing initialisation.
12389 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12391         * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12393 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12395         Support v2 xnu boot arguments.
12397         * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12398         New argument fsbfreq_out.
12399         (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12400         (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12401         be used.
12402         * grub-core/loader/machoXX.c (grub_macho_load): New argument
12403         darwin_version.
12404         * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12405         * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12406         (grub_xnu_boot_params): Rename to ...
12407         (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12408         (grub_xnu_boot_params_v2): New struct.
12410 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12412         * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12413         zeroing of CRC field before computing CRC.
12415 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12417         * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12418         Change order of allocations to decrease fragmentation.
12420 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12422         * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12424 2012-02-27  Colin Watson  <cjwatson@ubuntu.com>
12426         Use write-combining MTRR to speed up video with buggy BIOSes.
12428         * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12429         (cpuid): New define.
12430         (rdmsr): Likewise.
12431         (wrmsr): Likewise.
12432         (mtrr_base): Likewise.
12433         (mtrr_mask): Likewise.
12434         (grub_vbe_enable_mtrr_entry): New function.
12435         (grub_vbe_enable_mtrr): Likewise.
12436         (grub_vbe_disable_mtrr): Likewise.
12437         (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12438         control off to BIOS.
12439         (grub_video_vbe_init): Fill mtrr.
12440         (grub_video_vbe_fini): Disable mtrr.
12441         (grub_video_vbe_get_info_and_fini): Likewise.
12442         (grub_video_vbe_setup): Enable mtrr.
12444 2012-02-27  Colin Watson  <cjwatson@ubuntu.com>
12446         * include/grub/partition.h (grub_partition_map): Change prototype of
12447         embed to take a maximum value for nsectors.
12448         * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12449         * include/grub/fs.h (grub_fs): Likewise.
12450         * grub-core/partmap/msdos.c (embed_signatures): New array.
12451         (pc_partition_map_embed): Check for and avoid sectors matching any
12452         of the signatures in embed_signatures, up to max_nsectors.
12453         * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12454         returned sector map to max_nsectors.
12455         * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12456         * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12457         * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12458         * util/grub-setup.c (setup): Allow for the embedding area being
12459         split into multiple blocklists.  Tell dest_partmap->embed the
12460         maximum number of sectors we care about.
12462 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12464         * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12465         Specify blocklist_install and reserver_first_sector for all fs.
12466         * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12467         blocklists.
12469 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12471         * util/grub-install.in: Clarify strings.
12472         Fix source dir check.
12474 2012-02-27  Richard Laager <rlaager@wiktel.com>
12476         * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12477         "zfs" and "fuse.zfs" as synonyms.
12479 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12481         * configure.ac: Put platform and target_cpu substitutions back since
12482         they are used for directories.
12484 2012-02-27  Richard Laager <rlaager@wiktel.com>
12485 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12487         * util/grub.d/10_linux.in: Add ZFS-related arguments.
12488         * util/grub.d/20_linux_xen.in: Likewise.
12490 2012-02-27  Richard Laager <rlaager@wiktel.com>
12492         * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12493         with full paths.
12495 2012-02-27  Richard Laager <rlaager@wiktel.com>
12497         * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12498         unescape.
12500 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12502         Don't use insecure popen in getroot.
12504         * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12505         (exec_pipe): ... here.
12506         (find_root_devices_from_poolname): Use exec_pipe.
12508 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12510         Remove platform and target_cpu replacement.
12512         * configure.ac: Remove platform and target_cpu substitutions.
12513         * tests/util/grub-shell.in: Use modinfo.
12514         * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12515         explicitly.
12517 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12519         Autodetect platform in grub-install but allow override.
12521         * util/grub-install.in: Autodetect platform. Support --target and
12522         --directory. Read platform from modinfo.sh.
12524 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12526         Support btrfs multi-volume probe.
12528         * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12529         (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12530         (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12531         (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12532         (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12533         (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12534         grub_find_root_devices_from_btrfs if on btrfs.
12536 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12538         Remove any awareness of *.c util files about target.
12540         * Makefile.util.def (grub-setup): Split to ...
12541         (grub-bios-setup): ... and this.
12542         (grub-sparc64-setup): ... and this.
12543         * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12544         * docs/man/grub-setup.h2m: Split into ...
12545         * docs/man/grub-sparc64-setup.h2m: ... this.
12546         * docs/man/grub-bios-setup.h2m: ... and this.
12547         * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12548         * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12549         (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12550         (grub_target_addr_t): Remove.
12551         (grub_target_size_t): Remove.
12552         (grub_target_ssize_t): Remove.
12553         * util/grub-install.in: Use new grub-*-setup.
12554         * util/grub-mkimagexx.c (Elf_Word): New define.
12555         (Elf_Half): Likewise.
12556         (Elf_Section): Likewise.
12557         (ELF_ST_TYPE): Likewise.
12558         * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12559         GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12561 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12563         Replace grub_target_addr with more appropriate types.
12565         * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12566         grub_target_addr with grub_addr.
12567         * grub-core/commands/iorw.c (grub_cmd_read): Replace
12568         grub_target_addr with grub_port.
12569         (grub_cmd_write): Likewise.
12570         * grub-core/commands/memrw.c (grub_cmd_read): Replace
12571         grub_target_addr with grub_addr.
12572         (grub_cmd_write): Likewise.
12573         * grub-core/video/efi_uga.c (find_line_len): Likewise.
12575 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12577         * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12578         const qualifier for vendor_guid.
12580 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12582         * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12583         const qualifier.
12584         (efiemu_memequal): Likewise.
12585         (find_variable): Likewise.
12587 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12589         Fix missing console prototype on qemu-mips.
12591         * include/grub/mips/qemu_mips/console.h: New file.
12593 2012-02-27  Matthew Garrett  <mjg@redhat.com>
12594 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12596         * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12597         * include/grub/efi/efi.h: Likewise.
12598         * include/grub/efi/api.h: Add guid for EFI-specified variables.
12599         * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12600         * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12601         * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12602         * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12603         * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12605 2012-02-27  Matthew Garrett  <mjg@redhat.com>
12607         * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12609 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12611         * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12612         error.
12614 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12616         * configure.ac: Remove inappropriate use of program_transform_name
12617         on grubdir and bootdir but allow explicit specification of those
12618         variables.
12620 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12622         * util/grub-mknetdir.in (grub_prefix): Removed.
12623         (subdir): Use @bootdirname@ and @grubdirname@.
12625 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12627         Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12629 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12631         * po/POTFILES.in: Regenerated.
12633 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12635         Remove improper use of program_transform_name on pkglibrootdir.
12637         * configure.ac (pkglibrootdir): Removed.
12638         (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12639         * util/grub-mkimage.c: Likewise.
12641 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12643         * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12644         warning.
12646 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12648         * util/grub-install.in: Use file identifier if no UUID is available
12649         or user explicitly prompted for it.
12651 2012-02-27  Navdeep Parhar <nparhar@gmail.com>
12653         * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12654         (freebsd_get_zfs): New function.
12655         (grub_freebsd_boot): Pass zfs UUID.
12656         (grub_cmd_freebsd): Set zfs UUID.
12658 2012-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
12660         * conf/Makefile.common (platformdir): Base on pkglibdir and not
12661         pkglibrootdir.
12663 2012-02-27  Mike Gilbert  <floppym@gentoo.org>
12665         Add configure flag to control libzfs integration.
12667         * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12669 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12671         * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12672         device.
12673         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12674         small devices.
12676 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12678         Remove grub_{modname}_init and grub_{modname}_fini. They should never
12679         be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12680         be used on non-modules.
12682         * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12683         Rename to grub_boot_init.
12684         (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12685         * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12686         [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12687         (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12688         * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12689         [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12690         (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12691         * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12692         includes.
12693         (grub_machine_init): Remove empty inits.
12694         * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12695         includes.
12696         (grub_machine_init): Remove empty inits.
12697         * grub-core/term/arc/console.c: Remove explicit proto.
12698         * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12699         [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12700         (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12701         grub_at_keyboard_fini.
12702         * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12703         [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12704         (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12705         grub_gfxterm_fini.
12706         * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12707         [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12708         (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12709         grub_vgatext_fini.
12710         * grub-core/term/ieee1275/console.c: Remove explicit proto.
12711         * grub-core/term/serial.c (GRUB_MOD_INIT)
12712         [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12713         (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12714         grub_serial_fini.
12715         * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12716         [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12717         (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12718         grub_terminfo_fini.
12719         * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12720         (GRUB_MOD_FINI): Likewise.
12721         * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12722         [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12723         (GRUB_MOD_FINI) [LOONGSON]: Rename to
12724         grub_video_radeon_fuloong2e_fini.
12725         * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12726         [LOONGSON]: Rename to grub_video_sis315pro_init.
12727         (GRUB_MOD_FINI) [LOONGSON]: Rename to
12728         grub_video_sis315pro_fini.
12729         * grub-core/video/sm712.c (GRUB_MOD_INIT)
12730         [LOONGSON]: Rename to grub_video_sm712_init.
12731         (GRUB_MOD_FINI) [LOONGSON]: Rename to
12732         grub_video_sm712_fini.
12733         * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12734         (grub_at_keyboard_fini): Likewise.
12735         * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12736         Don't declare grub_{modname}_init.
12737         (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12738         * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12739         New proto.
12740         (grub_keylayouts_fini) [!EMU]: Likewise.
12741         * include/grub/serial.h (grub_serial_init) [!EMU]:
12742         New proto.
12743         (grub_serial_fini) [!EMU]: Likewise.
12744         * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12745         New proto.
12746         (grub_terminfo_fini) [!EMU]: Likewise.
12747         * include/grub/video.h (grub_font_init) [!EMU]:
12748         New proto.
12749         (grub_font_fini) [!EMU]: Likewise.
12750         (grub_gfxterm_init) [!EMU]: Likewise.
12751         (grub_gfxterm_fini) [!EMU]: Likewise.
12752         (grub_video_sm712_init) [!EMU]: Likewise.
12753         (grub_video_sm712_fini) [!EMU]: Likewise.
12754         (grub_video_sis315pro_init) [!EMU]: Likewise.
12755         (grub_video_sis315pro_fini) [!EMU]: Likewise.
12756         (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12757         (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12759 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12761         Make nand a prefix for nand devices.
12763         * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12765 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12767         * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12768         * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12770 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12772         * include/grub/env.h (grub_env_find): Remove prototype.
12773         * grub-core/kern/env.c (grub_env_find): Make static.
12774         (grub_env_set): Remove useless set.
12776 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12778         * grub-core/kern/i386/realmode.S: Remove useless align.
12780 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12782         * include/grub/dl.h (grub_dl_load_file): Don't export.
12784 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12786         * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12787         grub_dprintf.
12789 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12791         * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12792         grub_errors.
12793         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12794         not reloading whole superblock but only the part which is really needed.
12795         Remove useless grub_errors.
12796         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12797         grub_errors.
12799 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12801         Don't export grub_get_rtc.
12803         * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12804         * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12806 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12808         * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12810 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12812         * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12813         argument since it can be deduced from diskfilter. All users updated.
12815 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12817         Remove prio_list.
12819         * include/grub/list.h (grub_prio_list): Removed.
12820         (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12821         GRUB_COMMAND_PRIO_MASK.
12822         (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12823         GRUB_COMMAND_FLAG_ACTIVE.
12824         (grub_prio_list_insert): Removed.
12825         (grub_prio_list_remove): Likewise.
12826         (GRUB_AS_PRIO_LIST): Likewise.
12827         (GRUB_AS_PRIO_LIST_P): Likewise.
12828         * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12829         (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12830         * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12831         * grub-core/kern/command.c (grub_register_command_prio): Inline
12832         the prio_list code.
12833         (grub_unregister_command): Likewise.
12835 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12837         Fix interrupt mixup from previous commit.
12839         * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12840         (grub_realidt): New var.
12841         * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12842         Load idt.
12843         * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12844         New declaration.
12845         (grub_relocator16_boot): Set grub_relocator16_idt.
12846         * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12847         (LOCAL(realidt)): ... this.
12848         * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12849         * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12850         (grub_realidt): New variable.
12852 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12854         * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12855         * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12856         * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12857         * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12858         Gettextize.
12859         * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12860         * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12861         * po/POTFILES.in: Regenerate.
12863 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12865         * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12866         errors.
12868 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12870         * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12871         \0.
12872         (add_length): Likewise.
12874 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12875 2012-02-26  Lubomir Kundrak  <lkundrak@redhat.com>
12877         GDB serial and backtrace support.
12879         * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12880         (prot_to_real): Likewise.
12881         * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12882         * grub-core/Makefile.core.def (backtrace): New module.
12883         (gdb): Likewise.
12884         * grub-core/gdb/cstub.c: New file.
12885         * grub-core/gdb/gdb.c: Likewise.
12886         * grub-core/gdb/i386/idt.c: Likewise.
12887         * grub-core/gdb/i386/machdep.S: Likewise.
12888         * grub-core/gdb/i386/signal.c: Likewise.
12889         * grub-core/lib/i386/backtrace.c: Likewise.
12890         * grub-core/lib/backtrace.c: Likewise.
12891         * include/grub/backtrace.h: Likewise.
12892         * include/grub/gdb.h: Likewise.
12893         * include/grub/i386/gdb.h: Likewise.
12895 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12897         * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12898         New function.
12899         (add_length): Likewise.
12900         (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12901         * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12902         proto.
12903         * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12904         __argp_get_display_len.
12906 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12908         $"..." support in scripts.
12910         * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12911         GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12912         * grub-core/script/yylex.l: Likewise.
12913         * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12914         value.
12916 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12918         * gentpl.py: Remove obsolete pkglib_DATA handling.
12920 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12922         Don't transform PACKAGE_TARNAME following a discussion on autoconf
12923         mailing list.
12925         * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12926         * util/grub-kbdcomp.in: Likewise.
12927         * util/grub-mkconfig.in: Likewise.
12928         * util/grub-mkconfig_lib.in: Likewise.
12929         * util/grub-mknetdir.in: Likewise.
12930         * util/grub-mkrescue.in: Likewise.
12931         * util/grub-mkstandalone.in: Likewise.
12932         * util/grub-reboot.in: Likewise.
12933         * util/grub-set-default.in: Likewise.
12934         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12936 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12938         Remove GRUB_PREFIX.
12940         * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12941         * util/grub.d/00_header.in: Compute prefix in the only place it's still
12942         used for backward compatibility.
12944 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12946         Add new all_video module.
12948         * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12949         * grub-core/Makefile.core.def (all_video): New module.
12950         * grub-core/genmoddep.awk: Generate dependency of all_video from
12951         video.lst.
12952         * grub-core/lib/fake_module.c: New file.
12953         * grub-core/normal/main.c (features): Add feature_all_video_module.
12954         * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12955         don't do explicit search again.
12956         insmod all_video in load_video if available.
12958 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12960         Another round of string clarification and adding TRANSLATORS comments.
12962 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12964         * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12966 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12968         * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12969         to grub_ssize_t.
12970         * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12971         * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12973 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12975         * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12976         trailing newline implicitly. All users updated.
12978 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
12980         Implement serial on IEEE1275 and EFI.
12982         * docs/grub.texi (Platform-specific limitations): Fix the columen video
12983         on emu. Mention arc and emu as the only platforms without serial
12984         support.
12985         * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12986         ieee1275 platforms.
12987         * grub-core/term/efi/serial.c: New file.
12988         * grub-core/term/ieee1275/serial.c: Likewise.
12989         * grub-core/term/serial.c (grub_serial_find): Disable direct port
12990         specification if no ns8250 driver is available.
12991         (grub_cmd_serial): Likewise.
12992         (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12993         (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12994         * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12995         (grub_efi_parity_type_t): New type.
12996         (grub_efi_stop_bits_t): Likewise.
12997         (grub_efi_serial_io_interface): New struct.
12998         * include/grub/serial.h (grub_serial_port): Make 'broken' field
12999         available for all interfaces.
13000         Add EFI and IEEE1275 fields.
13001         (grub_ofserial_init): New proto.
13002         (grub_efiserial_init): Likeiwse.
13003         * util/grub.d/00_header.in: Don't check for the presence of serial
13004         module.
13006 2012-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
13008         * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
13009         name as if it was an alias.
13011 2012-02-25  Vladimir Serbinenko  <phcoder@gmail.com>
13013         * grub-core/commands/lsacpi.c (options): Fix typo.
13015 2012-02-25  Vladimir Serbinenko  <phcoder@gmail.com>
13017         Convert grub-emu to argp.
13019         * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
13020         emu.
13021         * util/argp_common.c: Rename to ...
13022         * grub-core/kern/emu/argp_common.c: ... this. All users updated.
13023         Add missing includes.
13024         * grub-core/kern/emu/main.c: Convert to argp.
13025         * po/POTFILES.in: Regenerate.
13026         * util/grub-install.in (usage): Make first letter lowcase in messages
13027         for uniformity.
13028         * util/grub-setup.c (options): Likewise.
13030 2012-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
13032         * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
13033         Put back accidently commented-out code.
13035 2012-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
13037         * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
13038         loop check using Brent algorithm.
13039         (grub_hfsplus_btree_search): Likewise.
13041 2012-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
13043         * util/grub-install.in: Fix usage of wrong device for PreP install.
13045 2012-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
13047         * conf/Makefile.common (CFLAGS_GNULIB): Add
13048         -Wno-unsafe-loop-optimizations.
13049         * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
13050         on tools.
13051         * grub-core/commands/legacycfg.c: Add pragma to skip
13052         -Wunsafe-loop-optimizations.
13053         (check_password_md5_real): Fix loop counter type.
13054         * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
13055         reading.
13056         * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
13057         * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
13058         loop condition.
13059         * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
13060         * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
13061         * grub-core/net/net.c (grub_net_route_address): Add safety loop
13062         condition.
13063         * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
13064         * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
13065         avoid possible infinite loops.
13066         * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
13067         and -Wunsafe-loop-optimizations.
13068         * grub-core/script/yylex.l: Likewise.
13069         * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
13070         (print_glyphs): Avoid infinite loops.
13071         * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
13073 2012-02-24  Grégoire Sutre  <gregoire.sutre@gmail.com>
13075         * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
13076         to avoid infinite loop.
13077         (disp_acpi_rsdt_table): Likewise.
13079 2012-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
13081         * grub-core/font/font.c (grub_font_load): Add support for default
13082         path for fonts ($prefix/fonts).
13083         * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
13084         for checking if string is a path.
13085         * grub-core/normal/main.c (features): Add feature_default_font_path.
13086         * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
13087         * util/grub.d/00_header.in: Use default directory if possible.
13088         * util/grub-install.in: Install unicode.pf2.
13090 2012-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
13092         * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
13093         * po/Rules-swiss: New file.
13094         * po/swiss.sed: Likewise.
13096 2012-02-23  Vladimir Serbinenko  <phcoder@gmail.com>
13098         * grub-core/fs/btrfs.c (find_device): Fix typos.
13099         * grub-core/fs/zfs/zfs.c (read_device): Likewise.
13100         * util/grub-mkrelpath.c (argp_parser): Likewise.
13101         Reported by: Yuri Chornoivan.
13103 2012-02-23  Dalet Omega <daletomega@gmail.com>
13105         * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13106         for usual informative messages.
13108 2012-02-23  Dalet Omega <daletomega@gmail.com>
13110         Starfield theme.
13112         * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13113         * conf/Makefile.common: Define starfielddir.
13114         * configure.ac: Configure starfield.
13115         * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13116         * themes/starfield/README: Likewise.
13117         * themes/starfield/blob_w.png: Likewise.
13118         * themes/starfield/boot_menu_c.png: Likewise.
13119         * themes/starfield/boot_menu_e.png: Likewise.
13120         * themes/starfield/boot_menu_n.png: Likewise.
13121         * themes/starfield/boot_menu_ne.png: Likewise.
13122         * themes/starfield/boot_menu_nw.png: Likewise.
13123         * themes/starfield/boot_menu_s.png: Likewise.
13124         * themes/starfield/boot_menu_se.png: Likewise.
13125         * themes/starfield/boot_menu_sw.png: Likewise.
13126         * themes/starfield/boot_menu_w.png: Likewise.
13127         * themes/starfield/slider_c.png: Likewise.
13128         * themes/starfield/slider_n.png: Likewise.
13129         * themes/starfield/slider_s.png: Likewise.
13130         * themes/starfield/src/blob_nw.xcf: Likewise.
13131         * themes/starfield/src/bootmenu/: Likewise.
13132         * themes/starfield/src/bootmenu/center.xcf: Likewise.
13133         * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13134         * themes/starfield/src/bootmenu/side.xcf: Likewise.
13135         * themes/starfield/src/slider_c.xcf: Likewise.
13136         * themes/starfield/src/slider_n.xcf: Likewise.
13137         * themes/starfield/src/slider_s.xcf: Likewise.
13138         * themes/starfield/src/terminalbox/: Likewise.
13139         * themes/starfield/src/terminalbox/center.xcf: Likewise.
13140         * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13141         * themes/starfield/src/terminalbox/side.xcf: Likewise.
13142         * themes/starfield/starfield.png: Likewise.
13143         * themes/starfield/terminal_box_c.png: Likewise.
13144         * themes/starfield/terminal_box_e.png: Likewise.
13145         * themes/starfield/terminal_box_n.png: Likewise.
13146         * themes/starfield/terminal_box_ne.png: Likewise.
13147         * themes/starfield/terminal_box_nw.png: Likewise.
13148         * themes/starfield/terminal_box_s.png: Likewise.
13149         * themes/starfield/terminal_box_se.png: Likewise.
13150         * themes/starfield/terminal_box_sw.png: Likewise.
13151         * themes/starfield/terminal_box_w.png: Likewise.
13152         * themes/starfield/theme.txt: Likewise.
13154 2012-02-23  Vladimir Serbinenko  <phcoder@gmail.com>
13156         * util/grub.d/00_header.in: Add missing export theme.
13158 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13160         * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13161         already included.
13162         Reported by: Eren D.
13164 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13166         * conf/Makefile.common (grubdatadir): Removed.
13167         (Makefile.am): Move eveything grubdata to pkgdata.
13169 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13171         * grub-core/commands/acpihalt.c (get_sleep_type):
13172         Remove unused variable.
13174 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13176         * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13177         GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13178         GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13179         and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13180         * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13181         i18n with gettext no-op.
13182         (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13183         GRUB_ACPI_OPCODE_STRING_CONST.
13184         (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13185         GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13187 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13189         * po/POTFILES.in: Regenerate.
13191 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13193         * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13194         -Wno-error=missing-noreturn.
13196 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13198         * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13199         condition to avoid possibly infinite loops.
13200         * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13201         * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13203 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13205         * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13206         condition to avoid possibly infinite loops.
13208 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13210         * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13211         on show_error.
13213 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13215         * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13217 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13219         * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13221 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13223         * util/bin2h.c (usage): Add missing attribute noreturn.
13225 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13227         * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13228         if the size isn't divisible by 512.
13230 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13232         Make list_push and list_remove functions rather than inline functions
13233         to decrease size and avoid aliasing violations.
13235         * include/grub/list.h (grub_list_push): Move to ...
13236         * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13237         * include/grub/list.h (grub_list_remove): Move to ...
13238         * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13240 2012-02-22  Vladimir Serbinenko  <phcoder@gmail.com>
13242         * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13243         and -Wunused-result.
13245 2012-02-21  Vladimir Serbinenko  <phcoder@gmail.com>
13247         * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13248         Reported by: Seth Goldberg
13250 2012-02-21  Vladimir Serbinenko  <phcoder@gmail.com>
13252         * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13254 2012-02-19  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13256         * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13257         * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13258         command line.
13259         * docs/grub.texi (Simple configuration): Document
13260         GRUB_CMDLINE_GNUMACH.
13262 2012-02-18  Vladimir Serbinenko  <phcoder@gmail.com>
13264         * conf/Makefile.common (platform_SCRIPTS): New variable.
13265         (platform_PROGRAMS): Likewise.
13266         * gentpl.py: Mark *,module and *.image for install.
13267         * grub-core/gdb_grub.in: Add a notice of expected environment.
13268         * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13269         (gmodule.pl): Likewise.
13271 2012-02-18  Vladimir Serbinenko  <phcoder@gmail.com>
13273         Replace grub_checkkey with grub_getkey_noblock.
13275         * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13276         (grub_getkey_noblock): ... this. All users updated.
13278 2012-02-18  Vladimir Serbinenko  <phcoder@gmail.com>
13280         * grub-core/kern/emu/console.c: Move to ...
13281         * grub-core/term/emu/console.c: ...here.
13282         (grub_ncurses_getkey): Fix return value if no key is detected.
13284 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13286         * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13287         (grub_unit_test_fini): Likewise.
13288         * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13290 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13292         * include/grub/test.h (GRUB_UNIT_TEST)
13294 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13296         * grub-core/script/execute.c (grub_script_break): Clarify logic.
13297         Better error handling.
13298         (grub_script_return): Likewise.
13299         * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13301 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13303         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13304         rimplicit redifinition.
13306 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13308         * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13309         GRUB.
13311 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13313         * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13314         * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13315         prompt here.
13317 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13319         * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13320         as GRUB_ERR_BUG. Don't malloc if no device is available.
13322 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13324         * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13325         Mark calling with invalid term as GRUB_ERR_BUG.
13327 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13329         * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13330         packets rather than raising an error.
13332 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13334         * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13335         in if.
13337 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13339         * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13340         diagnostic to dprintf.
13341         * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13343 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13345         * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13346         device name.
13348 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13350         * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13351         (grub_ntfs_iterate_dir): Likewise.
13353 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13355         Efiemu stylistic fixes and gettext.
13357         * grub-core/efiemu/i386/loadcore32.c
13358         (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13359         * grub-core/efiemu/i386/loadcore64.c
13360         (grub_arch_efiemu_relocate_symbols64): Likewise.
13361         * grub-core/efiemu/i386/pc/cfgtables.c
13362         (grub_machine_efiemu_init_tables): Likewise.
13363         * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13364         (grub_efiemu_loadcore_initXX): Add a filename argument.
13365         All users updated.
13366         Improved error message.
13367         * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13368         Add a filename argument.
13369         All users updated.
13370         * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13371         Reclassify double relocation as GRUB_ERR_BUG.
13373 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13375         * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13376         handling.
13378 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13380         * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13381         on partition.
13383 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13385         * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13387 2012-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
13389         Improve string. Gettextize.
13391 2012-02-11  Vladimir Serbinenko  <phcoder@gmail.com>
13393         * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13394         utils.
13395         * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13397 2012-02-11  Vladimir Serbinenko  <phcoder@gmail.com>
13399         * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13400         [GRUB_UTIL]: New function.
13401         (insert_array) [GRUB_UTIL]: Store partmaps.
13402         * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13403         partmaps.
13404         (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13405         * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13406         (probe_abstraction): Print diskfilter and not raid.
13407         Reported by: Lennart Sorensen
13409 2012-02-11  Vladimir Serbinenko  <phcoder@gmail.com>
13411         * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13412         * util/grub-mkimagexx.c (MASK3): New define.
13413         (add_value_to_slot_20b): Use MASK3.
13414         (add_value_to_slot_21): Likewise.
13415         (relocate_addresses): Fix format specification.
13416         (load_image): Explicitly init symtab_section.
13418 2012-02-11  Vladimir Serbinenko  <phcoder@gmail.com>
13420         * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13421         (grub_util_biosdisk_get_grub_dev): Fix format specification.
13423 2012-02-11  Vladimir Serbinenko  <phcoder@gmail.com>
13425         * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13426         on powerpc.
13427         Reported by: Lennart Sorensen
13429 2012-02-11  Vladimir Serbinenko  <phcoder@gmail.com>
13431         * gentpl.py: Add missing license header.
13432         * docs/grub.texi: Update copyright year.
13434 2012-02-10  Grégoire Sutre  <gregoire.sutre@gmail.com>
13436         Source grub-mkconfig_lib from the build directory at build time.
13437         Suggested by: Vladimir Serbinenko.
13439         * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13440         * util/grub-install.in: Define pkgdatadir if not already set, and source
13441         grub-mkconfig_lib from there.
13442         * util/grub-kbdcomp.in: Likewise.
13443         * util/grub-mkconfig.in: Likewise.
13444         * util/grub-mknetdir.in: Likewise.
13445         * util/grub-mkrescue.in: Likewise.
13446         * util/grub-mkstandalone.in: Likewise.
13447         * util/grub-reboot.in: Likewise.
13448         * util/grub-set-default.in: Likewise.
13449         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13451 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13453         Increase warning level.
13455         * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13456         -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13457         * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13458         (TARGET_CFLAGS): Likewise.
13459         (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13460         * grub-core/Makefile.core.def (decompressor_xz): Add
13461         -Wno-unreachable-code.
13462         (normal): Add -Wno-redundant-decls.
13463         (xzio): Add -Wno-unreachable-code.
13464         (lzopio): Add -Wno-redundant-decls -Wno-error.
13465         * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13466         * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13467         * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13468         * grub-core/kern/dl.c: Add exception to -Wcast-align.
13469         * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13470         * grub-core/kern/i386/coreboot/init.c: Add exception to
13471         -Wsuggest-attribute=noreturn.
13472         * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13473         * grub-core/kern/ia64/dl_helper.c: Likewise.
13474         * grub-core/kern/mips/dl.c: Likewise.
13475         * grub-core/kern/sparc64/dl.c: Likewise.
13476         * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13477         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13478         (memcmp): Likewise.
13479         * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13480         * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13481         * grub-core/loader/mips/linux.c: Likewise.
13482         * grub-core/loader/multiboot_elfxx.c: Likewise.
13483         * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13484         * grub-core/video/sm712.c: Add exception to -Wcast-align.
13485         * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13486         * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13487         fixme.
13488         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13489         * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13490         Fix prototype.
13492 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13494         * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13495         address.
13497 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13499         * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13500         Avoid improper use of strings.
13501         (grub_cmd_legacy_initrdnounzip): Likewise.
13503 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13505         * include/grub/emu/misc.h (grub_util_warn): Add missing format
13506         attribute.
13507         (grub_util_info): Likewise.
13508         (grub_util_error): Likewise.
13510 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13512         * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13513         * util/grub-fstest.c (fstest): Likewise.
13515 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13517         * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13518         (grub_md_sha512_real): Likewise.
13519         (grub_util_get_geli_uuid): Likewise.
13520         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13521         (grub_util_biosdisk_open): Fix format specification.
13522         Respect format security.
13523         * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13524         (xrealloc): Likewise.
13525         (xasprintf): Likewise.
13527 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13529         * util/import_gcry.py: Include grub/crypto.h in init.c.
13531 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13533         * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13534         (generate_image): Make prefix a const char *.
13535         Fix format specifications. Respect format security.
13536         Avoid void * arithmetics.
13537         Avoid shadowing.
13538         (argp_parser): Remove unused variable. Respect format security.
13539         * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13540         (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13541         (count_funcs): Remove unused variable.
13542         (relocate_addresses): Fix format specification.
13543         Disable x86-64 with elf32. Remove unused variables.
13544         (add_fixup_entry): Avoid shadowing.
13545         (make_reloc_section): Fix format specification.
13546         Use assert.
13547         (locate_sections): Fix format specifications.
13548         (load_image): Avoid shadowing.
13550 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13552         * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13553         Fix format specifications. Respect format security.
13554         Don't translate already translated grub_errmsg.
13555         (argp_parser): Remove unused variable
13557 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13559         * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13561 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13563         * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13564         (main): Likewise. Use xmalloc. Respect format security.
13566 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13568         * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13569         a const char *.
13570         (argp_parser): Remove unused variable.
13572 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13574         * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13575         (add_pixel): Make static.
13576         (add_font): Likewise.
13577         (write_string_section): Make name and str a const char *.
13578         (write_be16_section): Make name a const char *.
13579         (print_glyphs): Make static.
13580         (write_font_ascii_bitmap): Likewise.
13581         (write_font_width_spec): Likewise.
13582         (write_font_pf2): Likewise.
13583         (argp_parser): Remove unused variable.
13584         Respect format security.
13585         (main): Avoid shadowing. Respect format security.
13587 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13589         * util/grub-editenv.c (argp_parser): Make static.
13590         (create_envblk_file): Use xmalloc.
13591         (open_envblk_file): Likewise.
13592         Resepect format security.
13593         (set_variables): Respect format security.
13595 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13597         * util/getroot.c (grub_find_device): Respect format security.
13598         (get_mdadm_uuid): Remove unused variable.
13599         (grub_util_pull_device): Dont call gettext on already translated
13600         grub_errmsg.
13601         (find_system_device): Remove unused variable.
13602         (grub_util_get_grub_dev): Likewise.
13603         (grub_make_system_path_relative_to_its_root): Respect format security.
13605 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13607         * util/grub-fstest.c (execute_command): Make first argument
13608         a const char *.
13609         (read_file): Avoid shadowing.
13610         Reuse underlying error message if device open fails.
13611         (cmd_cmp): Respect format security.
13612         (root): Make const char *.
13613         (fstest): Remove args argument and use global copy.
13614         Respect format security.
13615         (argp_parser): Make static.
13616         (main): Make default_root const char *.
13618 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13620         * util/grub-mount.c (root): Make const char *.
13621         (execute_command): Make first argument a const char *.
13622         (fuse_init): Respect format security.
13623         (argp_parser): Make static. Remove unused variable.
13624         (main):  Make default_root a const char *.
13625         Respect format security.
13627 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13629         * util/grub-probe.c (probe): Don't call gettext on already translated
13630         grub_errmsg.
13631         Remove unused variables.
13632         (argp_parser): Remove unused variable.
13634 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13636         * util/grub-script-check.c (argp_parser): Remove unused variable.
13637         (main): Rename read to curread to avoid shadowing.
13639 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13641         * util/misc.c (grub_util_write_image_at): Fix format specification.
13642         (grub_util_write_image): Likewise.
13643         (grub_script_execute_argument_to_string): Removed (unused).
13644         (grub_script_execute_menuentry): Likewise.
13645         (grub_putchar): Likewise.
13647 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13649         * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13650         (FUNCTION) [GRUB_UTIL]: Likewise.
13651         (VARIABLE) [GRUB_UTIL]: Likewise.
13653 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13655         * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13656         NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13658 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13660         * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13661         buffer.
13663 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13665         * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13666         (LzmaEnc_SaveState): Removed (unused).
13667         (LzmaEnc_RestoreState): Likewise.
13668         (LzmaEnc_InitPriceTables): Made static.
13669         (LzmaEnc_Construct): Likewise.
13670         (LzmaEnc_FreeLits): Likewise.
13671         (LzmaEnc_Destruct): Likewise.
13672         (LzmaEnc_Init): Likewise.
13673         (LzmaEnc_InitPrices): Likewise.
13674         (LzmaEnc_Finish): Likewise.
13675         (LzmaEnc_PrepareForLzma2): Removed (unused).
13676         (LzmaEnc_MemPrepare): Likewise.
13677         (LzmaEnc_GetNumAvailableBytes): Likewise.
13678         (LzmaEnc_GetCurBuf): Likewise.
13679         (LzmaEnc_CodeOneMemBlock): Likewise.
13681 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13683         * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13684         (grub_util_ldm_embed): Likewise.
13686 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13688         * util/grub-editenv.c (print_var): Rename name to varname to
13689         avoid shadowing.
13690         (main): Rename index to curindex to avoid shadowing.
13691         Make filename a const char *.
13693 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13695         * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13696         to arg_getline to avoid shadowing.
13698 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13700         * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13701         disk_ to avoid shadowing.
13703 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13705         * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13706         curindex to avoid shadowing.
13707         Make static.
13708         (MatchFinder_GetNumAvailableBytes): Make static.
13710 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13712         * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13713         avoid shadowing.
13715 2012-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
13717         * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13718         argument from encrypt to do_encrypt to avoid shadowing.
13720 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13722         * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13723         incorrect nesting of #if's.
13725 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13727         * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13728         checks which are always false on some platforms.
13729         (grub_cmd_lsacpi): Likewise.
13730         * grub-core/kern/misc.c (grub_strtoul): Likewise.
13731         * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13732         Likewise.
13734 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13736         * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13737         * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13739 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13741         * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13742         re_dfa_t to avoid breaking alignment invariants.
13743         * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13744         * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13746 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13748         * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13749         * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13751 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13753         * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13754         Fix declaration.
13756 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13758         * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13759         conserve alignment invariants.
13760         (grub_ehci_ehcc_read16): Likewise.
13761         (grub_ehci_oper_read32): Likewise.
13762         (grub_ehci_oper_write32): Likewise.
13763         (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13764         Conserve alignment invariants.
13766 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13768         * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13769         * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13770         declarations.
13772 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13774         * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13775         Remove unused variable.
13777 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13779         * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13780         Remove set in if.
13782 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13784         * include/grub/net.h: Remove double declarations.
13786 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13788         Remove "payload" command in ia64 Linux loader since I couldn't
13789         find any evidence of it being used for anything.
13790         Replace "relocate" command with an environment variable
13792         * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13793         fields.
13794         (ia64_boot_payload): Removed.
13795         (last_payload): Likewise.
13796         (RELOCATE_OFF): Likewise.
13797         (RELOCATE_ON): Likewise.
13798         (RELOCATE_FORCE): Likewise.
13799         (relocate): Likewise.
13800         (free_pages): Don't free payloads.
13801         (grub_load_elf64): Use common error messages.
13802         Use "linux_relocate" variable.
13803         Increase the space after boot_params.
13804         (grub_cmd_payload): Removed.
13805         (grub_cmd_relocate): Likewise.
13806         (grub_cmd_fpswa): Improve messages.
13807         (cmd_payload): Removed.
13808         (cmd_relocate): Likewise.
13809         (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13810         (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13812 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13814         Convert UHCI to DMA framework.
13816         * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13817         (grub_uhci_pci_iter): Fill new members
13818         (grub_alloc_td): Use P2V and V2P functions.
13819         (grub_free_queue): Likewise.
13820         (grub_alloc_qh): Likewise.
13821         (grub_uhci_setup_transfer): Likewise.
13822         (grub_uhci_check_transfer): Likewise.
13824 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13826         * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13827         Remove assignment in if while on it.
13829 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13831         * util/grub-mkstandalone.in: Fix modules directory.
13833 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13835         * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13836         on i386-pc target.
13837         (argp_parser): Accept "auto" as compression specification.
13839 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13841         Fix `help' with unloaded modules.
13843         * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13844         * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13845         (grub_dyncmd_dispatcher): Small stylistic fix.
13846         * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13847         explicit help is requested.
13849 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13851         * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13852         Explicitly init restart while on it.
13854 2012-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
13856         * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13857         uninited variable.
13859 2012-02-08  Vladimir Serbinenko  <phcoder@gmail.com>
13861         * util/grub-mknetdir.in: Use . rather than source for POSIX
13862         compatibility.
13864 2012-02-08  Vladimir Serbinenko  <phcoder@gmail.com>
13866         * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13868 2012-02-08  Vladimir Serbinenko  <phcoder@gmail.com>
13870         * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13871         variable.
13873 2012-02-08  Vladimir Serbinenko  <phcoder@gmail.com>
13875         * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13876         without quotes.
13878 2012-02-08  Vladimir Serbinenko  <phcoder@gmail.com>
13880         * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13882 2012-02-08  Vladimir Serbinenko  <phcoder@gmail.com>
13884         * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13885         iteration of partitions.
13887 2012-02-08  Vladimir Serbinenko  <phcoder@gmail.com>
13889         Improve gettext support. Stylistic fixes and error handling fixes while
13890         on it.
13892 2012-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
13894         * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13895         part. Instead setup the correct stack in RM.
13896         * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13897         for stack.
13898         * include/grub/i386/relocator_private.h: New file.
13900 2012-02-05  Vladimir Serbinenko  <phcoder@gmail.com>
13902         * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13903         argument.
13904         * util/grub-fstest.c (options): Add missing DEVICE part.
13906 2012-02-05  Vladimir Serbinenko  <phcoder@gmail.com>
13908         Clarify and unify messages.
13910         * grub-core/commands/hashsum.c (options): Unify messages.
13911         * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13912         literal-only message as translatable.
13913         * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13914         * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13915         * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13916         commands.
13917         * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13918         key, not the key used to unlock. Clarify what it's used for.
13919         * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13920         * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13921         * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13922         * util/grub-editenv.c (options): Unify "verbose" message.
13923         * util/grub-fstest.c (read_file): Unify error message.
13924         (fstest): Add quotes around commands.
13925         (options): Unify "verbose" message.
13926         * util/grub-install.in: Add quotes around variable name.
13927         * util/grub-kbdcomp.in: Unify error message.
13928         * util/grub-mkfont.c (main): Likewise.
13929         * util/grub-mkrescue.in: Likewise.
13930         * util/grub-mklayout.c (options): Unify "verbose" message.
13931         * util/grub-mkstandalone.in: Unify help and verbose messages.
13932         * util/grub-mount.c (options): Unify "verbose" message.
13933         * util/grub-probe.c (options): Likewise.
13934         * util/grub-script-check.c (options): Likewise.
13935         * util/grub-setup.c (setup): Unify no-terminator message.
13936         (options): Use DEVICE and not DEV.
13937         Unify "verbose" message.
13938         * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13940 2012-02-05  Vladimir Serbinenko  <phcoder@gmail.com>
13942         Improve and unify messages.
13944         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13945         name. All users updated.
13946         Print filename in error.
13947         (read_device_map): Print filename in error.
13948         * util/getroot.c (grub_guess_root_devices): Print filename in error.
13949         (grub_util_get_os_disk): Likewise.
13950         (grub_util_biosdisk_get_grub_dev): Likewise.
13951         (grub_util_check_block_device): Likewise.
13952         (grub_util_check_char_device): Likewise.
13953         (grub_make_system_path_relative_to_its_root): Likewise.
13954         * util/grub-editenv.c (create_envblk_file): Likewise.
13955         (open_envblk_file): Likewise.
13956         (write_envblk): Likewise.
13957         * util/grub-fstest.c (cmd_cp): Likewise.
13958         (cmd_cat): Likewise.
13959         (cmd_cmp): Likewise.
13960         * util/grub-menulst2cfg.c (main): Likewise.
13961         * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13962         (write_font_width_spec): Likewise.
13963         (write_font_pf2): Likewise.
13964         * util/grub-mkimage.c (generate_image): New argument outname.
13965         All users updated.
13966         Remove unreacheable message.
13967         (options): Unify messages.
13968         (help_filter): Likewise.
13969         * util/grub-mklayout.c (usage): Removed (unused).
13970         (main): Print filename in error.
13971         * util/grub-mkrescue.in: Fix wrong quoting.
13972         * util/grub-setup.c (setup): Print filename in error.
13973         * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13974         (check_sas): Likewise.
13975         * util/misc.c (grub_util_get_fp_size): Removed.
13976         (grub_util_get_image_size): Print filename in error.
13977         (grub_util_read_at): Removed.
13978         (grub_util_read_image): Print filename in error.
13979         (grub_util_load_image): Likewise.
13980         (grub_util_write_image_at): New argument filename. All users updated.
13981         Print filename in error.
13982         (grub_util_write_image): New argument filename. All users updated.
13983         Print filename in error.
13984         * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13985         * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13987 2012-02-05  Vladimir Serbinenko  <phcoder@gmail.com>
13989         * grub-core/Makefile.core.def (pxechain): New module.
13990         * grub-core/loader/i386/pc/pxechainloader.c: New file.
13991         * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13992         function.
13993         (grub_pc_net_config_real): Use grub_pxe_get_cached.
13994         * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13996 2012-02-05  Vladimir Serbinenko  <phcoder@gmail.com>
13998         * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13999         * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
14000         * include/grub/err.h (grub_error_saved): New struct.
14001         (grub_errmsg): Make array size explicit.
14002         * include/grub/misc.h (grub_error_save): New function.
14003         (grub_error_load): Likewise.
14004         * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
14005         (grub_error_push): Update `errno' member name.
14006         (grub_error_pop): Likewise
14007         * grub-core/net/tftp.c (tftp_data): New member save_err.
14008         (tftp_receive): Save error.
14009         (tftp_open): Restore error.
14011 2012-02-05  Vladimir Serbinenko  <phcoder@gmail.com>
14013         * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
14014         to real mode down to execute A20-related code in protected mode as
14015         intended.
14017 2012-02-05  Grégoire Sutre  <gregoire.sutre@gmail.com>
14019         * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
14020         NULL when the argument `level' has an unexpected value.
14022 2012-02-04  Vladimir Serbinenko  <phcoder@gmail.com>
14024         Move platform-dependent files from $prefix to $prefix/$platform.
14026         * config.h.in (GRUB_TARGET_CPU): New definition.
14027         (GRUB_PLATFORM): Likewise.
14028         * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
14029         * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
14030         * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
14031         * grub-core/kern/dl.c (grub_dl_load): Likewise.
14032         * grub-core/normal/autofs.c (read_fs_list): Likewise.
14033         * grub-core/normal/crypto.c (read_crypto_list): Likewise.
14034         * grub-core/normal/dyncmd.c (read_command_list): Likewise.
14035         * grub-core/normal/term.c (read_terminal_list): Likewise.
14036         * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
14037         $prefix/locale.
14038         (grub_gettext_init_ext): Likewise.
14039         * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
14040         grub_platform.
14041         * util/grub-install.in: Update directories.
14042         * util/grub-mknetdir.in: Likewise.
14043         * util/grub-mkrescue.in: Likewise.
14045 2012-02-04  Vladimir Serbinenko  <phcoder@gmail.com>
14047         * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
14048         grub_error framework. All users updated.
14050 2012-02-04  Vladimir Serbinenko  <phcoder@gmail.com>
14052         * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
14053         lists (by always binsearching), improve caching (cache strings
14054         used for binsearch, not only results), improve
14055         maintainability (by using more structured binary search) and correct
14056         error handling.
14058 2012-02-04  Vladimir Serbinenko  <phcoder@gmail.com>
14060         * grub-core/script/execute.c (grub_script_return): Fix warning.
14062 2012-02-04  Vladimir Serbinenko  <phcoder@gmail.com>
14064         * grub-core/script/execute.c (grub_script_return): Fix potential
14065         NULL-dereference.
14066         Reported by: Jim Meyering.
14068 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14070         * po/POTFILES.in: Regenerate.
14071         * util/grub-install.in: Gettextize the strings missed in first pass.
14073 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14075         * Makefile.util.def (grub-mkdevicemap): Removed.
14076         * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
14077         * include/grub/util/deviceiter.h: Removed.
14078         * util/deviceiter.c: Likewise.
14079         * util/getroot.c (grub_util_get_os_disk): New function.
14080         * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
14081         replacement for EFI.
14082         * util/grub-mkdevicemap.c: Removed.
14083         * util/grub-probe.c (probe): Handle PRINT_DISK.
14084         (argp_parser): Handle -t disk.
14086 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14088         * util/grub-mkfont.c: Migrate to argp.
14089         * util/grub-mklayout.c: Likewise.
14090         * util/grub-mkpasswd-pbkdf2.c: Likewise.
14091         * util/grub-mkrelpath.c: Likewise.
14092         * util/grub-probe.c: Likewise.
14093         * util/grub-script-check.c: Likewise.
14095 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14097         * util/grub-reboot.in: Add missing datarootdir.
14098         Add missing newline.
14099         * util/grub-set-default.in: Add missing datarootdir.
14100         * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14101         * util/grub-mkrescue.in: Likewise.
14103 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14105         * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14107 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14109         * util/grub-kbdcomp.in: Add decent help and gettextize.
14110         * docs/man/grub-kbdcomp.h2m: New file.
14112 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14114         Migrate grub-mkimage.c to argp.
14116         * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14117         (grub-setup): Likewise.
14118         * util/grub-setup.c (print_version): Move to ...
14119         * util/argp_common.c (print_version): ... here.
14120         * util/grub-setup.c (argp_program_version_hook): Move to ...
14121         * util/argp_common.c (argp_program_version_hook): ... here.
14122         * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14123         safety.
14124         * util/grub-mkimage.c (main): Migrate to argp.
14126 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14128         * util/grub-mkrescue.in: Use same message as
14129         util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14130         for better translations.
14132 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14134         * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14135         options with generic grub-mkrescue.in with the goal of future
14136         merge.
14138 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14140         * grub-core/kern/mm.c: Add missing include of i18n.h
14141         * grub-core/lib/relocator.c: Likewise.
14143 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14145         * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14146         error.
14147         (allocate_pages): Check return value.
14148         Replace fatal with error.
14149         (grub_linux_boot): Replace printf with dprintf.
14150         Check find_mmap_size return value.
14151         Replace fatal with error.
14152         Don't call grub_machine_fini.
14153         (grub_load_elf64): Replace printf with dprintf.
14154         (grub_cmd_linux): Likewise.
14155         (grub_cmd_initrd): Likewise.
14156         (grub_cmd_payload): Likewise.
14158 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14160         * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14161         message.
14162         * grub-core/video/radeon_fuloong2e.c
14163         (grub_video_radeon_fuloong2e_setup): Likewise.
14164         * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14165         * grub-core/video/video.c (grub_video_set_mode): Don't override
14166         standard out of memory message.
14168 2012-02-03  Grégoire Sutre  <gregoire.sutre@gmail.com>
14170         NetBSD disk wedge support.
14172         * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14173         [__NetBSD__]: Handle NetBSD disk wedges.
14174         * util/getroot.c (convert_system_partition_to_system_disk)
14175         [__NetBSD__]: Likewise.
14177 2012-02-03  Mark Wooding <mdw@distorted.org.uk>
14179         * util/grub-mkconfig.in: Use umask rather than chmod to create
14180         grub.cfg.new to avoid insecure grub.cfg.
14182 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14184         * grub-core/commands/ls.c: Gettextize.
14185         * grub-core/commands/setpci.c: Likewise.
14186         * grub-core/commands/videotest.c: Likewise.
14187         * grub-core/disk/geli.c: Likewise.
14188         * grub-core/kern/mm.c: Likewise.
14189         * grub-core/lib/relocator.c: Likewise.
14190         * grub-core/loader/efi/appleloader.c: Likewise.
14191         * grub-core/loader/i386/xnu.c: Likewise.
14192         * grub-core/loader/ia64/efi/linux.c: Likewise.
14193         * grub-core/loader/xnu.c: Likewise.
14194         * grub-core/net/dns.c: Likewise.
14195         * grub-core/net/net.c: Likewise.
14196         * grub-core/script/lexer.c: Likewise.
14197         * grub-core/script/parser.y: Likewise.
14198         * grub-core/script/yylex.l: Likewise.
14199         * util/getroot.c: Likewise.
14200         * util/grub-setup.c: Likewise.
14202 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14204         * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14205         number.
14207 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14209         * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14211 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14213         * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14214         macro.
14215         * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14216         * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14218 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14220         * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14221         * util/grub-install.in: Gettextize.
14222         * util/grub-mkconfig.in: Likewise.
14223         * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14224         if not available.
14225         (grub_warn): Gettextize.
14226         * util/grub-mknetdir.in: Gettextize.
14227         * util/grub-mkrescue.in: Likewise.
14228         * util/grub-mkstandalone.in: Likewise.
14229         * util/grub-reboot.in: Likewise.
14230         * util/grub-set-default.in: Likewise.
14231         * util/grub.d/00_header.in: Likewise.
14232         * util/grub.d/10_hurd.in: Likewise.
14233         * util/grub.d/10_kfreebsd.in: Likewise.
14234         * util/grub.d/10_linux.in: Likewise.
14235         * util/grub.d/10_netbsd.in: Likewise.
14236         * util/grub.d/10_windows.in: Likewise.
14237         * util/grub.d/20_linux_xen.in: Likewise.
14238         * util/grub.d/30_os-prober.in: Likewise.
14239         * po/POTFILES-shell.in: Regenerate.
14241 2012-02-03  Richard Laager <rlaager@wiktel.com>
14243         * util/grub-mkimage.c (main): Fix format-security warning.
14244         * util/grub-mkrelpath.c (main): Likewise.
14245         * util/grub-probe.c (main): Likewise.
14247 2012-02-03  Richard Laager <rlaager@wiktel.com>
14249         * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14250         failure.
14251         Put back lost PRINT_DRIVE.
14253 2012-02-03  Richard Laager <rlaager@wiktel.com>
14255         * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14256         (grub_guess_root_devices): Replace strlen with sizeof.
14257         Avoid crash.
14258         (find_root_devices_from_poolname): Remove unused variable.
14259         Handle raidzN.
14261 2012-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
14263         Support install on multi-device filesystems.
14265         * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14266         (grub_guess_root_devices): ...this. Return char **. All users updated.
14267         * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14268         Removed.
14269         * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14270         (find_root_devices_from_poolname): ... here.
14271         (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14272         Support zfs-fuse.
14273         (grub_guess_root_device): Rename to ...
14274         (grub_guess_root_devices): ... this. Return char **. All users updated.
14275         * util/grub-install.in: Handle multi-device filesystems.
14276         * util/grub-probe.c (probe). Make device_names a char **. Add delim
14277         argument. All users updated.
14278         Handle multi-device filesystems.
14279         Use 'delim' as separator.
14280         Remove device check to allow filesystems on file.
14281         (main): Support -0 argument. Handle multi-device.
14282         * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14283         Fix a cross-device check while on it.
14284         (arguments): Remove root_dev.
14285         (argp_parser): Remove -r.
14286         (main): Remove root_dev.
14288 2012-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
14290         * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14292 2012-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
14294         * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14295         symbol.
14296         Reported by: NODA, Kai <nodakai>.
14298 2012-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
14300         Fix ehci on amd64.
14302         * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14303         pointers.
14304         * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14305         (grub_ehci_setup_qh): Likewise.
14306         (grub_ehci_find_qh): Likewise.
14307         (grub_ehci_transaction): Likewise.
14308         (grub_ehci_setup_transfer): Likewise.
14309         (grub_ehci_check_transfer): Likewise.
14310         (grub_ehci_portstatus): Likewise.
14311         (grub_ehci_detect_dev): Likewise.
14312         (grub_ehci_transfer_controller_data): New field td_last_phys.
14313         (grub_ehci_setup_transfer): Fill td_last_phys.
14314         (grub_ehci_check_transfer): Use td_last_phys.
14316 2012-02-01  Seth Goldberg <seth.goldberg@oracle.com>
14318         * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14319         if no submenu is present.
14321 2012-02-01  Aleš Nesrsta <starous@volny.cz>
14323         CBI support.
14325         * include/grub/usb.h (grub_usbms_protocol_t): New values
14326         GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14327         * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14328         (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14329         (grub_usbms_dev): Add subclass, protocol and intrpt.
14330         Remove in_maxsz and out_maxsz.
14331         (grub_usbms_reset): Rename to ...
14332         (grub_usbms_bo_reset): .. this.
14333         (grub_usbms_cbi_cmd): New function.
14334         (grub_usbms_cbi_reset): Likewise.
14335         (grub_usbms_reset): Likewise.
14336         (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14337         (grub_usbms_transfer): Rename to ...
14338         (grub_usbms_transfer_bo): ... this.
14339         (grub_usbms_transfer_cbi): Likewise.
14340         (grub_usbms_transfer): Likewise.
14342 2012-02-01  Aleš Nesrsta <starous@volny.cz>
14343 2012-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
14345         EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14346         the support for the CS5536 modification thereos and few bugfixes.
14348         * grub-core/Makefile.core.def (ehci): New module.
14349         * grub-core/bus/usb/ehci.c: New file.
14350         * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14351         port and hubaddr. All users updated.
14352         Save port and hubaddr into dev structure.
14353         * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14354         define.
14355         * include/grub/pci.h (grub_dma_phys2virt): New function.
14356         (grub_dma_virt2phys): Likewise.
14357         * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14359 2012-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
14361         * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14362         check as some mkfs implementations omit it.
14364 2012-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
14366         * docs/grub.texi (Unicode): Mention identifier and space limitations.
14368 2012-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
14370         * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14371         Add new member volname2.
14372         (grub_jfs_label): Use volname2 if available.
14374 2012-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
14376         * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14377         over last_mounted as seen in image generated by mkfs.nilfs2.
14378         (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14380 2012-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
14382         * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14383         to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14384         (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14386 2012-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
14388         * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14389         over the sector.
14391 2012-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
14393         * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14394         subvolume name (by removing a bogus and useless check).
14396 2012-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
14398         * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14399         sizeof while on it.
14401 2012-01-30  Vladimir Serbinenko  <phcoder@gmail.com>
14403         * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14404         (grub_scsi_read_capacity10): ... this.
14405         (grub_scsi_read_capacity16): New function.
14406         (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14407         0xffffffff.
14408         Fix off-by-one error.
14409         * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14410         64-bit unsigned.
14411         * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14412         (grub_scsi_read_capacity10): ... this.
14413         (grub_scsi_read_capacity_data): Rename to ...
14414         (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14415         (grub_scsi_read_capacity16): New struct.
14416         (grub_scsi_read_capacity16_data): Likewise.
14417         (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14418         grub_scsi_cmd_read_capacity10.
14419         New command grub_scsi_cmd_read_capacity16.
14421 2012-01-30  Vladimir Serbinenko  <phcoder@gmail.com>
14423         SCSI >2TiB support.
14425         * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14426         (grub_scsi_write16): Likewise.
14427         (grub_scsi_read): Use read16 when necessary.
14428         (grub_scsi_write): Likewise.
14429         * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14430         (grub_scsi_write16): Likewise.
14431         (grub_scsi_cmd_t): Add READ16 and WRITE16.
14433 2012-01-30  Vladimir Serbinenko  <phcoder@gmail.com>
14435         SCSI write support (for usbms mainly).
14437         * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14438         a const pointer.
14439         (grub_scsi_write): Implement.
14440         * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14442 2012-01-30  Vladimir Serbinenko  <phcoder@gmail.com>
14444         * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14445         variable.
14447 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14449         * grub-core/lib/posix_wrap/string.h (memchr): New function.
14451 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14453         * po/POTFILES.in: Regenerate.
14455 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14457         * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14458         with grub_printf to avoid unnecessary fatal failure.
14460 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14462         * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14463         (INT_MAX): Likewise.
14464         * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14465         * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14466         * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14467         (strcpy): Likewise.
14468         (strstr): Likewise.
14469         (strchr): Likewise.
14470         (strncpy): Likewise.
14471         (strcat): Likewise.
14472         (strncat): Likewise.
14473         (strcoll): Likewise.
14474         * include/grub/types.h (GRUB_SHRT_MAX): New define.
14475         (GRUB_INT_MAX): Likewise.
14477 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14479         * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14480         unexpected error.
14481         (optimize_utf8): Likewise.
14482         * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14484 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14486         * grub-core/boot/i386/pc/lnxboot.S: Use
14487         GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14488         * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14489         location.
14490         * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14491         definition.
14492         (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14494 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14496         * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14497         * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14498         now to avoid double free.
14499         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14500         hostdisk.
14501         * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14502         * util/grub-probe.c (escape_of_path): Always return a new copy.
14503         (print_full_name): Escape path.
14504         (probe): Don't call grub_util_devname_to_ofpath on NULL.
14505         Fix hints on abstractions.
14507 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14509         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14510         Don't add "root" line if no compatibility hont is available.
14511         Suggested by: Seth Goldberg.
14513 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14515         * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14516         * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14517         * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14518         * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14520 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14522         * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14524 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14526         * util/grub-pe2elf.c (ehdr): Make static.
14527         (shdr): Likewise.
14528         (num_sections): Likewise.
14529         (offset): Likewise.
14531 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14533         Eliminate ofpath limits and possible overflows.
14535         * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14536         (OF_PATH_MAX): Removed.
14537         (MAX_DISK_CAT): New const.
14538         (find_obppath): Use allocated rather than preallocated buffer.
14539         Return result. Argument of_path removed. All users updated.
14540         Add missing fdstat.
14541         (xrealpath): New function.
14542         (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14543         Allocate rather than use preallocated buffer. All users updated.
14544         (__of_path_common): Use allocated rather than preallocatecd buffer.
14545         Return result. Argument of_path removed. All users updated.
14546         (vendor_is_ATA): Read only needed part form the file.
14547         (check_sas): Allocate depending on contents rather than fixed.
14548         (main) [STANDALONE]: Handle NULL result.
14550 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14552         * grub-core/normal/completion.c (iterate_dev): Close the disk.
14554 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14556         Cryptodisk write support.
14558         * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14559         (grub_cryptodisk_decrypt): Moved logic to ...
14560         (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14561         (grub_cryptodisk_write): Implement.
14562         * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14563         (grub_util_fd_write): ... this. Make global.
14564         * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14566 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14568         * include/grub/list.h (grub_list_remove): Don't crash if element is
14569         removed twice.
14571 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14573         Rename ofconsole to console.
14575         * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14576         as sysnonym to console.
14577         * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14578         * grub-core/term/ieee1275/console.c: ... this. All users updated.
14579         Rename grub_ofconsole_ to grub_console_. All users updated
14580         (grub_console_term_output): Rename "ofconsole" to "console".
14581         * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14582         as "console".
14584 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14586         * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14587         handling.
14588         * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14589         GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14590         GRUB_DISK_DEVICE_FILE_ID.
14592 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14594         * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14595         and improve performance.
14597 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14599         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14600         missing ieee1275/ prefix on whole disk.
14602 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14604         * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14605         * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14607 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14609         * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14611 2012-01-29  Vladimir Serbinenko  <phcoder@gmail.com>
14613         Merge common RAID and LVM logic to an abstract diskfilter.
14614         Add LDM support using the same framework.
14616         * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14617         grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14618         (libgrubmods): Remove grub-core/disk/raid.c and
14619         grub-core/partmap/gpt.c.
14620         * grub-core/Makefile.core.def (ldm): New module.
14621         (raid): Renamed to diskfilter. All users updated.
14622         * grub-core/disk/raid.c: Moved to ...
14623         * grub-core/disk/diskfilter.c: ... here.
14624         * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14625         (lv_num): New var.
14626         (find_array): Renamed to ...
14627         (find_lv): ... this. Support multi-LV. Skip nameless LVs
14628         (grub_is_array_readable): Renamed to ...
14629         (grub_is_lv_readable): ... this. Support multinode hierarchy.
14630         (insert_array): New argument id.
14631         (is_node_readable): New function.
14632         (scan_device): Rename to ...
14633         (scan_disk): .. this. Restrict to one disk.
14634         (scan_devices): New function.
14635         (grub_diskfilter_iterate): Support multi-LV.
14636         Skip invisible and nameless LVs.
14637         (grub_diskfilter_memberlist): Support multi-LV.
14638         (grub_diskfilter_read_node): New function.
14639         (grub_raid_read): Most of logic moved to ...
14640         (read_segment): ... here
14641         (read_lv): New function.
14642         (grub_diskfilter_get_vg_by_uuid): New function.
14643         (grub_diskfilter_make_raid): Likewise.
14644         * grub-core/disk/ldm.c: New file.
14645         * grub-core/disk/lvm.c (vg_list): Removed.
14646         (lv_count): Likewise.
14647         (scan_depth): Likewise.
14648         (is_lv_readable): Likewise.
14649         (grub_lvm_getvalue): Advance pointer past the number.
14650         (find_lv): Removed.
14651         (do_lvm_scan): Refactored into ...
14652         (grub_lvm_detect): ... this. Support raid.
14653         (grub_lvm_iterate): Removed.
14654         (grub_lvm_memberlist): Likewise.
14655         (grub_lvm_open): Likewise.
14656         (grub_lvm_close): Likewise.
14657         (read_lv): Likewise.
14658         (read_node): Likewise.
14659         (is_node_readable): Likewise.
14660         (is_lv_readable): Likewise.
14661         (grub_lvm_read): Likewise.
14662         (grub_lvm_write): Likewise.
14663         (grub_lvm_dev): Use diskfilter
14664         (GRUB_MOD_INIT): Likewise.
14665         (GRUB_MOD_FINI): Likewise.
14666         * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14667         new interface.
14668         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14669         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14670         * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14671         grub_diskfilter_read_node.
14672         Fix a bug with xor.
14673         * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14674         grub_diskfilter_read_node.
14675         Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14676         * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14677         (grub_disk_dev_iterate): Move from here...
14678         * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14679         * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14680         Make global.
14681         (grub_hostdisk_find_partition_start): Likewise.
14682         (grub_hostdisk_os_dev_to_grub_drive): New function.
14683         (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14684         * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14685         * util/getroot.c (make_device_name): ... here.
14686         * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14687         Move to ...
14688         * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14689         * grub-core/kern/emu/hostdisk.c
14690         (convert_system_partition_to_system_disk): Move to ...
14691         * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14692         * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14693         * util/getroot.c (device_is_wholedisk): ... here.
14694         * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14695         * util/getroot.c (find_system_device): ... here.
14696         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14697         Move to ...
14698         * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14699         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14700         Move to ...
14701         * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14702         Handle LDM.
14703         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14704         Move to ...
14705         * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14706         * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14707         * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14708         DISKFILTER.
14709         * include/grub/raid.h: Renamed to ...
14710         * include/grub/diskfilter.h: ... this.
14711         * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14712         (GRUB_RAID_LAYOUT_*): Make into array.
14713         (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14714         (grub_diskfilter_vg): New struct.
14715         (grub_diskfilter_pv_id): Likewise.
14716         (grub_raid_member): Removed.
14717         (grub_raid_array): Likewise.
14718         (grub_diskfilter_pv): New struct.
14719         (grub_diskfilter_lv): Likewise.
14720         (grub_diskfilter_segment): Likewise.
14721         (grub_diskfilter_node): Likewise.
14722         (grub_diskfilter_get_vg_by_uuid): New proto.
14723         (grub_raid_register): Inline.
14724         (grub_diskfilter_unregister): Likewise.
14725         (grub_diskfilter_make_raid): New proto.
14726         (grub_diskfilter_vg_register): Likewise.
14727         (grub_diskfilter_read_node): Likewise.
14728         (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14729         * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14730         (grub_util_is_ldm): Likewise.
14731         (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14732         (grub_hostdisk_find_partition_start): Likewise.
14733         (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14734         * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14735         New definition.
14736         (grub_gpt_partition_map_iterate): New proto.
14737         * include/grub/lvm.h (grub_lvm_vg): Removed.
14738         (grub_lvm_pv): Likewise.
14739         (grub_lvm_lv): Likewise.
14740         (grub_lvm_segment): Likewise.
14741         (grub_lvm_node): Likewise.
14742         * util/getroot.c [...]
14743         * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14744         (probe_abstraction): Likewise.
14745         * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14746         (main): Remove dead logic.
14748 2012-01-28  Vladimir Serbinenko  <phcoder@gmail.com>
14750         Simplify root device discover and don't fail when trying to open
14751         incorrect devices.
14753         * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14754         function.
14755         (get_diskname_from_path): Likewise.
14756         (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14757         of iterating.
14759 2012-01-27  Vladimir Serbinenko  <phcoder@gmail.com>
14761         * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14763 2012-01-27  Vladimir Serbinenko  <phcoder@gmail.com>
14765         * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14766         pastthe end.
14768 2012-01-27  Vladimir Serbinenko  <phcoder@gmail.com>
14770         * util/grub-install.in: Add missing \.
14771         Reported by: gentoofan
14773 2012-01-26  Vladimir Serbinenko  <phcoder@gmail.com>
14775         * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14776         (direct_read): Use correct compressed size.
14777         (grub_squash_read_data): Likewise.
14779 2012-01-26  Vladimir Serbinenko  <phcoder@gmail.com>
14781         * docs/grub.texi (Platform limitations): New section.
14782         (Platform-specific operations): Likewise.
14783         * docs/grub-dev.texi (Porting): Likewise.
14785 2012-01-25  Vladimir Serbinenko  <phcoder@gmail.com>
14787         IEEE1275 disk write support.
14789         * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14790         const void *.
14791         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14792         * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14793         and seek loginc to ...
14794         (grub_ofdisk_prepare): ... here.
14795         (grub_ofdisk_write): Implement.
14797 2012-01-25  Vladimir Serbinenko  <phcoder@gmail.com>
14799         ARC disk write support.
14801         * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14802         (reopen): New argument writable. All users updated.
14803         Handle required access mode.
14804         (grub_arcdisk_write): Implement.
14805         * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14806         (grub_arc_firmware_vector): Make buffer to write a const buffer.
14808 2012-01-25  Vladimir Serbinenko  <phcoder@gmail.com>
14810         * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14811         (read_sblock): Don't attempt to read superblocks outside the disk size.
14813 2012-01-25  Vladimir Serbinenko  <phcoder@gmail.com>
14815         * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14816         first superblock to find the second one when possible.
14818 2012-01-25  Vladimir Serbinenko  <phcoder@gmail.com>
14820         * util/grub-install.in: Fix an ARC bug.
14821         Print a warning if no platform-specific setup is available.
14823 2012-01-24  Vladimir Serbinenko  <phcoder@gmail.com>
14825         Use static allocation rather than scratch pointer in reed_solomon.
14826         It decreases its size significantly and avoids a variable in .text.
14828         * grub-core/lib/reed_solomon.c (scratch): Removed.
14829         (chosenstat): New const or static array.
14830         (sigma): Likewise.
14831         (errpot): Likewise.
14832         (errpos): Likewise.
14833         (sy): Likewise.
14834         (mstat): Likewise.
14835         (errvals): Likewise.
14836         (eqstat): Likewise.
14837         (pol_evaluate): Replace x with log_x argument. All users updated.
14838         (syndroms): Removed.
14839         (gauss_solve): Use statically allocated arrays.
14840         (rs_recover): Likewise.
14841         Calculate syndroms directly.
14842         (decode_block): Use statically allocated arrays.
14843         (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14844         (main) [TEST]: Allow -DTEST -DSTANDALONE.
14846 2012-01-24  Vladimir Serbinenko  <phcoder@gmail.com>
14848         Eliminate fixed limit on reed solomon decoder length.
14850         * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14851         rather than hardcoding the address.
14852         * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14853         no_reed_solomon_length.
14854         Move gate_a20 to no-reed-solomon part.
14855         Don't force a particular size of no reed-solomon part.
14856         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14857         Removed.
14858         (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14859         * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14861 2012-01-24  Vladimir Serbinenko  <phcoder@gmail.com>
14863         * grub-core/commands/wildcard.c (match_files): Handle filenames
14864         without explicit device.
14865         (wildcard_expand): Don't add explicit device if not already present.
14866         * tests/grub_script_echo1.in: Add a new expansion test.
14868 2012-01-24  Vladimir Serbinenko  <phcoder@gmail.com>
14870         Replace single-linked with double-linked lists. It results in more
14871         compact and more efficient code.
14873         * grub-core/kern/list.c (grub_list_push): Moved from here ...
14874         * include/grub/list.h (grub_list_push): ... to here. Set prev.
14875         (grub_list_remove): Moved from here ...
14876         * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14877         (grub_prio_list_insert): Set prev.
14878         * include/grub/list.h (grub_list): Add prev. All users updated.
14880 2012-01-24  Vladimir Serbinenko  <phcoder@gmail.com>
14882         Handle newer autotools. Add some missing quotes while on it.
14884         * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14885         (pkglib_DATA): Move grub-mkconfig_lib from here ...
14886         (pkgdata_DATA): ... here.
14887         * Makefile.util.def (update-grub_lib): Removed.
14888         * conf/Makefile.common (pkglib_DATA): Removed.
14889         (pkglib_SCRIPTS): Likewise.
14890         (pkgdata_DATA): New variable.
14891         * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14892         needed.
14893         Add missing quotes.
14894         Remove unused variable while on it.
14895         * tests/util/grub-shell.in: Likewise.
14896         * util/grub-install.in: Likewise.
14897         * util/grub-mkconfig.in: Likewise.
14898         * util/grub-mknetdir.in: Likewise.
14899         * util/grub-mkrescue.in: Likewise.
14900         * util/grub-mkstandalone.in: Likewise.
14901         * util/grub.d/00_header.in: Likewise.
14902         * util/grub.d/10_hurd.in: Likewise.
14903         * util/grub.d/10_illumos.in: Likewise.
14904         * util/grub.d/10_kfreebsd.in: Likewise.
14905         * util/grub.d/10_linux.in: Likewise.
14906         * util/grub.d/10_netbsd.in: Likewise.
14907         * util/grub.d/10_windows.in: Likewise.
14908         * util/grub.d/20_linux_xen.in: Likewise.
14909         * util/grub.d/30_os-prober.in: Likewise.
14910         * util/update-grub_lib.in: Removed.
14912 2012-01-24  Seth Goldberg <seth.goldberg@oracle.com>
14914         * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14915         a workaround for intel problem.
14917 2012-01-23  Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14918 2012-01-23  Vladimir Serbinenko  <phcoder@gmail.com>
14919 2012-01-23  pfsmorigo
14921         * util/grub-install.in: Support dd'in into PreP partition.
14922         * util/grub-probe.c (probe): Support discovering partition type.
14923         (main): Support -t msdos_parttype.
14925 2012-01-23  Vladimir Serbinenko  <phcoder@gmail.com>
14927         * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14928         infinite recursion using counter.
14929         * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14930         init to skip it if the magic check fails.
14931         (dec_stream_header): Init s->crc32.
14933 2012-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
14934 2012-01-22  Zachary Bedell <pendorbound@gmail.com>
14935 2012-01-22  Richard Laager <rlaager@wiktel.com>
14937         * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14938         All users updated.
14939         (find_bestub): Determine correct size.
14940         (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14941         (scan_disk): Align the size down.
14942         Call check pool before find_bestub to have ashift.
14944 2012-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
14946         * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14947         dprintf in no-malloc zone.
14949 2012-01-22  Mario Limonciello <mario_limonciello@dell.com>
14951         * configure.ac: Add back in test for limits.h.
14953 2012-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
14955         Support 4K-sector NTFS.
14957         * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14958         (grub_ntfs_data): Remove blocksize.
14959         * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14960         Remove data argument. All users updated.
14962 2012-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
14964         * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14965         being in .text to avoid dprel references.
14966         * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14967         * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14968         (grub_arch_highmemsize): Likewise.
14969         * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14970         * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14971         * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14973 2012-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
14975         Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14977         * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14978         * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14980 2012-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
14982         * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14983         GRUB_UTIL.
14984         (grub_set_datetime_cmos): Likewise.
14986 2012-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
14988         Make XZ compression parameters dependent on target and not host CPU.
14990         * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14991         * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14993 2012-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
14995         * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14996         set but not used variable.
14998 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15000         * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
15001         created when no uuid support is compiled into mkfs.reiser.
15003 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15005         * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
15006         (utf8_to_macroman): Do the opposite.
15007         * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
15009 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15011         * configure.ac: Refise build qemu_mips w/o unifont.
15013 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15015         Eliminate grub_min/grub_max prone to overflow usage.
15017         * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
15018         (poll_nonroot_hub): Likewise.
15019         * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
15020         (grub_affs_label): Likewise.
15021         * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
15022         * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
15023         (grub_hfs_label): Likewise.
15024         * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
15025         * grub-core/fs/zfs/zfs.c (MIN): Remove.
15026         (zap_leaf_array_equal): Use grub_size. Remove MIN.
15027         (zap_leaf_array_get): Likewise.
15028         (dnode_get_path): Likewise.
15029         * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
15030         * grub-core/io/xzio.c (grub_xzio_read): Likewise.
15031         * grub-core/script/execute.c (grub_script_break): Likewise.
15032         * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
15033         grub_max.
15034         * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
15035         * include/grub/misc.h (grub_min): Removed.
15036         (grub_max): Likewise.
15038 2012-01-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15040         * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
15041         direct.inode = 0.
15043 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15045         * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
15047 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15049         * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
15051 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15053         * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
15054         * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
15056 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15058         * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
15059         rather than a hack for grub_strncasemap.
15061 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15063         Support multiple initrds
15064         Note: part of this was accidently committed in r3739.
15066         * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
15067         initrd.
15068         * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
15069         * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
15070         * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15071         * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15072         * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15074 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15076         * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
15077         disks with unknown size.
15078         * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
15080 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15082         Remove defines pertaining to arbitrary limits not affecting GRUB
15083         anymore.
15085         * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
15086         (EXT2_MAX_SYMLINKCNT): Likewise.
15087         * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
15088         * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
15089         * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
15090         (GRUB_PXE_MAX_BLKSIZE): Likewise.
15091         * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
15092         * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
15093         (DN_MAX_OBJECT_SHIFT): Likewise.
15094         (DN_MAX_OFFSET_SHIFT): Likewise.
15095         (DN_MAX_OBJECT): Likewise.
15096         (DNODES_PER_LEVEL_SHIFT): Likewise.
15097         * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
15098         (SPA_MAXBLOCKSIZE): Likewise.
15099         (SPA_BLOCKSIZES): Likewise.
15100         * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15101         (MZAP_MAX_BLKSZ): Likewise.
15103 2012-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
15105         * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15106         handle NULL appropriately.
15107         Remove MIN.
15109 2012-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
15111         Fix efiemu.
15113         * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15114         cpu/types.h.
15115         (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15116         * configure.ac: Fix efiemu check.
15118 2012-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
15120         * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15121         grub_probe.
15122         Reported by: adamwill
15124 2012-01-12  Seth Goldberg <seth.goldberg@oracle.com>
15126         * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15128 2012-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
15130         Fix handling of wide characters in gfxterm.
15132         * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15133         (clear_char): Likewise.
15134         (paint_char): Skip code == NULL chars.
15135         (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15137 2012-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
15139         * grub-core/normal/charset.c: Move comment to right place.
15141 2012-01-11  Vladimir Serbinenko  <phcoder@gmail.com>
15143         * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15144         (GRUB_AFFS_FLAG_FFS): Put back where it was.
15145         (grub_affs_mount): Revert the correct version checking.
15147 2012-01-11  Vladimir Serbinenko  <phcoder@gmail.com>
15149         * docs/grub.texi (Unicode): Mention several other unsupported features.
15151 2011-12-26  Vladimir Serbinenko  <phcoder@gmail.com>
15153         * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15154         case statements as compile-time one.
15155         (direct_read): Prevent spurious warnings.
15156         (grub_squash_read_data): Likewise.
15158 2011-12-26  Vladimir Serbinenko  <phcoder@gmail.com>
15160         Various squash4 fixes and LZO and XZ support.
15162         * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15163         Add xzembed source files.
15164         * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15165         * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15166         (grub_squash_inode): New subtype long_dir.
15167         (SQUASH_TYPE_LONG_DIR): New inode type.
15168         (COMPRESSION): New enum.
15169         (XZBUFSIZ): New const.
15170         (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15171         (read_chunk): Use data->decompress.
15172         (zlib_decompress): New function.
15173         (lzo_decompress): Likewise.
15174         (xz_decompress): Likewise.
15175         (squash_mount): Set new data fields.
15176         (grub_squash_iterate_dir): Handle long dir.
15177         (squash_unmount): Free xzdec and xzbuf.
15178         (grub_squash_open): Check ino type.
15179         (direct_read): Stylistic fixes. Use data->decompress.
15180         (grub_squash_read_data): Likewise.
15181         * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15182         (get_byte): Likewise.
15183         (grub_zlib_disk_read): Removed.
15184         * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15185         (GRUB_POSIX_BOOL_DEFINED): New define.
15186         * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15187         * grub-core/lib/xzembed/xz.h: Addmissing includes.
15188         [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15189         * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15191 2011-12-26  Vladimir Serbinenko  <phcoder@gmail.com>
15193         Don't override more informative errors.
15195         * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15196         * grub-core/font/font.c (open_section): Likewise.
15197         * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15198         filename. Don't override errors.
15199         (grub_cmd_openbsd_ramdisk): Don't override errors.
15200         * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15201         (grub_cmd_initrd): Likewise.
15202         * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15203         (grub_cmd_initrd): Likewise.
15204         * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15205         (grub_cmd_linux): Likewise.
15206         (grub_cmd_initrd): Likewise.
15207         (grub_cmd_payload): Likewise.
15208         * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15209         * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15210         (grub_cmd_module): Likewise.
15211         * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15212         * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15213         * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15214         (grub_cmd_xnu_mkext): Likewise.
15215         (grub_cmd_xnu_ramdisk): Likewise.
15216         (grub_xnu_check_os_bundle_required): Likewise.
15217         (grub_xnu_load_kext_from_dir): Likewise.
15218         (grub_cmd_xnu_kextdir): Likewise.
15219         * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15221 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15223         * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15224         as 1024 in block size field. Found on one of my test images.
15225         Small optimisation while on it.
15227 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15229         * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15230         * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15231         (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15232         performance fixes while on it.
15233         (grub_sfs_close): Fix memory leak while on it.
15234         (grub_sfs_label): Convert Latin1 to UTF-8.
15236 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15238         * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15239         space to avoid overflows.
15240         (grub_hfs_label): Convert from macroman to UTF-8.
15242 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15244         * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15246 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15248         * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15250 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15252         * unicode: Import Unicode 6.0 data.
15254 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15256         * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15257         outside of range.
15259 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15261         Avoid cutting in the middle of UTF-8 character.
15263         * include/grub/charset.h (grub_getend): New function.
15264         * grub-core/script/function.c (grub_script_function_find): Use
15265         grub_getend.
15266         * grub-core/normal/completion.c (add_completion): Likewise.
15268 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15270         * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15271         (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15272         * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15273         (GRUB_UNICODE_TAG_END): Likewise.
15274         (GRUB_UNICODE_LAST_VALID): Likewise.
15276 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15278         * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15279         len and make it smaller. All users updated.
15280         * util/import_unicode.py: Put length and not end character.
15281         Check length.
15283 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15285         Make better Unicode-compliant and unify some UTF-8 code pathes.
15287         * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15288         valid character.
15289         (grub_is_valid_utf8): Use grub_utf8_process.
15290         Check resulting code range.
15291         (grub_utf8_to_ucs4): Use grub_utf8_process.
15292         * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15293         valid character.
15295 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15297         * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15299 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15301         * docs/grub.texi (Filesystems): Mention AFS.
15303 2011-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
15305         * docs/grub.texi (Filesystems): Clarify restrictions.
15306         (Regexp): Mention non-Unicode regexp behaviour.
15307         (Other): Mention non-Unicode matching behaviour.
15309 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15311         Make HFS implementation use MacRoman.
15313         * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15314         (macroman): New const array.
15315         (macroman_to_utf8): New function.
15316         (utf8_to_macroman): Likewise.
15317         (grub_hfs_find_dir): Use utf8_to_macroman.
15318         (grub_hfs_dir): Use macroman_to_utf8.
15319         Set case_insensitive.
15321 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15323         * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15325 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15327         Integrate hints into autogeneration scripts.
15329         * docs/grub.texi (Filesystems): Add a hostdisk example.
15330         * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15331         (grub-probe): Add ofpath.
15332         * gentpl.py: Remove group nosparc64.
15333         * grub-core/commands/search.c (cache_entry): New struct.
15334         (cache): New var.
15335         (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15336         * grub-core/commands/search_wrap.c (options): Add platform-specific
15337         hint options.
15338         (grub_cmd_search): Handle platform-specific hints.
15339         (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15340         * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15341         (grub_util_biosdisk_data): Likewise.
15342         (grub_util_biosdisk_open): Set device_map.
15343         (read_device_map): Handle "" as indication of no map.
15344         Set device_map.
15345         (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15346         (grub_util_biosdisk_get_compatibility_hint): New function.
15347         * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15348         * include/grub/emu/hostdisk.h
15349         (grub_util_biosdisk_get_compatibility_hint): New proto.
15350         * util/grub-install.in: Don't call grub-mkdevicemap.
15351         Add platform-specific hint to load.cfg.
15352         * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15353         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15354         hints. Set root preliminary to compatibility hint, not to OS name.
15355         * util/grub-probe.c (PRINT_*): Add hints.
15356         (print): Make static.
15357         (escape_of_path): New function.
15358         (guess_bios_drive): Likewise.
15359         (guess_efi_drive): Likewise.
15360         (guess_baremetal_drive): Likewise.
15361         (print_full_name): Likewise.
15362         (probe): Handle hints.
15363         (main): Likewise.
15364         * util/ieee1275/devicemap.c: Removed.
15365         * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15366         updated.
15367         (grub_util_devname_to_ofpath): Return NULL on failure.
15369         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15370         resource leak.
15371         * util/getroot.c (grub_util_pull_device): Fix memory leak.
15373         * po/POTFILES.in: Regenerated.
15375         Allow purely long options
15377         * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15378         (SHORT_ARG_USAGE): Likewise.
15379         (grub_arg_show_help): Compare opt with help_options.
15380         (parse_option): Receive opt as argument. If makes big simplificatons.
15381         All users updated
15383 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15385         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15386         Restructure to avoid warning.
15388 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15390         * util/grub-install.in: Account for possible escaped comma in device
15391         name.
15393 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15395         * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15396         channel.
15398 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15400         * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15401         allocation and zero-setting.
15402         (grub_ieee1275_get_devname): Check that alias is complete.
15404 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15406         * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15407         unaligned segments.
15409 2011-12-24  Vladimir Serbinenko  <phcoder@gmail.com>
15411         * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15412         prefix.
15413         (grub_ofdisk_open): Check and discard ieee1275 prefix.
15414         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15415         Add ieee1275 prefix.
15417 2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
15419         * docs/grub.texi (Filesystems): Update.
15421 2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
15423         Support odc, newc and bigendian cpio formats.
15425         * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15426         * grub-core/Makefile.core.def (newc): New module.
15427         (odc): Likewise.
15428         (cpio_be): Likewise.
15429         * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15430         (MAGIC): Likewise.
15431         (MAGIC2): Likewise.
15432         (head) [MODE_ODC]: Adapt for the format.
15433         (head) [MODE_NEWC]: Likewise.
15434         (head) [!MODE_*]: Write fields of interest as arrays.
15435         (MAGIC_USTAR): Removed.
15436         (read_number) [MODE_NEWC]: Change to hex.
15437         (read_number) [!MODE_*]: Parse binary arrays.
15438         (grub_cpio_find_file): Factor out the code for better structure and
15439         always use read_number.
15440         (grub_cpio_mount): Use MAGIC and MAGIC2.
15441         (grub_cpio_dir): Exit on first hook non-0 return.
15442         (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15443         (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15444         (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15445         (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15446         (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15447         (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15448         * grub-core/fs/newc.c: New file.
15449         * grub-core/fs/odc.c: Likewise.
15450         * grub-core/fs/cpio_be.c: Likewise.
15452 2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
15454         Fix handling of tar numbers occupying the whole field.
15456         * grub-core/fs/cpio.c (read_number): New function.
15457         (grub_cpio_find_file): Use read_number instead of strtoull.
15459 2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
15461         * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15462         occupying the whole field size.
15464 2011-12-23  Lukas Anzinger <l.anzinger@gmail.com>
15466         * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15468 2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
15470         * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15472 2011-12-23  Seth Goldberg <seth.goldberg@oracle.com>
15474         * grub-core/Makefile.core.def (lzma_decompress): Add missing
15475         TARGET_IMG_LDFLAGS.
15477 2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
15479         * util/getroot.c (ESCAPED_PATH_MAX): New define.
15480         (mountinfo_entry): Increase the field size to take escaping into
15481         account.
15482         (find_root_device_from_libzfs): Add one byte to size of strings for
15483         security.
15485 2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
15487         * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15488         an assert.
15489         * util/grub-setup.c (setup): Likewise.
15491 2011-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
15493         * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15494         _LzmaDecodeA.
15496 2011-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
15498         * docs/grub.texi (Internationalisation): New section.
15500 2011-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
15502         * docs/grub.texi (Loopback booting): New section.
15504 2011-12-22  Keshav P R  <the.ridikulus.rat@gmail.com>
15506         * util/grub-mkstandalone.in: Fix minor typo errors.
15508 2011-12-20  Vladimir Serbinenko  <phcoder@gmail.com>
15510         IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15512         * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15513         net/icmp.c and net/icmp6.c.
15514         (http): New module.
15515         (priority_queue): Likewise.
15516         * grub-core/io/bufio.c: Rewritten.
15517         * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15518         TYPE_WITH_CONFIGFILE_OPTION.
15519         (legacy_commands): Add bootp and dhcp.
15520         (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15521         (grub_legacy_parse): Likewise.
15522         * grub-core/lib/priority_queue.c: New file.
15523         * grub-core/net/arp.c: Add missing license header.
15524         (arp_find_entry): Removed.
15525         (arp_find_entry): Likewise.
15526         (grub_net_arp_resolve): Rename to ...
15527         (grub_net_arp_send_request): ...this.
15528         (grub_net_arp_receive): New card argument.
15529         * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15530         Set router and DNS server.
15531         (grub_net_configure_by_dhcp_ack): Handle routing information.
15532         (grub_cmd_bootp): Set checksum.
15533         (grub_bootp_init): Remove net_dhcp.
15534         * grub-core/net/dns.c: New file.
15535         * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15536         completion.
15537         (get_card_packet): Handle allocation.
15538         (grub_efinet_findcards): Set mtu.
15539         * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15540         (get_card_packet): Handle allocation.
15541         (emucard): Set mtu.
15542         * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15543         (GRUB_MOD_INIT): Set mtu.
15544         * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15545         mtu.
15546         (get_card_packet): Handle allocation.
15547         (grub_ofnet_findcards): Set mtu.
15548         * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15549         assert.
15550         (grub_net_recv_ethernet_packet): Handle IPv6.
15551         * grub-core/net/http.c: New file.
15552         * grub-core/net/icmp.c: Likewise.
15553         * grub-core/net/icmp6.c: Likewise.
15554         * grub-core/net/ip.c (ip6addr): New type.
15555         (ip6hdr): Likewise.
15556         (reassemble): Likewise.
15557         (cmp): New function.
15558         (reassembles): New variable.
15559         (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15560         (id): New variable.
15561         (send_fragmented): New function.
15562         (grub_net_send_ip_packet): Rename to ...
15563         (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15564         Handle non-UDP.
15565         (grub_net_recv_ip_packets): Rename to ...
15566         (handle_dgram): ... this. Check checksum. Handle non-UDP.
15567         (free_rsm): New function.
15568         (free_old_fragments): Likewise.
15569         (grub_net_recv_ip4_packets): New function.
15570         (grub_net_send_ip6_packet): Likewise.
15571         (grub_net_send_ip_packet): Likewise.
15572         (grub_net_recv_ip6_packets): Likewise.
15573         (grub_net_recv_ip_packets): Likewise.
15574         * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15575         (LINK_LAYER_CACHE_SIZE): New const.
15576         (link_layer_find_entry): New function.
15577         (grub_net_link_layer_add_address): Likewise.
15578         (grub_net_link_layer_resolve_check): Likewise.
15579         (grub_net_link_layer_resolve): Likewise.
15580         (grub_net_ipv6_get_slaac): Likewise.
15581         (grub_net_ipv6_get_link_local): Likewise.
15582         (grub_cmd_ipv6_autoconf): Likewise.
15583         (parse_ip): Handle one number representation.
15584         (parse_ip6): New functoion.
15585         (match_net): Handle IPv6.
15586         (grub_net_resolve_address): Handle IPv6 and DNS.
15587         (grub_net_resolve_net_address): Handle IPv6.
15588         (route_cmp): New function.
15589         (grub_net_route_address): Find best route.
15590         (grub_net_addr_to_str): Handle IPv6.
15591         (grub_net_addr_cmp): New function.
15592         (grub_net_add_addr): Register local route.
15593         (print_net_address): Handle net address.
15594         (grub_net_poll_cards): Retransmit TCP.
15595         (grub_net_poll_cards_idle_real): Likewise.
15596         (have_ahead): New function.
15597         (grub_net_seek_real): Use underlying seek.
15598         (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15599         * grub-core/net/tcp.c: New file.
15600         * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15601         (cmp): New function.
15602         (ack): Likewise.
15603         (tftp_receive): Handle unordered input.
15604         (destroy_pq): New function.
15605         (tftp_close): Close pq.
15606         * grub-core/net/udp.c: Put missing license header.
15607         (grub_net_udp_socket): New function.
15608         (udp_socket_register): Likewise.
15609         (grub_net_udp_close): Likewise.
15610         (grub_net_recv_udp_packet): Check checksum.
15611         * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15612         * include/grub/misc.h (grub_memchr): New function.
15613         * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15614         (grub_net_card_driver): Return buf in recv.
15615         (grub_net_slaac_mac_list): New struct.
15616         (grub_network_level_protocol_id): Add ipv6.
15617         (grub_net_network_level_addr): Likewise.
15618         (grub_net_network_level_net_addr): Likewise.
15619         (grub_net_app_protocol): Add seek.
15620         (grub_net_socket): Removed.
15621         (grub_net_sockets): Likewise.
15622         (grub_net_socket_register): Likewise.
15623         (grub_net_socket_unregister): Likewise.
15624         (FOR_NET_SOCKETS): Likewise.
15625         (grub_net_add_addr): Add const.
15626         (GRUB_NET_BOOTP_*): New enum.
15627         (grub_net_addr_cmp): New proto.
15628         (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15629         (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15630         (grub_net_hwaddr_to_str): NEw proto.
15631         (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15632         (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15633         (grub_dns_init): New proto.
15634         (grub_dns_fini): Likewise.
15635         (grub_net_tcp_retransmit): Likewise.
15636         (grub_net_link_layer_add_address): Likewise.
15637         (grub_net_link_layer_resolve_check): Likewise.
15638         (grub_net_link_layer_resolve): Likewise.
15639         (grub_net_dns_lookup): Likewise.
15640         (grub_net_add_dns_server): Likewise.
15641         (grub_net_remove_dns_server): Likewise.
15642         (GRUB_NET_TRIES): New const.
15643         (GRUB_NET_INTERVAL): Likewise.
15644         * include/grub/net/arp.h: Mostly rewritten.
15645         * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15646         * include/grub/net/ip.h: Mostly rewritten.
15647         * include/grub/net/netbuff.h: Indent.
15648         * include/grub/net/tcp.h: New file.
15649         * include/grub/net/udp.h: Mostly rewritten.
15650         * include/grub/priority_queue.h: New file.
15651         * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15652         (grub_swap_bytes64_compile_time): Likewise.
15653         (grub_cpu_to_be16_compile_time): Likewise.
15654         (grub_cpu_to_be32_compile_time): Likewise.
15655         (grub_cpu_to_be64_compile_time): Likewise.
15656         (grub_be_to_cpu64_compile_time): Likewise.
15658 2011-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
15660         * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15661         UINT_TO_PTR with cast.
15663 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15665         * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15666         don't use them.
15668 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15670         * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15671         already there.
15673 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15675         * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15676         confusing ipxe.
15678 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15680         * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15681         Add missing const attribute.
15682         * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15683         Likewise.
15684         * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15685         Likewise.
15687 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15689         * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15690         misaligned access.
15691         (serpent_setkey): Likewise.
15692         (serpent_encrypt_internal): Likewise.
15693         (serpent_decrypt_internal): Likewise.
15694         (serpent_encrypt): Don't put an alignment-increasing cast.
15695         (serpent_decrypt): Likewise.
15696         (serpent_test): Likewise.
15698 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15700         * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15702 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15704         Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15706         * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15707         grub_addr_t casts.
15708         (PTR_TO_UINT64): Likewise.
15709         (PTR_TO_UINT32): Likewise.
15711 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15713         * util/grub-mkimage.c (generate_image): Decrease the higher limit
15714         because of stack.
15715         * util/grub-setup.c (setup): Don't add redundancy past the higher load
15716         limit.
15718 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15720         * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15721         text_width > available width a bit more gracefully.
15723 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15725         * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15726         current address calculation.
15728 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15730         * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15731         stack.
15732         (encode_block): Likewise.
15734 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15736         * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15737         certainety.
15739 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15741         * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15742         non-RS part to avoid RS messing with GDT.
15743         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15744         Increase to suit in realmode routines.
15746 2011-12-15  Vladimir Serbinenko  <phcoder@gmail.com>
15748         * grub-core/kern/i386/realmode.S: Increase alignment.
15749         * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15751 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
15753         * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15754         be deterministic.
15755         (syndroms): Compute 0 syndrom.
15756         (rs_recover): Use 0 syndrom.
15758 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
15760         * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15762 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
15764         * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15765         brackets.
15767 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
15769         * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15770         account.
15771         (get_top_pad): Likewise.
15772         (get_right_pad): Likewise.
15773         (get_bottom_pad): Likewise.
15775 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
15777         * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15779 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
15781         * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15782         attribute as the structure isn't guaranteed to be properly aligned.
15783         (grub_efi_pci_device_path): Likewise.
15784         (grub_efi_pccard_device_path): Likewise.
15785         (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15786         specify the size of `memory_type'.
15787         (grub_efi_vendor_device_path): Likewise.
15788         (grub_efi_controller_device_path): Likewise.
15789         (grub_efi_acpi_device_path): Likewise.
15790         (grub_efi_expanded_acpi_device_path): Likewise.
15791         (grub_efi_atapi_device_path): Likewise.
15792         (grub_efi_scsi_device_path): Likewise.
15793         (grub_efi_fibre_channel_device_path): Likewise.
15794         (grub_efi_1394_device_path): Likewise.
15795         (grub_efi_usb_device_path): Likewise.
15796         (grub_efi_usb_class_device_path): Likewise.
15797         (grub_efi_i2o_device_path): Likewise.
15798         (grub_efi_mac_address_device_path): Likewise.
15799         (grub_efi_ipv4_device_path): Likewise.
15800         (grub_efi_ipv6_device_path): Likewise.
15801         (grub_efi_infiniband_device_path): Likewise.
15802         (grub_efi_uart_device_path): Likewise.
15803         (grub_efi_vendor_messaging_device_path): Likewise.
15804         (grub_efi_hard_drive_device_path): Likewise.
15805         (grub_efi_cdrom_device_path): Likewise.
15806         (grub_efi_vendor_media_device_path): Likewise.
15807         (grub_efi_file_path_device_path): Likewise.
15808         (grub_efi_protocol_device_path): Likewise.
15809         (grub_efi_piwg_device_path): Likewise.
15810         (grub_efi_bios_device_path): Likewise.
15812 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
15814         * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15815         (grub_ucs4_to_utf8_alloc): Likewise.
15816         (grub_ucs4_to_utf8): Likewise.
15817         * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15818         (grub_ucs4_to_utf8_alloc): Likewise.
15820 2011-12-14  Vladimir Serbinenko  <phcoder@gmail.com>
15822         AFFS never uses unicode.
15824         * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15825         (grub_latin1_to_utf8): New inline function.
15826         * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15828 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15830         * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15831         overflow.
15833 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15835         * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15836         (grub_squash_dirent_header): Likewise.
15837         (read_chunk): Don't double swap.
15838         (grub_squash_iterate_dir): Fix swap sizes.
15840 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15842         * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15844 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15846         * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15847         (grub_hfs_iterate_dir): Likewise.
15849 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15851         Fix video on platforms where unaligned access is forbidden.
15852         Make several optimisations while on it.
15854         * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15855         Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15856         (grub_video_fbblit_replace_32bit_1bit): Likewise.
15857         (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15858         Disable.
15859         (grub_video_fbblit_replace_16bit_1bit):
15860         Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15861         (grub_video_fbblit_replace_8bit_1bit): Likewise.
15862         (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15863         (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15864         (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15865         (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15866         (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15867         (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15868         (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15869         (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15870         (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15871         (grub_video_fbblit_replace_index_RGB888): Likewise.
15872         (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15873         (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15874         (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15875         (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15876         (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15877         (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15878         (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15879         Disable.
15880         (grub_video_fbblit_blend_XXX565_1bit):
15881         Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15882         * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15883         * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15884         void *.
15885         * grub-core/video/fb/video_fb.c (common_blitter)
15886         [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15887         (grub_video_fb_create_render_target_from_pointer)
15888         [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15889         * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15890         * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15891         definition.
15892         * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15894 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15896         * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15897         HH22 and HM10 relocations.
15899 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15901         * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15903 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15905         * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15906         allocation succeeded.
15908 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15910         * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15911         argument a u8 pointer. All users updated.
15912         Handle unaligned buffers.
15914 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15916         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15917         add_part to workaround compiler bug.
15919 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15921         * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15923 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15925         * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15926         Reserve alignment invariants.
15927         (grub_multiboot_load): Likewise.
15928         (retrieve_video_parameters): Likewise.
15929         (grub_multiboot_make_mbi): Likewise.
15931 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15933         * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15934         incorrect pointer.
15936 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15938         * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15939         (grub_pata_pio_write): Likewise.
15941 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15943         Add noreturn attributes and remove unreachable code.
15945         * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15946         code.
15947         * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15948         code. Mark as noreturn.
15949         * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15950         * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15951         * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15952         unreachable code.
15953         * grub-core/kern/main.c (grub_main): Mark as noreturn.
15954         * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15955         * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15956         * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15957         * include/grub/kernel.h (grub_main): Mark as noreturn.
15958         * include/grub/reader.h (grub_rescue_run): Likewise.
15960 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15962         * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15963         redundant declaration.
15965 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15967         * include/grub/net.h (grub_net_network_level_interfaces): Remove
15968         redundant declaration.
15969         (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15971 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15973         * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15974         to ensure alignment.
15975         (grub_hdparm_print_identify): Make argument uint16 * to ensure
15976         alignment. Ensure tmp alignment.
15977         (grub_cmd_hdparm): Ensure buf alignment.
15978         * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15979         to ensure alignment.
15980         (grub_ata_dumpinfo): Ensure text alignment.
15981         (grub_atapi_identify): Preserve alignment invariant.
15982         (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15984 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15986         * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15987         * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15988         * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15989         * include/grub/misc.h (grub_reboot)
15990         [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15991         (grub_halt) [__mips__]: Likewise.
15993 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
15995         * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15996         Remove redundant declaration.
15997         (grub_mmap_get_post64): Likewise.
15998         (grub_mmap_get_upper): Likewise.
15999         (grub_mmap_get_lower): Likewise.
16001 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16003         * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
16004         uint32_t * to ensure alignment.
16005         (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
16007 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16009         * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
16010         uint16_t * to ensure alignment.
16011         (sun_pc_partition_map_iterate): Make `block' a union to ensure
16012         alignment.
16014 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16016         * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
16017         to ensure alignment.
16018         (sun_partition_map_iterate): Make `block' a union to ensure alignment.
16020 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16022         * grub-core/fs/ntfs.c (u16at): Make into inline function.
16023         Handle unaligned pointers.
16024         (u32at): Likewise.
16025         (u64at): Likewise.
16026         (fixup): Use byte access instead of v16at.
16027         (find_attr): Fix imporper usage of v32at.
16028         (read_data): Likewise.
16029         (list_file): Handle byte-swapping and unaligned strings.
16030         (grub_ntfs_label): Likewise.
16032 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16034         * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
16035         as it's not necessarily aligned.
16037 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16039         * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
16040         redundant declaration.
16041         (grub_serial_init): Likewise.
16042         (grub_terminfo_init): Likewise.
16044 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16046         * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
16047         function.
16048         (ZAP_HASH_IDX): Likewise.
16049         (ZAP_LEAF_HASH_SHIFT): Likewise.
16050         (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
16051         (LEAF_HASH): Likewise.
16052         (ZAP_LEAF_NUMCHUNKS): Likewise.
16053         (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
16054         alignment invariants. Return pointer. All users updated.
16055         (ZAP_LEAF_ENTRY): Make into inline function.
16056         (NBBY): Removed.
16057         (xor): LIkewise.
16058         (xor_out): Use grub_crypto_xor.
16059         (dnode_get_path): Use grub_get_unaligned.
16060         (nvlist_find_value): Likewise.
16061         (grub_zfs_nvlist_lookup_uint64): Likewise.
16062         (grub_zfs_nvlist_lookup_string): Likewise.
16063         (get_nvlist_size): Likewise.
16064         (grub_zfs_open): Likewise.
16065         (fill_fs_info): Likewise.
16066         (grub_zfs_dir): Likewise.
16067         * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
16068         alignment invariants.
16069         * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
16070         necessarily aligned.
16072 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16074         * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
16076 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16078         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
16079         arithmetic to conserve alignment invariants.
16081 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16083         * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
16084         redundant declaration.
16085         (grub_efiemu_mm_obtain_request): Likewise.
16086         (grub_efiemu_prepare): Likewise.
16088 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16090         * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
16091         to match types.
16093 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16095         * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
16096         case of aunaligned recptr.
16097         (grub_hfsplus_read_block): Declare extoverflow as key to ensure
16098         alignment.
16099         (grub_hfsplus_btree_search): Handle unaligned index.
16101 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16103         * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16104         to get freetag and skip.
16106 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16108         * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16109         array.
16110         (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16111         (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16113 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16115         * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16116         name for checksum and fix allocation algorithm.
16118 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16120         * include/grub/types.h (grub_properly_aligned_t): New type.
16121         (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16122         (grub_get_unaligned16): Add explicit casts.
16123         (grub_get_unaligned32): Likewise.
16124         (grub_get_unaligned64): Likewise.
16125         (grub_set_unaligned16): New function.
16126         (grub_set_unaligned32): Likewise.
16128 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16130         * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16132 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16134         * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16135         * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16136         * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16138 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16140         * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16141         conditionals.
16143 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16145         * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16146         * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16148 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16150         Unify and improve RAID and crypto xor.
16152         * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16153         changed to grub_crypto_xor
16154         * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16155         * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16156         Use bigger types when possible.
16158 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16160         * grub-core/disk/raid.c (scan_devices): Fix condition.
16162 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16164         * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16165         Make name a const ptr.
16167 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16169         * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16170         first argument a const pointer.
16171         * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16172         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16173         proto.
16174         (grub_children_iterate): Likewise.
16175         (grub_machine_mmap_iterate): Remove redundant declaration.
16177 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16179         * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16180         (grub_cmd_acpi) [!x86]: Disable EBDA.
16182 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16184         Enable UTF8 in gnulib regexp.
16186         * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16187         * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16188         (isupper): Use grub_isupper.
16189         (isascii): New inline function.
16190         * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16191         * grub-core/lib/posix_wrap/wctype.h: Likewise.
16192         * grub-core/normal/charset.c (grub_utf8_process): New function.
16193         (grub_utf8_to_utf16): Use grub_utf8_process.
16194         (grub_encode_utf8_character): New function.
16195         (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16196         * include/grub/charset.h (grub_utf8_process): New declaration.
16197         (grub_encode_utf8_character): Likewise.
16198         * include/grub/misc.h (grub_islower): New inline function.
16199         (grub_isupper): Likewise.
16200         (grub_strchrsub): Moved down to fix the definitions.
16202 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16204         * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16205         specification.
16207 2011-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
16209         * include/grub/loader.h (grub_loader_register_preboot_hook):
16210         Use struct preboot * and not void * for handle. All users updated.
16211         (grub_loader_unregister_preboot_hook): Likewise.
16213 2011-12-12  Vladimir Serbinenko  <phcoder@gmail.com>
16215         * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16216         * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16217         UTF-16-BE. All users updated.
16218         (grub_hfsplus_cmp_catkey): Fix unicode handling.
16219         (grub_hfsplus_iterate_dir): Likewise.
16220         (grub_hfsplus_label): Likewise.
16222 2011-12-12  Vladimir Serbinenko  <phcoder@gmail.com>
16224         * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16226 2011-11-30  Vladimir Serbinenko  <phcoder@gmail.com>
16228         Add missing const qualifiers.
16230         * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16231         * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16232         * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16233         * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16234         (grub_lvm_check_flag): Likewise.
16235         * grub-core/efiemu/i386/coredetect.c
16236         (grub_efiemu_get_default_core_name): Likewise
16237         * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16238         * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16239         * grub-core/fs/ntfs.c (fixup): Likewise.
16240         * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16241         * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16242         (fzap_lookup): Likewise.
16243         (zap_lookup): Likewise.
16244         * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16245         * grub-core/lib/legacy_parse.c (check_option): Likewise.
16246         * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16247         * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16248         (grub_freebsd_add_meta_module): Likewise.
16249         (grub_cmd_freebsd_module): Likewise.
16250         * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16251         * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16252         (grub_xnu_writetree_get_size): Likewise.
16253         (grub_xnu_writetree_toheap_real): Likewise.
16254         (grub_xnu_find_key): Likewise.
16255         (grub_xnu_create_key): Likewise.
16256         (grub_xnu_create_value): Likewise.
16257         (grub_xnu_register_memory): Likewise.
16258         (grub_xnu_check_os_bundle_required): Likewise.
16259         (grub_xnu_scan_dir_for_kexts): Likewise.
16260         (grub_xnu_load_kext_from_dir): Likewise.
16261         * grub-core/normal/color.c (color_list): Likewise.
16262         * grub-core/normal/completion.c (current_word): Likewise.
16263         * grub-core/normal/menu_entry.c (insert_string): Likewise.
16264         * grub-core/term/serial.c (grub_serial_find): Likewise.
16265         * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16266         * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16267         Likewise.
16268         * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16269         (grub_freebsd_add_meta_module): Likewise.
16270         * include/grub/lib/arg.h (grub_arg_option): Likewise.
16271         * include/grub/net.h (grub_net_card_driver): Likewise.
16272         (grub_net_card): Likewise.
16273         (grub_net_app_protocol): Likewise.
16274         * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16275         * include/grub/serial.h (grub_serial_find): Likewise.
16276         * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16277         * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16278         (grub_xnu_create_value): Likewise.
16279         (grub_xnu_find_key): Likewise.
16280         (grub_xnu_scan_dir_for_kexts): Likewise.
16281         (grub_xnu_load_kext_from_dir): Likewise.
16283         * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16284         * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16285         * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16286         Moved from here ...
16287         * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16289 2011-11-28  Colin Watson  <cjwatson@ubuntu.com>
16291         * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16293 2011-11-27  Vladimir Serbinenko  <phcoder@gmail.com>
16295         * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16296         (read_device): Fix size calculation.
16298 2011-11-25  Robert Millan  <rmh@gnu.org>
16300         * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16301         (find_root_device_from_libzfs): Add zpool output parser to be used
16302         as fallback when libzfs isn't available.
16304 2011-11-25  Seth Goldberg <seth.goldberg@oracle.com>
16306         * po/Makefile.in.in: Add missing escape-continuation.
16308 2011-11-25  Vladimir Serbinenko  <phcoder@gmail.com>
16310         * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16312 2011-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
16314         * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16316 2011-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
16318         * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16320 2011-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
16322         * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16324 2011-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
16326         * grub-core/lib/adler32.c: Add missing license specification.
16327         * grub-core/lib/crc64.c: Likewise.
16328         * grub-core/loader/i386/pc/plan9.c: Likewise.
16329         * grub-core/partmap/plan.c: Likewise.
16331 2011-11-13  Lubomir Kundrak  <lkundrak@redhat.com>
16333         Add facility to debug GRUB with gdb under qemu.
16335         * grub-core/gdb_grub.in: New file.
16336         * grub-core/gmodule.pl.in: Likewise.
16337         * grub-core/Makefile.core.def (gmodule.pl): New script.
16338         (gdb_grub): Likewise.
16340 2011-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
16342         * util/grub-mount.c (argp_parser): Accept relative pathes.
16343         * util/grub-fstest.c (argp_parser): Likewise.
16345 2011-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
16347         Plan9 support.
16349         * Makefile.util.def (libgrubmods): Add
16350         grub-core/partmap/plan.c.
16351         * docs/grub.texi: Notice Plan9 support.
16352         * grub-core/Makefile.core.def (plan9): New module.
16353         (part_plan): Likewise.
16354         * grub-core/loader/i386/pc/plan9.c: New file.
16355         * grub-core/partmap/plan.c: Likewise.
16356         * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16357         define.
16358         (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16359         * include/grub/mm.h (grub_extend_alloc): New inline function.
16361 2011-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
16363         Make Reed-Solomon faster by using power of generator representation of
16364         GF(256)*.
16366         * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16367         (gf_double_t): Likewise.
16368         (gf_invert): Removed.
16369         (gf_powx): New array.
16370         (gf_powx_inv): Likewise.
16371         (scratch): Move higher.
16372         (gf_reduce): Removed.
16373         (gf_mul): Use powx.
16374         (gf_invert): Likewise.
16375         (init_inverts): Replaced with ...
16376         (init_powx): ...this. All users updated.
16377         (pol_evaluate): Replace multiplications with additions.
16378         (rs_encode): Likewise.
16379         (gauss_eliminate): Call gf_invert.
16380         (grub_reed_solomon_add_redundancy): Call init_powx.
16381         (grub_reed_solomon_recover): Call init_powx unconditionally.
16383 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16385         * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16387 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16389         * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16390         disk->partiton for safety.
16392 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16394         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16395         Fix a memory leak.
16396         (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16398 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16400         * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16402 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16404         * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16406 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16408         Fix spaces handling in proc/self/mountinfo.
16410         * util/getroot.c (unescape): New function.
16411         (grub_find_root_device_from_mountinfo): Use unescape.
16413 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16415         Support ZFS embedding.
16417         * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16418         (grub_zfs_fs): Register grub_zfs_embed.
16420 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16422         Fix MIPS compilation.
16424         * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16425         * include/grub/offsets.h: Rename decompressor fields from
16426         GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16427         * util/grub-mkimage.c (image_targets): Use new names.
16429 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16431         Defer multiboot device parsing until we're in compressed part.
16433         * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16434         bsd_part. setdevice has fallen into disuse.
16435         * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16436         (bsd_part): Likewise.
16437         (boot_dev): New variable.
16438         (multiboot_trampoline): Don't parse multiboot device.
16439         Pass multiboot device in %edx.
16440         * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16441         grub_boot_device.
16442         * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16443         Likewise.
16444         * grub-core/kern/i386/pc/startup.S: Save edx.
16445         (grub_boot_drive): Removed.
16446         (grub_install_dos_part): Likewise.
16447         (grub_install_bsd_part): Likewise.
16448         (grub_boot_device): New variable.
16449         * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16450         (grub_install_bsd_part): Likewise.
16451         (grub_boot_drive): Likewise.
16452         (grub_boot_device): New variable.
16453         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16454         Removed.
16455         (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16456         (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16457         (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16458         (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16459         * util/grub-install.in: Remove redundant condition.
16461 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16463         Fix bug introduced by previous commit.
16465         * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16467 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16469         Use decompressors framework on i386-pc. It increases core size
16470         by 46 bytes but improves compatibility and maintainability.
16472         * grub-core/Makefile.core.def (lzma_decompress): New image.
16473         (kernel): Add i386_pc_ldflags.
16474         * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16475         * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16476         to real_to_prot, prot_to_real and device info.
16477         * include/grub/offsets.h: Renamed decompressor offsets.
16478         * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16479         (image_target_desc): Remove raw_size and rename decompressor fields.
16480         (compress_kernel): Handle lzma.
16481         (generate_image): Handle decompressors on i386-pc.
16483 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16485         * configure.ac: Add -fno-asynchronous-unwind-tables.
16487 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16489         Move assembly code to C by using intwrap. It increases core size
16490         by 88 bytes but improves compatibility and maintainability.
16492         * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16493         * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16494         ... here. Translated to C.
16495         * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16496         * grub-core/term/i386/pc/console.c (grub_console_getkey):
16497         ... here. Translated to C.
16498         * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16499         * grub-core/term/i386/pc/console.c (grub_console_getxy):
16500         ... here. Translated to C.
16501         * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16502         * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16503         ... here. Translated to C.
16504         * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16505         * grub-core/term/i386/pc/console.c (grub_console_cls):
16506         ... here. Translated to C.
16507         * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16508         * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16509         ... here. Translated to C.
16510         * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16511         * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16512         Translated to C.
16513         * grub-core/term/i386/pc/console.c (int10_9): New function.
16514         (grub_console_putchar): Likewise.
16515         * include/grub/i386/pc/console.h: Removed the not anymore shared
16516         functions.
16518 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16520         Move grub_chainloader_real_boot out of the kernel.
16522         * grub-core/Makefile.am: Remove machine/loader.h.
16523         * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16524         Removed.
16525         * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16526         variable.
16527         (grub_relocator16_keep_a20_enabled): Likewise.
16528         (grub_relocator16_boot): Fill new variables.
16529         * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16530         * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16531         relocator.
16532         (grub_chainloader_unload): Likewise.
16533         (grub_chainloader_cmd): Likewise.
16534         * include/grub/i386/pc/loader.h: Removed.
16535         * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16536         and esi. All initialisers updated.
16538 2011-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
16539 2011-11-12  Colin Watson  <cjwatson@ubuntu.com>
16541         * Makefile.util.def (grub-mount): New util.
16542         * .bzrignore: Add grub-mount.
16543         * configure.ac: Check for fuse and enable grub-mount if available.
16544         * docs/man/grub-mount.h2m: New file.
16545         * util/grub-mount.c: Likewise.
16547 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16549         * grub-core/commands/efi/fixvideo.c: Gettextize.
16550         * grub-core/commands/hashsum.c: Likewise.
16551         * grub-core/commands/i386/cmostest.c: Likewise.
16552         * grub-core/commands/i386/pc/drivemap.c: Likewise.
16553         * grub-core/commands/i386/pc/lsapm.c: Likewise.
16554         * grub-core/commands/i386/pc/sendkey.c: Likewise.
16555         * grub-core/commands/lsmmap.c: Likewise.
16556         * grub-core/commands/menuentry.c: Likewise.
16557         * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16558         * grub-core/commands/setpci.c: Likewise.
16559         * grub-core/loader/i386/bsd.c: Likewise.
16560         * grub-core/loader/i386/linux.c: Likewise.
16561         * util/getroot.c: Likewise.
16562         * util/grub-editenv.c: Likewise.
16563         * util/grub-fstest.c: Likewise.
16564         * util/grub-mkfont.c: Likewise.
16565         * util/grub-mkimage.c: Likewise.
16566         * util/grub-mkpasswd-pbkdf2.c: Likewise.
16567         * util/grub-pe2elf.c: Likewise.
16568         * util/grub-probe.c: Likewise.
16569         * util/grub-setup.c: Likewise.
16570         * util/ieee1275/ofpath.c: Likewise.
16571         * util/misc.c: Likewise.
16572         * util/raid.c: Likewise.
16574 2011-11-11  Robert Millan  <rmh@gnu.org>
16576         * util/getroot.c (grub_util_get_geom_abstraction): Remove
16577         __attribute__((unused)) from `os_dev', which *is* being used.
16579 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16581         * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16582         forgotten define.
16583         (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16584         GRUB_IA64_DL_GOT_ALIGN.
16585         (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16586         GRUB_IA64_DL_TRAMP_ALIGN.
16588 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16590         Replace grub_fatal with normal errors in i386 linux loader.
16592         * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16593         (allocate_pages): Check find_efi_mmap_size return value.
16594         (grub_e820_add_region): Return error.
16595         (grub_linux_boot): Check mmap return value.
16597 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16599         * grub-core/commands/acpihalt.c: Gettextized.
16600         * grub-core/commands/cacheinfo.c: Likewise.
16601         * grub-core/commands/cmp.c: Likewise.
16602         * grub-core/commands/efi/loadbios.c: Likewise.
16603         * grub-core/commands/gptsync.c: Likewise.
16604         * grub-core/commands/ieee1275/suspend.c: Likewise.
16605         * grub-core/commands/legacycfg.c: Likewise.
16606         * grub-core/commands/memrw.c: Likewise.
16607         * grub-core/commands/minicmd.c: Likewise.
16608         * grub-core/commands/parttool.c: Likewise.
16609         * grub-core/commands/time.c: Likewise.
16610         * grub-core/commands/videoinfo.c: Likewise.
16611         * grub-core/disk/geli.c: Likewise.
16612         * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16613         * grub-core/disk/luks.c: Likewise.
16614         * grub-core/disk/lvm.c: Likewise.
16615         * grub-core/font/font_cmd.c: Likewise.
16616         * grub-core/fs/zfs/zfscrypt.c: Likewise.
16617         * grub-core/fs/zfs/zfsinfo.c: Likewise.
16618         * grub-core/gfxmenu/view.c: Likewise.
16619         * grub-core/kern/emu/hostdisk.c: Likewise.
16620         * grub-core/kern/emu/main.c: Likewise.
16621         * grub-core/kern/emu/misc.c: Likewise.
16622         * grub-core/kern/emu/mm.c: Likewise.
16623         * grub-core/kern/mips/arc/init.c: Likewise.
16624         * grub-core/kern/mips/loongson/init.c: Likewise.
16625         * grub-core/kern/partition.c: Likewise.
16626         * grub-core/lib/i386/halt.c: Likewise.
16627         * grub-core/lib/mips/arc/reboot.c: Likewise.
16628         * grub-core/lib/mips/loongson/reboot.c: Likewise.
16629         * grub-core/loader/i386/pc/chainloader.c: Likewise.
16630         * grub-core/loader/i386/xnu.c: Likewise.
16631         * grub-core/loader/multiboot.c: Likewise.
16632         * grub-core/net/bootp.c: Likewise.
16633         * grub-core/net/net.c: Likewise.
16634         * grub-core/normal/term.c: Likewise.
16635         * grub-core/partmap/bsdlabel.c: Likewise.
16636         * grub-core/parttool/msdospart.c: Likewise.
16637         * grub-core/term/gfxterm.c: Likewise.
16638         * grub-core/term/terminfo.c: Likewise.
16639         * grub-core/video/i386/pc/vbe.c: Likewise.
16640         * util/grub-menulst2cfg.c: Likewise.
16641         * util/grub-mkdevicemap.c: Likewise.
16642         * util/grub-mklayout.c: Likewise.
16643         * util/grub-mkrelpath.c: Likewise.
16644         * util/grub-script-check.c: Likewise.
16645         * util/ieee1275/grub-ofpathname.c: Likewise.
16646         * util/resolve.c: Likewise.
16648 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16650         Support %1$d syntax.
16652         * tests/printf_unit_test.c: New file.
16653         * Makefile.util.def (printf_test): New test.
16654         * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16656 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16658         * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16659         fix.
16661 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16663         * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16664         dprintf.
16665         * grub-core/font/font.c (grub_font_load): Likewise.
16667 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16669         * util/grub-macho2img.c: Add comment concerning gettext.
16670         * grub-core/lib/legacy_parse.c: Likewise.
16672 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16674         * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16675         (grub_xvasprintf): Likewise.
16677 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16679         Add const keyword to grub_env_get and gettextize week days.
16681         * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16682         (grub_read_hook_datetime): Return const char *.
16683         * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16684         updated.
16685         * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16686         Mark for gettext.
16687         (grub_get_weekday_name): Return const char *. Call gettext.
16688         * grub-core/script/argv.c (grub_script_argv_append): Receive const
16689         char * and len as the argument. All users updated.
16690         (grub_script_argv_split_append): Receive const char *.
16691         * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16692         * include/grub/env.h (grub_env_get): Likewise.
16693         (grub_env_read_hook_t): Return const char *.
16694         * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16695         (grub_script_argv_split_append): Likewise.
16697 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16699         * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16701 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16703         * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16704         * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16706 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16708         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16709         Fix prototype.
16711 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16713         Fix mips compilation.
16715         * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16716         normal decoder.
16717         (hashes): Use in embed decoder as well (for sizes).
16718         (dec_stream_header): Fix embed decompressor logic.
16719         (dec_stream_footer): Likewise.
16721 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16723         * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16724         an error and not a fatal on unrecognised relocation types.
16726 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16728         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16729         Issue error rather than printf on unknown arguments.
16731 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16733         * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16734         Make buf a const.
16736 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16738         * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16739         Fix module name.
16741 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16743         * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16744         leftover debug printf.
16746 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16748         * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16750 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16752         * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16753         A stylistic fix.
16755 2011-11-11  Vladimir Serbinenko  <phcoder@gmail.com>
16757         * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16759 2011-11-10  Shea Levy  <slevy@tieronedesign.com>
16761         Allow all modules to perform serial IO
16763         * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16764         * include/grub/serial.h (grub_serial_port_configure): New inline
16765         function.
16766         (grub_serial_port_fetch): Likewise.
16767         (grub_serial_port_put): Likewise.
16768         (grub_serial_port_fini): Likewise.
16769         (grub_serial_find): New proto.
16771 2011-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
16773         Put symlink at the end of the node and fix a potential
16774         memory corruption.
16776         * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16777         Make symlink into an array.
16778         (set_rockridge): Set have_symlink and alloc_dirents.
16779         (grub_iso9660_read_symlink): Use new layout.
16780         (grub_iso9660_iterate_dir): Fix memory corruption.
16781         Use new layout.
16782         (grub_iso9660_dir): Set have_symlink.
16783         (grub_iso9660_open): Likewise.
16785 2011-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
16787         Remove local keyword.
16789         * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16790         (version_test_gt): Likewise.
16791         (version_find_latest): Likewise.
16792         (gettext_printf): Likewise.
16793         * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16795 2011-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
16797         * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16799 2011-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
16801         Fix ZFS memory and resource leaks.
16803         * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16804         All users updated.
16805         Free type on exit.
16806         (fill_vdev_info): New parameter inserted. All users updated.
16807         (check_pool_label): Likewise.
16808         (scan_disk): Likewise.
16809         (scan_devices): Close non-inserted disks.
16810         (fzap_iterate): Free l.
16811         (unmount_device): Free children descripto memory.
16813 2011-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
16815         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16816         argument (access out of bounds).
16818 2011-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
16820         * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16821         >= 6 drives.
16823 2011-11-10  Vladimir Serbinenko  <phcoder@gmail.com>
16825         * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16826         Fix declaration.
16828 2011-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
16830         Fix several memory leaks.
16832         * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16833         * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16834         (grub_cpio_dir): Likewise.
16835         * grub-core/fs/fat.c (grub_fat_label): Likewise.
16836         * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16837         * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16838         (grub_romfs_label): Likewise.
16839         * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16840         (squash_unmount): New function.
16841         (grub_squash_dir): Fix memory leak.
16842         (grub_squash_open): Likewise.
16843         (grub_squash_read): Likewise.
16844         (grub_squash_mtime): Likewise.
16845         * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16846         * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16847         * util/grub-fstest.c (fstest): Likewise.
16849 2011-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
16851         * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16852         avoid accessing beyond the array.
16854 2011-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
16856         * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16858 2011-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
16860         Several AFFS fixes.
16862         * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16863         (GRUB_AFFS_FLAG_FFS): Removed.
16864         (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16865         (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16866         (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16867         (grub_fshelp_node): Make block 32-bit.
16868         Add block_cache and last_block_cache.
16869         (grub_affs_read_block): Fill and use block cache.
16870         (grub_affs_read_file): Removed.
16871         (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16872         boot block.
16873         (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16874         safety.
16875         (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16876         space.
16877         (grub_affs_close): Free block cache.
16878         (grub_affs_read): Use grub_fshelp_read_file directly.
16880 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16882         * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16883         with no error set.
16885 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16887         * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16888         used variable.
16889         * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16890         Likewise.
16892 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16894         Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16896         * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16897         byteswap when needed.
16899 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16901         Fix FreeBSD compilation.
16903         * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16904         to avoid circular dependency.
16905         (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16906         * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16907         * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16909 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16911         Fix ZFS crypto error types.
16913         * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16914         (grub_gcm_decrypt): Likewise.
16915         (grub_zfs_load_key_real): Fix error code type. Handle possible error
16916         from PBKDF2.
16918 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16920         Illumos support.
16922         * Makefile.util.def (10_illumos): New script.
16923         * configure.ac: Set COND_HOST_ILLUMOS.
16924         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16925         Support Illumos calls.
16926         (find_partition_start) [__sun__]: Likewise.
16927         (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16928         (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16929         (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16930         * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16931         device.
16932         * util/grub-probe.c (probe) [__sun__]: Do character check.
16933         * util/grub.d/10_illumos.in: New file.
16935 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16937         Support escaped commas in hostdisk.
16939         * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16940         (find_grub_drive): Use unescape_cmp.
16941         (make_device_name): Escape commas.
16943 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16945         * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16947 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16949         * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16950         variable.
16952 2011-11-08  Vladimir Serbinenko  <phcoder@gmail.com>
16954         Support trampoline jumps on powerpc.
16956         * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16957         __ia64__ path.
16958         (grub_dl_load_segments): Set mod->sz.
16959         (grub_dl_flush_cache): Flush whole space occupied by module, not just
16960         segments.
16961         * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16962         (jump): Likewise.
16963         * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16964         function.
16965         (trampoline): New struct.
16966         (trampoline_template): New const.
16967         (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16968         * include/grub/dl.h (grub_dl): Add sz element.
16969         [__powerpc__]: Follow __ia64__.
16970         (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16971         (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16972         (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16973         (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16975 2011-11-06  Vladimir Serbinenko  <phcoder@gmail.com>
16977         ZFS crypto support.
16979         * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16980         * grub-core/Makefile.core.def (zfscrypt): New module.
16981         * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16982         (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16983         it. All users updated.
16984         (grub_zfs_decrypt): New var.
16985         (grub_zfs_load_key): Likewise.
16986         (zio_checksum_functions): Add SHA256+MAC.
16987         (zio_checksum_verify): Handle incomplete comparison due to MAC.
16988         (zio_read): Handle encrypted blocks.
16989         (zap_verify): Remove incorrect check.
16990         (fzap_iterate): Handle non-standard fzap.
16991         (zap_iterate): Likewise.
16992         (zap_iterate_u64): New function.
16993         (dnode_get_fullpath): Load keys.
16994         * grub-core/fs/zfs/zfscrypt.c: New file.
16995         * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16996         (grub_crypto_ecb_encrypt): Make input const.
16997         * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16998         (grub_crypto_ecb_encrypt): Make input const.
16999         (GRUB_CIPHER_AES): New macro.
17000         * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
17001         * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
17002         * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
17003         * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
17004         prefix. All users updated.
17005         (grub_zfs_add_key): New proto.
17006         (grub_zfs_decrypt): Likewise.
17007         (grub_zfs_load_key): Likewise.
17008         * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
17009         * util/grub-fstest.c (options): Add -K option.
17010         (argp_parser): Likewise.
17012 2011-11-05  Vladimir Serbinenko  <phcoder@gmail.com>
17014         Support zle compression on ZFS.
17016         * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
17017         (decomp_table): Add zle.
17018         * include/grub/zfs/zio.h (zio_compress): Add zle.
17020 2011-11-05  Vladimir Serbinenko  <phcoder@gmail.com>
17022         Support BtrFS embedding.
17024         * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
17025         (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
17026         * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
17027         * util/grub-setup.c (setup): Use fs embedding if available.
17028         Add additional sanity check.
17030 2011-11-05  Vladimir Serbinenko  <phcoder@gmail.com>
17032         * util/grub-install.in: Fix condition for config_opt.
17034 2011-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
17036         Support third redundancy strip on raidz3.
17038         * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
17039         Return error on singularity. All users updated.
17040         (read_device): Don't stop on 3rd failure on raidz3.
17042 2011-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
17044         Support case-insensitive ZFS subvolumes.
17046         * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
17047         All users updated.
17048         (zap_hash): Likewise.
17049         (name_cmp): New function.
17050         (zap_leaf_array_equal): New parameter case_insensitive.
17051         All users updated.
17052         (zap_leaf_lookup): Likewise.
17053         (fzap_lookup): Likewise.
17054         (zap_lookup): Likewise.
17055         (dnode_get_path): New parameter case_insensitive. Retrieve case
17056         sensitiviness of a volume. All users updated.
17057         (dnode_get_fullpath): New parameter case_insensitive.
17058         All users updated.
17059         (grub_zfs_dir): Set info.case_insensitiveness.
17061 2011-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
17063         Support second redundancy strip on raidz(2,3).
17065         * grub-core/fs/zfs/zfs.c (powx): New array.
17066         (powx_inv): Likewise.
17067         (poly): New const.
17068         (xor_out): New function.
17069         (gf_mul): Likewise.
17070         (recovery): Likewise.
17071         (read_device): Use second redundancy strip.
17073 2011-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
17075         Use a power of generator representation of GF(256) multiplication group
17076         to save space time and complexity.
17078         * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
17079         (raid6_table2): Likewise.
17080         (powx): New array.
17081         (powx_inv): Likewise.
17082         (poly): New const.
17083         (grub_raid_block_mul): Replace with ...
17084         (grub_raid_block_mulx): ...this.
17085         (grub_raid6_init_table): Rewritten.
17086         (grub_raid6_recover): Use power of generator representation.
17088 2011-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
17090         * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
17091         for the right device.
17093 2011-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
17095         * include/grub/kernel.h (grub_module_header): Make type into uint32 as
17096         expected by grub-mkimage and it's more clear since there is no implicit
17097         padding.
17099 2011-11-04  Vladimir Serbinenko  <phcoder@gmail.com>
17101         * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17102         disk.
17103         * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17105 2011-11-03  Philipp Matthias Hahn <pmhahn@debian.org>
17107         * util/grub-mkrescue.in: Fix handling xorriso option.
17109 2011-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
17111         * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17112         NULL.
17114 2011-11-03  crocket <crockabiscuit@gmail.com>
17116         * util/grub.d/10_linux.in: Add Slackware initrd naming.
17118 2011-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
17120         XZ CRC64 and SHA256 support.
17122         * Makefile.util.def (libgrubmods): Add crc64.c.
17123         * grub-core/Makefile.core.def (crc64): New module.
17124         * grub-core/lib/crc64.c: New file.
17125         * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17126         [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17127         Fix the type.
17128         (MAX_HASH_SIZE): New define.
17129         (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17130         (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17131         (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17132         (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17133         (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17134         (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17135         Handle non-crc32 hashes.
17136         (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17137         (dec_stream_header): Handle non-crc32 hashes.
17138         (dec_stream_footer): Likewise.
17139         (dec_block_header): Likewise.
17140         (dec_main): Likewise.
17141         (xz_dec_init): Likewise.
17142         (xz_dec_reset): Likewise.
17143         (xz_dec_end): Likewise.
17144         * util/import_gcry.py: Add CRC64 line.
17146 2011-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
17148         * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17149         as well.
17151 2011-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
17153         Make reiserfs label retrieval similar to other *_label functions.
17155         * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17156         (REISERFS_MAX_LABEL_LENGTH): Removed.
17157         (REISERFS_LABEL_OFFSET): Likewise.
17158         (grub_reiserfs_label): Rewritten.
17160 2011-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
17162         * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17163         field.
17165 2011-11-03  Vladimir Serbinenko  <phcoder@gmail.com>
17167         * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17169 2011-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
17171         * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17172         drive failure on both raidz and raidz2.
17174 2011-11-02  Vladimir Serbinenko  <phcoder@gmail.com>
17176         Fix RAIDZ(2) for >= 5 devices.
17178         * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17179         asize argument. All users updated.
17181 2011-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
17183         Fix RAIDZ(2).
17185         * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17186         (fill_vdev_info_real): Set ashift.
17187         (read_device): Rewrite RAIDZ part based on reverse engineering.
17189 2011-10-31  Vladimir Serbinenko  <phcoder@gmail.com>
17191         * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17192         don't report potentially unavialiable fields in debug output.
17193         (find_path): Fix double-free and memory leak.
17195 2011-10-31  Vladimir Serbinenko  <phcoder@gmail.com>
17197         Read label on UFS1.
17199         * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17200         (grub_ufs_fs): Always set .label.
17202 2011-10-31  Vladimir Serbinenko  <phcoder@gmail.com>
17204         Use shifts in UFS.
17206         * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17207         (grub_ufs_data): New field log2_blksz.
17208         (grub_ufs_read_file): Use shifts.
17209         (grub_ufs_mount): Check block size and logarithm it.
17211 2011-10-31  Vladimir Serbinenko  <phcoder@gmail.com>
17213         * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17214         long symlinks.
17216 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17218         Handle symlinks and long names on tar and cpio.
17220         * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17221         (ATTR_FILE): Likewise.
17222         (ATTR_DIR): Likewise.
17223         (ATTR_LNK): Likewise.
17224         (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17225         (grub_cpio_find_file): Fill mode, handle linkname field as well as
17226         L and K entries.
17227         (grub_cpio_mount): Zero-fill data.
17228         (handle_symlink): New function.
17229         (grub_cpio_dir): Handle symlinks.
17230         (grub_cpio_open): Likewise.
17231         (grub_cpio_close) [MODE_USTAR]: Free linkname.
17233 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17235         Fix iso9660 filename limitations and fix memory leaks.
17237         * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17238         (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17240 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17242         Fix JFS file name length limitations.
17244         * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17245         (grub_jfs_diropen): Fix maximum filename length.
17246         (grub_jfs_getent): Fix filename length.
17247         (grub_jfs_lookup_symlink): Fix size checks.
17249 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17251         * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17252         string.
17254 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17256         Leverage BFS implementation to read AFS.
17258         * Makefile.util.def (libgrubmods): Add afs.c.
17259         * grub-core/Makefile.core.def (afs): New module
17260         * grub-core/fs/afs.c: New file.
17261         * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17263 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17265         * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17267 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17269         * grub-core/fs/bfs.c: Run indent.
17271 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17273         BFS implementation based on the specification.
17275         * grub-core/fs/bfs.c: New file.
17276         * Makefile.util.def (libgrubmods): Add bfs.c.
17277         * grub-core/Makefile.core.def (bfs): New module.
17279 2011-10-30  Vladimir Serbinenko  <phcoder@gmail.com>
17281         * util/grub-fstest.c (cmd_cp): Clarify error message.
17282         (cmd_cmp): Likewise.
17284 2011-10-30  Yves Blusseau  <blusseau@zetam.org>
17286         * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17287         and befs_be.
17289 2011-10-29  Vladimir Serbinenko  <phcoder@gmail.com>
17291         Remove afs and befs because of copyright problem.
17293         * grub-core/fs/afs.c: Removed.
17294         * grub-core/fs/afs_be.c: Removed.
17295         * grub-core/fs/befs.c: Removed.
17296         * grub-core/fs/befs_be.c: Removed.
17297         * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17298         * grub-core/Makefile.core.def (afs): Removed.
17299         (afs_be): Likewise.
17300         (befs): Likewise.
17301         (befs_be): Likewise.
17303 2011-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
17305         Prefer rockridge over Joliet.
17307         * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17308         to ...
17309         (set_rockridge): ... here.
17310         (grub_iso9660_mount): Check rockridge on the primary label when
17311         discovering. Ignore Joliet if Rockridge is present.
17313 2011-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
17315         Use shifts in nilfs2.
17317         * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17318         (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17319         (grub_nilfs2_palloc_entries_per_group): Replace with ...
17320         (grub_nilfs2_log_palloc_entries_per_group): ... this.
17321         (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17322         (grub_nilfs2_entries_per_block): Replaced with ...
17323         (grub_nilfs2_log_entries_per_block_log): ... this.
17324         (grub_nilfs2_blocks_per_group): Replaced with ...
17325         (grub_nilfs2_blocks_per_group_log): ... this.
17326         (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17327         (grub_nilfs2_blocks_per_desc_block_log): ... this.
17328         (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17329         (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17330         (grub_nilfs2_palloc_entry_offset): Replaced ...
17331         (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17332         (grub_nilfs2_dat_translate): Use shifts.
17333         (grub_nilfs2_read_inode): Likewise.
17334         (GRUB_MOD_INIT): Ensure that logs are correct.
17336 2011-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
17338         Use shifts in minix filesystem.
17340         * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17341         (GRUB_MINIX_ZONE2SECT): Likewise.
17342         (grub_minix_data): Replace block_size with log_block_size.
17343         (grub_minix_read_file): Use shifts.
17344         (grub_minix_mount): Check block size and take a logarithm.
17346 2011-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
17348         Use shifts in squash4.
17350         * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17351         (squash_mount): Check block size and take logarithm.
17352         (direct_read): Use shifts.
17354 2011-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
17356         Correct befs block counting logic.
17358         * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17359         (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17360         (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17361         (grub_afs_read_inode): Use block_shift.
17362         (RANGE_SHIFT): New definition.
17363         (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17364         unexpected conditions, use shifts and appropriate types.
17365         (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17367 2011-10-28  Vladimir Serbinenko  <phcoder@gmail.com>
17369         * grub-core/disk/raid.c (scan_devices): Check partition.
17370         * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17372 2011-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
17374         Support BFS (befs) UUID.
17376         * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17377         (grub_afs_small_data_element_header): New struct.
17378         (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17379         (grub_afs_read_attribute) [MODE_BFS]: New function.
17380         (grub_afs_iterate_dir): Allocate for complete inode.
17381         (grub_afs_mount): Likewise.
17382         (grub_afs_uuid) [MODE_BFS]: New function.
17383         (grub_afs_fs) [MODE_BFS]: Add .uuid.
17385 2011-10-27  Vladimir Serbinenko  <phcoder@gmail.com>
17387         * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17388         (zfs_unmount): Fix memory leak.
17390 2011-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
17392         Support NTFS reparse points.
17394         * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17395         (symlink_descriptor): New struct.
17396         (grub_ntfs_read_symlink): New function.
17397         (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17398         (grub_ntfs_open): Likewise.
17400 2011-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
17402         * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17404 2011-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
17406         fstest xnu_uuid subcommand.
17408         * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17409         grub-core/commands/xnu_uuid.c.
17410         * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17411         (fstest): Handle xnu_uuid.
17412         (options): Document xnu_uuid.
17413         (argp_parser): Parse xnu_uuid.
17415 2011-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
17417         * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17418         -l argument. Add newline at the end if printing.
17419         (GRUB_MOD_INIT): Document -l.
17421 2011-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
17423         * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17425 2011-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
17427         ZFS multi-device and version 33 support.
17429         * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17430         * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17431         (grub_zfs_data): Add multidev-ice-related fields.
17432         (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17433         (dva_get_offset): Make dva const.
17434         (zfs_fetch_nvlist): New function.
17435         (fill_vdev_info_real): Likewise.
17436         (fill_vdev_info): Likewise.
17437         (check_pool_label): Likewise.
17438         (scan_disk): Likewise.
17439         (scan_devices): Likewise.
17440         (read_device): Likewise.
17441         (read_dva): Likewise.
17442         (zio_read_gang): Use read_dva.
17443         (zio_read_data): Likewise.
17444         (zap_leaf_lookup): Add missing endian conversion.
17445         (zap_verify): Add missing endian conversion. All users updated.
17446         (fzap_lookup): Likewise.
17447         (fzap_iterate): Likewise.
17448         (dnode_get_path): Handle SA bonus.
17449         (nvlist_find_value): Make input const. All users updated.
17450         (unmount_device): New function.
17451         (zfs_unmount): Use unmount_device.
17452         (zfs_mount): Use scan_disk.
17453         (zfs_mtime): New function.
17454         (grub_zfs_open): Handle system attributes.
17455         (fill_fs_info): Likewise.
17456         (grub_zfs_dir): Likewise.
17457         (grub_zfs_fs): Add mtime.
17458         * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17459         * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17460         (SA_MTIME_OFFSET): Likewise.
17461         (SA_SYMLINK_OFFSET): Likewise.
17462         * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17463         * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17464         (fstest): Support zfsinfo.
17465         (argp_parser): Likewise.
17467 2011-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
17469         * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17470         error.
17472 2011-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
17474         ZFS fixes.
17476         * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17477         sharing the same block. Iterate over correct number of indices.
17478         (dnode_get_path): Handle symlinks correctly.
17480 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17482         * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17484 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17486         Read label on HFS+.
17488         * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17489         (grub_hfsplus_btree_search): Fix types.
17490         (grub_hfsplus_label): Implement.
17492 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17494         * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17496 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17498         * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17500 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17502         Fix symlink handling on iso9660.
17504         * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17505         All users updated.
17506         (grub_iso9660_susp_iterate): Accept zero-size iterate.
17507         (grub_iso9660_read_symlink): Moved most of code ...
17508         (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17510 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17512         * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17513         Use union to avoid breaking strict-aliasing rules.
17515 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17517         Support multi-extent iso files.
17519         * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17520         Add node.
17521         (grub_fshelp_node): Revamp. All users updated.
17522         (FLAG_*): New enum.
17523         (read_node): New function.
17524         (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17525         All users updated.
17526         (grub_iso9660_mount): Don't attempt to read sua when there is none.
17527         (get_node_size): New function.
17528         (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17529         entries.
17530         Fix memory leak on . and ..
17531         (grub_iso9660_read): Use read_node.
17532         (grub_iso9660_close): Free node.
17534 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17536         Fix tar 4G limit and handle paths containing dot.
17538         * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17539         (canonicalize): New function.
17540         (grub_cpio_find_file): Use canonicalize. Store offs in
17541         grub_disk_addr_t.
17542         (grub_cpio_dir): Use grub_disk_addr_t.
17543         (grub_cpio_open): Likewise.
17545 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17547         Fix handling of uncompressed blocks on squashfs and break 4G limit.
17549         * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17550         unused flags.
17551         (grub_squash_inode): Add long_file and block_size.
17552         (grub_squash_cache_inode): New struct.
17553         (grub_squash_dirent): Make types into enum.
17554         (SQUASH_TYPE_LONG_REGULAR): New type.
17555         (grub_squash_frag_desc): Add field size.
17556         (SQUASH_BLOCK_FLAGS): New enum.
17557         (grub_squash_data): Use grub_squash_cache_inode.
17558         (grub_fshelp_node): Make ino_chunk 64-bit.
17559         (read_chunk): Minor argument change. All users updated.
17560         (squash_mount): Use correct le_to_cpu.
17561         (grub_squash_open): Handle LONG_REGULAR.
17562         (direct_read): New function.
17563         (grub_squash_read_data): Handle blocks correctly.
17565 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17567         * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17569 2011-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
17571         * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17573 2011-10-24  Vladimir Serbinenko  <phcoder@gmail.com>
17575         Fix 2G limit on ZFS.
17577         * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17578         types.
17579         (uberblock_verify): Likewise.
17580         (dmu_read): Likewise.
17581         (grub_zfs_read): Likewise. Remove invalid cast.
17583 2011-10-24  Vladimir Serbinenko  <phcoder@gmail.com>
17585         * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17586         (grub_jfs_blkno): Fix incorrect shift.
17587         (grub_jfs_read_file): Use more appropriate types.
17589 2011-10-24  Vladimir Serbinenko  <phcoder@gmail.com>
17591         Support triple indirect on minix2 and minix3.
17593         * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17594         Declare triple_indir_zone.
17595         (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17596         indirect.
17598 2011-10-24  Vladimir Serbinenko  <phcoder@gmail.com>
17600         Minix FS fixes.
17602         * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17603         (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17604         Rename ctime to mtime. All users updated.
17605         (grub_minix_get_file_block): Fix types and double indirect computations.
17607 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17609         * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17610         if no label is found.
17611         (grub_fat_iterate_dir): Fix file size type.
17612         (grub_fat_iterate_dir): Likewise.
17614 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17616         * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17617         save some space.
17618         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17619         (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17621 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17623         * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17625 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17627         * util/import_gcry.py: Accept space between # and include.
17629 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17631         * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17633 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17635         Fine grainely disable warnings on lexer. Remove Wno-error on it.
17637         * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17638         * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17639         yylex_strncpy.
17640         * grub-core/script/yylex.l: Add fine-grained #pragma.
17642 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17644         * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17645         New inline function.
17646         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17647         Likewise.
17648         (memset) [GRUB_UTIL]: Likewise.
17649         (memcmp) [GRUB_UTIL]: Likewise.
17651 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17653         * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17654         inline function rather than a define.
17656 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17658         * util/grub-setup.c: Add missing include.
17660 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17662         * util/ieee1275/grub-ofpathname.c: Add missing include.
17664 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17666         * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17667         * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17668         Likewise.
17670 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17672         * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17673         grub_memcmp usage.
17675 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17677         * util/grub-install.in: Add datarootdir as per automake manual
17678         suggestion.
17679         * util/grub-mknetdir.in: Likewise.
17681 2011-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
17683         * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17684         suggestion.
17685         * util/grub.d/10_kfreebsd.in: Likewise.
17686         * util/grub.d/10_linux.in: Likewise.
17687         * util/grub.d/10_netbsd.in: Likewise.
17688         * util/grub.d/10_windows.in: Likewise.
17689         * util/grub.d/20_linux_xen.in: Likewise.
17691 2011-10-20  Vladimir Serbinenko  <phcoder@gmail.com>
17693         Remove redundant grub_kernel_image_size.
17695         * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17696         _edata and _start.
17697         * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17698         the small code. It moves it only by few bytes but simplifies the code.
17699         * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17700         _start.
17701         * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17702         (grub_kernel_image_size): Removed.
17703         * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17704         (grub_kernel_image_size): Removed.
17705         [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17706         compiled with Apple toolchain.
17707         * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17708         * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17709         * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17710         (grub_total_module_size): Likewise.
17711         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17712         Removed.
17713         (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17714         (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17715         (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17716         (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17717         (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17718         (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17719         (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17720         * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17721         Removed.
17722         (grub_total_module_size): Removed.
17723         * util/grub-mkimage.c (image_target_desc): Remove image_size.
17724         (image_targets): Likewise.
17725         Set .compressed_size to no field on sparc.
17726         (generate_image): Remove kernel_image_size handling.
17728 2011-10-19  Szymon Janc <szymon@janc.net.pl>
17730         * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17731         NULL pointer dereference.
17733 2011-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
17735         Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17736         done with a dedicated section.
17738         * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17739         Ensure the correct position of boot_path.
17740         * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17741         * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17742         other fields.
17743         * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17744         * include/grub/boot.h: Removed. All references removed.
17745         * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17746         Removed.
17747         (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17749 2011-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
17751         * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17752         name.
17754 2011-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
17756         * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17758 2011-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
17760         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17761         Don't add the bogus brackets.
17763 2011-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
17765         ExFAT support.
17767         * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17768         * grub-core/Makefile.core.def (exfat): New module.
17769         * grub-core/fs/exfat.c: New file.
17770         * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17771         (GRUB_FAT_ATTR_*): Make into an enum.
17772         (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17773         (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17774         (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17775         (GRUB_FAT_MAXFILE): Removed.
17776         (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17777         (grub_current_fat_bpb_t): New type.
17778         (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17779         (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17780         (grub_fat_dir_node_t): New type.
17781         (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17782         (fat_log2) [MODE_EXFAT]: Removed.
17783         (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17784         (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17785         (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17786         (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17787         (grub_fat_label) [MODE_EXFAT]: New function.
17788         (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17789         reserved_first_sector to 0.
17791 2011-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
17793         Move grub_reboot out of the kernel.
17795         * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17796         * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17797         * grub-core/lib/efi/reboot.c: ... here.
17798         * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17799         * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17800         * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17801         * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17802         * grub-core/lib/i386/reboot_trampoline.S: ... here.
17803         * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17804         * grub-core/lib/ieee1275/reboot.c: ... here.
17805         * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17806         * grub-core/lib/mips/arc/reboot.c: ... here.
17807         * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17808         * grub-core/lib/mips/loongson/reboot.c: ...here.
17809         * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17810         * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17811         * include/grub/emu/misc.h (grub_reboot): New function declaration.
17812         * include/grub/i386/reboot.h: New file.
17813         * include/grub/mips/loongson/ec.h: Fix includes.
17814         * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17815         * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17816         * grub-core/lib/i386/reboot.c: New file.
17818 2011-10-18  Vladimir Serbinenko  <phcoder@gmail.com>
17820         Make grub_prefix into module to fix the arbitrary limit and save
17821         some space.
17823         * grub-core/kern/emu/main.c (grub_prefix): Removed.
17824         * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17825         * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17826         * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17827         * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17828         * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17829         * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17830         * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17831         * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17832         * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17833         * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17834         * include/grub/ia64/efi/kernel.h: Removed.
17835         * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17836         (grub_prefix): Removed.
17837         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17838         (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17839         (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17840         (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17841         (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17842         (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17843         (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17844         (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17845         (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17846         (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17847         (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17848         (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17849         (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17850         (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17851         (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17852         (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17853         (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17854         (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17855         (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17856         (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17857         (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17858         (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17859         (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17860         (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17861         (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17862         (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17863         (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17864         (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17865         * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17866         from module.
17867         * util/grub-mkimage.c (image_target_desc): Removed prefix and
17868         prefix_end.
17869         (image_targets): Likewise.
17870         (generate_image): Put prefix as a module.
17872 2011-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
17874         Replace grub_module_iterate with FOR_MODULES.
17876         * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17877         * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17878         (grub_efi_modules_addr): ...this.
17879         * grub-core/kern/efi/init.c (grub_modbase): New variable.
17880         (grub_efi_init): Set grub_modbase.
17881         * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17882         (grub_modbase): New variable.
17883         * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17884         (grub_modbase): New variable.
17885         (grub_machine_init): Set grub_modbase.
17886         * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17887         (grub_modbase): New variable.
17888         (grub_machine_init): Set grub_modbase.
17889         * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17890         (grub_modbase): New variable.
17891         (grub_machine_init): Set grub_modbase.
17892         * grub-core/kern/main.c (grub_module_iterate): Remove.
17893         (grub_modules_get_end): Use grub_modbase.
17894         (grub_load_modules): Use FOR_MODULES.
17895         (grub_load_config): Likewise.
17896         * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17897         (grub_modbase): New variable.
17898         (grub_machine_init): Set grub_modbase.
17899         * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17900         (grub_modbase): New variable.
17901         (grub_machine_init): Set grub_modbase.
17902         * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17903         Removed.
17904         (grub_modbase): New variable.
17905         (grub_machine_init): Set grub_modbase.
17906         * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17907         * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17908         (grub_module_iterate): Likewise.
17909         (grub_modbase): New variable declaration.
17910         (FOR_MODULES): New macro.
17912 2011-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
17914         * configure.ac: Check for __ctzdi2 and __ctzsi2.
17915         * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17917 2011-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
17919         Fix few obvious type discrepancies.
17921         * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17922         * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17923         * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17924         variable.
17925         * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17926         and connected types.
17927         * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17928         offset.
17929         (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17930         * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17931         * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17932         and connected types.
17934 2011-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
17936         Fix python 3.x incompatibilities.
17938         * gentpl.py: Put brackets around print strings.
17939         * util/import_gcry.py: Open explicitly as utf-8.
17940         Use in instead of has_key.
17942 2011-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
17944         * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17945         (GRUB_XFS_INO_AGBITS): Make into inline function.
17946         (GRUB_XFS_INO_INOINAG): Likewise.
17947         (GRUB_XFS_INO_AG): Likewise.
17948         (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17949         (GRUB_XFS_EXTENT_OFFSET): Likewise.
17950         (GRUB_XFS_EXTENT_BLOCK): Likewise.
17951         (GRUB_XFS_EXTENT_SIZE): Likewise.
17952         (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17953         (GRUB_XFS_NEXT_DIRENT): Likewise.
17954         (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17955         (grub_xfs_read_file): Fix offset type.
17957 2011-10-15  Robert Millan  <rmh@gnu.org>
17959         * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17961 2011-10-15  Robert Millan  <rmh@gnu.org>
17963         Fix build problem on FreeBSD and GNU/kFreeBSD.
17965         * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17967 2011-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
17969         Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17971         * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17972         types.
17973         (grub_hfsplus_btree_recoffset): Likewise.
17974         (grub_hfsplus_btree_recptr): Likewise.
17975         (grub_hfsplus_find_block): Likewise.
17976         (grub_hfsplus_btree_search): Likewise.
17977         (grub_hfsplus_read_block): Likewise.
17978         (grub_hfsplus_read_file): Likewise.
17979         (grub_hfsplus_mount): Likewise.
17980         (grub_hfsplus_btree_iterate_node): Likewise.
17981         (grub_hfsplus_btree_search): Likewise.
17982         (grub_hfsplus_iterate_dir): Likewise.
17983         (grub_hfsplus_read): A small code simplification.
17985 2011-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
17987         * grub-core/kern/emu/hostdisk.c
17988         (convert_system_partition_to_system_disk): Don't assume that children
17989         of mapper nodes are mapper nodes.
17991 2011-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
17993         * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17994         * include/grub/misc.h (grub_isxdigit): New function.
17995         * grub-core/video/colors.c (my_isxdigit): Removed. All users
17996         switched to grub_isxdigit.
17997         * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17998         number starting with a letter.
18000 2011-10-09  Robert Millan  <rmh@gnu.org>
18002         LVM support for FreeBSD and GNU/kFreeBSD.
18004         * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
18005         GNU/kFreeBSD.
18006         (LVM_DEV_MAPPER_STRING): Move from here ...
18007         * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
18008         * util/getroot.c: Include `<grub/util/lvm.h>'.
18009         (grub_util_get_dev_abstraction): Enable
18010         grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
18011         Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
18012         (grub_util_get_grub_dev): Replace "/dev/mapper/" with
18013         `LVM_DEV_MAPPER_STRING'.  Enable LVM and mdRAID only on platforms that
18014         support it.
18015         * util/grub-setup.c (main): Check for LVM also on FreeBSD and
18016         GNU/kFreeBSD.
18017         * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
18018         when LVM abstraction is required for ${GRUB_DEVICE}.
18020 2011-10-06  Szymon Janc <szymon@janc.net.pl>
18022         Add support for LZO compression in GRUB:
18023         - import of minilzo library, 
18024         - LZO decompression for btrfs,
18025         - lzop files decompression.
18027         * grub-core/io/lzopio.c: New file.
18028         * grub-core/lib/adler32.c: Likewise.
18029         * grub-core/lib/minilzo/lzoconf.h: Likewise.
18030         * grub-core/lib/minilzo/lzodefs.h: Likewise.
18031         * grub-core/lib/minilzo/minilzo.c: Likewise.
18032         * grub-core/lib/minilzo/minilzo.h: Likewise.
18033         * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
18034         grub-core/lib/adler32.c, grub-core/io/lzopio.c,
18035         grub-core/lib/minilzo/minilzo.c to common.
18036         * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
18037         cflags in cppflags.
18038         * grub-core/Makefile.core.def (btrfs): Likewise.
18039         * grub-core/Makefile.core.def (lzopio): New module.
18040         (adler32): Likewise.
18041         * grub-core/fs/btrfs.c: Include minilzo.h.
18042         (GRUB_BTRFS_COMPRESSION_LZO): New define.
18043         (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
18044         (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
18045         (grub_btrfs_lzo_decompress): New function.
18046         (grub_btrfs_extent_read): Add support for LZO compression type.
18047         * include/grub/types.h (GRUB_UCHAR_MAX): New define.
18048         (GRUB_USHRT_MAX): Likewise.
18049         (GRUB_UINT_MAX): Likewise.
18050         * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
18051         (UINT_MAX): Likewise.
18052         (CHAR_BIT): Likewise.
18053         * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
18054         grub-core/lib/posix_wrap/limits.h
18055         (UCHAR_MAX): Likewise.
18056         * include/grub/file.h (grub_file_filter_id): New compression filter
18057         GRUB_FILE_FILTER_LZOPIO.
18058         * include/grub/file.h (grub_file_filter_id): Set
18059         GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
18060         * include/grub/types.h (grub_get_unaligned16): New function.
18061         (grub_get_unaligned32): Likewise.
18062         (grub_get_unaligned64): Likewise.
18063         * util/import_gcry.py (cryptolist): Add adler32.
18065 2011-10-05  Vladimir Serbinenko  <phcoder@gmail.com>
18067         * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
18068         in perspective decreases the complexity of build system and fixes
18069         compilation right now.
18071 2011-10-01  Ales Nesrsta <starous@volny.cz>
18073         * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
18074         (fixed problem related to using UHCI with coreboot).
18076 2011-08-25  BVK Chaitanya  <bvk.groups@gmail.com>
18078         * gentpl.py: Use Autogen macros so that the output template file
18079         (Makefile.tpl) size is reduced.
18081 2011-09-29  Mads Kiilerich <mads@kiilerich.com>
18083         * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
18084         extra_dist.
18086 2011-09-29  Mario Limonciello <mario_limonciello@dell.com>
18088         * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
18089         slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
18091 2011-09-29  Mario Limonciello <mario_limonciello@dell.com>
18093         * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
18094         _fullpath.
18096 2011-09-29  Mario Limonciello <mario_limonciello@dell.com>
18098         Remove extra declaration of sleep for mingw32.
18100         * util/misc.c (sleep) [__MINGW32__]: Removed.
18101         * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18103 2011-09-28  Grégoire Sutre  <gregoire.sutre@gmail.com>
18105         * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18106         type and packname.
18107         * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18108         Resurrected.
18109         (NETBSD_BTINFO_BOOTWEDGE): New definition.
18110         (grub_netbsd_btinfo_bootwedge): New struct.
18111         * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18112         New function.
18113         (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18115 2011-09-28  Thomas Haller <thomas.haller@fen-net.de>
18117         * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18118         loader.
18120 2011-09-28  Andreas Born  <futur.andy@googlemail.com>
18122         Fix incorrect identifiers in bash-completion.
18124         * util/bash-completion.d/grub-completion.bash.in
18125         (_grub_mkpasswd-pbkdf2): Rename to ...
18126         (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18127         (_grub_script-check): Rename to ...
18128         (_grub_script_check): ... this. All users updated.
18130 2011-09-28  Vladimir Serbinenko  <phcoder@gmail.com>
18132         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18133         Return 0 if disk isn't biosdisk.
18135 2011-09-17  Grégoire Sutre  <gregoire.sutre@gmail.com>
18137         * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18138         on NetBSD.
18139         * Makefile.util.def (grub-fstest): Likewise.
18141 2011-09-17  Grégoire Sutre  <gregoire.sutre@gmail.com>
18143         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18144         Get sector size from disk label.
18146 2011-09-05  Colin Watson  <cjwatson@ubuntu.com>
18148         * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18149         */README* as well as README*.
18150         Reported by: Axel Beckert.
18152 2011-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
18154         * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18155         case of less than 256 MiB of RAM.
18157 2011-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
18159         * grub-core/commands/wildcard.c (make_regex): Handle @.
18161 2011-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
18163         * util/grub-install.in: Move cryptodisk logic to appropriate place.
18165 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18167         * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18168          AC_LANG_CONFTEST macros.
18170 2011-08-20  Szymon Janc <szymon@janc.net.pl>
18172         Add grub-fstest option to uncompress data for commands.
18174         * util/grub-fstest.c (uncompress): New var.
18175         (options): New option -u.
18177 2011-08-20  Szymon Janc <szymon@janc.net.pl>
18179         * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18180         GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18182 2011-08-20  Szymon Janc <szymon@janc.net.pl>
18184         * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18185         file type was not recognized correctly (not gzip or corrupted).
18187 2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
18189         * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18190         * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18192 2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
18194         * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18195         loongson.
18196         * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18197         video_radeon_fuloong2e.
18198         * grub-core/video/radeon_fuloong2e.c: New file.
18199         * include/grub/video.h (grub_video_id_t): Add new ID
18200         GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18202 2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
18204         * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18205         define.
18206         * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18207         that PRID matches the detected subplatform and reset the subplatform
18208         if it doesn't.
18210 2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
18212         * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18214 2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
18216         Fix PCI iterating on functions >= 4.
18218         * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18219         * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18220         Removed.
18221         (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18222         (grub_pci_read): Fix bitmask.
18223         (grub_pci_read_word): Likewise.
18224         (grub_pci_read_byte): Likewise.
18225         (grub_pci_write): Likewise.
18226         (grub_pci_write_word): Likewise.
18227         (grub_pci_write_byte): Likewise.
18229 2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
18231         * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18232         can still be specified in TARGET_CFLAGS)
18234 2011-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
18236         Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18238         * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18239         into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18240         * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18241         * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18242         (FULOONG): Rename to ...
18243         (FULOONG2F): ... this. All users updated.
18244         * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18245         (machtype_fuloong2f_str): ... this.
18246         (machtype_fuloong2e_str): New string.
18247         Check for machtype_fuloong2e_str.
18248         * grub-core/loader/mips/linux.c (loongson_machtypes)
18249         [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18250         * grub-core/term/serial.c (loongson_defserial)
18251         [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18252         (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18253         loongson_defserial.
18254         * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18255         Rename to ...
18256         (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18257         (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18258         * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18259         to IMAGE_FULOONG2F_FLASH. All users updated.
18260         (image_targets): Rename images.
18261         * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18263 2011-08-19  Szymon Janc <szymon@janc.net.pl>
18265         Make enable of disk cache statistics code configurable.
18267         * configure.ac: --enable-cache-stats added.
18268         * config.h.in (DISK_CACHE_STATS): New define.
18269         * grub-core/Makefile.core.def (cacheinfo): New command.
18270         * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18271         * grub-core/commands/cacheinfo.c: New file.
18272         * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18273         moved to cacheinfo.c.
18274         * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18275         debug code.
18276         * include/grub/disk.h: Likewise.
18278 2011-08-19  Szymon Janc <szymon@janc.net.pl>
18280         * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18281         * grub-core/Makefile.am: Likewise.
18283 2011-08-16  Vladimir Serbinenko  <phcoder@gmail.com>
18285         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18286         non-zero pull.
18288 2011-08-16  Vladimir Serbinenko  <phcoder@gmail.com>
18290         * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18291         All users updated.
18292         (grub_jfs_lookup_symlink): Use correct starting inode.
18294 2011-08-16  Vladimir Serbinenko  <phcoder@gmail.com>
18296         * util/grub-setup.c (main): Add missing gcry initialisation.
18298 2011-08-16  Vladimir Serbinenko  <phcoder@gmail.com>
18300         Don't accept text modes on EFI when booting Linux.
18302         * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18303         (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18305 2011-08-15  Mario Limonciello  <mario_limonciello@dell.com>
18306 2011-08-15  Colin Watson  <cjwatson@ubuntu.com>
18308         * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18309         use of "/path/.." as in grub-install for EFI as well as handling
18310         symlinks correctly.
18311         Fixes Debian bug #637768.
18313 2011-08-15  Colin Watson  <cjwatson@ubuntu.com>
18315         * util/grub-probe.c: Remove duplicate #include.
18317 2011-08-10  Robert Millan  <rmh@gnu.org>
18319         Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18321         * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18322         function.
18323         [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18324         (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18326 2011-08-03  Robert Millan  <rmh@gnu.org>
18328         * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18329         la_array as packed.
18330         Reported by: Zachary Bedell
18332 2011-07-26  Colin Watson  <cjwatson@ubuntu.com>
18334         * configure.ac: The Loongson port requires grub-mkfont due to its
18335         use of -DUSE_ASCII_FAILBACK.  Raise an error if it is not going to
18336         be built.
18338 2011-07-26  Colin Watson  <cjwatson@ubuntu.com>
18340         * util/grub-install.in: Don't source grub-mkconfig_lib until after
18341         processing arguments (otherwise help2man fails when GRUB has not yet
18342         been installed).
18344 2011-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
18346         New script grub-mkstandalone.
18348         * Makefile.util.def (grub-mkstandalone): New script.
18349         * docs/man/grub-mkstandalone.h2m: New file.
18350         * util/grub-mkstandalone.in: Likewise.
18352 2011-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
18354         Support ATA disks with 4K sectors.
18356         * include/grub/ata.h (grub_ata): New member log_sector_size.
18357         * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18358         (grub_ata_identify): Read sector size.
18359         (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18361 2011-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
18363         * util/grub-install.in: Don't use uhci outside of x86.
18365 2011-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
18367         * util/grub-mkrescue.in: Add missing quotes.
18369 2011-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
18371         * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18372         dereference.
18374 2011-07-23  Vladimir Serbinenko  <phcoder@gmail.com>
18376         * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18378 2011-07-23  Vladimir Serbinenko  <phcoder@gmail.com>
18380         * include/grub/video.h: add missing EXPORT_FUND on
18381         grub_video_edid_checksum and grub_video_edid_preferred_mode.
18383 2011-07-23  Vladimir Serbinenko  <phcoder@gmail.com>
18385         * include/grub/mips/kernel.h: Fix define conflict.
18387 2011-07-23  Vladimir Serbinenko  <phcoder@gmail.com>
18389         * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18390         all four ways.
18392 2011-07-21  Colin Watson  <cjwatson@ubuntu.com>
18394         Preferred resolution detection for VBE.
18396         * grub-core/video/video.c (grub_video_edid_checksum): New function.
18397         (grub_video_edid_preferred_mode): Likewise.  Try EDID followed by
18398         the Flat Panel extension, in line with the X.org VESA driver.
18399         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18400         New function.
18401         (grub_vbe_bios_get_ddc_capabilities): Likewise.
18402         (grub_vbe_bios_read_edid): Likewise.
18403         (grub_vbe_get_preferred_mode): Likewise.
18404         (grub_video_vbe_setup): When the mode is "auto", try to get the
18405         preferred mode from VBE, and use the largest mode that is no larger
18406         than the preferred mode (some BIOSes expose a preferred mode that is
18407         not in their mode list!).  If this fails, fall back to 640x480 as a
18408         safe conservative choice.
18409         (grub_video_vbe_get_edid): New function.
18410         (grub_video_vbe_adapter): Add get_edid.
18411         * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18412         (struct grub_video_adapter): Add get_edid.
18413         (grub_video_edid_checksum): Add prototype.
18414         (grub_video_edid_preferred_mode): Likewise.
18415         * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18416         structure.
18418         * grub-core/commands/videoinfo.c (print_edid): New function.
18419         (grub_cmd_videoinfo): Print EDID if available.
18421         * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto".  This
18422         is more appropriate on a wider range of platforms than 640x480.
18423         * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18424         documentation.
18426 2011-07-10  Vladimir Serbinenko  <phcoder@gmail.com>
18428         * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18430 2011-07-10  Vladimir Serbinenko  <phcoder@gmail.com>
18432         * po/POTFILES.in: Regenerate.
18434 2011-07-10  Vladimir Serbinenko  <phcoder@gmail.com>
18436         * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18437         incorrect memory usage.
18439 2011-07-10  Vladimir Serbinenko  <phcoder@gmail.com>
18441         * util/grub-install.in: Source grub-mkconfig_lib.
18443 2011-07-08  Vladimir Serbinenko  <phcoder@gmail.com>
18445         Remove getroot.c from core on emu platform.
18447         * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18448         kern/emu/raid.c.
18449         * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18450         useless.
18451         * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18452         * util/getroot.c (get_win32_path): ... here.
18453         * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18454         * util/getroot.c (fini_libzfs): ... here.
18455         * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18456         * util/getroot.c (grub_get_libzfs_handle): ... here.
18457         * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18458         Moved from here...
18459         * util/getroot.c (grub_find_zpool_from_dir): ... here.
18460         * grub-core/kern/emu/misc.c
18461         (grub_make_system_path_relative_to_its_root): Moved from here...
18462         * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18463         * grub-core/kern/emu/getroot.c: Moved from here ...
18464         * util/getroot.c: ... here. All users updated.
18465         * grub-core/kern/emu/raid.c: Moved from here ...
18466         * util/raid.c: ... here. All users updated.
18468 2011-07-08  Vladimir Serbinenko  <phcoder@gmail.com>
18470         * po/POTFILES.in: Regenerate.
18472 2011-07-07  Vladimir Serbinenko  <phcoder@gmail.com>
18474         Fix compilation on GNU/Linux.
18476         * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18477         Disable geli.
18478         (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18479         (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18480         * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18482 2011-07-07  Vladimir Serbinenko  <phcoder@gmail.com>
18483 2011-07-07  Michael Gorven  <michael@gorven.za.net>
18484 2011-07-07  Clemens Fruhwirth <clemens@endorphin.org>
18486         LUKS and GELI support.
18488         * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18489         grub-core/disk/luks.c, grub-core/disk/geli.c,
18490         grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18491         grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18492         grub-core/lib/arg.c.
18493         (libgrubmods.a): Remove gcrypts cflags and cppflags.
18494         Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18495         grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18496         grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18497         (grub-bin2h): Add libgcry.a.
18498         (grub-mkimage): Likewise.
18499         (grub-mkrelpath): Likewise.
18500         (grub-script-check): Likewise.
18501         (grub-editenv): Likewise.
18502         (grub-mkpasswd-pbkdf2): Likewise.
18503         (grub-pe2elf): Likewise.
18504         (grub-fstest): Likewise.
18505         (grub-mkfont): Likewise.
18506         (grub-mkdevicemap): Likewise.
18507         (grub-probe): Likewise.
18508         (grub-ofpath): Likewise.
18509         (grub-mklayout): Likewise.
18510         (example_unit_test): Likewise.
18511         (grub-menulst2cfg): Likewise.
18512         * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18513         * grub-core/Makefile.core.def (cryptodisk): New module.
18514         (luks): Likewise.
18515         (geli): Likewise.
18516         * grub-core/disk/AFSplitter.c: New file.
18517         * grub-core/disk/cryptodisk.c: Likewise.
18518         * grub-core/disk/geli.c: Likewise.
18519         * grub-core/disk/luks.c: Likewise.
18520         * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18521         grub_util_is_lvm.
18522         (grub_util_get_dm_abstraction): New function.
18523         (grub_util_follow_gpart_up): Likewise.
18524         (grub_util_get_geom_abstraction): Likewise.
18525         (grub_util_get_dev_abstraction): Use new functions.
18526         (grub_util_pull_device): Pull GELI and LUKS.
18527         (grub_util_get_grub_dev): Handle LUKS and GELI.
18528         * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18529         (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18530         (follow_geom_up): Removed.
18531         (grub_util_fd_seek): New function.
18532         (open_device): Use grub_util_fd_seek.
18533         (nread): Rename to ..
18534         (grub_util_fd_read): ... this. All users updated.
18535         * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18536         (grub_crypto_cbc_decrypt): Likewise.
18537         (grub_crypto_hmac_write): Likewise.
18538         (grub_crypto_hmac_buffer): Likewise.
18539         (grub_password_get): Extend to util.
18540         * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18541         New member modname.
18542         (gcry_md_spec) [GRUB_UTIL]: Likewise.
18543         * include/grub/cryptodisk.h: New file.
18544         * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18545         * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18546         LUKS and GELI.
18547         (grub_util_follow_gpart_up): New proto.
18548         * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18549         (grub_util_fd_read): Likewise.
18550         (grub_cryptodisk_cheat_mount): Likewise.
18551         (grub_util_cryptodisk_print_uuid): Likewise.
18552         (grub_util_get_fd_sectors): Likewise.
18553         * util/grub-fstest.c (mount_crypt): New var.
18554         (fstest): Mount crypto if requested.
18555         (options): New option -C.
18556         (argp_parser): Parse -C.
18557         (main): Init and fini gcry.
18558         * util/grub-install.in: Support cryptodisk install.
18559         * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18560         * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18561         cryptodisk.
18562         (prepare_grub_to_access_device): Likewise.
18563         * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18564         * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18565         (probe_cryptodisk_uuid): New function.
18566         (probe_abstraction): Likewise.
18567         (probe): Use new functions.
18568         * util/import_gcry.py: Create Makefile.utilgcry.def.
18569         Add modname member.
18571 2011-07-07  Vladimir Serbinenko  <phcoder@gmail.com>
18573         Lazy device scanning.
18575         * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18576         (grub-setup): Remove util/raid.c.
18577         * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18578         * grub-core/disk/lvm.c (scan_depth): New variable.
18579         (grub_lvm_iterate): Rescan if necessary.
18580         (find_lv): New function based on grub_lvm_open.
18581         (grub_lvm_open): Use find_lv. Rescan on error.
18582         (is_node_readable): New function.
18583         (is_lv_readable): Likewise.
18584         (grub_lvm_scan_device): Skip already found disks.
18585         (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18586         Stop if searched device is found and readable.
18587         * grub-core/disk/raid.c (inscnt): New variable.
18588         (scan_depth): Likewise.
18589         (scan_devices): New function based on grub_raid_register. Abort if
18590         looked for device is found.
18591         (grub_raid_iterate): Rescan if needed.
18592         (find_array): NEw function based on -grub_raid_open.
18593         (grub_raid_open): Use find_array and rescan.
18594         (insert_array): Set became_readable_at.
18595         * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18596         * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18597         New function.
18598         (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18599         (grub_util_pull_device): New function.
18600         (grub_util_get_grub_dev): Call grub_util_pull_device.
18601         * util/raid.c: Moved to ..
18602         * grub-core/kern/emu/raid.c: ... here.
18603         (grub_util_raid_getmembers): New parameter "bootable".
18604         All users updated. Support 1.x.
18605         * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18606         All users updated.
18607         * include/grub/disk.h (grub_disk_pull_t): New enum.
18608         (grub_disk_dev): Change iterate prototype.
18609         All users updated.
18610         * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18611         New proto.
18612         * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18613         * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18614         * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18615         * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18616         All users updated.
18617         * include/grub/util/raid.h: Removed.
18619 2011-07-06  Vladimir Serbinenko  <phcoder@gmail.com>
18621         * po/POTFILES.in: Regenerate.
18623 2011-07-06  Vladimir Serbinenko  <phcoder@gmail.com>
18625         Unify sparc init with other ieee1275.
18627         * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18628         instead of kern/sparc64/ieee1275/init.c.
18629         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18630         [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18631         * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18632         grub/machine/kernel.h.
18633         (grub_ieee1275_original_stack) [__sparc__]: New variable.
18634         (grub_claim_heap) [__sparc__]: Use sparc version.
18635         (grub_machine_init): Moved args parsing to
18636         (grub_parse_cmdline): ...this.
18637         * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18638         * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18639         New definition.
18640         (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18642         Move BOOTP to separate file.
18644         * grub-core/Makefile.core.def (net): Add net/bootp.c.
18645         * grub-core/net/net.c: Move all BOOTP functions to
18646         * grub-core/net/bootp.c: ... here.
18648         Use frame interface on PXE.
18650         * grub-core/Makefile.core.def (pxecmd): Removed.
18651         (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18652         * grub-core/commands/i386/pc/pxecmd.c: Removed.
18653         * grub-core/i386/pc/pxe.c: Moved from here ...
18654         * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18655         * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18656         * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18658         EFI network support.
18660         * grub-core/Makefile.core.def (efinet): New module.
18661         * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18662         here...
18663         * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18664         All users updated.
18665         * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18666         (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18667         * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18668         * grub-core/net/drivers/efi/efinet.c: New file.
18669         * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18670         (grub_efi_net_config): New extern var.
18672         Various cleanups and bugfixes.
18674         * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18675         error.
18676         (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18677         disk declared as partition.
18678         * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18679         leak on failure.
18680         * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18681         * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18682         (grub_debug_zalloc): Likewise.
18683         (grub_debug_realloc): Likewise.
18684         (grub_debug_memalign): Likewise.
18685         * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18686         Check that target is IPv4.
18687         * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18688         local-mac-address as fallback.
18689         * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18690         memory leak.
18691         * grub-core/net/ip.c (ipchksum): Rename to ...
18692         (grub_net_ip_chksum): ... this. All users updated.
18693         (grub_net_recv_ip_packets): Special handling for DHCP.
18694         * util/grub-mkimage.c (generate_image): Zero-out aout header.
18696         Unify prefix handling
18698         * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18699         (grub_machine_get_bootlocation): ... this.
18700         * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18701         (grub_machine_get_bootlocation): ... this.
18702         (grub_prefix): New variable.
18703         (prefix): Removed.
18704         (root_dev): New variable.
18705         (dir): Likewise.
18706         (main): Use new variables.
18707         * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18708         Revamped into ...
18709         (grub_machine_get_bootlocation): ... this.
18710         * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18711         * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18712         (grub_machine_get_bootlocation): ... this.
18713         (grub_machine_set_prefix): Removed.
18714         * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18715         * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18716         Revamped into ...
18717         (grub_machine_get_bootlocation): ... this.
18718         * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18719         (grub_set_prefix_and_root): ... this. All users updated.
18720         * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18721         Revamped into ...
18722         (grub_machine_get_bootlocation): ... this.
18723         * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18724         (grub_machine_get_bootlocation): New proto.
18725         * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18727         Less intrusive and more reliable seek on network implementation.
18729         * grub-core/kern/file.c (grub_file_net_seek): Removed.
18730         (grub_file_seek): Don't call grub_file_net_seek.
18731         * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18732         (grub_net_fs_read_real): .. this.
18733         (grub_net_seek_real): Use net->offset.
18734         (grub_net_fs_read): Seek if necessary.
18736         Unify IEEE1275 netwotk config with the other platforms.
18738         * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18739         New variable.
18740         (grub_machine_get_bootlocation): Support network.
18741         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18742         Support type and device parsing.
18743         (grub_ieee1275_get_device_type): New function.
18744         * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18745         into ...
18746         (grub_ieee1275_net_config_real): ... this.
18747         (grub_ofnet_probecards): Removed.
18748         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18749         * include/grub/ieee1275/ofnet.h: Removed.
18750         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18751         extern var.
18752         (grub_ieee1275_get_device_type): New function.
18754         Unify network device closing across platforms and make more robust.
18756         * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18757         grub_grubnet_fini.
18758         * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18759         already.
18760         * grub-core/net/net.c (grub_net_network_level_interface_register):
18761         Update num_ifaces.
18762         (grub_net_card_unregister): Close all interfaces.
18763         (receive_packets): Don't poll if no iterfaces are registered.
18764         Open if necessary.
18765         (grub_net_fini_hw): New function.
18766         (grub_net_restore_hw): Likewise.
18767         (fini_hnd): New variable.
18768         (GRUB_MOD_INIT): Register preboot hook.
18769         (GRUB_MOD_FINI): Run and unregister preboot hook.
18771         Poll network cards when idle.
18773         * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18774         (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18775         * grub-core/net/net.c (receive_packets): Save last poll time.
18776         (grub_net_poll_cards_idle_real): New function.
18777         (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18778         (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18779         * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18781         Rename ofnet interfaces.
18783         * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18784         (grub_ofnet_findcards): Use ofnet_%s names.
18786         * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18788         Cleanup socket opening.
18790         * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18791         (grub_net_fs_close): Likewise.
18792         (grub_net_fs_read_real): Use eof member.
18793         * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18794         (+grub_net_udp_close): New inline function.
18796         * include/grub/net/tftp.h: Moved to the top of ...
18797         * grub-core/net/tftp.c: ... here.
18798         * include/grub/net/ip.h: Moved mostly to the top of ...
18799         * grub-core/net/ip.c: ... here.
18800         * include/grub/net/ethernet.h: Moved mostly to the top of ...
18801         * grub-core/net/ethernet.c: ... here.
18803         * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18805         * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18806         FS name.
18808         * include/grub/net/ip.h (ipv4_ini): Removed.
18809         (ipv4_fini): Likewise.
18811         * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18812         (grub_net_send_ip_packets): Likewise.
18814 2011-07-05  Vladimir Serbinenko  <phcoder@gmail.com>
18816         * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18817         grub_read_cmos prototype.
18819 2011-07-05  Vladimir Serbinenko  <phcoder@gmail.com>
18821         VGA text support in qemu-mips
18823         * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18824         term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18825         * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18826         text.
18827         * grub-core/kern/i386/qemu/init.c: Renamed to ...
18828         * grub-core/kern/vga_init.c: ... this.
18829         * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18830         (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18831         * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18832         Adjust.
18833         * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18834         GRUB_MACHINE_PCI_IO_BASE.
18836 2011-07-05  Vladimir Serbinenko  <phcoder@gmail.com>
18838         MIPS qemu flash support.
18840         * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18841         magic.
18842         * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18843         (grub_machine_init): Probe memory if its size isn't known.
18844         * util/grub-mkimage.c (image_targets): Add flash targets.
18845         (generate_image): Handle flash targets.
18847 2011-07-05  Vladimir Serbinenko  <phcoder@gmail.com>
18849         MIPS qemu at_keyboard support.
18851         * gentpl.py (videoinkernel): Add qemu-mips.
18852         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18853         * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18854         * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18855         modules.
18856         * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18857         [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18858         * grub-core/term/serial.c (grub_serial_register)
18859         [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18861 2011-07-05  Vladimir Serbinenko  <phcoder@gmail.com>
18863         CMOS support on sparc.
18865         * gentpl.py (cmos): Add powerpc and sparc.
18866         * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18867         powerpc and sparc.
18868         * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18869         [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18870         (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18871         grub_set_datetime_cmos.
18872         * grub-core/lib/ieee1275/cmos.c: New file.
18873         * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18874         (find_rtc): Set no_ieee1275_rtc on error.
18875         (grub_get_datetime): Call grub_get_datetime_cmos on error.
18876         (grub_set_datetime): Call grub_set_datetime_cmos on error.
18877         * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18878         fail. Move value to argument. All users updated
18879         (grub_cmos_write): Likewise.
18880         (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18881         (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18882         * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18883         grub_get_datetime_cmos and grub_set_datetime_cmos.
18885 2011-07-02  Grégoire Sutre  <gregoire.sutre@gmail.com>
18887         * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18888         sourcing grub-mkconfig_lib.
18889         * util/update-grub_lib.in: Likewise.
18890         * util/grub.d/00_header.in: Likewise.
18891         * util/grub.d/10_hurd.in: Likewise.
18892         * util/grub.d/10_kfreebsd.in: Likewise.
18893         * util/grub.d/10_linux.in: Likewise.
18894         * util/grub.d/10_netbsd.in: Likewise.
18895         * util/grub.d/10_windows.in: Likewise.
18896         * util/grub.d/20_linux_xen.in: Likewise.
18897         * util/grub.d/30_os-prober.in: Likewise.
18899 2011-06-28  Colin Watson  <cjwatson@ubuntu.com>
18901         * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18902         default_bg_color rather than black.
18903         (grub_gfxterm_fullscreen): Likewise.
18904         (grub_gfxterm_background_color_cmd): Save new background color in
18905         default_bg_color.
18907 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18909         * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18911 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18913         * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18914         mismerge.
18916 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18918         Chainloading on coreboot support.
18920         * grub-core/Makefile.core.def (chain): Add coreboot.
18921         * grub-core/loader/i386/coreboot/chainloader.c: New file.
18923 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18925         * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18926         if it happens.
18928 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18930         Implement time command.
18932         * grub-core/Makefile.core.def (time): New module.
18933         * grub-core/commands/time.c: New file.
18934         * grub-core/script/parser.y: Remove "time" keyword.
18935         * grub-core/script/yylex.l: Likewise.
18937 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18939         * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18941 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18943         * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18944         when handling leftovers.
18946 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18948         * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18949         so that help2man doesn't fail.
18951 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18953         * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18954         type in pointers on sparc64.
18955         (get_card_packet): Likewise.
18957 2011-06-27  Colin Watson  <cjwatson@ubuntu.com>
18959         * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18960         with `*'.
18961         (grub_cmd_videoinfo): Fetch current video mode.
18963 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18965         * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18966         because of underlying system restrictions.
18968 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18970         * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18971         necessary.
18973 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18975         Coreboot video support.
18977         * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18978         (vbe): Likewise.
18979         * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18980         * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18981         here ...
18982         * grub-core/kern/i386/int.S: ... here.
18983         * grub-core/video/i386/pc/vbe.c: Updated includes.
18984         * grub-core/video/i386/pc/vga.c: Likewise.
18985         * include/grub/i386/coreboot/memory.h
18986         (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18987         (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18988         (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18989         * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18990         Disable interrupts.
18991         * include/grub/i386/pc/vga.h: Removed. All users updated.
18993 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
18995         * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18996         definitions for dprintf.
18997         * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18999 2011-06-27  Vladimir Serbinenko  <phcoder@gmail.com>
19001         * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
19002         prototype.
19003         (get_card_packet): Likewise.
19005 2011-06-26  Yves Blusseau  <blusseau@zetam.org>
19007         Display the path of the file when file is not found
19009         * grub-core/fs/fat.c: Display the filename when file is not found.
19010         * grub-core/fs/fshelp.c: Likewise.
19011         * grub-core/fs/hfs.c: Likewise.
19012         * grub-core/fs/jfs.c: Likewise.
19013         * grub-core/fs/minix.c: Likewise.
19014         * grub-core/fs/ufs.c: Likewise.
19015         * grub-core/fs/btrfs.c: Likewise.
19016         * grub-core/commands/i386/pc/play.c: Likewise.
19018 2011-06-26  Szymon Janc <szymon@janc.net.pl>
19020         * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
19021         pointer checks before calling grub_free().
19022         * grub-core/commands/wildcard.c (match_devices): Likewise.
19023         * grub-core/commands/wildcard.c (match_files): Likewise.
19024         * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
19025         * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
19026         * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
19027         * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
19028         * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
19029         * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
19030         * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
19031         * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
19032         * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
19034 2011-06-25  Patrick <p55@mailinator.com>
19036         * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
19038 2011-06-25  Vladimir Serbinenko  <phcoder@gmail.com>
19040         * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
19041         (grub_pxe_send): Likewise.
19042         (GRUB_MOD_INIT): Fix types.
19044 2011-06-24  Szymon Janc <szymon@janc.net.pl>
19046         * grub-core/io/xzio.c: Fix code style issues
19048 2011-06-24  Vladimir Serbinenko  <phcoder@gmail.com>
19049 2011-06-24  Manoel Rebelo Abranches <mrabran@gmail.com>
19051         Network infrastructure.
19052         The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
19054         * include/grub/net/arp.h: New file.
19055         * include/grub/net/device.h: Likewise.
19056         * include/grub/net/ethernet.h: Likewise.
19057         * include/grub/net/ip.h: Likewise.
19058         * include/grub/net/netbuff.h: Likewise.
19059         * include/grub/net/tftp.h: Likewise.
19060         * include/grub/net/udp.h: Likewise.
19061         * include/grub/ieee1275/ofnet.h: Likewise.
19062         * include/grub/emu/export.h: Likewise.
19063         * include/grub/net.h: Likewise.
19064         * grub-core/net/arp.c: Likewise.
19065         * grub-core/net/ethernet.c: Likewise.
19066         * grub-core/net/ip.c: Likewise.
19067         * grub-core/net/udp.c: Likewise.
19068         * grub-core/net/tftp.c: Likewise.
19069         * grub-core/net/netbuff.c: Likewise.
19070         * grub-core/net/net.c: Likewise.
19071         * grub-core/net/drivers/emu/emunet.c: Likewise.
19072         * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
19073         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
19074         export.h.
19075         * grub-core/Makefile.core.def (net): New module.
19076         (tftp): Likewise.
19077         (ofnet): Likewise.
19078         (emunet): Likewise.
19079         * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
19080         network protocols.
19081         * grub-core/kern/device.c (grub_net_open) : New variable.
19082         (grub_device_open): Handle network device.
19083         (grub_device_close): Likewise.
19084         * grub-core/kern/file.c (grub_file_net_seek) : New variable.
19085         (grub_grubnet_fini): Likewise.
19086         (grub_file_seek): Seek in network device.
19087         * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
19088         * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
19089         network root.
19090         (grub_machine_fini): Call grub_grubnet_fini.
19091         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
19092         network.
19093         (grub_ieee1275_get_aliasdevname): New function.
19094         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19095         Add unofficial Solaris network info.
19096         (grub_multiboot_make_mbi): Likewise.
19097         * grub-core/fs/i386/pc/pxe.c: Moved from here ...
19098         * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
19099         * include/grub/device.h (grub_fs): Removed.
19100         * include/grub/err.h (grub_err_t): Add network-related values.
19101         * include/grub/i386/pc/pxe.h: Removed bootp parts.
19102         * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19103         (grub_ieee1275_get_aliasdevname): New proto.
19104         * include/grub/net.h: Rewritten.
19106 2011-06-24  Vladimir Serbinenko  <phcoder@gmail.com>
19108         * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19109         names.
19111 2011-06-24  Vladimir Serbinenko  <phcoder@gmail.com>
19113         * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19114         (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19115         it truncates the output.
19116         Reported by: Ximin Luo.
19118 2011-06-24  Vladimir Serbinenko  <phcoder@gmail.com>
19120         * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19122 2011-06-24  Vladimir Serbinenko  <phcoder@gmail.com>
19124         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19125         partmap before abstraction.
19127 2011-06-24  Alexander Kurtz <kurtz.alex@googlemail.com>
19129         * util/grub-mkconfig_lib.in: Add missing quotes.
19131 2011-06-24  Vladimir Serbinenko  <phcoder@gmail.com>
19133         * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19134         old method if mountinfo would return /dev/root and /dev/root doesn't
19135         exist.
19137 2011-06-24  Vladimir Serbinenko  <phcoder@gmail.com>
19139         ZFS zlib support
19141         * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19142         (decomp_table): Add zlib entries.
19143         (zio_read): USe 8 bits for compression function rather than 3.
19144         * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19146 2011-06-24  Vladimir Serbinenko  <phcoder@gmail.com>
19148         * grub-core/disk/ahci.c: Add missing license statements.
19149         * grub-core/fs/romfs.c: Likewise.
19150         * grub-core/lib/ia64/setjmp.S: Likewise.
19151         * grub-core/loader/i386/pc/freedos.c: Likewise.
19152         * grub-core/loader/ia64/efi/linux.c: Likewise.
19153         * grub-core/video/colors.c: Likewise.
19154         * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19156 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19158         AHCI support.
19160         * grub-core/Makefile.core.def (ata_pthru): Removed.
19161         (ahci): New module.
19162         (pata): Likewise.
19163         * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19164         on unload.
19165         * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19166         readwrite.
19167         (grub_hdparm_do_check_powermode_cmd): Likewise.
19168         (grub_hdparm_do_smart_cmd): Likewise.
19169         (grub_hdparm_set_val_cmd): Likewise.
19170         (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19171         * grub-core/disk/ahci.c: New file.
19172         * grub-core/disk/ata.c: Factor out the low-level part into ...
19173         * grub-core/disk/pata.c: ... here.
19174         * grub-core/disk/ata_pthru.c: Contents moved to ...
19175         * grub-core/disk/pata.c: ... here.
19176         * grub-core/disk/scsi.c (grub_scsi_names): New array.
19177         (grub_scsi_iterate): Use grub_scsi_names.
19178         (grub_scsi_open): Likewise.
19179         * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19180         * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19181         (grub_ata_regs_t): New struct.
19182         (grub_disk_ata_pass_through_parms): Likewise.
19183         (grub_ata_device): Renamed to ...
19184         (grub_ata): ... this.
19185         (grub_ata_dev): New struct.
19186         Removed all low-level inline functions.
19187         * include/grub/scsi.h: Add PATA and AHCI subsystems.
19188         (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19189         iterate hooks and open. All users updated.
19190         * util/grub-install.in: Handle AHCI disk module.
19192 2011-06-23  Szymon Janc <szymon@janc.net.pl>
19194         Add support for DRI and RSTn markers in JPEG files.
19196         * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19197         (JPEG_MARKER_RST0): Likewise.
19198         (JPEG_MARKER_RST1): Likewise.
19199         (JPEG_MARKER_RST2): Likewise.
19200         (JPEG_MARKER_RST3): Likewise.
19201         (JPEG_MARKER_RST4): Likewise.
19202         (JPEG_MARKER_RST5): Likewise.
19203         (JPEG_MARKER_RST6): Likewise.
19204         (JPEG_MARKER_RST7): Likewise.
19205         (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19206         (grub_jpeg_decode_dri): New function.
19207         (grub_jpeg_decode_sos): Move image data related part into
19208         grub_jpeg_decode_data function.
19209         (grub_jpeg_decode_data): New function.
19210         (grub_jpeg_reset): New function.
19211         (grub_jpeg_decode_jpeg): Handle new markers.
19213 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19215         * util/ieee1275/ofpath.c (check_sas): Close fd.
19216         (main): Free of_path.
19217         Reported by: David Volgyes <dvolgyes>.
19219 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19221         * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19222         Reported by: David Volgyes <dvolgyes>.
19224 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19226         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19227         file after stat.
19228         Reported by: David Volgyes <dvolgyes>.
19230 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19232         * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19234         Reported by: David Volgyes <dvolgyes>.
19236 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19238         * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19239         Prevent memory leak.
19241 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19243         * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19244         (main): Close file.
19245         Reported by: David Volgyes <dvolgyes>.
19247 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19249         * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19250         to continue if allocation is failed.
19252         Reported by: David Volgyes <dvolgyes>.
19254 2011-06-23  David Volgyes <dvolgyes>
19256         * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19257         dereference.
19259 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19261         Fix spurious warning.
19263         * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19264         (acorn_partition_map_find): Use .bin member.
19266 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19268         * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19269         /dev/root as a valid device.
19271 2011-06-23  Jim Meyering  <meyering@redhat.com>
19273         Avoid NULL deref in grub_device_open.
19275         * grub-core/kern/device.c (grub_device_open): Don't dereference
19276         a NULL pointer upon failed grub_env_get.
19278 2011-06-23  Vladimir Serbinenko  <phcoder@gmail.com>
19280         Support non-512B sectors and agglomerate reads.
19282         * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19283         * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19284         (disk_io_guid): Removed.
19285         (make_devices): Locate solely by BlockIO.
19286         (grub_efidisk_open): Fill log_sector_size and total_sectors.
19287         (grub_efidisk_read): Use read_blocks.
19288         (grub_efidisk_write): Use write_blocks.
19289         * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19290         log_sector_size.
19291         (get_safe_sectors): Handle non-512B sectors.
19292         (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19293         sectors.
19294         (grub_biosdisk_write): Handle non-512B sectors.
19295         * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19296         (grub_scsi_read): Remove special non-512B block handling (now handled
19297         one level up).
19298         * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19299         and do sanity checks.
19300         (grub_disk_adjust_range): Handle non-512B sectors.
19301         (transform_sector): New function.
19302         (grub_disk_read_small): Likewise.
19303         (grub_disk_read): Rewritten.
19304         (grub_disk_write): Handle non-512B sectors.
19305         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19306         log_sector_size.
19307         (open_device): Use log_sector_size.
19308         (grub_util_biosdisk_read): Likewise.
19309         (grub_util_biosdisk_write): Likewise.
19310         * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19311         non-512B sectors.
19312         (pc_partition_map_embed): Likewise.
19313         * include/grub/disk.h (grub_disk): New field log_sector_size.
19314         (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19315         (GRUB_DISK_CACHE_BITS): Increased to 6.
19316         * util/grub-fstest.c (fstest): New command testload.
19317         (argp_parser): Likewise.
19319 2011-06-16  Robert Millan  <rmh@gnu.org>
19321         Detect `ataraid' devices on GNU/kFreeBSD.  Fix for ATA devices using
19322         `ata' driver on kernel of FreeBSD 9.
19324         * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19325         (get_ataraid_disk_name): New functions.
19326         [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19327         (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19328         get_ataraid_disk_name() and get_ada_disk_name().
19330 2011-06-13  Colin Watson  <cjwatson@ubuntu.com>
19332         * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19333         input format.
19335 2011-05-29  Colin Watson  <cjwatson@ubuntu.com>
19337         * docs/grub.texi (Obtaining and Building GRUB): Substitute
19338         `ftp.gnu.org' for `alpha.gnu.org'.
19340 2011-05-27  Colin Watson  <cjwatson@ubuntu.com>
19342         * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19343         partitions under /dev/disk/by-id/.
19345 2011-05-27  Colin Watson  <cjwatson@ubuntu.com>
19347         * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19348         after ten consecutive open failures.  Scanning all the way up to
19349         10000 is excessive and can cause serious performance problems in
19350         some configurations.
19351         Fixes Ubuntu bug #787461.
19353 2011-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
19355         * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19356         opening new one.
19358 2011-05-21  Colin Watson  <cjwatson@ubuntu.com>
19359 2011-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
19361         Don't stat devices unless we have to.
19363         * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19364         dir == /dev/mapper.
19365         (grub_guess_root_device): Use already known os_dev if possible.
19366         * grub-core/kern/emu/hostdisk.c
19367         (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19368         if device is known to be a dm one.
19370 2011-05-20  Colin Watson  <cjwatson@ubuntu.com>
19372         * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19373         GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19374         Reported by: Pawel Tecza.
19376 2011-05-19  Vladimir Serbinenko  <phcoder@gmail.com>
19378         * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19379         (lsefisystab): Likewise.
19380         (lssal): Likewise.
19381         (lsefimmap): Likewise.
19382         (hdparm): Enable on qemu-mips.
19383         (setjmp): Add ia64 nodist.
19384         (serial): Simplify tags.
19386 2011-05-18  Colin Watson  <cjwatson@ubuntu.com>
19388         * Makefile.util.def (grub-ofpathname): Install manual page.
19390 2011-05-18  Colin Watson  <cjwatson@ubuntu.com>
19392         * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19394 2011-05-18  Colin Watson  <cjwatson@ubuntu.com>
19396         * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19398 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
19400         * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19401         into dprintf.
19403 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
19405         Use full 64-bit division.
19407         * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19408         (grub_divmod64): ... this.
19409         * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19410         version.
19412 2011-05-18  Colin Watson  <cjwatson@ubuntu.com>
19414         * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19415         `source'.
19417 2011-05-18  Colin Watson  <cjwatson@ubuntu.com>
19419         * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19420         to avoid accidents when debugging with 'sh -x'.
19421         * grub-core/gensyminfo.sh.in: Likewise.
19422         * tests/example_scripted_test.in: Likewise.
19423         * tests/grub_cmd_regexp.in: Likewise.
19424         * tests/grub_script_blanklines.in: Likewise.
19425         * tests/grub_script_dollar.in: Likewise.
19426         * tests/grub_script_expansion.in: Likewise.
19427         * tests/grub_script_final_semicolon.in: Likewise.
19428         * tests/partmap_test.in: Likewise.
19429         * tests/util/grub-shell-tester.in: Likewise.
19430         * tests/util/grub-shell.in: Likewise.
19432 2011-05-18  Colin Watson  <cjwatson@ubuntu.com>
19434         Move gfxmenu color handling to video, so that gfxterm can use it
19435         too.
19437         * grub-core/gfxmenu/named_colors.c: Move to ...
19438         * grub-core/video/colors.c: ... here.  Rename
19439         grub_gui_get_named_color to grub_video_get_named_color.
19440         * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19441         * grub-core/video/colors.c (my_isxdigit): ... here.
19442         * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19443         Move to ...
19444         * grub-core/video/colors.c (parse_hex_color_component): ... here.
19445         * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19446         to ...
19447         * grub-core/video/colors.c (grub_video_parse_color): ... here.
19449         * include/grub/gui.h (grub_gui_color_t): Move to ...
19450         * include/grub/video.h (grub_video_rgba_color_t): ... here.
19451         * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19452         * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19453         * include/grub/gui.h (grub_gui_map_color): Move to ...
19454         * include/grub/video.h (grub_video_map_rgba_color): ... here.
19455         * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19456         to ...
19457         * include/grub/video.h (grub_video_get_named_color): ... here.
19458         * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19459         * include/grub/video.h (grub_video_parse_color): ... here.
19461         * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19462         video/colors.c.
19463         (gfxmenu): Remove gfxmenu/named_colors.c.
19464         (video) [videomodules]: Add video/colors.c.
19466         Add a background_color command.
19468         * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19469         function.
19470         (GRUB_MOD_INIT): Register background_color command.
19471         (GRUB_MOD_FINI): Unregister background_color command.
19472         (redraw_screen_rect): Allow blend/replace of text layer to be
19473         controlled independently from whether there is a background bitmap.
19474         (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19475         changing bitmap.
19477 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
19479         Patch BPB in ntldr and chainloader --bpb.
19481         * grub-core/fs/fat.c: Include grub/fat.h.
19482         (grub_fat_bpb): Moved to ...
19483         * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19484         * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19485         grub/ntfs.h.
19486         * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19487         Moved from here...
19488         * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19489         here.
19490         * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19491         New function.
19492         (grub_chainloader_cmd): Patch BPB if --bpb is given.
19493         (GRUB_MOD_INIT): Show --bpb.
19494         * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19495         * grub-core/normal/main.c (features): New variable.
19496         (GRUB_MOD_INIT): Set feature_* variables.
19497         * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19498         proto.
19499         * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19501 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
19503         * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19504         for cleanness.
19506 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
19508         FreeDOS direct loading support.
19510         * docs/grub.texi (Supported OS): Add FreeDOS.
19511         * grub-core/Makefile.core.def (freedos): New module.
19512         * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19513         variable.
19514         (grub_relocator16_boot): Handle %ebx.
19515         * grub-core/lib/i386/relocator16.S: Likewise.
19516         * grub-core/loader/i386/pc/freedos.c: New file.
19518 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
19520         Long Linux command line support.
19522         * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19523         (maximal_cmdline_size): New variable.
19524         (allocate_pages): Use maximal_cmdline_size.
19525         (grub_cmd_linux): Set and use maximal_cmdline_size.
19526         * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19527         (allocate_pages): Use maximal_cmdline_size.
19528         (grub_cmd_linux): Set and use maximal_cmdline_size.
19529         * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19530         (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19531         and cmdline_size.
19533 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
19534 2011-05-18  Colin Watson  <cjwatson@ubuntu.com>
19536         Improve devmapper support
19538         * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19539         (grub_util_is_lvm): New function.
19540         (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19541         than lvm if not dmraid.
19542         Handle mapped md nodes.
19543         * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19544         (grub_util_device_is_mapped): ... this. Make always available. All users
19545         updated.
19546         (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19547         (convert_system_partition_to_system_disk): Handle lvm, mpath and
19548         dmraid nodes.
19549         * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19551 2011-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
19553         Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19555         * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19556         * grub-core/modinfo.sh.in: New file.
19557         * grub-core/Makefile.core.def (modinfo.sh): New script.
19558         * util/grub-mknetdir.in: Use modinfo.sh.
19559         * util/grub-mkrescue.in: Likewise.
19561 2011-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
19563         * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19564         Fix potential usage of Elf32 instead of Elf64 when compiling on
19565         32-bit architecture. Add endianness macros while on it.
19567 2011-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
19569         Use mipsel- rather than mips- in directories involving mipsel ports to
19570         allow both endiannesses coexist.
19572         * configure.ac: proparate target_cpu=mipsel rather than resetting to
19573         mips. All conditions adjusted.
19574         * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19575         variable.
19576         * util/grub-install.in: Adjust conditions to take renaming into account.
19577         * util/grub-mkimage.c (image_targets): Likewise. New target
19578         mips-qemu_mips-elf for bigendian mips.
19580 2011-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
19582         Avoid unnecessary copying on MIPS.
19584         * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19585         early if src == dest.
19586         * util/grub-mkimage.c (generate_image): Arange for src == dest if
19587         compression is none.
19589 2011-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
19591         Reduce memory footprint on SGI by putting modules before the kernel
19592         as opposed to after.
19594         * grub-core/Makefile.core.def (kernel): Increase linking address.
19595         (none_decompress): Likewise.
19596         (xz_decompress): Likewise.
19597         * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19598         address.
19599         * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19600         layout change.
19601         (grub_arch_modules_addr): New function.
19602         * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19603         * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19604         * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19605         here.
19606         * grub-core/kern/mips/startup.S (total_size): Rename to ...
19607         (grub_total_modules_size): ... this. Make global.
19608         [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19609         * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19610         New definition.
19611         (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19612         (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19613         (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19614         (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19615         * util/grub-mkimage.c (image_target_desc): New flag
19616         PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19617         (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19618         (generate_image): Handle images with modules before kernel.
19620 2011-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
19622         Prevent potential loss of memory map by overwrite on qemu-mips.
19624         * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19625         Save ram size in $s4.
19626         * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19627         All users changed to grub_arch_memsize.
19628         * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19629         Loongson.
19630         [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19631         * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19632         * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19633         external variable.
19635 2011-05-17  Colin Watson  <cjwatson@ubuntu.com>
19637         * .bzrignore: Remove grub-dumpbios.
19639 2011-05-17  Colin Watson  <cjwatson@ubuntu.com>
19641         * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19642         and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19643         GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19644         existing options which append).
19645         * docs/grub.texi (Simple configuration): Document new options.
19646         Reported by: Ian Jackson.  Fixes Debian bug #617538.
19648 2011-05-17  Colin Watson  <cjwatson@ubuntu.com>
19650         * util/grub-fstest.c (cmd_cat): New function.
19651         (fstest): Handle CMD_CAT.
19652         (options): Add cat.
19653         (argp_parser): Handle cat.
19655 2011-05-17  Colin Watson  <cjwatson@ubuntu.com>
19657         * Makefile.util.def (grub-bin2h): Don't install.
19658         * docs/man/grub-bin2h.h2m: Remove.
19660 2011-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
19662         * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19663         place.
19665 2011-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
19667         Reenable qemu-mips port.
19669         * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19670         Fix small arc bug while on it.
19671         * gentpl.py: Handle qemu_mips.
19672         * grub-core/Makefile.am: Likewise.
19673         * grub-core/Makefile.core.def: Likewise.
19674         * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19675         inappropriate includes.
19676         (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19677         (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19678         * grub-core/kern/main.c (grub_modules_get_end)
19679         [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19680         * grub-core/kern/mips/qemu-mips: Moved to ..
19681         * grub-core/kern/mips/qemu_mips: ... this.
19682         * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19683         (grub_machine_init): Call terminfo_init and serial_init.
19684         * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19685         * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19686         New variable.
19687         (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19688         parameter passing.
19689         (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19690         (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19691         (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19692         * include/grub/mips/qemu_mips/cmos.h: New file.
19693         * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19694         * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19695         Removed.
19696         * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19697         Use correct mips-style address.
19698         * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19699         (GRUB_TICKS_PER_SECOND): Removed.
19700         (grub_get_rtc): Likewise.
19701         (grub_cpu_idle): Likewise.
19702         * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19703         New definition.
19704         (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19705         (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19706         (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19707         (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19708         (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19709         (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19710         (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19711         * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19713 2011-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
19715         SGI ARCS port.
19717         * Makefile.util.def (libgrubmods.a): Add dvh.c.
19718         * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19719         platforms.
19720         * configure.ac: New target mips-arc.
19721         * gentpl.py: Likewise.
19722         * grub-core/Makefile.am: Likewise.
19723         * grub-core/Makefile.core.def: Likewise.
19724         (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19725         (none_decompress): Likewise.
19726         (lsdev): New module.
19727         (datetime): Use lib/arc/datetime.c on ARC.
19728         (part_dvh): New module.
19729         * grub-core/commands/arc/lsdev.c: New file.
19730         * grub-core/disk/arc/arcdisk.c: Likewise.
19731         * grub-core/kern/mips/arc/init.c: Likewise.
19732         * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19733         aligned addresses.
19734         * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19735         support.
19736         (grub_arch_dl_relocate_symbols): Likewise.
19737         * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19738         * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19739         * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19740         platforms.
19741         * grub-core/lib/arc/datetime.c: New file.
19742         * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19743         pci.h on non-loongson.
19744         (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19745         (grub_linux_boot): Set unused registers to 0.
19746         (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19747         * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19748         * grub-core/mmap/mips/uppermem.c: ...here.
19749         * grub-core/partmap/dvh.c: New file.
19750         * grub-core/term/arc/console.c: Likewise.
19751         * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19752         (grub_terminfo_set_current): Add terminal "arc".
19753         (grub_terminfo_readkey): Support ARC sequences.
19754         * include/grub/arc/arc.h: New file.
19755         * include/grub/arc/console.h: Likewise.
19756         * include/grub/disk.h (grub_disk_dev_id): Add
19757         GRUB_DISK_DEVICE_ARCDISK_ID.
19758         * include/grub/mips/arc/kernel.h: New file.
19759         * include/grub/mips/arc/memory.h: Likewise.
19760         * include/grub/mips/arc/time.h: Likewise.
19761         * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19762         * include/grub/mips/kernel.h (grub_halt): ... here.
19763         * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19764         here...
19765         * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19766         (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19767         * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19768         * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19769         proto.
19770         * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19771         from here ...
19772         * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19773         (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19774         * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19775         (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19776         * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19777         (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19778         * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19779         (grub_phys_addr_t): Moved from here ...
19780         * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19781         (grub_vtop): Moved from here ...
19782         * include/grub/mips/memory.h (grub_vtop): ... here.
19783         (grub_map_memory): Moved from here ...
19784         * include/grub/mips/memory.h (grub_map_memory): ... here.
19785         (grub_unmap_memory): Moved from here ...
19786         * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19787         (grub_machine_mmap_iterate): Moved from here ...
19788         * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19789         (grub_mmap_get_lower): Moved from here ...
19790         * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19791         (grub_mmap_get_upper): Moved from here ...
19792         * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19793         * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19794         here ...
19795         * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19796         * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19797         here ...
19798         * include/grub/mips/time.h (grub_get_rtc): ... here.
19799         * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19800         here ...
19801         * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19802         * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19803         here ...
19804         * include/grub/mips/time.h (grub_cpu_idle): ... here.
19805         * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19806         definition.
19807         (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19808         (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19809         (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19810         (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19811         (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19812         (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19813         (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19814         (GRUB_MACHINE_LINK_ADDR): Likewise.
19815         * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19816         to 6.
19817         * util/grub-install.in: Run dvhtool on ARC.
19818         * util/grub-mkimage.c (image_targets): Add mips-arc.
19819         (generate_image): Handle ECOFF output for mips-arc.
19821 2011-05-16  Vladimir Serbinenko  <phcoder@gmail.com>
19823         * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19824         blocks.
19826 2011-05-16  Vladimir Serbinenko  <phcoder@gmail.com>
19828         * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19829         after enabling port.
19831 2011-05-16  Vladimir Serbinenko  <phcoder@gmail.com>
19833         Skip incorrect USB devices.
19835         * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19836         configcnt == 0.
19837         * include/grub/usb.h (grub_usb_err_t): New enum value
19838         GRUB_USB_ERR_BADDEVICE.
19840 2011-05-16  Vladimir Serbinenko  <phcoder@gmail.com>
19842         Fuloong video init support.
19844         * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19845         well.
19846         (grub_vga_read_arx): New function.
19847         * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19848         definition.
19849         (framebuffer): New members io, mmioptr and mmiobase.
19850         (read_sis_cmd): New function.
19851         (write_sis_cmd): Likewise.
19852         (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19853         rather than 640x400.
19854         * grub-core/video/sis315_init.c: New file.
19856 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
19858         * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19859         non-loongson.
19860         * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19861         to grub_dl_register_symbol.
19863 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
19865         Fix compilation errors.
19867         * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19868         potentially unused.
19869         * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19870         Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19871         * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19872         to loongson machines.
19874 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
19876         Several FS mtime support.
19878         * grub-core/fs/affs.c (grub_affs_time): New struct.
19879         (grub_affs_file): New field mtime.
19880         (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19881         type. Removed 'size'. New field 'di'. All users updated.
19882         (grub_affs_mount): Simplify checsum checking.
19883         (grub_affs_iterate_dir): New helper grub_affs_create_node.
19884         (grub_affs_dir): Handle mtime.
19885         * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19886         (grub_cpio_dir): Likewise.
19887         * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19888         (grub_hfs_filerec): New field mtime.
19889         (grub_hfs_dir): Handle mtime.
19890         (grub_hfs_mtime): New function.
19891         (grub_hfs_fs): Register grub_hfs_mtime.
19892         * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19893         (grub_iso9660_dir): New field mtime.
19894         (grub_fshelp_node): New field dirent.
19895         (iso9660_to_unixtime): New function.
19896         (iso9660_to_unixtime2): Likewise.
19897         (grub_iso9660_read_symlink): Use node->dirent.
19898         (grub_iso9660_iterate_dir): Likewise.
19899         (grub_iso9660_dir): Set mtime.
19900         (grub_iso9660_mtime): New function.
19901         (grub_iso9660_fs): Register grub_iso9660_mtime.
19902         * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19903         (grub_jfs_inode): New fields atime, ctime and mtime.
19904         (grub_jfs_dir): Set mtime.
19905         * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19906         * grub-core/fs/ntfs.c (list_file): Set mtime.
19907         (grub_ntfs_dir): Likewise.
19908         * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19909         (grub_reiserfs_iterate_dir): Set mtime.
19910         (grub_reiserfs_dir): Likewise.
19911         * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19912         (grub_fshelp_node): Likewise.
19913         (grub_sfs_iterate_dir): Set mtime.
19914         (grub_sfs_dir): Likewise.
19915         * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19916         * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19917         (grub_xfs_inode): New fields atime, mtime, ctime.
19918         (grub_xfs_dir): Set mtime.
19919         * include/grub/datetime.h (grub_datetime2unixtime): New function.
19920         * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19921         * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19923         Support UDF symlinks.
19925         * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19926         (grub_ufs_read_symlink): New function. All users updated.
19928         Check amiga partmap checksum.
19930         * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19931         (grub_amiga_partition): Likewise.
19932         (amiga_partition_map_checksum): New function.
19933         (amiga_partition_map_iterate): Check checksum.
19935 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
19937         ROMFS support.
19939         * Makefile.util.def (libgrubmods.a): Add romfs.
19940         * grub-core/Makefile.core.def (romfs): New module.
19941         * grub-core/fs/romfs.c: New file.
19943 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
19945         Squashfs v4 support.
19947         * Makefile.util.def (libgrubmods.a): Add squash4.
19948         * grub-core/Makefile.core.def (squash4): New module.
19949         * grub-core/fs/squash4.c: New file.
19950         * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19951         disk_input_start, disk_input.
19952         (get_byte): Handle disk_input.
19953         (grub_zlib_disk_read): New function.
19954         * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19956 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
19957 2011-05-15  Feiran Zheng <famcool@gmail.com>
19959         * Makefile.util.def (libgrubmods.a): Add minix3.
19960         * grub-core/Makefile.core.def (minix3): New module.
19961         * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19962         (GRUB_MINIX_BSIZE): Removed.
19963         (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19964         (grub_minix_ino_t): New type.
19965         (grub_minix_le_to_cpu_ino): New macro.
19966         (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19967         (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19968         (grub_minix_data): New field block_size.
19969         (grub_minix_read_file): Handle 64-bit correctly.
19970         * grub-core/fs/minix3.c: New file.
19972 2011-05-15  Tristan Gingold  <gingold@free.fr>
19973 2011-05-15  Robert Millan  <rmh.grub@aybabtu.com>
19974 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
19976         IA64 support.
19978         * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19979         * configure.ac: Add ia64-efi target.
19980         Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19981         __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19982         * gentpl.py: Add ia64_efi platform.
19983         Rename x86_efi to efi and Add ia64-efi. All users updated.
19984         * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19985         * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19986         Remove kern/generic/rtc_get_time_ms.c on EFI.
19987         Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19988         kern/ia64/dl_helper.c on ia64-efi.
19989         Add kern/emu/cache.c on emu.
19990         (linux): Use on loader/ia64/efi/linux.c on ia64.
19991         * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19992         whether symbol is a function.
19993         * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19994         (grub_symbol): New field 'isfunc'.
19995         (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19996         (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19997         (grub_dl_load_segments): Place all sections into the same region.
19998         [__ia64__]: Create trampolines and got.
19999         [GRUB_MACHINE_EMU]: Call mprotect.
20000         (grub_dl_resolve_symbols): Resolve symbol type as well.
20001         [__ia64__]: Create function descriptors.
20002         * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
20003         (grub_rtc_get_time_ms): ... this. Expressions simplified.
20004         (grub_get_rtc): New function.
20005         * grub-core/kern/emu/cache.c [__ia64__]: New file.
20006         * grub-core/kern/emu/cache.S: Renamed to ...
20007         * grub-core/kern/emu/cache_s.S: ... this.
20008         [__ia64__]: Add a nop.
20009         * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
20010         [__ia64__]: New function.
20011         * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
20012         * grub-core/kern/ia64/dl.c: New file.
20013         * grub-core/kern/ia64/dl_helper.c: Likewise.
20014         * grub-core/kern/ia64/efi/init.c: New file.
20015         * grub-core/kern/ia64/efi/startup.S: Likewise.
20016         * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
20017         * grub-core/lib/ia64/longjmp.S: New file (from glibc).
20018         * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
20019         * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
20020         * grub-core/loader/ia64/efi/linux.c: New file.
20021         * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
20022         (GRUB_MOD_DEP): Likewise.
20023         (grub_dl) [__ia64__]: New fields got and tramp.
20024         (grub_dl): New field 'base'.
20025         (grub_dl_register_symbol): New argument isfunc. All users updated.
20026         (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
20027         (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
20028         (GRUB_IA64_DL_GOT_ALIGN): Likewise.
20029         (grub_ia64_dl_get_tramp_got_size): New proto.
20030         (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
20031         (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
20032         (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
20033         * include/grub/efi/api.h: Skip call wrappers on ia64.
20034         * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
20035         * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
20036         * include/grub/elf.h (ELF_ST_INFO): New definition.
20037         * include/grub/ia64/efi/kernel.h: New file.
20038         * include/grub/ia64/efi/memory.h: Likewise.
20039         * include/grub/ia64/efi/time.h: Likewise.
20040         * include/grub/ia64/kernel.h: Likewise.
20041         * include/grub/ia64/setjmp.h: Likewise (from glibc).
20042         * include/grub/ia64/time.h: New file.
20043         * include/grub/ia64/types.h: Likewise.
20044         * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
20045         __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
20046         New protos.
20047         * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
20048         (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
20049         * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
20050         * util/grub-mkimage.c (image_target_desc): New field pe_target.
20051         All users updated.
20052         (EFI64_HEADER_SIZE): New definition. All users updated.
20053         (image_targets): Add ia64-efi.
20054         * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
20055         jumpers_addr. All users updated.
20056         Create function descriptors.
20057         (count_funcs): New function.
20058         (unaligned_uint32): New struct.
20059         (MASK20): New definition.
20060         (MASK19): Likewise.
20061         (MASKF21): Likewise.
20062         (add_value_to_slot_20b): New function.
20063         (add_value_to_slot_21_real): Likewise.
20064         (add_value_to_slot_21): Likewise.
20065         (ia64_kernel_trampoline): New struct.
20066         (nopm): New variable.
20067         (jump): Likewise.
20068         (make_trampoline): New function.
20069         (relocate_addresses): Handle ia64.
20070         (make_reloc_section): Likewise.
20071         (load_image): Likewise.
20073 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
20075         * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
20076         warning. Move variables before code while on it.
20078 2011-05-15  Vladimir Serbinenko  <phcoder@gmail.com>
20080         Fuloong support.
20082         * configure.ac: Rename yeeloong platform to loongson. All users updated.
20083         * grub-core/Makefile.core.def (fwstart_fuloong): New image.
20084         * grub-core/boot/mips/loongson/fuloong.S: New file.
20085         * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
20086         Explicitly init CS5536.
20087         [FULOONG]: Don't use serial until CS5536 is available.
20088         Set GPIO based on dumps.
20089         (serial_hw_init) [FULOONG]: Handle CS5536 parts.
20090         [FULOONG]: Handle GPIO and memory controller differences.
20091         Parse machine type in $a2.
20092         * grub-core/boot/mips/startup_raw.S: Determine and save the
20093         architecture.
20094         * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
20095         (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
20096         init on architecture type.
20097         * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
20098         SIS315E. Don't init at_keyboard on fuloong.
20099         (grub_halt): Support Fuloong.
20100         * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20101         * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20102         (loongson_machtypes): New array.
20103         (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20104         type.
20105         * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20106         config. All users updated. Handle CS5536 serial.
20107         * grub-core/term/serial.c (grub_serial_register): Conditionalise
20108         default port on machine type. Register serial as inactive.
20109         * grub-core/video/sis315pro.c: New file.
20110         * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20111         definition.
20112         (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20113         (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20114         (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20115         (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20116         (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20117         * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20118         to ...
20119         (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20120         * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20121         definition.
20122         (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20123         (grub_arch_machine): New extern var.
20124         * include/grub/mips/loongson/serial.h
20125         (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20126         (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20127         (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20128         (GRUB_MACHINE_SERIAL_PORT0): ... this.
20129         (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20130         (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20131         (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20132         (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20133         * include/grub/term.h (grub_term_register_input_inactive): New inline
20134         function.
20135         (grub_term_register_output_inactive): Likewise.
20136         * include/grub/video.h (grub_video_driver_id): New value
20137         GRUB_VIDEO_DRIVER_SIS315PRO.
20138         * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20139         New field "names". All users updated.
20140         New field value IMAGE_FULOONG_FLASH.
20141         (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20143 2011-05-14  Jordan Uggla  <jordan.uggla@gmail.com>
20145         * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20146         and add some clarification.
20148 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20150         * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20151         platforms if kernel is compressed.
20153 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20155         * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20156         unused modules since currently referrence counter isn't reliable and
20157         there isn't much memory to recover there anyway.
20159 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20161         * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20162         rather than resetting it to allow modules to reference themselves
20163         in init.
20165 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20167         * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20168         counter on dependencies since grub_dl_unref already handles this.
20170 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20172         * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20173         on error if not already done.
20175 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20177         Fix few potential memory misusage.
20179         * grub-core/font/font.c (load_font_index): Don't free char_index to
20180         avoid double free.
20181         (grub_font_load): Zero-fill font at alloc for safety.
20182         Close file on error.
20183         (free_font): Free bmp_idx.
20185 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20187         * docs/grub.texi (Installation): Fix several outdated claims.
20189 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20191         Handle module_license on windows.
20193         * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20194         sections shifted.
20195         (insert_string): Make argument const char * instead of char *.
20196         (write_section_data): Handle long section names.
20197         Handle module_license.
20199 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20201         * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20202         handle class-free menuentries.
20203         (grub_normal_add_menu_entry): Add a check to be sure.
20205 2011-05-14  Vladimir Serbinenko  <phcoder@gmail.com>
20207         * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20208         PgUp and PgDown.
20210 2011-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
20212         * configure.ac: Bump version to 1.99.
20214 2011-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
20216         Give ATA device a bit more time on first try in order to allow disks
20217         to spin up.
20219         * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20220         if dev->present is 1. Reset dev->present on failure.
20221         (grub_ata_device_initialize): Set dev->present to 1.
20222         * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20223         (grub_ata_device): New member 'present'.
20225 2011-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
20227         * util/grub-mkimage.c (generate_image): Update hash.
20229 2011-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
20231         Flush caches on DMA memory.
20233         * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20234         * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20235         (grub_dma_free): Likewise.
20236         * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20238 2011-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
20240         * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20241         to avoid asm treating ld and sd as macros.
20243 2011-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
20245         * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20246         decompressor.
20248 2011-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
20250         * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20251         grub_decompress_core since later would fail if grub_decompress_core
20252         is too far.
20254 2011-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
20256         * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20257         R_MIPS_JALR since it's used by newer compiler.
20259 2011-05-10  Vladimir Serbinenko  <phcoder@gmail.com>
20261         * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20263 2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
20265         * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20266         file_path to 0 for surety.
20267         (grub_chainloader_boot): Set exit_data to NULL.
20268         Unset the loader once done.
20269         (grub_cmd_chainloader): Fix confusing error message if file is empty.
20271 2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
20273         * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20274         unknown key into a dprintf.
20276 2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
20278         * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20279         on first non-existant partition.
20281 2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
20283         * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20284         openning fails.
20285         Reported by: Mark Korenberg.
20287 2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
20289         * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20290         overflow.
20292 2011-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
20294         * util/grub-mkimage.c (main): Explicitely flush and sync the output
20295         before closing to ensure that it will be readable by grub-setup.
20297 2011-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
20299         * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20300         (devpath_1): Use MAKE_PIWG_PATH.
20301         (devpath_2): Likewise.
20302         (devpath_3): Likewise.
20303         (devpath_4): Likewise.
20304         (devpath_5): Likewise.
20305         (devpath_6): Likewise.
20307         The appleldr.mod was checked that to be binary identical to previous
20308         version.
20310 2011-05-05  Zach <mikezackles>
20312         Support 2010 Macbooks.
20314         * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20315         (devs): Add devpath_6.
20317 2011-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
20319         * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20320         /dev/random. /dev/urandom is good enough for our purposes (salting).
20322 2011-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
20324         * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20326 2011-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
20328         * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20329         hexadecimal.
20331 2011-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
20333         * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20334         and not 0 on failure.
20336 2011-05-03  Colin Watson  <cjwatson@ubuntu.com>
20338         * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20339         GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20340         disk; otherwise grub_fs_probe will not fall back to the next
20341         filesystem.
20342         (grub_pxefs_open): Likewise, for consistency.
20343         Reported and tested by: Ezekiel Grave.
20345 2011-05-03  Colin Watson  <cjwatson@ubuntu.com>
20347         * tests/partmap_test.in: Don't hardcode path to parted.
20348         Reported by: Peter Hjalmarsson.  Fixes Savannah bug #33150.
20350 2011-05-01  Colin Watson  <cjwatson@ubuntu.com>
20352         * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20353         of `ls' to find out which devices are available.
20355 2011-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
20357         * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20358         than source address for efi mmap buffer.
20360 2011-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
20362         * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20363         wrong action on non-detecting the magic.
20365 2011-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
20367         * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20368         already supplied by another part of the module (fixes compilation on
20369         FreeBSD).
20371 2011-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
20373         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20374         match the one used by mdadm.
20376 2011-04-21  Colin Watson  <cjwatson@ubuntu.com>
20378         * po/README: Add instructions for creating po/LINGUAS.
20380 2011-04-21  Colin Watson  <cjwatson@ubuntu.com>
20382         Add "SEE ALSO" sections to most man pages.  Fixes Debian bug
20383         #551428.
20385         * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20386         * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20387         * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20388         * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20389         * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20390         * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20391         * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20392         * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20393         * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20394         * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20395         * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20396         * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20397         * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20398         * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20399         * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20400         * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20401         * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20402         * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20403         * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20404         * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20405         * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20406         * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20408 2011-04-21  Colin Watson  <cjwatson@ubuntu.com>
20410         * grub-core/kern/emu/getroot.c
20411         (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20412         test that was incorrectly reintroduced in r3214.
20413         Reported by: Ian Dall.  Fixes Savannah bug #33133.
20415 2011-04-21  Colin Watson  <cjwatson@ubuntu.com>
20417         Fix stack pointer handling in 16-bit relocator.
20419         * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20420         grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20421         Fixes Ubuntu bug #683904.
20423 2011-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
20425         * configure.ac: Bump version to 1.99~rc2.
20427 2011-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
20429         * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20430         * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20431         * grub-core/lib/x86_64/setjmp.S: Likewise.
20432         * grub-core/lib/mips/setjmp.S: Likewise.
20433         * grub-core/lib/powerpc/setjmp.S: Likewise.
20434         * grub-core/lib/sparc64/setjmp.S: Likewise.
20436 2011-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
20438         * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20439         * grub-core/lib/efi/datetime.c: Likewise.
20441 2011-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
20443         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20444         New function.
20445         (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20446         * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20447         * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20449 2011-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
20451         * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20452         bitmap.
20453         (grub_gfxterm_term_init): Likewise.
20455 2011-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
20457         Take into account the decorations the computing menu entry width.
20459         * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20460         (grub_gfxmenu_create_box): Register get_border_width.
20461         * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20462         if available.
20463         * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20464         get_border_width.
20466 2011-04-18  Endres Puschner <code@e7p.de>
20468         * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20469         Don't skip first class.
20471 2011-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
20473         * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20474         chunks.
20475         * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20477 2011-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
20479         Complete 64-bit division support.
20481         * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20482         (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20483         * include/grub/misc.h (grub_divmod64): Rename to ...
20484         (grub_divmod64_full): ... this.
20485         (grub_divmod64): New inline function.
20487 2011-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
20489         * util/grub-mkimage.c (generate_image): Add forgotten comma.
20491 2011-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
20493         * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20494         performing the necessary test.
20496 2011-04-17  Vladimir Serbinenko  <phcoder@gmail.com>
20498         * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20499         (kfreebsd.elf): Likewise.
20500         (pc-chainloader.elf): Likewise.
20501         (ntldr.elf): Likewise.
20503 2011-04-17  Vladimir Serbinenko  <phcoder@gmail.com>
20505         Identify RAID by its UUID rather than (guessed) name.
20507         * grub-core/disk/raid.c (ascii2hex): New function.
20508         (grub_raid_open): Accept mduuid/%s specification.
20509         * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20510         (get_mdadm_uuid): ... this.
20511         (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20513 2011-04-16  Vladimir Serbinenko  <phcoder@gmail.com>
20515         * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20516         to negative size.
20518 2011-04-13  Colin Watson  <cjwatson@ubuntu.com>
20520         * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20521         btrfs subvolume.
20522         * util/grub.d/20_linux_xen.in: Likewise.
20524 2011-04-13  Colin Watson  <cjwatson@ubuntu.com>
20526         Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20527         move-mounts appearing out of order.  Fixes Ubuntu bug #738345.
20529         * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20530         Build a list of relevant visible mounts using the mnt_id and
20531         parent_mnt_id fields, and then scan that list at the end.
20533 2011-04-12  Colin Watson  <cjwatson@ubuntu.com>
20535         * docs/grub.texi (normal): New section.
20536         (normal_exit): New section.
20537         (Embedded configuration): Add reference to normal.
20538         (GRUB only offers a rescue shell): Likewise.
20539         * docs/grub-dev.texi (Error Handling): Fix typo.
20541 2011-04-12  Colin Watson  <cjwatson@ubuntu.com>
20543         * NEWS: Drop obsolete entry about probe-only btrfs support.
20545 2011-04-12  Colin Watson  <cjwatson@ubuntu.com>
20547         * util/import_gcry.py: Fix typo.
20549 2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
20551         * NEWS: Add btrfs support.
20553 2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
20554 2011-04-11  Colin Watson  <cjwatson@ubuntu.com>
20556         BtrFS support. Written by me (Vladimir) with important bugfixes and
20557         even more important testing by Colin.
20559         * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20560         * grub-core/Makefile.core.def (btrfs): Add crc.c.
20561         * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20562         * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20563         mem_input_off and mem_input. All users updated to accept in-RAM input.
20564         (gzio_seek): New function.
20565         (test_zlib_header): Likewise.
20566         (grub_gzio_read): Likewise.
20567         (grub_zlib_decompress): Likewise.
20568         * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20569         Accept partial and non-virtual mounts.
20570         (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20571         avoid receiving /dev/dm-X as device.
20572         * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20573         Handle bind and partial mounts.
20574         * grub-core/lib/crc.c: New file.
20575         * include/grub/deflate.h: Likewise.
20576         * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20577         proto.
20578         * include/grub/lib/crc.h: New file.
20580 2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
20582         Implement automatic module license checking according to new GNU
20583         guidelines.
20585         * grub-core/kern/dl.c (grub_dl_check_license): New function.
20586         (grub_dl_load_core): Use grub_dl_check_license.
20587         * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20588         (GRUB_MOD_LICENSE): Likewise.
20589         (GRUB_MOD_DUAL_LICENSE): Likewise.
20590         All modules updated.
20592 2011-04-11  Colin Watson  <cjwatson@ubuntu.com>
20594         * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20595         reserved_first_sector to 1.  btrfs reserves plenty of space for boot
20596         loaders.
20597         Reported by: Gene Cumm.  Fixes Ubuntu bug #757446.
20599 2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
20601         * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20603 2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
20605         * util/grub-fstest.c (read_file): Report GRUB error if file opening
20606         failed.
20608 2011-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
20610         * grub-core/kern/file.c (grub_file_open): Don't take into account the
20611         parenthesis in the middle of the filename.
20613 2011-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
20615         * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20616         rather than trying to put initrd way too high.
20617         Reported by: Ryan Lortie <desrt@desrt.ca>
20619 2011-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
20621         * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20622         improperly removed string.
20624 2011-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
20626         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20627         is_disk.
20628         (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20629         (open_device) Likewise.
20630         (grub_util_biosdisk_close): Likewise.
20631         Reported by: Mark Korenberg.
20633 2011-04-10  Alexander Kurtz <kurtz.alex@googlemail.com>
20635         * util/grub-mkconfig_lib.in: Add missing quotes.
20637 2011-04-10  Colin Watson  <cjwatson@ubuntu.com>
20639         * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20640         is NULL.
20642 2011-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
20644         Dynamically count the number of lines for the lower banner.
20646         * grub-core/normal/menu_entry.c (per_term_screen): New member
20647         num_entries.
20648         (print_down): Use num_entries.
20649         (update_screen): Likewise.
20650         (grub_menu_entry_run): Set num_entries.
20651         * grub-core/normal/menu_text.c (menu_viewer_data): New member
20652         num_entries.
20653         (grub_print_message_indented): Move real part to ...
20654         (grub_print_message_indented_real): ... here. Additional argument
20655         dry_run.
20656         (draw_border): Additional argument num_entries.
20657         (print_message): Additional argument dry_run.
20658         (print_entries): Receive menu viewer data.
20659         (grub_menu_init_page): New argment num_entries.
20660         (menu_text_set_chosen_entry): Use num_entries.
20661         (grub_menu_try_text): Likewise.
20662         * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20663         All users updated.
20664         (grub_ucs4_count_lines): New function.
20665         * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20666         * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20667         * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20668         (grub_term_border_height): Likewise.
20669         (grub_term_num_entries): Likewise.
20671 2011-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
20673         * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20674         Remove now unused string.
20676 2011-04-09  Colin Watson  <cjwatson@ubuntu.com>
20678         * docs/grub-dev.texi (Finding your way around): Update for 1.99
20679         build system.
20680         (Getting started): GRUB is developed in Bazaar now, not Subversion.
20682         (Comment): Fix typo.
20683         (Getting started): General copy-editing.
20684         (Typical Development Experience): Likewise.
20685         (Error Handling): Likewise.
20686         (Video API): Likewise.
20688 2011-04-09  Colin Watson  <cjwatson@ubuntu.com>
20690         * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20691         throughout.
20693 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20695         * util/grub-mkimage.c (main): Handle special naming of yeeloong
20696         directory.
20698 2011-04-08  Colin Watson  <cjwatson@ubuntu.com>
20700         * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20701         * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20702         "development".
20704 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20706         * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20707         grub_strcpy since the lines aren't necessarily 0-terminated.
20709 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20711         * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20712         root on legacy.
20714 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20716         * grub-core/commands/probe.c (options): Argument to set isn't optional.
20717         (GRUB_MOD_INIT): DEVICE isn't optional.
20719 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20721         * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20722         word on new line if it's too long anyway. Fixes a hang.
20724 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20726         * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20727         const.
20728         * util/grub-setup.c (main): Reuse md device name if available.
20729         * util/raid.c (grub_util_raid_getmembers): Receive device name and
20730         not GRUB name as argument.
20731         Based on patch by: Florian Wagner <fwagner>.
20733 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20735         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20736         Place mbi on low memory for better compatibility.
20738 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20740         * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20742 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20743 2011-04-08  Colin Watson  <cjwatson@ubuntu.com>
20745         * autogen.sh: Ensure that collate and ctype locale is C.
20746         * conf/Makefile.common: Likewise.
20748 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20750         * grub-core/normal/menu.c: Add missing include.
20752 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20754         * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20756 2011-04-08  Martin Zuther <mzuther@mzuther.de>
20758         * util/grub-mkconfig.in: Ignore emacsen backup.
20760 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20762         * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20763         on open.
20764         (grub_util_biosdisk_close): Likewise.
20766 2011-04-08  Vladimir Serbinenko  <phcoder@gmail.com>
20768         * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20769         const attribute and use grub_isdigit.
20771 2011-04-06  Andrey  <dev_null@ukr.net>
20773         * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20774         gcc warning.
20776 2011-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
20778         * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20779         useful grub_dprintf's.
20781 2011-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
20783         * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20785 2011-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
20787         * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20789 2011-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
20791         Output errors if theme loading failed.
20793         * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20794         grub_gfxterm_fullscreen on error paths to ...
20795         * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20796         theme loading error.
20798 2011-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
20800         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20801         space for older compilers.
20802         (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20804 2011-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
20806         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20807         and report them as not RAID members since they are useless for GRUB.
20808         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20810 2011-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
20812         Increase LVM implementation robustness in order not to crash on
20813         configurations like pvmove. Previously code assumed that in some places
20814         only lvs or only pvs are used whereas it seems that they are used
20815         interchangeably.
20817         * grub-core/disk/lvm.c (read_node): New function.
20818         (read_lv): Use read_node.
20819         (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20820         Match volumes only at the end when all lvs are found. Take both
20821         pvs (first) and lvs (second) into account.
20822         * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20823         mirror_* into node_*. All users updated.
20824         (grub_lvm_stripe): Merge this ...
20825         (grub_lvm_mirror): ... and this ...
20826         (grub_lvm_node): ... into this. All users updated.
20828 2011-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
20830         * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20831         of function to allow further scanning for LVMs.
20833 2011-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
20835         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20836         on failed seek as it breaks open fd reusage.
20838 2011-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
20840         * util/grub-install.in: Add a recommendation to use --recheck before
20841         reporting bugs.
20843 2011-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
20845         * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20846         are obtained.
20848 2011-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
20850         GRUB developper manual based on existing Internals section and
20851         contributions by the various authors with active copyright assignment.
20853         * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20854         * docs/font_char_metrics.png: New file.
20855         * docs/font_char_metrics.txt: Likewise.
20856         * docs/grub-dev.texi: Likewise.
20857         * docs/grub.texi (Internals): Move from here ...
20858         * docs/grub-dev.texi: ... here.
20860 2011-04-01  Colin Watson  <cjwatson@ubuntu.com>
20862         Store the loopback device as data on loopback grub_disk structures,
20863         rather than the file it points to.  This fixes use of freed memory
20864         if an existing loopback device is replaced.
20866         * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20867         disk->data, not dev->file.
20868         (grub_loopback_read): Adjust file assignment to match.
20869         Fixes Ubuntu bug #742967.
20871 2011-04-01  Colin Watson  <cjwatson@ubuntu.com>
20873         * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20874         when replacing an existing device.
20876 2011-04-01  Vladimir Serbinenko  <phcoder@gmail.com>
20878         Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20879         memory corruptions.
20881         * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20882         unsigned.
20883         (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20884         (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20885         (grub_jfs_read_inode): Likewise.
20886         (grub_jfs_opendir): Likewise. Remove now useless casts.
20887         (grub_jfs_getent): Likewise.
20888         Make ino a grub_uint32_t rather than int.
20889         (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20890         (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20891         division and module with bit operations.
20892         (grub_jfs_find_file): Make ino a grub_uint32_t.
20893         (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20895 2011-04-01  Colin Watson  <cjwatson@ubuntu.com>
20897         * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20898           warning.  (This was in fact always initialised before use, but GCC
20899           wasn't smart enough to prove that.)
20900         * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20902 2011-03-31  Vladimir Serbinenko  <phcoder@gmail.com>
20904         * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20905         stack alignment.
20906         (efi_wrap_1): Likewise.
20907         (efi_wrap_2): Likewise.
20908         (efi_wrap_3): Likewise.
20909         (efi_wrap_4): Likewise.
20910         (efi_wrap_5): Likewise.
20911         (efi_wrap_6): Likewise.
20912         (efi_wrap_10): Likewise.
20913         Based on information by: Red Hat/Peter Jones.
20915 2011-03-31  Colin Watson  <cjwatson@ubuntu.com>
20917         * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20918         set-but-not-used variable.
20920 2011-03-31  Colin Watson  <cjwatson@ubuntu.com>
20922         * docs/grub.texi (Simple configuration): Be more explicit about
20923         GRUB_DEFAULT, and add an example.
20924         Reported by: Leslie Rhorer.
20926 2011-03-30  Colin Watson  <cjwatson@ubuntu.com>
20928         * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20929         shell".
20931 2011-03-30  Alexey Shvetsov <alexxy@gentoo.org>
20933         * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20934         * util/grub.d/20_linux_xen.in: Likewise.
20936 2011-03-30  Vladimir Serbinenko  <phcoder@gmail.com>
20938         * util/grub.d/10_linux.in: Try alternative config filenames where
20939         we parse config file.
20940         * util/grub.d/20_linux_xen.in: Likewise.
20942 2011-03-30  Alexey Shvetsov <alexxy@gentoo.org>
20944         * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20945         * util/grub.d/20_linux_xen.in: Likewise.
20947 2011-03-30  Vladimir Serbinenko  <phcoder@gmail.com>
20949         * grub-core/disk/raid.c (insert_array): Add few potentially
20950         useful grub_util_info.
20951         (grub_raid_register): Likewise.
20953 2011-03-30  Vladimir Serbinenko  <phcoder@gmail.com>
20955         * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20956         Preserve partition number in mdadm code path.
20958 2011-03-30  Vladimir Serbinenko  <phcoder@gmail.com>
20960         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20961         few potentially useful grub_util_info.
20963 2011-03-30  Vladimir Serbinenko  <phcoder@gmail.com>
20965         * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20967 2011-03-30  Colin Watson  <cjwatson@ubuntu.com>
20969         * docs/grub.texi (default): Use @example rather than nested
20970         itemized lists to avoid breaking gendocs.
20972 2011-03-30  Colin Watson  <cjwatson@ubuntu.com>
20974         * docs/grub.texi (Future): Update.
20976 2011-03-30  Colin Watson  <cjwatson@ubuntu.com>
20978         * docs/grub.texi (Environment): New chapter.
20979         (Changes from GRUB Legacy): Link to "Environment block" section for
20980         details of limitations.
20981         (Simple configuration): Likewise.  Link to documentation of gfxmode
20982         and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20983         respectively.
20984         (Shell-like scripting): Note that normal variables are stored in the
20985         environment.
20986         (gettext): Link to documentation of lang and locale_dir.
20987         (list_env): New section.
20988         (load_env): New section.
20989         (save_env): New section.
20991         (Reporting bugs): Fix typo.
20993 2011-03-30  Vladimir Serbinenko  <phcoder@gmail.com>
20995         * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20996         the example.
20998 2011-03-30  Vladimir Serbinenko  <phcoder@gmail.com>
21000         * grub-core/term/at_keyboard.c (set_scancodes)
21001         [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
21003 2011-03-30  Colin Watson  <cjwatson@ubuntu.com>
21005         * docs/grub.texi (Menu-specific commands): Remove some semantics
21006         that were true in GRUB Legacy but not in GRUB 2.
21007         (submenu): New section.
21008         (false): New section.
21009         (read): New section.
21010         (true): New section.
21012 2011-03-30  Colin Watson  <cjwatson@ubuntu.com>
21014         * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
21016 2011-03-30  Colin Watson  <cjwatson@ubuntu.com>
21018         * docs/grub.texi (Simple configuration): Explain some of the
21019         current limitations of grub-mkconfig.
21020         Reported by: Leslie Rhorer.
21022 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21024         Old macs search for boot.efi rather than for bootia32.efi.
21026         * util/grub-install.in: Copy bootia32.efi to boot.efi.
21027         * util/grub-mkrescue.in: Likewise.
21028         Suggested by: Peter Jones.
21030 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21032         * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
21034 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21036         * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
21037         (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
21038         (grub_lvm_mirror): New struct.
21039         * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
21040         (grub_lvm_iterate): Iterate only visible volumes.
21041         (grub_lvm_read): Factor out to ..
21042         (read_lv): ... this. Support mirrors.
21043         (grub_lvm_read): New wrapper function.
21044         (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
21045         stripped or mirrored.
21047 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21049         * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
21051 2011-03-29  Colin Watson  <cjwatson@ubuntu.com>
21053         * docs/grub.texi (loopback): New section.
21055 2011-03-29  Colin Watson  <cjwatson@ubuntu.com>
21057         * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
21058         removed -p option.
21060 2011-03-29  Colin Watson  <cjwatson@ubuntu.com>
21062         * docs/grub.texi (BIOS installation): New section, partly based on
21063         previous text in other sections.
21064         (Installing GRUB using grub-install): Replace BIOS discussion with a
21065         cross-reference.
21066         (Images): Likewise.
21068 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21070         * grub-core/kern/emu/hostdisk.c (find_partition_start)
21071         [HAVE_DIOCGDINFO]: Add safety checks.
21073 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21075         * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
21076         per default compiled in kernel and prior to 8.0 isn't shipped at all.
21078 2011-03-29  Colin Watson  <cjwatson@ubuntu.com>
21080         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
21081         real_sb->size is zero (e.g. RAID-0), get the disk size from
21082         real_sb->data_size instead.
21083         Fixes Ubuntu bug #743136.
21085 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21087         * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
21088         printf clauses for printing size and start.
21090 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21092         * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
21093         Reported and tested by: Timothy Nikkel.
21095 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21097         * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
21098         (dirty_region_add_real): ... this.
21099         (dirty_region_add): Don't discard margin refresh when performing
21100         scheduled repaint.
21102 2011-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
21104         * grub-core/lib/relocator.c (allocate_regstart)
21105         [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21106         terminals are capabple of malloc-free operation.
21107         (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21108         (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21110 2011-03-29  Mario Limonciello  <Mario_Limonciello@Dell.com>
21112         * util/grub-setup.c: Copy the partition table zone if floppy support
21113         is disabled, even if no partition table is found.
21115         Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21116         during POST if an invalid partition table is contained in the PBR
21117         of the active partition when GRUB is installed to a partition.
21119 2011-03-28  Colin Watson  <cjwatson@debian.org>
21121         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21122         comment.
21124 2011-03-28  Colin Watson  <cjwatson@debian.org>
21126         * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21127         to be specific about what kind of RAID device we're scanning for.
21129 2011-03-26  Seth Goldberg <seth.goldberg@oracle.com>
21131         * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21132         return freed string.
21134 2011-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
21136         * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21138 2011-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
21140         Use libgeom on FreeBSD to detect partitions.
21142         * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21143         (grub-mkrelpath): Likewise.
21144         (grub-script-check): Likewise.
21145         (grub-editenv): Likewise.
21146         (grub-mkpasswd-pbkdf2): Likewise.
21147         (grub-fstest): Likewise.
21148         (grub-mkfont): Likewise.
21149         (grub-mkdevicemap): Likewise.
21150         (grub-probe): Likewise.
21151         (grub-setup): Likewise.
21152         (grub-ofpathname): Likewise.
21153         (grub-mklayout): Likewise.
21154         (example_unit_test): Likewise.
21155         (grub-menulst2cfg): Likewise.
21156         * grub-core/Makefile.core.def (grub-emu): Likewise.
21157         (grub-emu-lite): Likewise.
21158         * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21159         * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21160         define HAVE_DIOCGDINFO.
21161         (follow_geom_up) [FreeBSD]: New function.
21162         (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21163         (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21164         (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21165         unconditionally of HAVE_DIOCGDINFO.
21167 2011-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
21169         Fix FreeBSD compilation problem.
21171         * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21172         (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21174 2011-03-24  Colin Watson  <cjwatson@ubuntu.com>
21176         * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21177         Switch back to page zero before loading a kernel, since some kernel
21178         drivers expect that.
21179         Thanks to: Felix Kuehling.
21181 2011-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
21183         * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21184         [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21185         (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21187 2011-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
21189         * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21190         (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21192 2011-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
21194         * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21195         DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21196         malloc is disabled.
21198 2011-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
21200         * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21201         for modules headers when counting the needed allocation size.
21203 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21205         * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21206         if no ASCII character is found to prevent crash.
21208 2011-03-23  Alexander Kurtz  <kurtz.alex@googlemail.com>
21210         * grub-core/video/bitmap.c (match_extension): Ignore case.
21212 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21214         * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21216 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21218         * grub-core/script/parser.y: Declare "time" as valid argument.
21220 2011-03-23  Peter Jones  <pjones@redhat.com>
21222         Fix incorrect assert failure reporting.
21224         * grub-core/tests/example_functional_test.c (example_test): Add
21225         a failure comment.
21226         * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21227         (failure_start): ...this. Check that malloc succeeded.
21228         Don't call xvasprintf. Return failure struct.
21229         (failure_append_vtext): New function.
21230         (failure_append_text): Likewise.
21231         (add_failure): Likewise.
21232         (grub_test_assert_helper): Likewise.
21233         * include/grub/test.h (grub_test_assert_helper): New declaration.
21234         (grub_test_assert): Macro rewritten.
21236 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21238         * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21240 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21242         * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21244 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21246         * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21247         into GRUB-style one.
21249 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21251         * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21252         error and not grub_errno.
21253         * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21255 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21257         * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21258         GRUB_USB_SPEED_NONE in case of failure and not the error code.
21260 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21262         * grub-core/efiemu/i386/pc/cfgtables.c
21263         (grub_machine_efiemu_init_tables): Make declaration a prototype.
21264         * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21265         (grub_xnu_unlock): Likewise.
21266         * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21268 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21270         * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21271         * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21272         * grub-core/commands/hashsum.c (aliases): Likewise.
21273         * grub-core/commands/setpci.c (pci_registers): Likewise.
21274         * grub-core/disk/usbms.c (attach_hook): Likewise.
21275         * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21276         (zio_checksum_table): Likewise.
21277         * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21278         * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21279         * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21280         * grub-core/lib/relocator.c (leftovers): Likewise.
21281         (extra_blocks): Likewise.
21282         * grub-core/loader/i386/bsd.c (relocator): Likewise.
21283         * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21284         (modules_last): Likewise.
21285         * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21286         (devices): Likewise.
21287         * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21288         (modules_last): Likewise.
21289         * grub-core/normal/auth.c (users): Likewise.
21290         * grub-core/normal/context.c (initial_menu): Likewise.
21291         (current_menu): Likewise.
21292         * grub-core/normal/crypto.c (crypto_specs): Likewise.
21293         * grub-core/term/serial.c (grub_serial_ports): Likewise.
21294         (grub_serial_terminfo_input_template): Likewise.
21295         (grub_serial_terminfo_output_template): Likewise.
21296         (grub_serial_terminfo_input): Likewise.
21297         (grub_serial_terminfo_output): Likewise.
21298         (registered): Likewise.
21299         * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21301 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21303         * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21304         grub_video_mode_type_t.
21305         * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21306         * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21307         * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21309 2011-03-23  Vladimir Serbinenko  <phcoder@gmail.com>
21311         * util/grub-install.in: Correct the x86-64 name as x86_64.
21313 2011-03-11  Colin Watson  <cjwatson@ubuntu.com>
21315         * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21316         initial chunk read from the kernel always includes GRUB's multiboot
21317         header, which is now outside the first sector.
21319 2011-03-09  Colin Watson  <cjwatson@ubuntu.com>
21321         * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21322         cached mmap_size, so that this works correctly when called multiple
21323         times.
21324         Reported by: Daniel Kahn Gillmor.  Should fix Debian bug #616638.
21326 2011-03-09  Colin Watson  <cjwatson@ubuntu.com>
21328         * docs/grub.texi (Simple configuration): Tidy up formatting.
21330 2011-03-07  Szymon Janc <szymon@janc.net.pl>
21332         * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21333         Set-but-not-used variable removed.
21335 2011-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
21337         Workaround yet another IEEE1275 bug.
21339         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21340         GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21341         * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21342         adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21343         is set.
21344         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21345         GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21347 2011-02-12  Vladimir Serbinenko  <phcoder@gmail.com>
21349         * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21350         error.
21352 2011-02-11  Colin Watson  <cjwatson@ubuntu.com>
21354         * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21355         empty, since in that case we can only generate either nothing or a
21356         syntactically invalid configuration file.
21357         Reported by: Michal Suchanek.  Fixes Debian bug #612898.
21359 2011-02-09  Colin Watson  <cjwatson@ubuntu.com>
21361         * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21362         (Making a GRUB bootable CD-ROM): Likewise.
21363         (Invoking grub-mkrescue): New section.
21364         Reported by: Yann Dirson.  Fixes Debian bug #612585.
21366 2011-02-09  Colin Watson  <cjwatson@ubuntu.com>
21368         * util/grub-install.in: Remove unnecessary brackets from tr
21369         arguments.
21370         * util/grub.d/10_hurd.in: Likewise.
21371         * util/grub.d/10_kfreebsd.in: Likewise.
21372         * util/grub.d/10_linux.in: Likewise.
21373         * util/grub.d/20_linux_xen.in: Likewise.
21374         Reported by: Jamie Heilman.  Fixes Debian bug #612564.
21376 2011-02-08  Colin Watson  <cjwatson@ubuntu.com>
21378         * include/grub/file.h (not_easly_seekable): Rename to ...
21379         (not_easily_seekable): ... this.  Update all users.
21381 2011-01-28  Colin Watson  <cjwatson@ubuntu.com>
21383         * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21384         grub-mkrescue.
21386 2011-01-24  Vladimir Serbinenko  <phcoder@gmail.com>
21388         * util/grub-mkimage.c (generate_image): Refuse to create the images
21389         bigger than the actual flash (512K) in Loongson machines. 512K is also
21390         the biggest chip supported by them.
21392 2011-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
21394         * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21396 2011-01-22  Anthony DeRobertis <anthony@derobert.net>
21398         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21399         super_offset field.
21401 2011-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
21403         * util/grub-install.in: Ignore install device on platforms
21404         where it doesn't make sense. Always use UUIDs except on pc, efi and
21405         sparc64.
21406         Reported by: Daniel Kahn Gillmor.
21408 2011-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
21410         * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21412 2011-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
21414         * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21415         (iterate_real): Don't rely on partition being non-NULL.
21417 2011-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
21419         * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21420         supported platforms. Put a compile time assert for this rather than
21421         generate a warning with 32-bit shift.
21423 2011-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
21425         * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21426         logical expression more readable.
21428 2011-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
21430         * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21431         even if some elements have a name.
21432         Reported by: Alexander GQ Gerasiov.
21434 2011-01-22  Colin Watson  <cjwatson@ubuntu.com>
21436         * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21437         path unreadable if `grub-probe -t abstraction' fails, for example if
21438         memberlist fails on an LVM volume group.
21439         Reported by: Darius Jahandarie.
21441 2011-01-22  Colin Watson  <cjwatson@ubuntu.com>
21443         * docs/grub.texi (Simple configuration): Document
21444         GRUB_PRELOAD_MODULES.
21446 2011-01-17  Colin Watson  <cjwatson@ubuntu.com>
21448         * .bzrignore: Remove nonexistent grub-pbkdf2.
21450 2011-01-16  Vladimir Serbinenko  <phcoder@gmail.com>
21452         * configure.ac: Bump version to 1.99~rc1.
21454 2011-01-15  Vladimir Serbinenko  <phcoder@gmail.com>
21456         * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21457         for safety.
21459 2011-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
21461         * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21462         module.
21464 2011-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
21466         * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21468 2011-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
21470         * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21471         diskdevid.
21473 2011-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
21475         Fix compilation on cygwin.
21477         * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21478         -R .drectve on cygwin.
21479         * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21480         * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21481         (COND_CYGWIN): New condition.
21482         * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21483         * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21484         not @TARGET_OBJ2ELF@.
21485         * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21486         type to determine whether aux is to be used.
21488 2011-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
21490         * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21491         realpath'ed device string.
21492         Handle floppy (somewhat).
21493         Issue error in unknown case rather than garbage.
21494         Reported by: Axel Beckert.
21496 2011-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
21498         * util/grub.d/00_header.in (load_video): Handle the case when no video
21499         drivers available.
21500         Thanks to: Axel Beckert.
21502 2011-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
21504         * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21505         variable. Fixes problem on big endian platforms.
21507 2011-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
21509         * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21510         It doesn't work well there.
21512 2011-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
21514         * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21515         warning.
21516         * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21517         * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21518         counter.
21520 2011-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
21522         Use alias->path rather than buggy "canon".
21524         * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21525         (ofdisk_hash_add): New argument curcan. All users updated.
21527 2011-01-11  Colin Watson  <cjwatson@ubuntu.com>
21529         * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21531 2011-01-11  Vladimir Serbinenko  <phcoder@gmail.com>
21533         * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21534         loadmask before doing any calculations. Use correct type for offset.
21535         (grub_linux_load64): Likewise.
21537 2011-01-11  Colin Watson  <cjwatson@ubuntu.com>
21539         * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21540         with NULL.
21541         (console_grub_equivalences_unshift): Likewise.
21542         Reported by: Daniel Dehennin.
21544 2011-01-11  Vladimir Serbinenko  <phcoder@gmail.com>
21546         * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21547         (set_env_limn_ro): Likewise.
21548         (GRUB_MOD_INIT): Likewise.
21549         * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21550         ARRAY_SIZE while on it.
21551         (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21552         * grub-core/normal/context.c (grub_env_export): Move from here ...
21553         * grub-core/kern/env.c (grub_env_export): ... here.
21554         * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21555         prefix.
21556         * grub-core/kern/main.c (grub_main): Export root and prefix.
21557         * include/grub/env.h (grub_env_export): Export.
21558         Reported by: Seth Goldberg.
21560 2011-01-11  Vladimir Serbinenko  <phcoder@gmail.com>
21562         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21563         Take into account space used by ELF sections and multiboot palette.
21564         Reported by: Grégoire Sutre.
21566 2011-01-11  Vladimir Serbinenko  <phcoder@gmail.com>
21568         * BUGS: New file.
21570 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21572         Pass more appropriate video id to Linux.
21574         * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21575         grub_video_get_driver_id and variable gfxpayloadforcelfb to
21576         fill have_vga.
21577         (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21578         shift params->lfb_size.
21579         * include/grub/i386/linux.h: Make an enume out of have_vga values.
21581 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21583         * util/grub-menulst2cfg.c: Add missing include of misc.h.
21585 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21587         * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21588         separator and pass bootpath/devid even if only one of them is available.
21589         Reported by: Seth Goldberg.
21591 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21593         Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21594         implementations bug on them.
21596         * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21597         memory.
21598         (filter_memory_map): Likewise.
21600 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21602         * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21603         Reported by: nebuchadnezzar.
21605 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21607         * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21608         Reported by: nebuchadnezzar.
21610 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21612         Submenu default support.
21614         * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21615         auto_boot. All users updated.
21616         Declared static.
21617         Handle chosen and default with submenus.
21618         (grub_menu_execute_with_fallback): Declared static.
21619         Don't notify failure if autobooted. Upper level does it.
21620         (menuentry_eq): New function.
21621         (get_entry_number): Use menuentry_eq.
21622         (show_menu): New parameter "autobooted". All users updated.
21623         (grub_show_menu): Likewise.
21624         * include/grub/normal.h (grub_show_menu): Likewise.
21625         * include/grub/menu.h (grub_menu_execute_entry): Removed.
21626         (grub_menu_execute_with_fallback): Likewise.
21628 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21630         * util/grub-mklayout.c (usage): Update help text.
21632 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21634         * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21636 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21638         * util/grub-menulst2cfg.c (main): Trim the line.
21640 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21642         * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21643         (grub_machine_init): Don't check amount of low memory as reportedly
21644         INT 12h can be broken and if low memory is too low we wouldn't have
21645         gotten into grub_machine_init anyway.
21647 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21649         * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21650         (grub_machine_mmap_iterate): Take low memory into account
21652 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21654         * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21655         badfs.
21656         Reported by: TiCPU.
21658 2011-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
21660         * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21661         members errors.
21663 2011-01-09  Grégoire Sutre  <gregoire.sutre@gmail.com>
21665         * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21666         (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21668 2011-01-09  Grégoire Sutre  <gregoire.sutre@gmail.com>
21670         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21671         openbsd and netbsd types being in part_bsd module.
21673 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
21675         * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21676         (_FILE_OFFSET_BITS): Likewise.
21677         Reported by: Seth Goldberg.
21679 2011-01-08  Grégoire Sutre  <gregoire.sutre@gmail.com>
21681         * configure.ac: Check for libdevmapper header.
21683 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
21685         * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21686         avoid aliasing.
21687         (fzap_lookup): Likewise.
21688         (dnode_get): Likewise.
21689         (make_mdn): Likewise.
21690         (zfs_mount): Likewise.
21691         (fzap_iterate): Use temporary pointer to avoid aliasing.
21692         (grub_zfs_read): Likewise.
21693         * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21694         * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21695         pointers to avoid aliasing.
21696         (grub_cmd_xnu_kernel64): Likewise.
21697         (grub_xnu_load_driver): Likewise.
21699 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
21701         * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21702         aliasing warning.
21703         (grub_cmd_terminal_output): Likewise.
21704         Reported and tested by: Grégoire Sutre.
21706 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
21708         * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21709         warning.
21710         Reported and tested by: Grégoire Sutre.
21712 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
21714         * configure.ac: Do CPU substitution even if it's specified explicitly.
21715         Reported and tested by: Alain Greppin.
21717 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
21719         * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21720         Reported and tested by: Alain Greppin.
21722 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
21724         Satisfy some bison versions need for inttypes.h.
21726         * grub-core/lib/posix_wrap/inttypes.h: New file.
21727         * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21728         (int16_t): Likewise.
21729         (int32_t): Likewise.
21730         (int64_t): Likewise.
21731         Reported and tested by: Alain Greppin.
21733 2011-01-08  Vladimir Serbinenko  <phcoder@gmail.com>
21735         * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21736         Silence spurious warning.
21737         Reported and tested by: Alain Greppin.
21739 2011-01-07  Szymon Janc <szymon@janc.net.pl>
21741         * docs/grub.texi (Support automatic decompression): Update with xz
21742         decompression support.
21744 2011-01-07  Szymon Janc <szymon@janc.net.pl>
21746         Improve loaders' kernel command line handling.
21748         * grub-core/lib/cmdline.c: New file.
21749         * include/grub/lib/cmdline.h: Likewise.
21750         * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21751         grub_create_loader_cmdline to create kernel command line.
21752         * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21753         * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21754         * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21755         * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21756         (linux): Add lib/cmdline.c on common.
21758 2011-01-07  Vladimir Serbinenko  <phcoder@gmail.com>
21760         * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21761         inopos might be unaligned.
21763 2011-01-07  Vladimir Serbinenko  <phcoder@gmail.com>
21765         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21766         endian transformations.
21767         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21768         Based on report by: Doug Nazar.
21770 2011-01-07  Doug Nazar  <nazard.michi@gmail.com>
21772         * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21773         array->members[i].start_sector.
21774         * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21776 2011-01-07  Vladimir Serbinenko  <phcoder@gmail.com>
21778         * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21779         Reported and tested by: Grégoire Sutre.
21781 2011-01-06  Colin Watson  <cjwatson@ubuntu.com>
21783         * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21784         avoid causing test failures by clearing the screen.
21786 2011-01-06  Colin Watson  <cjwatson@ubuntu.com>
21788         * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21789         Fix prefix check to handle the case where dir ends with a slash
21790         (most significantly, "/" itself).
21791         Reported by: Michael Vogt.
21793 2011-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
21795         Run terminfo_cls on initing terminfo output to clear the screen and
21796         move the cursor to (0,0).
21798         * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21799         Call grub_terminfo_output_init.
21800         * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21801         * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21802         * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21804 2011-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
21806         * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21807         only when needed.
21809 2011-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
21811         * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21812         CTRL.
21814 2011-01-05  Vladimir Serbinenko  <phcoder@gmail.com>
21816         The E820 type 5 is BADRAM, not EXEC_CODE.
21818         * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21819         (GRUB_E820_BADRAM): New define.
21820         * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21821         into reserved. Propagate BADRAM.
21822         * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21823         (GRUB_E820_BADRAM): New define.
21825 2011-01-04  Vladimir Serbinenko  <phcoder@gmail.com>
21827         * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21828         Ignore the memory post-4G.
21829         (grub_relocator_firmware_alloc_region): Additional debug statement.
21831 2011-01-04  Vladimir Serbinenko  <phcoder@gmail.com>
21833         * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21834         names.
21835         Reported by: David Pravec.
21837 2011-01-04  Vladimir Serbinenko  <phcoder@gmail.com>
21839         * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21840         BIOSes.
21842 2011-01-04  Vladimir Serbinenko  <phcoder@gmail.com>
21844         * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21845         Prevent overflow.
21846         (grub_reed_solomon_recover): Likewise.
21848 2011-01-04  Vladimir Serbinenko  <phcoder@gmail.com>
21850         * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21852 2011-01-04  Vladimir Serbinenko  <phcoder@gmail.com>
21854         * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21855         variable.
21857 2011-01-04  Colin Watson  <cjwatson@ubuntu.com>
21859         * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21860         descriptions of extract_legacy_entries_source and
21861         extract_legacy_entries_configfile.
21862         Reported by: Seung Soo, Ha.
21864 2011-01-03  Colin Watson  <cjwatson@ubuntu.com>
21866         * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21867         on devices that do not implement function 0.
21869 2011-01-03  Dave Vasilevsky <dave@vasilevsky.ca>
21871         * grub-core/fs/hfsplus.c: Make parent unsigned.
21872         (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21873         overflows.
21874         (grub_hfsplus_cmp_extkey): Likewise
21876 2011-01-03  Vladimir Serbinenko  <phcoder@gmail.com>
21878         * util/grub-install.in: Correctly use bootloader_id and not
21879         GRUB_DISTRIBUTOR on efibootmgr line.
21881 2011-01-03  Vladimir Serbinenko  <phcoder@gmail.com>
21883         * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21885 2010-12-31  Ian Campbell <ijc@hellion.org.uk>
21887         * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21888         Xen and reorder menu item wording to make it clearer that this entry
21889         will launch Xen.  Print separate messages when loading Xen and
21890         Linux.
21892 2010-12-31  Vladimir Serbinenko  <phcoder@gmail.com>
21894         * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21895         (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21896         loop in case of incorrect amiga partmap.
21898 2010-12-31  Vladimir Serbinenko  <phcoder@gmail.com>
21900         * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21901         (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21902         Reported by:EHeM.
21904 2010-12-31  Vladimir Serbinenko  <phcoder@gmail.com>
21906         * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21907         spurious warning.
21908         Reported by: crocket
21910 2010-12-27  Vladimir Serbinenko  <phcoder@gmail.com>
21912         * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21913         Preload EFIemu.
21914         (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21916 2010-12-27  Vladimir Serbinenko  <phcoder@gmail.com>
21918         * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21919         is loaded
21920         (grub_cmd_xnu_kextdir): Likewise.
21921         (grub_cmd_xnu_splash): Likewise.
21923 2010-12-27  Vladimir Serbinenko  <phcoder@gmail.com>
21925         Avoid using Reed-Solomon with 0 redundancy.
21927         * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21928         * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21929         or 0 redundancy.
21930         (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21931         (grub_reed_solomon_recover): Likewise.
21933 2010-12-27  Vladimir Serbinenko  <phcoder@gmail.com>
21935         Don't use disk subsystem in freebsd_boot.
21937         * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21938         (freebsd_biosdev): Likewise.
21939         (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21940         (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21942 2010-12-26  Vladimir Serbinenko  <phcoder@gmail.com>
21944         Handling of files of unknown size is currently limited. They can't be
21945         used e.g. for initrd or modules. Moreover gzip handling of not
21946         easily seekable files is buggy. Disable unknown file size for now. May
21947         be inefficient but works.
21949         * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21950         * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21952 2010-12-25  Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21954         * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21955         floppy probe.
21957 2010-12-25  Jeroen Dekkers <jeroen@dekkers.ch>
21959         * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21961 2010-12-25  Shea Levy <shlevy>
21963         * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21965 2010-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
21967         * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21968         Windows Server 2008.
21969         Reported by: Devin Giddings.
21971 2010-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
21973         * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21974         writing an error message because of async power management.
21975         * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21976         (grub_reboot): Likewise.
21978 2010-12-23  Jordan Uggla  <jordan.uggla@gmail.com>
21980         * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21981         keep unit tests from failing when they shouldn't.
21983 2010-12-21  Colin Watson  <cjwatson@ubuntu.com>
21985         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21986         previous patch increased the size of the RS code by 20 bytes (at
21987         least with gcc-4.4), so increase this by 20 bytes to match.
21988         (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21990 2010-12-21  Colin Watson  <cjwatson@ubuntu.com>
21992         * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21993         scratch area.  Make sure to initialise chosen in standalone mode as
21994         well as non-standalone.
21995         Reported by: Robert Hooker and Andy Whitcroft.
21996         Tested by: Andy Whitcroft.
21998 2010-12-21  Colin Watson  <cjwatson@ubuntu.com>
22000         * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
22001         constructing a new unescaped string and passing it to grub_xputs in
22002         one go, rather than passing characters to grub_printf one at a time.
22004 2010-12-21  Colin Watson  <cjwatson@ubuntu.com>
22006         * grub-core/fs/udf.c (read_string): Pacify GCC warning by
22007         initialising utf16.
22009 2010-12-21  Colin Watson  <cjwatson@ubuntu.com>
22011         * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
22012         comment.  Add an extra layer of quotation, requiring the output of
22013         this function to be used in a printf format string.
22014         (gettext_printf): New function.
22015         * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
22016         Extract translatable strings from here-documents and use a temporary
22017         variable instead, so that xgettext can find them.
22018         * util/grub.d/10_kfreebsd.in: Likewise.
22019         * util/grub.d/10_linux.in: Likewise.
22020         * util/grub.d/20_linux_xen.in: Likewise.
22022         * po/grub.d.sed: New file.
22023         * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
22024         arguments.  Set c-format flags on all strings extracted from
22025         util/grub.d/ (xgettext refuses to include these itself for strings
22026         it extracted from a shell file, but these really are c-format).
22028 2010-12-20  Vladimir Serbinenko  <phcoder@gmail.com>
22030         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
22031         Avoid next pointing to nowhere.
22033 2010-12-19  Vladimir Serbinenko  <phcoder@gmail.com>
22035         * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
22036         rather than assuming than rootblock is exactly in the middle.
22037         (grub_affs_label): Likewise.
22039 2010-12-19  Vladimir Serbinenko  <phcoder@gmail.com>
22041         * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
22042         reserved_first_sector to 0.
22043         * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
22044         * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
22045         * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
22047 2010-12-19  Vladimir Serbinenko  <phcoder@gmail.com>
22049         Fix handling of UTF-16 UDF labels.
22051         * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
22052         (read_string): .. here.
22053         (grub_udf_label): Use read_string.
22055 2010-12-19  BVK Chaitanya  <bvk.groups@gmail.com>
22057         * grub-core/normal/menu_entry.c (run): Execute commands from menu
22058         editor under argument scope.
22059         Reported by: Jordan Uggla
22061 2010-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
22063         * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
22065 2010-12-18  Colin Watson  <cjwatson@ubuntu.com>
22067         * grub-core/normal/term.c (print_more): Make \r or \n scroll one
22068         line, and other keys scroll an entire page (previous handling was
22069         for \r and \n to scroll a page and other keys to scroll two lines).
22071 2010-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
22073         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
22074         Set ptrdest to correct get_physical_target_address rather than
22075         incorrect get_virtual_current_address.
22077 2010-12-18  kashyap garimella <garimella.kashyap@gmail.com>
22079         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
22080         correct cat to grub_uint8_t * rather than grub_uint32_t *.
22082 2010-12-10  Colin Watson  <cjwatson@ubuntu.com>
22084         * .bzrignore: Ignore grub-core/rs_decoder.S.
22086 2010-12-10  Colin Watson  <cjwatson@ubuntu.com>
22088         * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
22089         .mo/.mo.gz opening sequence to ...
22090         (grub_mofile_open_lang): ... here.
22091         (grub_gettext_init_ext): If opening ll_CC fails, try ll.
22092         * util/grub.d/00_header.in (grub_lang): Include country part of
22093         locale.
22094         Reported by: Mario Limonciello.
22096 2010-12-09  Robert Millan  <rmh@gnu.org>
22098         * NEWS: Document addition of ZFS support.
22100 2010-12-04  Colin Watson  <cjwatson@ubuntu.com>
22102         * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22103         rather than `/ 2', as the latter requires -Wa,--divide which would
22104         require bumping our minimum binutils version.
22106 2010-12-03  BVK Chaitanya  <bvk.groups@gmail.com>
22108         * util/grub-script-check.c (main): Print script line number on
22109         error.
22111 2010-12-01  Robert Millan  <rmh@gnu.org>
22113         * grub-core/fs/zfs/zfs.c: New file.
22114         * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22115         * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22116         * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22117         * grub-core/fs/zfs/zfsinfo.c: Likewise.
22119         * include/grub/zfs/dmu.h: Likewise.
22120         * include/grub/zfs/dmu_objset.h: Likewise.
22121         * include/grub/zfs/dnode.h: Likewise.
22122         * include/grub/zfs/dsl_dataset.h: Likewise.
22123         * include/grub/zfs/dsl_dir.h: Likewise.
22124         * include/grub/zfs/sa_impl.h: Likewise.
22125         * include/grub/zfs/spa.h: Likewise.
22126         * include/grub/zfs/uberblock_impl.h: Likewise.
22127         * include/grub/zfs/vdev_impl.h: Likewise.
22128         * include/grub/zfs/zap_impl.h: Likewise.
22129         * include/grub/zfs/zap_leaf.h: Likewise.
22130         * include/grub/zfs/zfs.h: Likewise.
22131         * include/grub/zfs/zfs_acl.h: Likewise.
22132         * include/grub/zfs/zfs_znode.h: Likewise.
22133         * include/grub/zfs/zil.h: Likewise.
22134         * include/grub/zfs/zio.h: Likewise.
22135         * include/grub/zfs/zio_checksum.h: Likewise.
22137         * Makefile.util.def: Build ZFS into libgrubmods.
22138         * grub-core/Makefile.core.def: Build zfs.mod.
22140 2010-11-30  Szymon Janc <szymon@janc.net.pl>
22142         * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22143         variable.
22144         * grub-core/commands/wildcard.c (match_files): Likewise.
22146 2010-11-30  Robert Millan  <rmh@gnu.org>
22148         * grub-core/loader/i386/bsd.c
22149         (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22150         whether kernel is loaded using grub_loader_is_loaded(), rather
22151         than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22152         certain error conditions.
22154 2010-11-30  Robert Millan  <rmh@gnu.org>
22156         * grub-core/commands/echo.c: Include `<grub/term.h>'.
22157         (grub_cmd_echo): Call grub_refresh() after printing a message.
22159 2010-11-26  Vladimir Serbinenko  <phcoder@gmail.com>
22161         Avoid using tricks for initialising endian variables.
22163         * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22164         Make const.
22165         (GRUB_MOD_INIT): Don't byte-swap.
22166         * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22167         Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22168         * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22169         (grub_swap_bytes32_compile_time): Likewise.
22170         (grub_cpu_to_le32_compile_time): Likewise.
22171         (grub_cpu_to_le16_compile_time): Likewise.
22173 2010-11-26  Vladimir Serbinenko  <phcoder@gmail.com>
22175         * util/grub-setup.c (setup): Stop recommending --force. People who
22176         understand the dangers of blocklists are able to find this option
22177         anyway and the ones who don't shouldn't use it anyway.
22179 2010-11-26  Robert Millan  <rmh@gnu.org>
22181         * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22182         Update all users.
22184 2010-11-26  Colin Watson  <cjwatson@ubuntu.com>
22186         Fix LVM-on-RAID probing.
22188         * util/grub-probe.c (probe): Remember which disk was detected as
22189         RAID (perhaps an LVM physical volume).  Use that disk's raidname
22190         rather than that of the top-level disk.
22192 2010-11-25  BVK Chaitanya  <bvk.groups@gmail.com>
22194         Fix cmdline argument quotes for setparams command of menuentry
22195         definitions.
22197         * grub-core/commands/menuentry.c (setparams_prefix): Use single
22198         quotes for arguments.
22199         * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22200         grub_strchrsub function instead.
22202         * include/grub/misc.h (grub_strchrsub): New function.
22204 2010-11-24  Colin Watson  <cjwatson@ubuntu.com>
22206         * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22207         effort by skipping "." and ".." entries up-front.
22208         Suggested by: Michael Lazarev.
22210 2010-11-24  Colin Watson  <cjwatson@ubuntu.com>
22212         * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22213         ldflags to ldadd, to fix link line ordering.
22214         (none_decompress): Likewise.
22216 2010-11-24  Colin Watson  <cjwatson@ubuntu.com>
22218         * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22219         platforms.
22220         (grub-emu-lite): Remove kern/emu/cache.S.
22222 2010-11-23  Colin Watson  <cjwatson@ubuntu.com>
22224         * util/deviceiter.c (compare_devices): If the by-id link for a
22225         device couldn't be resolved, fall back to sorting by the by-id link
22226         rather than segfaulting.
22227         Reported and tested by: Daniel Mierswa.
22229 2010-11-23  Colin Watson  <cjwatson@ubuntu.com>
22231         * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22232         ldflags, to fix link line ordering.
22234 2010-11-23  Colin Watson  <cjwatson@ubuntu.com>
22236         * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22237         linkers are picky about this.
22239 2010-11-23  Colin Watson  <cjwatson@ubuntu.com>
22241         * grub-core/Makefile.am (command.lst): Adjust sed expression
22242         ordering so that extended and priority commands aren't treated as
22243         ordinary commands.
22245 2010-11-23  Colin Watson  <cjwatson@ubuntu.com>
22247         * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22248         Remove byte-swapping function calls, which are not valid in
22249         structure initialisers.
22250         * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22251         non-const.
22252         (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22253         grub_gpt_partition_type_bios_boot.
22255 2010-11-22  Colin Watson  <cjwatson@ubuntu.com>
22257         Fix test program build on GNU/kFreeBSD.
22259         * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22260         $(LIBNVPAIR)' library dependencies.
22262 2010-11-22  Colin Watson  <cjwatson@ubuntu.com>
22264         * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22266 2010-11-22  Colin Watson  <cjwatson@ubuntu.com>
22268         * util/grub-install.in: Remove excessive quoting that broke
22269         installations to RAID devices.
22271 2010-11-19  Vladimir Serbinenko  <phcoder@gmail.com>
22273         * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22274         bootloader version instead of 0.
22276 2010-11-19  Vladimir Serbinenko  <phcoder@gmail.com>
22278         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22279         warning.
22281 2010-11-19  Vladimir Serbinenko  <phcoder@gmail.com>
22283         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22284         retrieve the metadat sector if size isn't known.
22285         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22287 2010-11-18  Robert Millan  <rmh@gnu.org>
22289         * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22290         with grub_memcmp().
22292 2010-11-18  Vladimir Serbinenko  <phcoder@gmail.com>
22294         * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22295         arrow.
22296         Reported by: Jordan Uggla.
22298 2010-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
22300         Make better UTF compliant.
22302         * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22303         sequences as incorrect.
22304         (grub_is_valid_utf8): Likewise.
22305         (grub_utf8_to_ucs4): Likewise.
22306         (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22307         (grub_ucs4_to_utf8_alloc): Likewise.
22308         * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22310 2010-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
22312         Make legacy_source behave like source.
22314         * grub-core/commands/legacycfg.c (legacy_file): Don't call
22315         grub_show_menu.
22316         (grub_cmd_legacy_source): Call grub_show_menu if needed.
22318 2010-11-16  Colin Watson  <cjwatson@debian.org>
22320         * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22321         (-Wunused implies -Wunused-parameter, but not vice versa).
22323 2010-11-16  Colin Watson  <cjwatson@ubuntu.com>
22325         * configure.ac: Make error messages less confusing by testing for
22326         -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22327         accepted, but produces a diagnostic if something else is wrong).
22329 2010-11-15  Vladimir Serbinenko  <phcoder@gmail.com>
22331         * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22332         [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22333         (now unused).
22334         (grub_keyboard_controller_init)
22335         [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22336         read the initial state since controller isn't inited yet.
22338 2010-11-15  Vladimir Serbinenko  <phcoder@gmail.com>
22340         * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22341         allocate_regbeg may need to create new chunk header.
22343 2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
22345         Fix quoting in legacy parser.
22347         * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22348         single quotes.
22349         (grub_legacy_parse): Likewise.
22350         Reported by: Jordan Uggla.
22351         Tested by: Jordan Uggla.
22353 2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
22355         Don't add -lgcc on i386 and x86_64.
22357         * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22358         * conf/Makefile.common (LDADD_KERNEL): Likewise.
22359         * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22361 2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
22363         * configure.ac: Add -Wno-trampolines when supported.
22365 2010-11-14  Modestas Vainius <modax@debian.org>
22367         * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22368         fakeraid.
22370 2010-11-14  Giuseppe Caizzone <acaizzo@gmail.com>
22372         Add generic logical block size support for UDF.
22374         * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22375         (GRUB_UDF_BLKSZ): Removed.
22376         (struct grub_udf_data): New field "lbshift" to hold the logical block
22377         size of the file system in log2 format. All users updated.
22378         (sblocklist): Change type to unsigned.
22379         (grub_udf_mount): Change type of "sblklist" to unsigned.
22380         Move AVDP search before VRS recognition, because the latter requires
22381         knowledge of the logical block size, which is detected during the
22382         former.
22383         Detect and validate logical block size during AVDP search, adding
22384         support for block sizes 512, 1024 and 4096.
22385         Make VRS recognition independent of block size.
22387 2010-11-14  Giuseppe Caizzone <acaizzo@gmail.com>
22389         Properly handle deleted files on UDF.
22391         * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22392         whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22393         set.
22395 2010-11-14  Giuseppe Caizzone <acaizzo@gmail.com>
22397         Support reading files larger than 2 GiB.
22399         * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22400         "offset" to grub_off_t.
22401         (grub_udf_read_file): Likewise for parameter "pos".
22403 2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
22405         * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22406         unavailable.
22407         (Simple configuration): Refer to Changes from GRUB Legacy about
22408         save_env availability.
22410 2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
22412         * util/grub-install.in: Ignore empty partition table detection
22413         instead of trying to include part_ module.
22415 2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
22417         * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22418         LVM on RAID support.
22420 2010-11-14  Vladimir Serbinenko  <phcoder@gmail.com>
22422         Properly define WORDS_BIGENDIAN in wrapped environments.
22424         * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22425         definition.
22426         * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22428         Reported by: Manoel Rebelo Abranches.
22429         Tested by: Manoel Rebelo Abranches.
22431 2010-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
22433         * util/grub-mkconfig.in: Fix quoting.
22435 2010-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
22437         Support big ext2 files.
22439         * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22440         (grub_ext2_read_block): Support triple indirect blocks.
22441         (grub_ext2_read_file): Use 64-bit types and read size_high.
22442         (grub_ext2_open): Read size_high.
22443         Reported by: Ximin Luo.
22444         Tested by: Manoel Rebelo Abranches.
22446 2010-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
22448         * util/grub-install.in: Handle filenames containing spaces.
22449         Reported by: Jordan Uggla.
22450         Tested by: Jordan Uggla.
22452 2010-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
22454         * util/grub-mkconfig.in (grub_script_check): New variable.
22455         Use grub_script_check instead of grub-script-check.
22456         Reported by: Barry Jackson.
22458 2010-11-13  Vladimir Serbinenko  <phcoder@gmail.com>
22460         * docs/grub.texi (menu): Correct the order.
22461         Reported by: D. Hugh Redelmeier.
22463 2010-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
22465         * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22466         jump.
22468 2010-11-08  Manoel Rebelo Abranches <mrabran@br.ibm.com>
22470         * include/grub/elfload.h (grub_elf32_size): New parameter.
22471         All users updated.
22472         Return maximum segments alignment.
22473         (grub_elf64_size): Likewise.
22474         * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22475         Return maximum segments alignment.
22476         (grub_elf64_size): Likewise.
22477         * grub-core/loader/powerpc/ieee1275/linux.c:
22478         (grub_linux_claimmap_iterate): New function. Uses the
22479         "available" property in the "memory" node for memory allocation
22480         for kernel in the PowerPC loader.
22481         (grub_linux_load32): Correctly find linux entry point offset.
22482         (grub_linux_load64): Likewise.
22484 2010-11-07  Robert Millan  <rmh@gnu.org>
22486         On mips-yeeloong, build with -march=loongson2f when this flag is
22487         available (GCC >= 4.4).
22488         * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22489         `-march=mips3'.
22490         * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22491         or otherwise add -march=mips3.
22493 2010-11-07  BVK Chaitanya  <bvk.groups@gmail.com>
22495         Suppress shell expansion on echo '*' and echo "*" like cases.
22496         Reported by: Jordan Uggla.
22498         * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22499         string arguments before shell expansion.
22500         * tests/grub_cmd_echo.in: New testcases.
22502 2010-11-07  Robert Millan  <rmh@gnu.org>
22504         * conf/mips-qemu-mips.rmk: Remove stale file from previous
22505         transition.
22507 2010-11-07  Vladimir Serbinenko  <phcoder@gmail.com>
22509         * grub-core/kern/emu/hostdisk.c
22510         (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22512 2010-11-06  Vladimir Serbinenko  <phcoder@gmail.com>
22514         * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22515         * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22516         * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22518 2010-11-06  Vladimir Serbinenko  <phcoder@gmail.com>
22520         * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22522 2010-11-06  Vladimir Serbinenko  <phcoder@gmail.com>
22524         * util/grub-install.in: Replace useless recomendation to pass
22525         --modules with a recomendation to report a bug.
22527 2010-11-06  Vladimir Serbinenko  <phcoder@gmail.com>
22529         Properly register serial terminfo.
22530         Reported by: Jordan Uggla
22532         * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22533         const.
22534         (grub_serial_terminfo_output_template): Likewise.
22535         (grub_cmd_serial): Register "serial" with terminfo.
22536         (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22537         grub_serial_terminfo_output.
22539 2010-11-05  Robert Millan  <rmh@gnu.org>
22541         * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22542         needed).
22544 2010-11-05  Robert Millan  <rmh@gnu.org>
22546         On Yeeloong, pass machine type information to Linux.
22548         * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22549         (LOONGSON_MACHTYPE): New macro, set to
22550         "machtype=lemote-yeeloong-2f-8.9inches".
22551         [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22552         additional argument to Linux.
22554 2010-11-04  Robert Millan  <rmh@gnu.org>
22556         * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22557         limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22558         (its SATA disks are detected as slaveless IDE master drives on
22559         kFreeBSD).
22560         Reported by Carsten Aulbert.
22562 2010-11-02  Colin Watson  <cjwatson@ubuntu.com>
22564         * util/bin2h.c (main): Fix spelling error in generated output.
22566 2010-11-01  Grégoire Sutre  <gregoire.sutre@gmail.com>
22568         * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22570 2010-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
22572         * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22573         vga= option is supplied.
22575 2010-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
22577         * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22578         * util/grub.d/10_kfreebsd.in: Likewise.
22579         * util/grub.d/10_linux.in: Likewise.
22580         * util/grub.d/20_linux_xen.in: Likewise.
22582 2010-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
22584         * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22585         argument as an argument to no-argument option.
22587 2010-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
22589         * util/grub.d/10_linux.in: Add missing load_video with explicit
22590         GRUB_GFXPAYLOAD_LINUX.
22592 2010-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
22594         * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22596 2010-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
22598         * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22599         elements with invlid index.
22600         * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22601         * grub-core/disk/raid.c (insert_array): Automatically reallocate
22602         members.
22603         * include/grub/raid.h (grub_raid_member): New struct.
22604         (grub_raid_array): Transform devices and start_sector into usage of
22605         grub_raid_member. All users updated
22606         (allocated_devs): New member.
22608 2010-11-01  Vladimir Serbinenko  <phcoder@gmail.com>
22610         * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22611         is modified
22613 2010-10-29  BVK Chaitanya  <bvk.groups@gmail.com>
22615         NetBSD build fix for getline function conflict from gnulib.
22617         * Makefile.util.def (libgrubkern.a): New library for grub kernel
22618         components that depend on gnulib headers.
22619         (libgrubmods.a): Renamed from earlier libgrub.a.
22620         * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22622 2010-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
22624         * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22625         install rather than creating a broken install.
22627 2010-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
22629         * util/grub-setup.c (argp): Remove misleading example of installing to
22630         a partition.
22632 2010-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
22634         * util/grub-setup.c (setup): Clarify the error message.
22636 2010-10-26  Vladimir Serbinenko  <phcoder@gmail.com>
22638         * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22640 2010-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
22642         * grub-core/kern/emu/misc.c
22643         (grub_make_system_path_relative_to_its_root)
22644         [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22646 2010-10-23  Vladimir Serbinenko  <phcoder@gmail.com>
22648         * grub-core/kern/emu/misc.c
22649         (grub_make_system_path_relative_to_its_root): Revert r2882.
22651 2010-10-22  Vladimir Serbinenko  <phcoder@gmail.com>
22653         * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22654         useless field head. All users updated.
22655         (free_subchunk): Correct handling of IN_REGION subchunk.
22657 2010-10-22  Colin Watson  <cjwatson@ubuntu.com>
22659         * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22660         (Supported kernels): Likewise.
22662 2010-10-18  Grégoire Sutre  <gregoire.sutre@gmail.com>
22664         Make mktemp invocations portable.
22666         * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22667         exit if mktemp fails.
22668         * tests/grub_script_blockarg.in: Likewise.
22669         * tests/partmap_test.in: Likewise.
22670         * tests/util/grub-shell-tester.in: Likewise.
22671         * tests/util/grub-shell.in: Likewise.
22672         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22673         * Makefile.am: Likewise, and chain shell commands with `&&'
22674         instead of ';'.
22675         * util/grub-mkrescue.in: Use the same explicit template as above, and
22676         exit if mktemp fails.
22678 2010-10-18  BVK Chaitanya  <bvk.groups@gmail.com>
22680         * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22681         Linux kernel, reported by Dennis Schridde.
22683 2010-10-17  Szymon Janc <szymon@janc.net.pl>
22685        * grub-core/normal/auth.c (grub_auth_check_authentication):
22686        Set-but-not-used variable removed.
22688 2010-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
22690         * docs/grub.texi (GNU/Linux): Document APM unavailability with
22691         32-bit linux protocol.
22693 2010-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
22695         * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22696         cursor shape for sanity.
22698 2010-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
22700         * docs/grub.texi (Installation): Document buggy BIOS install.
22702 2010-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
22704         * docs/grub.texi (Installation): Indent.
22706 2010-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
22708         * util/grub-setup.c (setup): New parameter allow_floppy.
22709         (arguments): New member allow_floppy.
22710         (argp_parser): Handle --allow-floppy.
22711         (main): Pass allow_floppy.
22712         * util/grub-install.in: New option --allow-floppy passed though to
22713         grub-setup.
22715 2010-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
22717         * util/grub-install.in: Handle partitionless disks.
22719 2010-10-17  Vladimir Serbinenko  <phcoder@gmail.com>
22721         * util/grub-setup.c (setup): Don't clean blocklists before readability
22722         verfification.
22724 2010-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
22726         * docs/grub.texi (Installation): Document embedding zone. Remove
22727         obsolete grub-install example.
22729 2010-10-16  Szymon Janc <szymon@janc.net.pl>
22731         * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22732         Set-but-not-used variable ifdef'ed.
22733         * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22734         * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22735         variable removed.
22736         * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22737         * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22738         * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22739         * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22740         * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22741         * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22742         * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22743         * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22744         * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22745         * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22746         * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22747         Likewise.
22749 2010-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
22751         * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22752         * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22753         enum value.
22755 2010-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
22757         * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22758         synonym to _S5_. Needed for some DSDTs.
22760 2010-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
22762         Userspace ACPI parser debugging.
22764         * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22765         headers and add relevant defines. Don't include standard headers.
22766         (main) [GRUB_DSDT_TEST]: New function.
22767         * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22768         Don't declare functions.
22770 2010-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
22772         Remove dead grub_efi_mm_fini.
22774         * grub-core/kern/efi/mm.c (allocated_page): Removed.
22775         (ALLOCATED_PAGES_SIZE): Likewise.
22776         (MAX_ALLOCATED_PAGES): Likewise.
22777         (allocated_pages): Likewise.
22778         (grub_efi_allocate_pages): Don't record allocated pages.
22779         (grub_efi_free_pages): Likewise.
22780         (grub_efi_mm_init): Likewise.
22781         (grub_efi_mm_fini): Removed.
22783 2010-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
22785         * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22786         (grub_efi_mm_init): Take into account the memory map size increase.
22788 2010-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
22790         * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22791         (serial_hw_put): Wait based on real time rather than port reads. Don't
22792         roken ports.
22793         * include/grub/serial.h (grub_serial_port): New field broken.
22795 2010-10-16  Robert Millan  <rmh@gnu.org>
22797         * grub-core/kern/emu/misc.c
22798         (grub_make_system_path_relative_to_its_root): Fix premature return
22799         when processing non-root ZFS filesystems.
22800         Reported by Sergio Talens-Oliag.
22802 2010-10-15  Robert Millan  <rmh@gnu.org>
22804         * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22805         guarantee compressed ones are processed first.
22807 2010-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
22809         * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22810         grub_efiemu_autocore.
22812 2010-10-14  Vladimir Serbinenko  <phcoder@gmail.com>
22814         * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22815         rather than 0x1b.
22816         (grub_console_getkey): Use correct jae opcode rather than ja.
22818 2010-10-12  Robert Millan  <rmh@gnu.org>
22820         * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22821         `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22822         variable.  All references updated.
22824         * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22826 2010-10-08  Vladimir Serbinenko  <phcoder@gmail.com>
22828         Correctly distinguish mdraid flavours.
22830         * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22831         (insert_array): New argument raid.
22832         * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22833         * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22834         * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22836 2010-10-09  Vladimir Serbinenko  <phcoder@gmail.com>
22838         * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22839         handling of special keys.
22841 2010-10-02  Aleš Nesrsta <starous@volny.cz>
22843         * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22844         GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22846 2010-10-02  Aleš Nesrsta <starous@volny.cz>
22848         * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22849         * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22850         users updated.
22851         * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22852         Use right endpoint when querying descriptor.
22854 2010-10-01  Vladimir Serbinenko  <phcoder@gmail.com>
22856         Clear out 0x80 color bit on EFI.
22857         Tested by: decoder
22858         Reported by: decoder and meta tech.
22860         * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22861         (grub_console_setcolorstate): Clear out 0x80 bit.
22862         Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22863         (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22864         Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22866 2010-10-01  Vladimir Serbinenko  <phcoder@gmail.com>
22868         * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22869         Set to "auto".
22871 2010-09-30  Vladimir Serbinenko  <phcoder@gmail.com>
22873         * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22874         mo_file after freeing.
22876 2010-09-30  Vladimir Serbinenko  <phcoder@gmail.com>
22878         * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22880 2010-09-30  Vladimir Serbinenko  <phcoder@gmail.com>
22882         * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22883         flags.
22885 2010-09-30  Vladimir Serbinenko  <phcoder@gmail.com>
22887         * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22888         usage.
22890 2010-09-30  Vladimir Serbinenko  <phcoder@gmail.com>
22892         Put terminfo into core on ieee1275 and yeeloong (needed for console).
22894         * gentpl.py: New groups terminfoinkernel and terminfomodule.
22895         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22896         and terminfo.h when needed.
22897         * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22898         term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22899         (terminfo): Enable only on terminfokernel.
22900         (extcmd): Likewise.
22901         * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22902         * include/grub/lib/arg.h: Likewise.
22903         * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22904         incorrect usage of ->.
22906 2010-09-29  Vladimir Serbinenko  <phcoder@gmail.com>
22908         * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22909         [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22911 2010-09-29  Vladimir Serbinenko  <phcoder@gmail.com>
22913         Fix coreboot compilation.
22915         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22916         Take VBE info into account even if only text is supported.
22917         (fill_vbe_info): Take into account the case when only VGA text
22918         is supported.
22919         * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22920         on coreboot, multiboot and qemu.
22922 2010-09-29  Vladimir Serbinenko  <phcoder@gmail.com>
22924         * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22925         debug messages.
22926         (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22928 2010-09-29  Vladimir Serbinenko  <phcoder@gmail.com>
22930         * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22931         parameters.
22933 2010-09-29  Vladimir Serbinenko  <phcoder@gmail.com>
22935         * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22936         if they were BSD-style.
22938 2010-09-29  Vladimir Serbinenko  <phcoder@gmail.com>
22940         * grub-core/boot/i386/pc/lnxboot.S: Replace
22941         GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22942         GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22944 2010-09-29  Vladimir Serbinenko  <phcoder@gmail.com>
22946         Write embedding zone using Reed-Solomon.
22948         * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22949         * grub-core/Makefile.am (rs_decoder.S): New target.
22950         (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22951         * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22952         (multiboot): Move to RS part.
22953         (post_reed_solomon): New label.
22954         (grub_boot_drive): Move to non-RS part since it's modified in memory
22955         on boot.
22956         Include rs_decoder.S.
22957         * grub-core/lib/reed_solomon.c: New file.
22958         * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22959         New definition.
22960         (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22961         (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22962         (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22963         * include/grub/partition.h (grub_partition_map): Change prototype of
22964         embed to allow returning additional sectors.
22965         * include/grub/reed_solomon.h: New file.
22966         * util/grub-setup.c (setup): Handle Reed-Solomon.
22968 2010-09-28  Colin Watson  <cjwatson@ubuntu.com>
22970         * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22971         i386 and x86-64 definedness tests.
22973 2010-09-27  Yves Blusseau  <blusseau@zetam.org>
22975         Fix generation of kernel_syms.lst
22977         * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22978         ASM_PREFIX
22980 2010-09-26  Robert Millan  <rmh@gnu.org>
22982         Support degraded ZFS arrays in "grub-probe -t device" resolution.
22984         * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22985         the pool is an array of devices, iterate through it and return the
22986         first device that passes a stat() test (instead of blindly returning
22987         the first one).
22989 2010-09-26  Robert Millan  <rmh@gnu.org>
22991         Build fixes for GNU/kFreeBSD.
22993         * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22994         to programs that require ZFS conversion.
22995         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22996         kernels that don't have FLOPPY_MAJOR.
22998 2010-09-25  BVK Chaitanya  <bvk.groups@gmail.com>
23000         * grub-core/kern/emu/full.c (grub_emu_post_init):  Fix typo.
23002 2010-09-25  BVK Chaitanya  <bvk.groups@gmail.com>
23004         Fix grub-emu build.
23006         * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
23007         * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
23008         mdraid09 and mdraid1x.
23010 2010-09-24  Colin Watson  <cjwatson@ubuntu.com>
23012         Re-enable grub-extras.
23014         * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
23015         avoid confusing Automake.  Run autogen only twice, once for the top
23016         level and once for grub-core.  Add Makefile.util.def and
23017         Makefile.core.def from extra modules to the appropriate autogen
23018         invocations.  If Makefile.common exists in an extra module, include
23019         it in both Makefile.util.am and grub-core/Makefile.core.am;
23020         similarly, include any Makefile.util.common file in Makefile.util.am
23021         and any Makefile.core.common file in grub-core/Makefile.core.am.
23022         * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
23023         Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
23024         ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
23025         * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
23027         * gentpl.py (gvar_add): Turn GVARS into a set.
23028         (global_variable_initializers): Sort global variables on output.
23029         (vars_init): New function.
23030         (first_time): Likewise.
23031         (library): Ensure that non-global variable initialisations are
23032         emitted before the first time we emit code for a library block.
23033         Append to variables rather than setting them.  Only emit
23034         noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
23035         each conditional path.
23036         (program): installdir() emits an Autogen macro, so must be passed to
23037         var_add rather than gvar_add.
23038         (data): Likewise.
23039         (script): Likewise.
23040         (rules): New function, centralising handling for different target
23041         types.  Set up Guile association lists for first_time and vars_init,
23042         and send most output to a diversion so that variable initialisations
23043         can be emitted first.
23044         (module_rules): Use new rules function.
23045         (kernel_rules): Likewise.
23046         (image_rules): Likewise.
23047         (library_rules): Likewise.
23048         (program_rules): Likewise.
23049         (script_rules): Likewise.
23050         (data_rules): Likewise.
23052         * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
23054         * .bzrignore: Add contrib and grub-core/contrib.  Remove
23055         grub-core/Makefile.gcry.am.
23057 2010-09-24  Yves Blusseau  <blusseau@zetam.org>
23059         * grub-core/lib/LzFind.c: Add missing include.
23060         * grub-core/lib/LzmaEnc.c: Likewise.
23061         * grub-core/script/lexer.c: Likewise.
23062         * grub-core/script/yylex.l: Likewise.
23063         * util/grub-macho2img.c: Likewise.
23064         * util/grub-menulst2cfg.c: Likewise.
23065         * util/grub-mklayout.c: Likewise.
23066         * util/grub-mkpasswd-pbkdf2.c
23067         * util/grub-mkrelpath.c: Likewise.
23068         * util/resolve.c: Likewise.
23070 2010-09-24  BVK Chaitanya  <bvk.groups@gmail.com>
23072         * Makefile.util.def (example_unit_test): Add
23073         grub-core/gnulib/libgnu.a.
23075 2010-09-23  Grégoire Sutre  <gregoire.sutre@gmail.com>
23077         * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
23079 2010-09-23  Vladimir Serbinenko  <phcoder@gmail.com>
23081         Support xz compression on yeeloong.
23083         * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
23084         * configure.ac: Check for LZMA.
23085         * grub-core/Makefile.core.def (xz_decompress): New target.
23086         (none_decompress): Likewise.
23087         * grub-core/boot/decompressor/minilib.c: New file.
23088         * grub-core/boot/decompressor/none.c: Likewise.
23089         * grub-core/boot/decompressor/xz.c: Likewise.
23090         * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
23091         * grub-core/kern/mips/cache_flush.S: Likewise.
23092         * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
23093         * grub-core/kern/mips/startup.S: Move first stage to ...
23094         * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
23095         nomacro.
23096         * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
23097         * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
23098         * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
23099         Allocate statically.
23100         * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23101         Allocate statically or use scratch. Don't check CRC32.
23102         * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23103         Allocate statically. Don't check CRC32.
23104         * include/grub/decompressor.h: New file.
23105         * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23106         Removed.
23107         (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23108         (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23109         (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23110         (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23111         (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23112         * util/grub-mkimage.c (grub_compression_t): New type.
23113         (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23114         (image_target_desc): New field default_compression.
23115         (image_targets): Adjust yeeloong targets.
23116         (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23117         (compress_kernel): New parameter comp.
23118         (generate_image): Likewise. Handle new compression case.
23119         (options): New option --compression
23120         (help): Likewise.
23121         (main): Handle new option.
23123 2010-09-22  Grégoire Sutre  <gregoire.sutre@gmail.com>
23125         * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23127 2010-09-22  Colin Watson  <cjwatson@ubuntu.com>
23129         * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23130         typo in __i386__ conditional.
23132 2010-09-22  Vladimir Serbinenko  <phcoder@gmail.com>
23134         * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23135         include.
23137 2010-09-22  Vladimir Serbinenko  <phcoder@gmail.com>
23139         Implement EFI and ACPI multiboot2 extensions.
23141         * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23142         new tags as supported.
23143         (acpiv2_size): New function.
23144         (grub_multiboot_get_mbi_size): Take new tags into account.
23145         (grub_multiboot_make_mbi): Add new tags.
23146         * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23148 2010-09-21  Aleš Nesrsta <starous@volny.cz>
23150         * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23151         Added missing configuration of USB device.
23153 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23155         * grub-core/normal/menu_entry.c (run): Make sure we always return
23156         a value.
23158 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23160         * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23161         NumberOfPages is UINT64 according to the UEFI specification, not
23162         UINTN.  Fix printf format.
23164 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23166         * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23167         `err' to grub_usb_err_t.
23168         Reported and tested by: KESHAV P.R.
23170 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23172         * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23173         tpart non-const, so that we can assign to it.  (Since this is a
23174         typedef, the constness refers to the pointer rather than what it
23175         points to.)
23177 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23179         * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23180         $(top_srcdir)/grub-core/gnulib as well as
23181         $(top_builddir)/grub-core/gnulib.
23182         Reported by: KESHAV P.R.
23184 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23186         * util/grub-install.in: Fix the bootloader ID option to be
23187         consistently --bootloader-id, not --bootloader_id.
23188         Reported by: KESHAV P.R.
23190 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23192         * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23193         check hash checksum." consistently translatable.
23195 2010-09-21  Yves Blusseau  <blusseau@zetam.org>
23197         * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23198         $(top_builddir).
23200 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23202         * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23203         (GRUB_MOD_INIT): Register sha1sum command.
23204         (GRUB_MOD_FINI): Unregister sha1sum command.
23206 2010-09-21  Yves Blusseau  <blusseau@zetam.org>
23208         Keep boot and grub directory names in sync with utils scripts
23210         * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23211         * config.h.in: Add previous macros.
23212         * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23213         * util/grub-install.in: Use $bootdir and $grubdir variables.
23215 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23217         * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23218         convert partition names to disk names if the new `convert' parameter
23219         is set.
23220         (grub_util_biosdisk_get_grub_dev): If opening the disk device
23221         returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23222         disk in its own right.  This can happen with Xen disk images.
23224 2010-09-21  Yves Blusseau  <blusseau@zetam.org>
23226         * util/grub-editenv.c: Update strings to avoid warnings when generating
23227         grub.pot file.
23228         * util/grub-setup.c: Likewise.
23230 2010-09-21  Vladimir Serbinenko  <phcoder@gmail.com>
23232         * configure.ac: Change version to 1.99~beta0.
23234 2010-09-21  Vladimir Serbinenko  <phcoder@gmail.com>
23236         * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23237         Add BADRAM.
23238         * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23239         Likewise.
23240         * include/multiboot.h: Resynced with specification.
23241         * include/multiboot2.h: Likewise.
23243 2010-09-21  Colin Watson  <cjwatson@ubuntu.com>
23245         Fix po directory handling.
23247         * configure.ac: Create po/Makefile.in rather than po/Makefile.
23248         * grub-core/gnulib/Makefile.am: Import gettext module.
23249         * m4/gnulib-cache.m4: Likewise.
23250         * m4/gnulib-comp.m4: Likewise.
23251         * m4/gettext.m4: New file, from gnulib.
23252         * m4/glibc2.m4: Likewise.
23253         * m4/iconv.m4: Likewise.
23254         * m4/intdiv0.m4: Likewise.
23255         * m4/intl.m4: Likewise.
23256         * m4/intldir.m4: Likewise.
23257         * m4/intlmacosx.m4: Likewise.
23258         * m4/intmax.m4: Likewise.
23259         * m4/inttypes-pri.m4: Likewise.
23260         * m4/lcmessage.m4: Likewise.
23261         * m4/lib-ld.m4: Likewise.
23262         * m4/lib-link.m4: Likewise.
23263         * m4/lib-prefix.m4: Likewise.
23264         * m4/lock.m4: Likewise.
23265         * m4/nls.m4: Likewise.
23266         * m4/po.m4: Likewise.
23267         * m4/printf-posix.m4: Likewise.
23268         * m4/progtest.m4: Likewise.
23269         * m4/threadlib.m4: Likewise.
23270         * m4/uintmax_t.m4: Likewise.
23271         * m4/visibility.m4: Likewise.
23272         * po/Makefile.am: Remove.
23273         * po/Makefile.in.in: New file, from gettext.
23274         ($(DOMAIN).pot-update): Support POTFILES-shell.
23275         * po/Makevars: New file.
23276         * po/POTFILES-shell: Rename to ...
23277         * po/POTFILES-shell.in: ... this.  Update.
23278         * po/POTFILES: Rename to ...
23279         * po/POTFILES.in: ... this.  Update.
23280         * po/Rules-quot: New file, from gettext.
23281         * po/boldquot.sed: Likewise.
23282         * po/en@boldquot.header: Likewise.
23283         * po/en@quot.header: Likewise.
23284         * po/insert-header.sin: Likewise.
23285         * po/quot.sed: Likewise.
23286         * po/remove-potcdate.sin: Likewise.
23288 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23290         * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23292 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23294         * util/grub.d/20_linux_xen.in: Use submenus.
23296 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23298         Support submenus.
23300         * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23301         parameter submenu. All users updated.
23302         * grub-core/normal/main.c (free_menu): Rename to ...
23303         (grub_normal_free_menu): ... this. Made global.
23304         * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23305         if requested.
23306         * grub-core/normal/menu_entry.c (screen): New field submenu.
23307         (make_screen): Set submenu.
23308         (run): Open new context if requested.
23309         * include/grub/menu.h (grub_menu_entry): New field submenu.
23310         * include/grub/normal.h (grub_normal_free_menu): New proto.
23312 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23314         Menu entries extractor.
23316         * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23317         variants.
23318         (GRUB_MOD_INIT): Register new variants.
23319         (GRUB_MOD_FINI): Unregister new variants.
23320         * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23321         into grub_cmd_legacy_source.
23322         (grub_cmd_legacy_source): Implement extractor variants.
23323         (GRUB_MOD_INIT): Register new variants.
23324         (GRUB_MOD_FINI): Unregister new variants.
23325         * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23326         as an extractor.
23327         * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23328         search as an extractor.
23329         * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23330         test as an extractor.
23331         * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23332         as an extractor.
23333         * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23334         (grub_env_new_context): New function.
23335         (grub_env_context_open): Likewise.
23336         (grub_env_extractor_open): Likewise.
23337         (grub_env_extractor_close): Likewise.
23338         * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23339         grub_extractor_level.
23340         * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23341         * include/grub/env.h (grub_env_extractor_open): New proto.
23342         (grub_env_extractor_close): Likewise.
23343         * include/grub/normal.h (grub_extractor_level): New external variable.
23345 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23347         Make cutmem accept a region specification.
23348         Suggested by: Samuel Thibault
23350         * grub-core/mmap/mmap.c (parsemem): New function.
23351         (grub_cmd_cutmem): Handle new arguments.
23353 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23355         New command cutmem.
23357         * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23358         (GRUB_MOD_INIT): Register new command.
23359         (GRUB_MOD_FINI): Unregister new command.
23361 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23363         Support some annoying BSD and Minix subpartitions.
23365         * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23366         * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23367         Properly handle concatenation.
23368         * grub-core/kern/device.c (grub_device_iterate): Likewise.
23369         * grub-core/normal/completion.c (iterate_partition): Likewise.
23370         * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23371         contain partition. All users updated.
23372         * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23373         struct.
23374         (grub_openbsdlabel_partition_map): Likewise.
23375         (bsdlabel_partition_map_iterate): Rename to ..
23376         (iterate_real): ... this. New arguments sector, freebsd and pmap.
23377         (bsdlabel_partition_map_iterate): New function.
23378         (netopenbsdlabel_partition_map_iterate): Likewise.
23379         (netbsdlabel_partition_map_iterate): Likewise.
23380         (openbsdlabel_partition_map_iterate): Likewise.
23381         (GRUB_MOD_INIT): Register new partmaps.
23382         (GRUB_MOD_FINI): Unregister new partmaps.
23383         * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23384         (grub_partition_msdos_iterate): ... this. All users updated.
23385         Don't support embedding other than in a minix partition.
23386         * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23387         proto.
23388         * include/grub/partition.h (grub_partition): New field msdostype.
23389         * util/grub-install.in: Handle openbsd and netbsd types being in
23390         part_bsd module.
23392 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23394         Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23396         * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23397         * grub-core/Makefile.core.def (mdraid): Renamed to ...
23398         (mdraid09): ... this.
23399         (mdraid1x): New module.
23400         * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23401         * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23403 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23405         * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23406         vsprintf.
23408 2010-09-20  Colin Watson  <cjwatson@ubuntu.com>
23410         * grub-core/commands/efi/lsefimmap.c: Correct header.
23411         * NEWS: Update.
23413 2010-09-20  Colin Watson  <cjwatson@ubuntu.com>
23415         * util/grub-editenv.c (argp_parser): Don't pass translated strings
23416         as printf format strings; the translations might contain '%' which
23417         could cause a crash.
23418         (main): Likewise.
23419         * util/grub-fstest.c (argp_parser): Likewise.
23420         * util/grub-setup.c (argp_parser): Likewise.
23421         (main): Likewise.
23423 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23425         Use argp in grub-fstest.
23427         * util/grub-fstest.c: Don't include getopt.h.
23428         Include argp.h.
23429         (root): New variable.
23430         (args_count): Likewise.
23431         (nparm): Likewise.
23432         (num_disks): Likewise.
23433         (images): Likewise.
23434         (cmd): Likewise.
23435         (debug_str): Likewise.
23436         (args): Likewise.
23437         (options): Transformed to argp.
23438         (usage): Removed.
23439         (main): Split argument parsing into ...
23440         (argp_parser): ... this. Changed to argp format.
23441         (argp): New variable.
23442         (main): Use argp_parse.
23444 2010-09-20  Tristan Gingold  <gingold@free.fr>
23445 2010-09-20  Robert Millan  <rmh.grub@aybabtu.com>
23446 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23448         * grub-core/commands/efi/lsefimmap.c: New file.
23449         * grub-core/Makefile.core.def (lsefimmap): New module.
23450         * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23452 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23454         Pause the execution (10s max) if any errors are displayed so the user
23455         has a chance to see them.
23457         * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23458         (grub_print_error): Increment grub_err_printed_errors.
23459         * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23460         execution if any errors were displayed.
23461         (show_menu): Remove old code for pause.
23462         * grub-core/normal/menu_entry.c (run): Likewise.
23463         * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23464         users updated.
23465         (grub_normal_get_char_counter): Likewise.
23466         * include/grub/err.h (grub_err_printed_errors): New external variable.
23467         * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23469 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23471         Support multiboot VBE info.
23473         * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23474         Take VBE info into account.
23475         (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23476         (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23477         Call fill_vbe_info when appropriate.
23478         (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23479         * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23480         as supported.
23481         (grub_multiboot_get_mbi_size): Take new tags into account.
23482         (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23483         (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23484         Call fill_vbe_tag when appropriate.
23485         (grub_multiboot_make_mbi): Properly align tags.
23486         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23487         function.
23488         * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23489         proto.
23490         * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23492 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23494         Suport manual terminal geometry specification.
23496         * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23497         Save state in grub_ofconsole_terminfo_output.
23498         (grub_ofconsole_term): Use grub_terminfo_getwh.
23499         (grub_ofconsole_getwh): Removed.
23500         * grub-core/term/serial.c (grub_serial_getwh): Removed.
23501         (grub_serial_term): Use grub_terminfo_getwh.
23502         * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23503         (options): New struct.
23504         (OPTION_*): New enum.
23505         (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23506         * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23507         width and height.
23508         (grub_terminfo_getwh): New proto.
23509         * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23511 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23513         Handle legacy "terminal" command.
23515         * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23516         and FLAG_TERMINAL.
23517         (legacy_commands): Add terminal and title.
23518         (grub_legacy_parse): Handle terminal. Simplify title handling.
23520 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23522         * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23523         parameters overflow.
23525 2010-09-20  Colin Watson  <cjwatson@ubuntu.com>
23527         * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23528         widthspec.h.
23530         * docs/grub.texi (Shell-like scripting): Document `!'.
23531         (Network): Simplify using new i386-pc-pxe format.  Mention
23532         grub-mknetdir.
23534         * NEWS: Update.
23536 2010-09-20  Colin Watson  <cjwatson@ubuntu.com>
23538         * Makefile.am (SUBDIRS): Restore "."; it's important to force
23539         ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23540         when needed.
23542 2010-09-20  Colin Watson  <cjwatson@ubuntu.com>
23544         * grub-core/commands/efi/lsefisystab.c: Correct header.
23545         * grub-core/commands/efi/lssal.c: Likewise.
23546         * grub-core/commands/testload.c: Likewise.
23548 2010-09-20  Colin Watson  <cjwatson@ubuntu.com>
23550         * util/grub-mkrescue.in: Add explicit root argument to --set to
23551         prevent the UUID being interpreted as an argument to --set (matches
23552         previous change to prepare_grub_to_access_device).
23554 2010-09-20  Colin Watson  <cjwatson@ubuntu.com>
23556         * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23557         on FreeBSD.  Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23558         the verbosity of later #ifs.
23559         (find_partition_start): Define this function on FreeBSD too.
23560         (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23561         function.
23562         (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23563         on FreeBSD.
23565 2010-09-20  Yves Blusseau  <blusseau@zetam.org>
23567         * util/grub-editenv.c: Use argp instead of getopt.
23569 2010-09-20  Yves Blusseau  <blusseau@zetam.org>
23571         * util/grub-setup.c: Use argp instead of getopt.
23573 2010-09-20  Yves Blusseau  <blusseau@zetam.org>
23575         Use gnulib-tool to create gnulib source files.
23577         * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23578         grub-core/gnulib directories
23579         * .bzignore: Add **/.deps and autogenerated gnulib files
23580         * configure.ac: Assign auxiliary directory to build-aux, add invocation
23581         of gnulib macros, add grub-core/gnulib/Makefile
23582         * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23583         include m4 directory to aclocal.
23584         * Makefile.util.def: Remove direct compilation of gnulib source files
23585         and use the new grub-core/gnulib/libgnu.a.
23586         * build-aux/config.rpath: move config.rpath from top directory to
23587         build-aux
23588         * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23589         in gnulib headers
23590         * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23591         * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23592         * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23593         header.
23594         * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23595         string.
23597 2010-09-20  Yves Blusseau  <blusseau@zetam.org>
23599         * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23600         grub-core/genmod.sh and grub-core/gensyminfo.sh
23602 2010-09-20  BVK Chaitanya  <bvk.groups@gmail.com>
23604         Add a test for echo command options.
23606         * tests/grub_cmd_echo.in: New test.
23607         * Makefile.util.def: Rules for new test.
23609 2010-09-20  Szymon Janc <szymon@janc.net.pl>
23611         Remove crc.mod and move crc command to hashsum.mod.
23612         Remove lib/crc.c - users updated to use gcrypt implementation.
23614         * grub-core/commands/crc.c: Removed.
23615         * grub-core/Makefile.core.def (crc): Module removed.
23616         * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23617         * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23618         * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23619         * grub-core/lib/crc.c: Removed.
23620         * include/grub/lib/crc.h: Removed.
23621         * Makefile.util.def (crc): Remove lib/crc.c
23622         * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23623         * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23624         * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23625         * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23626         * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23627         * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23629 2010-09-20  Vladimir Serbinenko  <phcoder@gmail.com>
23631         * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23633 2010-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
23635         Split config.h for util and core.
23637         * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23638         (ADDR32): Likewise.
23639         (DATA32): Likewise.
23640         (BSS_START_SYMBOL): Likewise.
23641         (END_SYMBOL): Likewise.
23642         (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23643         (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23644         * config.h.in: New file.
23645         * configure.ac: Use config-util.h as config define file.
23646         Rename MACHINE into GRUB_MACHINE. All users updated.
23647         (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23648         updated.
23649         (NESTED_FUNC_ATTR): Likewise.
23650         Substitue new variables.
23651         (COND_HAVE_ASM_USCORE): New conditional.
23652         * grub-core/Makefile.am (ASM_PREFIX): New variable.
23653         (kernel_syms.lst): Use ASM_PREFIX.
23654         * grub-core/kern/emu/console.c: Include config-util.h.
23655         * grub-core/kern/emu/misc.c: Likewise.
23656         * grub-core/kern/emu/mm.c: Likewise.
23657         * include/grub/emu/misc.h: Likewise.
23658         * include/grub/libgcc.h: Likewise.
23660 2010-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
23662         * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23663         constants usage.
23664         * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23665         Fix GRUB_TERM_KEY_* constants usage.
23666         * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23668 2010-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
23670         * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23671         print pointer.
23672         * grub-core/bus/usb/uhci.c: Remove empty define.
23673         (grub_uhci_check_transfer): Add missing cast.
23674         * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23675         print pointer.
23676         * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23677         PRIuGRUB_SIZE.
23678         * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23680 2010-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
23682         * grub-core/Makefile.core.def (legacycfg): Add
23683         lib/i386/pc/vesa_modes_table.c on emu.
23685 2010-09-19  BVK Chaitanya  <bvk.groups@gmail.com>
23687         Reduce number of temporary files generated by build system.
23689         * grub-core/gencmdlist.sh: Removed.
23690         * grub-core/genfslist.sh: Removed.
23691         * grub-core/genhandlerlist.sh: Removed.
23692         * grub-core/genmodsrc.sh: Removed.
23693         * grub-core/genpartmaplist.sh: Removed.
23694         * grub-core/genparttoollist.sh: Removed.
23695         * grub-core/gentermiinallist.sh: Removed.
23696         * grub-core/genvideolist.sh: Removed.
23698         * grub-core/genmod.sh.in: New file.
23699         * grub-core/gensyminfo.sh.in: New file.
23701         * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23702         * conf/Makefile.extra-dist: Update with new files.
23703         * gentpl.py: Remove rules related to unnecessary temporary files.
23704         * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23705         and und-* files.
23706         * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23707         genmod.sh scripts.
23708         * grub-core/bus/usb/uhci.c: Remove empty #define.
23709         * grub-core/genmoddep.awk: Updated with new syminfo format.
23710         * util/bash-completion.d/Makefile.am: Add config.log to
23711         CLEANFILES.
23713 2010-09-19  Yves Blusseau  <blusseau@zetam.org>
23715         * Makefile.util.def: Add forgotten $(LIBINTL) library.
23717 2010-09-19  BVK Chaitanya  <bvk.groups@gmail.com>
23719         * util/grub-mkconfig.in: Check the config script for syntax errors
23720         before saving.
23722 2010-09-19  Colin Watson  <cjwatson@ubuntu.com>
23723 2010-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
23725         * Makefile.util.def (grub-install): Use util/grub-install.in on all
23726         platforms.
23727         * util/grub-install.in: Add EFI and IEEE1275 support.
23728         * util/i386/efi/grub-install.in: Removed.
23729         * util/ieee1275/grub-install.in: Likewise.
23731 2010-09-19  Vladimir Serbinenko  <phcoder@gmail.com>
23733         * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23734         (grub_cmd_cmosclean): Likewise.
23735         (GRUB_MOD_INIT): Register command cmosclean.
23736         * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23737         * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23739 2010-09-18  Carles Pina i Estany  <carles@pina.cat>
23740 2010-09-18  Aleš Nesrsta <starous@volny.cz>
23741 2010-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
23743         Add keyboard layouts support.
23745         * Makefile.util.def (grub-mklayout): New file.
23746         (grub-kbdcomp): New script.
23747         * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23748         Add keyboard_layouts.h.
23749         * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23750         commands/boot.c on yeeloong.
23751         (keylayouts): New module.
23752         * grub-core/bus/usb/ohci.c
23753         * grub-core/bus/usb/uhci.c
23754         * grub-core/bus/usb/usbhub.c (rescan): New variable.
23755         (grub_usb_add_hub): Poll interrupt pipe for device handling.
23756         (attach_root_port): Likewise.
23757         (poll_nonroot_hub): Likewise.
23758         (grub_usb_poll_devices): Likewise.
23759         (detach_device): Close transfer.
23760         * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23761         function.
23762         (grub_usb_bulk_setup_readwrite): Likewise.
23763         (grub_usb_bulk_finish_readwrite): Likewise.
23764         * grub-core/commands/keylayouts.c: New file.
23765         * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23766         * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23767         aliases.
23768         * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23769         support scancode 2.
23770         * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23771         * include/grub/keyboard_layouts.h: New file.
23772         * util/grub-mklayout.c: New file.
23773         * util/grub-kbdcomp.in: Likewise.
23775 2010-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
23777         Unify memory types.
23779         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23780         * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23781         types.
23782         * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23783         (grub_upper_mem): Likewise.
23784         * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23785         * include/grub/memory.h (grub_memory_type_t): New enum.
23786         All users updated.
23788 2010-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
23790         * grub-core/Makefile.core.def (lsapm): New module.
23791         * grub-core/commands/i386/pc/lsapm.c: New file.
23792         * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23793         * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23794         Likewise.
23795         * include/grub/i386/pc/apm.h: New file.
23796         * include/multiboot.h (multiboot_apm_info): New struct.
23798 2010-09-18  Vladimir Serbinenko  <phcoder@gmail.com>
23800         GRUB-legacy configuration file support.
23802         * Makefile.util.def (grub-menulst2cfg): New util.
23803         * docs/man/grub-menulst2cfg.h2m: New file.
23804         * grub-core/Makefile.core.def (legacycfg): New module.
23805         * grub-core/commands/legacycfg.c: New file.
23806         * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23807         (grub_normal_add_menu_entry): ... this.
23808         * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23809         (grub_normal_set_password): ...this.
23810         * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23811         * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23812         * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23813         * grub-core/lib/legacy_parse.c: New file.
23814         * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23815         * include/grub/i386/pc/vesa_modes_table.h: New file.
23816         * include/grub/legacy_parse.h: Likewise.
23817         * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23818         * util/grub-menulst2cfg.c: New file.
23820 2010-09-17  Colin Watson  <cjwatson@ubuntu.com>
23822         * grub-core/kern/emu/hostdisk.c
23823         (convert_system_partition_to_system_disk): Initialise node.
23825 2010-09-17  Colin Watson  <cjwatson@ubuntu.com>
23827         * grub-core/kern/emu/hostdisk.c
23828         (convert_system_partition_to_system_disk): Fix devmapper memory pool
23829         leak.
23830         Reported and based on patch by: Modestas Vainius.
23832 2010-09-17  Colin Watson  <cjwatson@ubuntu.com>
23834         Fix DM-RAID probing with recent versions of device-mapper udev
23835         rules.
23837         * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23838         canonicalise device paths under /dev/mapper/.
23839         (convert_system_partition_to_system_disk): Compare the
23840         uncanonicalised path to /dev/mapper/ rather than the canonicalised
23841         path, since device nodes under /dev/mapper/ are often symlinks.
23843 2010-09-17  Yves Blusseau  <blusseau@zetam.org>
23845         * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23847 2010-09-16  Yves Blusseau  <blusseau@zetam.org>
23849         * configure.ac: Avoid some annoying error messages if freetype-config
23850         program is not found.
23852 2010-09-16  Colin Watson  <cjwatson@ubuntu.com>
23854         Support RAID on virtio devices, and others.
23856         * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23857         Rename to ...
23858         [__MINGW32__] (grub_find_device): ... this.
23859         [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23860         [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this.  Use a
23861         reasonable default if dir is NULL.
23862         [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23863         ...
23864         [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23865         (grub_guess_root_device): Update callers.
23866         * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23868         * util/raid.c (grub_util_getdiskname): Remove.
23869         (grub_util_raid_getmembers): Use grub_find_device rather than
23870         grub_util_getdiskname.
23872 2010-09-16  Colin Watson  <cjwatson@ubuntu.com>
23874         * docs/grub.texi (serial): Remove obsolete comment about GRUB
23875         needing to be compiled with serial support.
23876         (ls): Indicate that multiple files are accepted.
23877         * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23878         indicate that multiple files are accepted.
23880 2010-09-16  Colin Watson  <cjwatson@ubuntu.com>
23882         * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23883         libgrub_a_init.c, and util/bash-completion.d/grub.
23885 2010-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
23887         * util/grub-setup.c (setup): Fix incorrect container semantics.
23889 2010-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
23891         * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23892         misusage.
23893         Reported by: J. Nick Terry
23895 2010-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
23897         Move embedding routines to partmap sources files.
23899         * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23900         [GRUB_UTIL]: New variable.
23901         (gpt_partition_map_iterate): Set part.parent.
23902         (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23903         (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23904         * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23905         New function.
23906         (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23907         * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23908         (grub_partition_map) [GRUB_UTIL]: New field embed.
23909         * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23910         (setup): Use ->embed.
23912 2010-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
23914         * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23915         function.
23916         * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23917         * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23919 2010-09-15  Yves Blusseau  <blusseau@zetam.org>
23921         Add function to get completions from usage.
23923         * util/bash-completion.d/grub-completion.bash.in: Add function to get
23924         completions from usage. Use LC_ALL=C to get options properly.
23926 2010-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
23928         * grub-core/gnulib/basename-lgpl.c: Imported.
23929         * grub-core/gnulib/basename.c: Likewise.
23930         * grub-core/gnulib/dirname-lgpl.c: Likewise.
23931         * grub-core/gnulib/dirname.c: Likewise.
23932         * grub-core/gnulib/dirname.h: Likewise.
23933         * grub-core/gnulib/stripslash.c: Likewise.
23935 2010-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
23937         * grub-core/gnulib/error.c: Resynced.
23938         * grub-core/gnulib/getopt.c: Likewise.
23939         * grub-core/gnulib/getopt_int.h: Likewise.
23940         * grub-core/gnulib/regex.h: Likewise.
23941         * grub-core/gnulib/regex_internal.c: Likewise.
23942         * grub-core/gnulib/regex_internal.h: Likewise.
23944 2010-09-15  Szymon Janc <szymon@janc.net.pl>
23946         * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23947         CRC calculations and validity checks.
23948         * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23949         calculations.
23951 2010-09-15  Szymon Janc <szymon@janc.net.pl>
23953         * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23955 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
23957         Fix incorrect echo options handling.
23958         Reported by: Yves Blusseau.
23960         * include/grub/command.h (grub_command_flags_t): New flags
23961         GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23962         * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23963         * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23965 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
23967         * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23968         users updated.
23969         (GRUB_COMMAND_FLAG_MENU): Likewise.
23970         (GRUB_COMMAND_FLAG_BOTH): Likewise.
23971         (GRUB_COMMAND_FLAG_TITLE): Removed.
23972         (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23973         (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23974         (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23975         (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23976         (grub_command_flags_t): New enum. All users updated.
23978 2010-09-14  Seth Goldberg <seth.goldberg@oracle.com>
23980         Fix solaris compilation.
23982         * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23983         (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23984         (grub-emu-list): Likewise.
23986 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
23988         Remove deprecated root command.
23990         * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23991         updated.
23993 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
23995         * util/i386/pc/grub-setup.c: Merge this ...
23996         * util/sparc64/ieee1275/grub-setup.c:  ... and this ...
23997         * util/grub-setup.c: ... into this.
23998         * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23999         New struct.
24001 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
24003         * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
24004         possible.
24006 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
24008         * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
24009         allocate p.
24011 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
24013         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
24014         explicit root argument to set to prevent UUID to be interpreted as
24015         argument to set.
24017 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
24019         * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
24021 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
24023         Don't export grub_gate_a20.
24025         * grub-core/kern/i386/pc/init.c: Remove leftovers.
24026         * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
24027         to ...
24028         (grub_gate_a20): ... this. All users updated.
24029         * include/grub/i386/pc/init.h: Removed. All users updated.
24031 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
24033         Create euro.pf2 which supports most European languages.
24035         * Makefile.am (grubdata_DATA): Add euro.pf2.
24036         (euro.pf2): New target.
24037         (CLEANFILES): Add euro.pf2.
24039 2010-09-14  Vladimir Serbinenko  <phcoder@gmail.com>
24041         * configure.ac: Disable emu-usb by default to prevent inadvertent
24042         device takeover.
24044 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24046         Disable usbserial on grub-emu since our libusb code isn't good enough
24047         yet.
24049         * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
24050         (usbserial_pl2303): Likewise.
24051         (usbserial_ftdi): Likewise.
24053 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24055         * include/grub/disk.h (grub_disk): Remove has_partitions.
24056         All users updated.
24057         * disk/loopback.c (grub_loopback): Remove has_partitions.
24058         All users updated.
24059         (options): Remove partitions. All users updated.
24060         * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
24061         * util/i386/pc/grub-setup.c (setup): copy partition table only when
24062         actual partition table is found.
24064 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24066         Remove readability checks (too many false negatives).
24068         * util/grub-install.in: Remove readability checks.
24069         * util/grub-mkconfig.in: Likewise.
24070         * util/grub.d/10_hurd.in: Likewise.
24071         * util/grub.d/10_kfreebsd.in: Likewise.
24072         * util/grub.d/10_linux.in: Likewise.
24073         * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
24074         way.
24076 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24078         Enable acpi shutdown on all ACPI platforms.
24080         * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
24081         on coreboo, multiboot and EFI.
24082         * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
24083         (grub_acpi_halt): Likewise.
24084         * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
24085         (grub_cmd_halt): Don't call grub_acpi_halt directly.
24086         * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
24087         * grub-core/lib/i386/halt.c (grub_halt)
24088         [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
24090 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24092         * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
24093         context.
24095 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24097         * grub-core/video/efi_gop.c: Fix over-80-chars line.
24098         * grub-core/video/efi_uga.c: Likewise.
24100 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24102         Filter devaliases and never open same device twice.
24104         * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24105         (last_ihandle): Likewise.
24106         (ofdisk_hash_ent): New member shortest.
24107         (ofdisk_hash_add): Add canonical path too.
24108         (scan): New function.
24109         (grub_ofdisk_iterate): Iterate over hashed entries.
24110         (compute_dev_path): Don't add :0.
24111         (grub_ofdisk_open): Don't really open the disk.
24112         (grub_ofdisk_close): Avoid closing unrelated disk.
24113         (grub_ofdisk_read): Implement reopen logic.
24114         * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24115         New function.
24116         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24117         New proto.
24119 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24121         Fix sparc64.
24123         * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24124         * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24125         right address. Add sparc64_ieee1275_ldflags.
24126         * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24127         * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24128         to grub_host_to_target_addr
24129         (load_image): Likewise.
24131 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24133         * grub-core/normal/completion.c (complete_file): Handle device
24134         containing slash.
24135         Fix based on patch by Doug Nazar.
24137 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24139         grub-mknetdir script.
24141         * Makefile.util.def (grub-mknetdir): New module.
24142         * tests/util/grub-shell.in: Support boot=net
24143         * util/grub-mknetdir.in: New file.
24145 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24147         videoinfo on non-vbe.
24149         * grub-core/Makefile.core.def (vbeinfo): Removed.
24150         (vbetest): Removed.
24151         (videoinfo): New module.
24152         * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24153         * grub-core/commands/i386/pc/vbetest.c: Removed.
24154         * grub-core/commands/videoinfo.c: New file.
24155         * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24156         specification.
24157         (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24158         as vbetest.
24159         (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24160         (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24161         * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24162         mode_number. New parameter mode. All users updated.
24163         (grub_video_gop_iterate): New function.
24164         (grub_video_efi_gop): New member iterate.
24165         * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24166         (grub_vbe_set_video_mode): Remove setting useless fields.
24167         (vbe2videoinfo): New function.
24168         (grub_video_vbe_iterate): Likewise.
24169         (grub_video_vbe_setup): Use vbe2videoinfo.
24170         (grub_video_vbe_print_adapter_specific_info): New function.
24171         (grub_video_vbe_adapter): New fields iterate and
24172         print_adapter_specific_info.
24173         * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24174         All users updated.
24175         (grub_video_mode_info): New field mode_number.
24176         (grub_video_adapter): New fields iterate and
24177         print_adapter_specific_info.
24179 2010-09-13  Tristan Gingold  <gingold@free.fr>
24180 2010-09-13  Robert Millan  <rmh.grub@aybabtu.com>
24181 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24183         * grub-core/commands/efi/lsefisystab.c: New file.
24184         * grub-core/commands/efi/lssal.c: Likewise.
24185         * grub-core/Makefile.core.def (lsacpi): New module.
24186         (lsefisystab): Likewise.
24187         * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24188         (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24189         (grub_efi_sal_system_table): New struct.
24190         (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24191         (grub_efi_sal_system_table_memory_descriptor): Likewise.
24192         (grub_efi_sal_system_table_platform_features): Likewise.
24193         (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24194         (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24195         (grub_efi_sal_system_table_ap_wakeup): Likewise.
24196         * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24198 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24200         Support explicit user claim that a device is BIOS-visible.
24202         * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24203         Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24204         * grub-core/kern/emu/hostdisk.c
24205         (convert_system_partition_to_system_disk): Support mdX.
24206         (find_system_device): New parameter add. All users updated.
24207         (grub_util_biosdisk_is_present): New function.
24208         * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24209         proto.
24211 2010-09-13  Vladimir Serbinenko  <phcoder@gmail.com>
24213         Search hints support.
24215         * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24216         All users updated.
24218 2010-09-13  Yves Blusseau  <blusseau@zetam.org>
24220         Bash completion script for util commands
24222         * Makefile.am:  Add util/bash-completion.d directory
24223         * configure.ac: Likewise.
24224         * util/bash-completion.d/Makefile.am: New file.
24225         * util/bash-completion.d/grub-completion.bash.in: Likewise.
24227 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
24229         * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24230         (print_backlog): set backlog_ucs4 and backlog_glyphs.
24231         Reported by: Yves Blusseau.
24233 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
24235         * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24236         partition size and offset.
24238 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
24240         * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24242 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
24244         * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24246 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
24248         * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24249         (grub_xvasprintf): Likewise.
24251 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
24253         * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24255 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
24257         * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24258         args ending with NULL.
24260 2010-09-12  Vladimir Serbinenko  <phcoder@gmail.com>
24262         * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24263         pointer.
24265 2010-09-11  Szymon Janc <szymon@janc.net.pl>
24267         * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24269 2010-09-11  Vladimir Serbinenko  <phcoder@gmail.com>
24271         Shutdown using ACPI.
24273         * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24274         * grub-core/commands/acpihalt.c: New file.
24275         * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24276         * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24277         (grub_acpi_halt): New proto.
24278         (GRUB_ACPI_SLP_EN): New const.
24279         (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24280         (GRUB_ACPI_OPCODE_*): New enum.
24281         (GRUB_ACPI_EXTOPCODE_*): Likewise.
24283 2010-09-11  Tristan Gingold  <gingold@free.fr>
24284 2010-09-11  Robert Millan  <rmh.grub@aybabtu.com>
24285 2010-09-11  Vladimir Serbinenko  <phcoder@gmail.com>
24287         * commands/lsacpi.c: New file.
24288         * grub-core/Makefile.core.def (lsacpi): New module.
24289         * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24290         (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24291         (grub_acpi_madt_entry_header): New struct.
24292         (grub_acpi_madt): Likewise.
24293         (grub_acpi_madt_entry_interrupt_override): Likewise.
24294         (grub_acpi_madt_entry_sapic): Likewise.
24295         (grub_acpi_madt_entry_lsapic): Likewise.
24296         (grub_acpi_madt_entry_platform_int_source): Likewise.
24297         * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24298         (PRIuGRUB_UINT32_T): Likewise.
24299         (PRIxGRUB_UINT64_T): Likewise.
24301 2010-09-11  Vladimir Serbinenko  <phcoder@gmail.com>
24303         Implement loading palette on ieee1275_fb.
24305         * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24306         (have_setcolors): Likewise.
24307         (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24308         (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24309         (grub_video_ieee1275_set_palette): Implement.
24311 2010-09-11  Vladimir Serbinenko  <phcoder@gmail.com>
24312 2010-09-11  Colin Watson  <cjwatson@ubuntu.com>
24314         * util/grub-install.in (grub_partition): New variable.
24315         Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24316         * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24317         Fixes a bug reported by Yves Blusseau.
24319 2010-09-11  Vladimir Serbinenko  <phcoder@gmail.com>
24321         Fix emu on mipsel.
24323         * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24324         =grub_cpu_flush_cache on all mips and not only yeeloong.
24325         * configure.ac (COND_mips): New conditional.
24326         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24327         platforms.
24328         * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24329         * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24330         [GRUB_LINKER_HAVE_INIT]: New function.
24331         (grub_emu_post_init): Likewise.
24332         * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24333         * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24334         * include/grub/cache.h (_mips): Include mips/cache.h.
24335         * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24336         LVM and RAID prototypes.
24337         * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24338         * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24339         function.
24341 2010-09-10  Colin Watson  <cjwatson@ubuntu.com>
24343         * util/grub-install.in: Don't try to verify core.img until after
24344         running grub-mkimage to create it.
24346 2010-09-10  Robert Millan  <rmh@gnu.org>
24348         * util/grub.d/10_hurd.in: Add misc readability checks.
24349         * util/grub.d/10_kfreebsd.in: Likewise.
24350         * util/grub.d/10_linux.in: Likewise.
24352 2010-09-10  Colin Watson  <cjwatson@ubuntu.com>
24354         * util/grub-install.in: ${imgext} won't be defined here until the
24355         install branch is merged.  For the meantime, only verify core.img on
24356         i386-pc and sparc64-ieee1275 platforms.
24358 2010-09-10  Robert Millan  <rmh@gnu.org>
24360         Solaris support in grub_find_zpool_from_dir().  Thanks
24361         Seth Goldberg for referring to getextmntent() facility.
24363         * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24364         `sys/mkdev.h'.
24365         * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24366         `<sys/mnttab.h>'.
24367         [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24368         [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24369         method for finding zpool name.
24371 2010-09-10  Colin Watson  <cjwatson@ubuntu.com>
24373         grub-fstest needs the host and hostfs modules while other utilities
24374         actively require those modules to be absent, so grub-fstest needs
24375         its own initialisation and finalisation code.
24377         * Makefile.am (grub_fstest.pp): New target.
24378         (grub_fstest_init.lst): Likewise.
24379         (grub_fstest_init.c): Likewise.
24380         * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24382 2010-09-10  Robert Millan  <rmh@gnu.org>
24384         * configure.ac: Check for `struct statfs.f_fstypename' and
24385         `struct statfs.f_mntfromname'.
24387         * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24388         kFreeBSD-specific code.
24390 2010-09-10  Robert Millan  <rmh@gnu.org>
24392         * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24393         on ZFS.  Now non-main filesystems are supported as / too.
24395 2010-09-09  Colin Watson  <cjwatson@ubuntu.com>
24397         * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24398         and grub-core/disk/host.c to ...
24399         (grub-fstest): ... here.  Having the host disk implementation
24400         present confuses grub-probe and other utility programs.
24402         * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24403         when writing to a file, not when writing to stdout.
24405 2010-09-09  BVK Chaitanya  <bvk.groups@gmail.com>
24407         * tests/partmap_test.in: New test for partitions.
24408         * Makefile.util.def: Rules for new test.
24410 2010-09-09  Robert Millan  <rmh@gnu.org>
24412         * util/grub-probe.c (probe): Fix a pair of unhandled error
24413         conditions.
24415 2010-09-09  Robert Millan  <rmh@gnu.org>
24417         Basic Btrfs support (detection and UUID).
24419         * grub-core/fs/btrfs.c: New file.
24420         * Makefile.util.def (library): Register btrfs.c.
24421         * grub-core/Makefile.core.def: Likewise.
24423 2010-09-08  Robert Millan  <rmh@gnu.org>
24425         * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24426         with (optional) parameters to specify device and relative path.
24427         * util/grub-install.in: Use is_path_readable_by_grub() to
24428         verify readability of a few critical files.
24429         * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24430         verify readability of grub.cfg.new.
24432 2010-09-08  Vladimir Serbinenko  <phcoder@gmail.com>
24434         Split minix.mod into minix.mod and minix2.mod.
24436         * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24437         * grub-core/Makefile.core.def (minix2): New module.
24438         * grub-core/fs/minix.c: Use definitions instead of runtime version
24439         checking.
24440         * grub-core/fs/minix2.c: New file.
24442 2010-09-08  Yves Blusseau  <blusseau@zetam.org>
24444         Add new --boot-directory option to replace --root-directory
24446         * util/grub-install.in: Add new --boot-directory option
24447         * util/grub-reboot.in: Likewise.
24448         * util/grub-set-default.in: Likewise.
24450 2010-09-08  Yves Blusseau  <blusseau@zetam.org>
24452         * util/grub-mkconfig.in: Use new variable.
24454 2010-09-08  Yves Blusseau  <blusseau@zetam.org>
24456         * configure.ac: Define some useful variables.
24458 2010-09-08  Vladimir Serbinenko  <phcoder@gmail.com>
24460         * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24461         GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24462         * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24463         Use terminfo and don't use cursor-on/cursor-off unless it's known
24464         to work.
24465         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24466         GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24468 2010-09-08  Colin Watson  <cjwatson@ubuntu.com>
24470         * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24471         starts with "(,", fill the drive containing the loaded image in
24472         between those two characters, but expect that a full partition
24473         specification including partition map names will follow.
24475 2010-09-08  Robert Millan  <rmh@gnu.org>
24477         * configure.ac: Remove `--enable-grub-fstest' option.
24478         * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24480         * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24481         `grub-fstest' instead of `grub-probe' for readability verification.
24482         * util/grub-probe.c (probe): Remove readability verification kludge.
24484 2010-09-08  Robert Millan  <rmh@gnu.org>
24486         * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24487         initializing `GRUB_FS'.
24489 2010-09-08  BVK Chaitanya  <bvk.groups@gmail.com>
24491         Not command (!) support to GRUB script.
24493         * tests/grub_script_not.in: New test.
24494         * Makefile.util.def: Rules for new test.
24496         * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24497         ! command as a special case.
24498         * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24500 2010-09-07  BVK Chaitanya  <bvk.groups@gmail.com>
24502         * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24503         grub_free.
24505 2010-09-07  BVK Chaitanya  <bvk.groups@gmail.com>
24507         * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24509 2010-09-07  BVK Chaitanya  <bvk.groups@gmail.com>
24511         * docs/grub.texi (Shell-like scripting): Documentation for break,
24512         continue, shift and return commands.
24514 2010-09-06  Vladimir Serbinenko  <phcoder@gmail.com>
24516         Rename CD-ROM to cd on BIOS.
24518         * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24519         "cd".
24520         (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24522 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24524         * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24525         * util/grub-probe.c (main): Likewise.
24526         * util/i386/pc/grub-setup.c (main): Likewise.
24527         * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24528         Reported and debugged by: alexxy
24530 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24532         * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24533         diagnostic info.
24535 2010-09-05  Jo Shields <directhex@apebox.org>
24537         * util/grub.d/30_os-prober.in: Add missing classes.
24539 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24541         * docs/grub.texi (Theme file format): Document new position format.
24543 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24545         * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24546         a table. Use @code instead of @verbatim.
24548 2010-09-05  Colin D Bennett  <colin@gibibit.com>
24550         Gfxmenu documentation.
24552         * docs/grub.texi (Theme file format): New chapter.
24554 2010-09-05  Szymon Janc <szymon@janc.net.pl>
24556         * grub-core/Makefile.core.def (xzio): New module.
24557         * grub-core/io/xzio.c: New file.
24558         * grub-core/lib/xzembed/xz.h: New file (from xembed).
24559         * grub-core/lib/xzembed/xz_config.h: Likewise.
24560         * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24561         * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24562         * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24563         * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24564         * grub-core/lib/xzembed/xz_private.h: Likewise.
24565         * grub-core/lib/xzembed/xz_stream.h: Likewise.
24566         * include/grub/file.h (grub_file_filter_id): New compression filter
24567         GRUB_FILE_FILTER_XZIO.
24569 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24571         * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24572         * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24573         size.
24575 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24577         * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24578         GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24580 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24582         Uncompressed checksum support.
24584         * grub-core/commands/hashsum.c (options): Add option --uncompress.
24585         (check_list): New parameter uncompress.
24586         (grub_cmd_hashsum): Handle --uncompress.
24588 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24590         Reintroduce testload.
24592         * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24593         from here ...
24594         * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24595         (GRUB_MOD_INIT): New function.
24596         (GRUB_MOD_FINI): Likewise.
24597         * grub-core/Makefile.core.def (testload): New module.
24599 2010-09-05  Szymon Janc <szymon@janc.net.pl>
24601         * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24602         (uint8_t): New type.
24603         (uint16_t): Likewise.
24604         (uint32_t): Likewise.
24605         (uint64_t): Likewise.
24607 2010-09-05  Szymon Janc <szymon@janc.net.pl>
24609         * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24611 2010-09-05  Vladimir Serbinenko  <phcoder@gmail.com>
24613         * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24614         Made static.
24615         (grub_gzfile_open): Removed. All users updated.
24616         (GRUB_MOD_INIT): New function.
24617         (GRUB_MOD_FINI): Likewise.
24618         * grub-core/kern/file.c (grub_file_filters_all): New variable.
24619         (grub_file_filters_enabled): Likewise.
24620         (grub_file_open): Handle filters.
24621         * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24622         * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24623         * include/grub/file.h (grub_file_filter_id_t): New type.
24624         (grub_file_filter_t): Likewise.
24625         (grub_file_filters_all): New extern variable.
24626         (grub_file_filters_enabled): Likewise.
24627         (grub_file_filter_register): New inline function.
24628         (grub_file_filter_unregister): Likewise.
24629         (grub_file_filter_disable): Likewise.
24630         (grub_file_filter_disable_compression): Likewise.
24631         * include/grub/gzio.h: Removed.
24633 2010-09-04  BVK Chaitanya  <bvk.groups@gmail.com>
24635         Filename expansion support for wildcards in GRUB script.
24637         * tests/grub_script_expansion.in: New test.
24638         * Makefile.util.def: Rule for new test.
24640         * grub-core/commands/wildcard.c: New file, implements filename
24641         expansion support for GRUB script.
24642         * grub-core/Makefile.core.def: Rule update for regexp.mod.
24643         * grub-core/script/argv.c: Cosmetic changes.
24644         * grub-core/script/execute.c (grub_script_arglist_to_argv):
24645         Refactored to perform wildcard expansion on arguments.
24646         * include/grub/script_sh.h (grub_script_wildcard_translator): New
24647         struct.
24649         * tests/util/grub-shell.in: Fix quoting for read input.
24651 2010-09-04  BVK Chaitanya  <bvk.groups@gmail.com>
24653         Support for updating environment variables with matched substrings
24654         of regexp.
24656         * tests/grub_cmd_regexp.in: New test.
24657         * Makefile.util.def: Rule for new test.
24659         * grub-core/commands/regexp.c: New option -s to update environment
24660         variables with regexp matches.
24662 2010-09-04  Szymon Janc <szymon@janc.net.pl>
24664         * include/grub/file.h (grub_file): New member not_easly_seekable.
24665         (grub_file_seekable): New inline function.
24666         * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24667         easily seekable.
24668         (grub_gzio_open): Set not_easly_seekable.
24669         * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24670         * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24672 2010-09-04  BVK Chaitanya  <bvk.groups@gmail.com>
24674         Support for options to appear multiple times on cmdline.
24676         * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24677         * grub-core/commands/extcmd.c: Support for repeatable option.
24678         * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24679         repeatable option support.
24681         Refactor menuentry into a regular command.
24683         * grub-core/commands/menuentry.c: New file, menuentry command
24684         implementation.
24685         * grub-core/Makefile.core.def: Rule update for normal.mod.
24686         * grub-core/normal/main.c: Moved menuentry creation to
24687         grub-core/commands/menuentry.c.
24688         * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24689         (grub_menu_execute_entry_real): Removed.
24690         * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24691         function.
24692         (grub_script_execute_menuentry): Removed.
24693         * grub-core/script/parser.y (menuentry): Removed.
24694         * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24695         * grub-core/script/yylex.l (menuentry): Removed.
24696         * include/grub/menu.h (grub_menu_init): New prototype.
24697         (grub_menu_fini): New prototype.
24698         * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24699         * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24700         (grub_script_execute_sourcecode): New prototype.
24702 2010-09-04  BVK Chaitanya  <bvk.groups@gmail.com>
24704         "return" command for GRUB script functions.
24706         * tests/grub_script_return.in: New test.
24707         * Makefile.util.def: Rules for new test.
24709         * grub-core/script/execute.c (grub_script_return): New function.
24710         * grub-core/script/main.c: Register/unregister return commaond.
24711         * include/grub/script_sh.h (grub_script_return): New prototype.
24713 2010-09-04  BVK Chaitanya  <bvk.groups@gmail.com>
24715         "setparams" command to update positional parameters.
24717         * tests/grub_script_setparams.in: New test.
24718         * Makefile.util.def: Rules for new test.
24720         * grub-core/script/argv.c (grub_script_argv_make): New function.
24721         * grub-core/script/execute.c (replace_scope): New function.
24722         (grub_script_setparams): New function.
24723         * grub-core/script/lexer.c: Remove unused variables.
24724         * grub-core/script/main.c: Register/unregister setparams command.
24725         * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24726         (grub_script_setparams): New prototype.
24728 2010-09-04  BVK Chaitanya  <bvk.groups@gmail.com>
24730         * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24731         grub_free order.
24733 2010-09-04  BVK Chaitanya  <bvk.groups@gmail.com>
24735         Support for passing block of commands as an argument to extcmds.
24737         * Makefile.util.def: Rules for new test.
24738         * tests/grub_script_blockarg.in: New test.
24739         * grub-core/tests/test_blockarg.c: New file, block argument
24740         command used in the test.
24742         * include/grub/extcmd.h (grub_extcmd_context): New struct.
24743         (grub_register_extcmd_prio): New function prototype.
24744         (grub_extcmd_dispatcher): New function prototype.
24745         * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24746         type.
24747         * include/grub/script_sh.h (struct grub_script): New members
24748         `children', `next_siblings' and `refcnt' for block arguments and
24749         reference counting.
24750         (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24751         (grub_script_arg): New member `script' for block argument.
24752         (grub_script_argv): New member `script' for block argument.
24753         (grub_parser_param): New member `scripts' for block argument.
24754         (grub_script_mem_free): New extern function prototype.
24755         (grub_script_ref): New function prototype.
24756         (grub_script_unref): New function prototype.
24758         * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24759         extcmd form to support block arguments.
24760         * grub-core/script/argv.c: Block arguments support.
24761         * grub-core/script/execute.c: Likewise.
24762         * grub-core/script/lexer.c: Likewise.
24763         * grub-core/script/main.c: Likewise.
24764         * grub-core/script/script.c: Likewise.
24765         * grub-core/script/parser.y: Likewise.  New `block' and `block0'
24766         non-terminals.
24768         * grub-core/commands/acpi.c: Update extcmd implementations with
24769         grub_extcmd_context_t.
24770         * grub-core/commands/cat.c: Likewise.
24771         * grub-core/commands/echo.c: Likewise.
24772         * grub-core/commands/extcmd.c: Likewise.
24773         * grub-core/commands/hashsum.c: Likewise.
24774         * grub-core/commands/hdparm.c: Likewise.
24775         * grub-core/commands/help.c: Likewise.
24776         * grub-core/commands/hexdump.c: Likewise.
24777         * grub-core/commands/i386/cpuid.c: Likewise.
24778         * grub-core/commands/i386/pc/drivemap.c: Likewise.
24779         * grub-core/commands/i386/pc/halt.c: Likewise.
24780         * grub-core/commands/i386/pc/sendkey.c: Likewise.
24781         * grub-core/commands/iorw.c: Likewise.
24782         * grub-core/commands/keystatus.c: Likewise.
24783         * grub-core/commands/loadenv.c: Likewise.
24784         * grub-core/commands/ls.c: Likewise.
24785         * grub-core/commands/lspci.c: Likewise.
24786         * grub-core/commands/memrw.c: Likewise.
24787         * grub-core/commands/probe.c: Likewise.
24788         * grub-core/commands/search_wrap.c: Likewise.
24789         * grub-core/commands/setpci.c: Likewise.
24790         * grub-core/commands/sleep.c: Likewise.
24791         * grub-core/disk/loopback.c: Likewise.
24792         * grub-core/hello/hello.c: Likewise.
24793         * grub-core/loader/i386/bsd.c: Likewise.
24794         * grub-core/loader/xnu.c: Likewise.
24795         * grub-core/term/gfxterm.c: Likewise.
24796         * grub-core/term/serial.c: Likewise.
24797         * grub-core/tests/lib/functional_test.c: Likewise.
24799 2010-09-04  BVK Chaitanya  <bvk.groups@gmail.com>
24801         Multi-line quoted strings support.
24803         * grub-core/script/lexer.c (append_newline): Removed.
24804         (grub_script_lexer_yywrap): Refactored.
24805         (grub_script_lexer_init): Refactored.
24806         * grub-core/script/yylex.l (yywrap): New function.
24807         (grub_lexer_resplit): New function.
24808         (grub_lexer_unput): New function.
24809         * include/grub/script_sh.h (grub_lexer_param): New members, unput
24810         and resplit.
24811         * tests/grub_script_echo1.in: Added few more testcases.
24813 2010-09-04  Vladimir Serbinenko  <phcoder@gmail.com>
24815         * grub-core/kern/misc.c: Don't add abort alias in utils.
24816         Reported by: echoline.
24818 2010-09-03  BVK Chaitanya  <bvk.groups@gmail.com>
24820         Add missing files into "make dist" tarball for other platforms.
24822         * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24823         * conf/Makefile.common (dist_noinst_DATA): New variable.
24824         * conf/Makefile.extra-dist: Added missing make dist files.
24825         * grub-core/Makefile.core.def: Likewise.
24827 2010-09-03  Vladimir Serbinenko  <phcoder@gmail.com>
24829         Compress grub_prefix.
24831         * grub-core/boot/i386/pc/lnxboot.S: Use
24832         GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24833         * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24834         * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24835         GRUB_MACHINE_PREFIX_END. All users updated.
24836         (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24837         (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24838         + 0x40.
24839         (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24840         * util/grub-mkimage.c (image_target_desc): Change data_end to
24841         prefix_end. All users updated.
24843 2010-09-03  Vladimir Serbinenko  <phcoder@gmail.com>
24845         * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24846         value.
24847         (grub_openbsd_boot): Likewise.
24848         (grub_netbsd_boot): Likewise.
24849         * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24850         (grub_xnu_boot): Likewise.
24852 2010-09-02  Vladimir Serbinenko  <phcoder@gmail.com>
24854         * configure.ac: Clean LIBS variable after tests.
24856 2010-09-02  Colin Watson  <cjwatson@ubuntu.com>
24858         * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24860 2010-09-02  Vladimir Serbinenko  <phcoder@gmail.com>
24862         * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24863         echo if libdevmapper will be used.
24865 2010-09-02  Ian Turner  <Ian.Turner@deshaw.com>
24867         * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24868         constant for the same file.
24870 2010-09-02  Vladimir Serbinenko  <phcoder@gmail.com>
24872         * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24874 2010-09-02  Colin Watson  <cjwatson@ubuntu.com>
24876         * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24877         grub-core/*.pp.
24879 2010-09-02  Colin Watson  <cjwatson@ubuntu.com>
24881         Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24882         required by the boot protocol.
24884         * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24885         ebp and edi members.
24886         * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24887         state.ebp and state.edi.
24888         * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24889         %ebp and %edi according to grub_relocator32_ebp and
24890         grub_relocator32_edi respectively.
24891         * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24892         and state.edi.
24894 2010-09-02  Vladimir Serbinenko  <phcoder@gmail.com>
24896         Add i386-pc-pxe image target.
24898         * util/grub-mkimage.c (image_target_desc): New enum value
24899         IMAGE_I386_PC_PXE.
24900         (image_targets): New target i386-pc-pxe.
24901         (generate_image): Handle i386-pc-pxe image.
24903 2010-09-02  Vladimir Serbinenko  <phcoder@gmail.com>
24905         Fix grub_pxe_scan.
24907         * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24908         (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24909         All users updated.
24910         * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24911         (grub_pxe_pxenv): Correct type.
24913 2010-09-01  Colin Watson  <cjwatson@ubuntu.com>
24915         * NEWS: Document most of the important changes since 1.98.
24917 2010-09-01  Colin Watson  <cjwatson@ubuntu.com>
24919         * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24920         generated manual page) a little.
24922 2010-09-01  Colin Watson  <cjwatson@ubuntu.com>
24924         * docs/grub.texi: Add myself as an author.
24926 2010-09-01  Vladimir Serbinenko  <phcoder@gmail.com>
24928         * Makefile.util.def (libgrub.a): Add missing sunpc.
24929         Reported by: Seth Goldberg.
24931 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
24933         Interrupt wrapping and code simplifications.
24935         * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24936         x86_noieee1275 which are functionaly equivalent in this case.
24937         (grub-install): Make source on each platform explicit. Enable on
24938         all noemu.
24939         * gentpl.py (x86_efi_pc): Removed group.
24940         (x86_noefi): Likewise.
24941         (i386_noefi): Likewise.
24942         (x86_noieee1275): Likewise.
24943         (i386_noieee1275): Likewise.
24944         (i386_noefi_noieee1275): Likewise.
24945         (i386_pc_qemu_coreboot): Likewise.
24946         (i386_coreboot_multiboot): Likewise.
24947         (i386_pc_coreboot_multiboot_qemu): Likewise.
24948         (x86_noefi_mips): Likewise.
24949         (noieee1275): Likewise.
24950         (ieee1275_mips): Likewise.
24951         (noemu_noieee1275): Likewise.
24952         (cmos): New group.
24953         (usb): Likewise.
24954         (videoinkernel): Likewise.
24955         (videomodules): Likewise.
24956         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24957         include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24958         include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24959         include/grub/loader.h, include/grub/msdos_partition.h,
24960         include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24961         include/grub/machine/console.h, include/grub/machine/vga.h,
24962         include/grub/machine/vbe.h, include/grub/machine/init.h,
24963         include/grub/machine/kernel.h, include/grub/cpu/time.h,
24964         include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24965         (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24966         (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24967         * grub-core/Makefile.core.def (kernel): Explicit the source for
24968         startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24969         Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24970         Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24971         Use videoinkernel tag.
24972         (usb): Enable on all usb.
24973         (usbserial_common): Likewise.
24974         (usbserial_pl2303): Likewise.
24975         (usbserial_ftdi): Likewise.
24976         (uhci): Enable on all x86.
24977         (ohci): Enable on all pci.
24978         (cmostest): Enable on all CMOS.
24979         (acpi): Include commands/acpi.c on all platforms.
24980         (halt): Add relevant lib/*/halt.c.
24981         (hdparm): Enable on all pci.
24982         (lspci): Likewise.
24983         (usbtest): Enable on all usb.
24984         (ata): Enable on all pci.
24985         (ata_pthru): Likewise.
24986         (usbms): Enable on all usb.
24987         (usb_keyboard): Likewise.
24988         (font): Use tag videomodules.
24989         (bufio): Likewise.
24990         (datetime): Use tag cmos. Enable on all noemu.
24991         (mmap): Use tags common and x86.
24992         (gfxterm): Use tag videomodules.
24993         (bitmap): Likewise.
24994         (bitmap_scale): Likewise.
24995         (video_fb): Likewise.
24996         (video): Likewise.
24997         * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24998         adjust padding accordingly. All users updated.
24999         (grub_ohci_transaction): Fix bad format specification.
25000         (GRUB_MOD_INIT): Add asserts for struct size.
25001         * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
25002         (grub_alloc_td): Likewise.
25003         (grub_free_queue): Likewise.
25004         (grub_uhci_transfer): Likewise.
25005         (grub_uhci_transaction): Fix bad format specification.
25006         * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
25007         (grub_usb_bulk_readwrite): Likewise.
25008         * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
25009         * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
25010         Made static.
25011         * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
25012         Made static.
25013         * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
25014         * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
25015         Transformed into C.
25016         * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
25017         Moved from here ...
25018         * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
25019         ... here. Transformed into C. Made static.
25020         * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
25021         Moved from here ...
25022         * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
25023         ... here. Transformed into C. Made static.
25024         * grub-core/kern/i386/pc/startup.S
25025         (grub_biosdisk_check_int13_extensions): Moved from here ...
25026         * grub-core/disk/i386/pc/biosdisk.c
25027         (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
25028         Made static.
25029         * grub-core/kern/i386/pc/startup.S
25030         (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
25031         * grub-core/disk/i386/pc/biosdisk.c
25032         (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
25033         Transformed into C. Made static.
25034         * grub-core/kern/i386/pc/startup.S
25035         (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
25036         * grub-core/disk/i386/pc/biosdisk.c
25037         (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
25038         Transformed into C. Made static.
25039         * grub-core/kern/i386/pc/startup.S
25040         (grub_biosdisk_get_diskinfo_standard): Moved from here ...
25041         * grub-core/disk/i386/pc/biosdisk.c
25042         (grub_biosdisk_get_diskinfo_standard): ... here.
25043         Transformed into C. Made static.
25044         * grub-core/kern/i386/pc/startup.S
25045         (grub_biosdisk_get_num_floppies): Moved from here ...
25046         * grub-core/disk/i386/pc/biosdisk.c
25047         (grub_biosdisk_get_num_floppies): ... here.
25048         Transformed into C. Made static.
25049         * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
25050         New function.
25051         * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
25052         * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
25053         Transformed into C. Made static.
25054         * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
25055         * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
25056         Transformed into C. Made static.
25057         * grub-core/kern/i386/ieee1275/init.c: Removed.
25058         * grub-core/kern/i386/misc.S: Likewise.
25059         * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
25060         Splitted from here ...
25061         * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
25062         Transformed into C. Made static. All users updated.
25063         * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
25064         Transformed into C. Made static. All users updated.
25065         * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
25066         Moved from here...
25067         * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
25068         Transformed into C. Made static. All users updated.
25069         * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
25070         Moved from here...
25071         * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
25072         Transformed into C. Made static. All users updated.
25073         * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
25074         Removed (replaced by C version).
25075         * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
25076         Moved from here...
25077         * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
25078         Transformed into C. Made static.
25079         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
25080         Moved from here...
25081         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
25082         ... here. Transformed into C.
25083         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
25084         Moved from here...
25085         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
25086         ... here. Transformed into C.
25087         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
25088         Moved from here...
25089         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
25090         ... here. Transformed into C. Made static.
25091         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
25092         Moved from here...
25093         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
25094         ... here. Transformed into C.
25095         * grub-core/kern/i386/pc/startup.S
25096         (grub_vbe_bios_getset_dac_palette_width):Moved from here...
25097         * grub-core/video/i386/pc/vbe.c
25098         (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
25099         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25100         Moved from here...
25101         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25102         ... here. Transformed into C.
25103         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25104         Moved from here...
25105         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25106         ... here. Transformed into C.
25107         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25108         Moved from here...
25109         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25110         ... here. Transformed into C.
25111         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25112         Moved from here...
25113         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25114         ... here. Transformed into C.
25115         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25116         Moved from here...
25117         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25118         ... here. Transformed into C. Made static.
25119         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25120         Moved from here...
25121         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25122         ... here. Transformed into C. Made static.
25123         * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25124         Moved from here...
25125         * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25126         ... here. Transformed into C. Made static.
25127         * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25128         pxe_rm_entry as third argument.
25129         (grub_bios_interrupt): New function.
25130         * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25131         * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25132         of calling grub_stop.
25133         * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25134         * grub-core/lib/efi/halt.c (grub_halt): ...here.
25135         * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25136         * grub-core/lib/emu/halt.c (grub_halt): ... here.
25137         * grub-core/lib/i386/halt.c: Moved from here ...
25138         * grub-core/lib/i386/halt.c: ... here.
25139         * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25140         * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25141         * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25142         grub_stop_floppy.
25143         * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25144         * include/grub/i386/coreboot/init.h: Removed.
25145         * include/grub/i386/multiboot/init.h: Likewise.
25146         * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25147         * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25148         * include/grub/i386/pc/int.h: New file.
25149         * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25150         (grub_pxe_scan): Removed.
25151         (grub_pxe_call): Update prototype.
25152         * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25153         prototypes.
25154         * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25155         * include/grub/i386/qemu/init.h: Removed.
25156         * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25157         noreturn.
25158         (grub_halt): Likewise.
25159         * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25160         (grub_reboot): Likewise.
25161         * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25162         * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25163         * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25165 2010-08-30  Robert Millan  <rmh@gnu.org>
25167         * NEWS: Document addition of ZFS support in `grub-install' and
25168         `grub-mkconfig'.
25170 2010-08-30  BVK Chaitanya  <bvk.groups@gmail.com>
25172         * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25173         dprintf output.
25175 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
25177         Remove leftover embedding of font objects.
25179         * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25180         * util/grub-install.in (font): Removed.
25181         * util/grub-mkimage.c (generate_image): Remove font support. All users
25182         updated.
25184 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
25186         Remove leftover embedding of font objects.
25188         * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25189         * util/grub-install.in (font): Removed.
25190         * util/grub-mkimage.c (generate_image): Remove font support. All users
25191         updated.
25193 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
25195         * docs/grub.texi (Network): Fix reference to pxe_blksize.
25196         Reported by: Ian Turner
25198 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
25200         * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25201         timeout to avoid indefinite boot stalling.
25203 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
25205         * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25206         (grub_env_write_color_highlight): Likewise.
25208 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
25210         * grub-core/normal/term.c (print_more): Return to normal and not
25211         to standard state after printing "---MORE---".
25213 2010-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
25215         * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25216         Mask out the bit 0x80 since it has other meaning that specifiing color.
25218 2010-08-29  Vladimir Serbinenko  <phcoder@gmail.com>
25220         New relocator. Allows for more kernel support and more straightforward
25221         loader writing.
25223         * Makefile.am (BOOTTARGET): New variable.
25224         (QEMU32): Likewise.
25225         (linux.init.x86_64): New target.
25226         (linux.init.i386): Likewise.
25227         (multiboot.elf): Likewise.
25228         (kfreebsd.elf): Likewise.
25229         (kfreebsd.aout): Likewise.
25230         (pc-chainloader.elf): Likewise.
25231         (pc-chainloader.bin): Likewise.
25232         (ntldr.elf): Likewise.
25233         (ntldr.bin): Likewise.
25234         (multiboot2.elf): Likewise.
25235         (kfreebsd.init.x86_64): Likewise.
25236         (kfreebsd.init.i386): Likewise.
25237         (knetbsd.init.i386): Likewise.
25238         (kopenbsd.init.i386): Likewise.
25239         (knetbsd.init.x86_64): Likewise.
25240         (kopenbsd.init.x86_64): Likewise.
25241         (linux-initramfs.i386): Likewise.
25242         (linux-initramfs.x86_64): Likewise.
25243         (kfreebsd-mfsroot.i386.img): Likewise.
25244         (knetbsd.image.i386): Likewise.
25245         (kopenbsd.image.i386): Likewise.
25246         (kopenbsd.image.x86_64): Likewise.
25247         (knetbsd.miniroot-image.i386.img): Likewise.
25248         (kfreebsd-mfsroot.x86_64.img): Likewise.
25249         (knetbsd.image.x86_64): Likewise.
25250         (knetbsd.miniroot-image.x86_64.img): Likewise.
25251         (kfreebsd-mfsroot.i386.gz): Likewise.
25252         (bootcheck-kfreebsd-i386): Likewise.
25253         (kfreebsd-mfsroot.x86_64.gz): Likewise.
25254         (bootcheck-kfreebsd-x86_64): Likewise.
25255         (knetbsd.miniroot-image.i386.gz): Likewise.
25256         (bootcheck-knetbsd-i386): Likewise.
25257         (bootcheck-kopenbsd-i386): Likewise.
25258         (bootcheck-kopenbsd-x86_64): Likewise.
25259         (knetbsd.miniroot-image.x86_64.gz): Likewise.
25260         (bootcheck-knetbsd-x86_64): Likewise.
25261         (bootcheck-linux-i386): Likewise.
25262         (bootcheck-linux-x86_64): Likewise.
25263         (bootcheck-linux16-i386): Likewise.
25264         (bootcheck-linux16-x86_64): Likewise.
25265         (bootcheck-multiboot): Likewise.
25266         (bootcheck-multiboot2): Likewise.
25267         (bootcheck-kfreebsd-aout): Likewise.
25268         (bootcheck-pc-chainloader): Likewise.
25269         (bootcheck-ntldr): Likewise.
25270         (CLEANFILES): Add new targets.
25271         (BOOTCHECKS): New variable.
25272         (.PHONY): Add bootchecks.
25273         (SUCCESSFUL_BOOT_STRING): New variable.
25274         (BOOTCHECK_TIMEOUT): Likewise.
25275         (bootcheck): New target
25276         * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25277         * configure.ac: Correct efiemu excuse.
25278         * docs/grub.texi (Supported kernels): New chapter.
25279         * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25280         include/grub/mm_private.h. Simplify inclusion of
25281         include/grub/boot.h, include/grub/loader.h
25282         and include/grub/msdos_partition.h
25283         (KERNEL_HEADER_FILES) [i386_coreboot]:
25284         Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25285         (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25286         (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25287         (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25288         include/grub/machine/loader.h.
25289         (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25290         * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25291         extra_dist.
25292         (pci.mod): Enable on i386-multiboot.
25293         (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25294         (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25295         i386-qemu.
25296         (relocator.mod): Rewritten.
25297         (aout.mod): Enable on all x86.
25298         (bsd.mod): Likewise.
25299         (ntldr.mod): New module.
25300         (linux.mod): Use loader/i386/linux.c on all x86.
25301         (xnu.mod): Enable on all x86.
25302         (vga_text.mod): disable on EFI and QEMU.
25303         * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25304         * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25305         * grub-core/efiemu/loadcore.c: Likewise.
25306         * grub-core/efiemu/main.c: Likewise.
25307         (grub_efiemu_exit_boot_services): Removed.
25308         (grub_efiemu_finish_boot_services): Likewise.
25309         * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25310         function.
25311         * grub-core/efiemu/i386/nocfgtables.c: New file.
25312         * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25313         * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25314         (grub_efi_finish_boot_services): Moved from here ...
25315         * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25316         Fille finish memory map and related data.
25317         (finish_mmap_buf): New variable.
25318         (grub_efi_uintn_t finish_mmap_size): Likewise.
25319         (grub_efi_uintn_t finish_key): Likewise.
25320         (grub_efi_uintn_t finish_desc_size): Likewise.
25321         (grub_efi_uint32_t finish_desc_version): Likewise.
25322         (grub_efi_is_finished): Likewise.
25323         (grub_efi_get_memory_map): Use saved memory map if EFI is already
25324         finished.
25325         * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25326         (grub_elf64_phdr_iterate): Likewise.
25327         * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25328         (grub_os_area_size): Likewise.
25329         (grub_machine_init): Don't reserve os area.
25330         * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25331         * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25332         * grub-core/kern/i386/loader.S: Removed.
25333         * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25334         (grub_os_area_size): Likewise.
25335         (grub_machine_init): Don't reserve os area.
25336         * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25337         Don't call grub_dl_unload_all.
25338         Don't include loader.S.
25339         * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25340         Declare the memory after _end as available.
25341         * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25342         * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25343         (GRUB_MM_ALLOC_MAGIC): Moved from here...
25344         * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25345         * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25346         * include/grub/mm_private.h (grub_mm_header): ... here.
25347         * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25348         * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25349         * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25350         (grub_mm_region): ..here. Removed addr. Added pre_size.
25351         All users updated.
25352         * grub-core/kern/mm.c (base): Renamed to ...
25353         (grub_mm_base): ... this. Made global.
25354         (grub_real_malloc): Alloc from end of region.
25355         (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25356         * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25357         * grub-core/kern/powerpc/cache_flush.S: ... here.
25358         * grub-core/lib/efi/relocator.c: New file.
25359         * grub-core/lib/i386/relocator.c: Rewritten.
25360         * grub-core/lib/i386/relocator16.S: New file.
25361         * grub-core/lib/i386/relocator32.S: Likewise.
25362         * grub-core/lib/i386/relocator64.S: Likewise.
25363         * grub-core/lib/i386/relocator_asm.S: Rewritten.
25364         * grub-core/lib/i386/relocator_common.S: New file.
25365         * grub-core/lib/ieee1275/relocator.c: Likewise.
25366         * grub-core/lib/mips/relocator.c: Rewritten.
25367         * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25368         stylistic adjustments.
25369         * grub-core/lib/powerpc/relocator.c: New file.
25370         * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25371         * grub-core/lib/relocator.c: Rewritten.
25372         * grub-core/lib/x86_64/relocator_asm.S: New file.
25373         * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25374         * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25375         (bsd_tag): New struct.
25376         (tags): New variable.
25377         (tags_last): Likewise.
25378         (netbsd_module): New struct.
25379         (netbsd_mods): New variable.
25380         (netbsd_mods_last): Likewise.
25381         (openbsd_opts): New parameter "serial".
25382         (OPENBSD_SERIAL_ARG): New definition.
25383         (netbsd_opts): New parameter "serial".
25384         (NETBSD_SERIAL_ARG): New definition.
25385         (grub_freebsd_add_meta): Reorganised into ...
25386         (grub_bsd_add_meta): ...this. All users updated.
25387         (grub_freebsd_add_mmap): Reorganised into ...
25388         (generate_e820_mmap):  ...this...
25389         (grub_bsd_add_mmap): ...and this.  All users updated.
25390         (grub_freebsd_list_modules): Use tags.
25391         (grub_netbsd_add_meta_module): New function.
25392         (grub_netbsd_list_modules): Likewise.
25393         (grub_freebsd_boot): Use relocator and finish EFI.
25394         (grub_openbsd_boot): Likewise.
25395         (grub_netbsd_setup_video): New function.
25396         (grub_netbsd_add_modules): Likewise.
25397         (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25398         and finish EFI.
25399         (grub_bsd_unload): Unload tags.
25400         (grub_bsd_load_aout): Use relocator.
25401         (grub_bsd_elf32_size_hook): New function.
25402         (grub_bsd_elf32_hook): Use relocator.
25403         (grub_bsd_elf64_size_hook): New function.
25404         (grub_bsd_elf64_hook): Use relocator.
25405         (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25406         (grub_bsd_load): Zero-out openbsd_ramdisk.
25407         (grub_bsd_load): Use relocator.
25408         (grub_cmd_openbsd): Support serial.
25409         (grub_cmd_netbsd): Support modules.
25410         (grub_cmd_freebsd_module): Use relocator.
25411         (grub_netbsd_module_load): New function.
25412         (grub_cmd_netbsd_module): Likewise.
25413         (grub_cmd_openbsd_ramdisk): Likewise.
25414         (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25415         kopenbsd_ramdisk.
25416         (GRUB_MOD_FINI): Unregister new commands.
25417         * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25418         (grub_freebsd_load_elfmodule_obj): Use relocator.
25419         (grub_freebsd_load_elfmodule): Likewise.
25420         (grub_freebsd_load_elf_meta): Likewise.
25421         (grub_netbsd_load_elf_meta): New function.
25422         (grub_openbsd_find_ramdisk): Likewise.
25423         * grub-core/loader/i386/bsd_helper.S: Removed.
25424         * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25425         * grub-core/loader/i386/bsd_trampoline.S: Removed.
25426         * grub-core/loader/i386/efi/linux.c: Likewise.
25427         * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25428         * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25429         (DEFAULT_VIDEO_MODE): Likewise.
25430         (real_mode_target): New variable.
25431         (prot_mode_target): Likewise.
25432         (initrd_mem_target): Likewise.
25433         (relocator): Likewise.
25434         (efi_mmap_buf): Likewise.
25435         (efi_mmap_size): Likewise.
25436         (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25437         (free_pages): Use relocator.
25438         (allocate_pages): Account for efi_mmap and use relocator. Return error.
25439         (grub_linux_setup_video): Return error.
25440         (grub_linux_trampoline_start): Removed.
25441         (grub_linux_trampoline_end): Likewise.
25442         (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25443         andd video parameters depending on firmware.
25444         [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25445         [GRUB_MACHINE_EFI]: Pass EFI parameters.
25446         (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25447         (grub_cmd_initrd): Use relocator.
25448         * grub-core/loader/i386/linux_trampoline.S: Removed.
25449         * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25450         (elf_sec_entsize): Likewise.
25451         (elf_sec_shstrndx): Likewise.
25452         (elf_sections): Likewise.
25453         (grub_multiboot_load): Use relocator.
25454         (grub_multiboot_get_mbi_size): Account for sections.
25455         (grub_multiboot_make_mbi): Use relocator and support sections.
25456         (grub_multiboot_add_elfsyms): New function.
25457         (grub_multiboot_free_mbi): Free sections.
25458         * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25459         (grub_linux_real_target): Likewise.
25460         (grub_linux_real_chunk): Likewise.
25461         (grub_linux16_prot_size): Likewise.
25462         (grub_linux16_boot): Use relocator.
25463         (grub_linux_unload): Unload relocator.
25464         (grub_cmd_linux): Use relocator.
25465         (grub_cmd_initrd): Likewise.
25466         * grub-core/loader/i386/pc/ntldr.c: New file.
25467         * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25468         Don't try to guess CPU frequency.
25469         (grub_xnu_set_video): Stretch bitmap.
25470         (grub_xnu_boot): Use relocator.
25471         * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25472         (grub_linux_unload): Free relocator.
25473         (grub_linux_load32): Use relocator.
25474         (grub_linux_load64): Likewise.
25475         (grub_cmd_initrd): Likewise.
25476         * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25477         (grub_multiboot_unload): Unload relocator.
25478         (grub_cmd_multiboot): Use relocator.
25479         (grub_cmd_module): Likewise.
25480         * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25481         Use relocator and support sections.
25482         * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25483         (elf_sec_entsize): Likewise.
25484         (elf_sec_shstrndx): Likewise.
25485         (elf_sections): Likewise.
25486         (grub_multiboot_load): Use relocator.
25487         (grub_multiboot_get_mbi_size): Account for sections.
25488         (grub_multiboot_make_mbi): Use relocator and support sections.
25489         (grub_multiboot_add_elfsyms): New function.
25490         * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25491         * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25492         * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25493         Prototype changed. All users updated.
25494         (grub_xnu_align_heap): Simplified.
25495         (grub_xnu_writetree_toheap): Likewise.
25496         (grub_xnu_unload): Unload relocator.
25497         (grub_cmd_xnu_kernel): Use relocator.
25498         (grub_cmd_xnu_kernel64): Likewise.
25499         (grub_xnu_register_memory): Simplified.
25500         * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25501         * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25502         EFI is finished.
25503         (grub_console_checkkey): Likewise.
25504         (grub_console_getkey): Likewise.
25505         (grub_console_getwh): Likewise.
25506         (grub_console_getxy): Likewise.
25507         (grub_console_gotoxy): Likewise.
25508         (grub_console_cls): Likewise.
25509         (grub_console_setcolorstate): Likewise.
25510         (grub_console_setcursor): Likewise.
25511         * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25512         * grub-core/tests/boot/kbsd.init-i386.S: New file.
25513         * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25514         * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25515         * grub-core/tests/boot/kernel-8086.S: Likewise.
25516         * grub-core/tests/boot/kernel-i386.S: Likewise.
25517         * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25518         * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25519         * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25520         * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25521         * grub-core/tests/boot/knetbsd.cfg: Likewise.
25522         * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25523         * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25524         * grub-core/tests/boot/linux.cfg: Likewise.
25525         * grub-core/tests/boot/linux.init-i386.S: Likewise.
25526         * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25527         * grub-core/tests/boot/linux16.cfg: Likewise.
25528         * grub-core/tests/boot/multiboot.cfg: Likewise.
25529         * grub-core/tests/boot/multiboot2.cfg: Likewise.
25530         * grub-core/tests/boot/ntldr.cfg: Likewise.
25531         * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25532         * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25533         * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25534         New definition.
25535         * include/grub/dl.h (grub_dl_unload_all): Removed.
25536         * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25537         (grub_efi_finish_boot_services): Change prototype.
25538         (grub_efi_is_finished): New variable.
25539         * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25540         Changed prototype.
25541         (grub_efiemu_finish_boot_services): Removed.
25542         (grub_machine_efiemu_init_tables): New prototype.
25543         * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25544         (grub_elf64_phdr_iterate): Likewise.
25545         * include/grub/i386/bsd.h: Include relocator.h.
25546         (freebsd_tag_header): New struct.
25547         (grub_openbsd_bios_mmap): Removed.
25548         (grub_unix_real_boot): Removed.
25549         (grub_freebsd_load_elfmodule32): Changed prototype.
25550         (grub_freebsd_load_elfmodule_obj64): Likewise.
25551         (grub_freebsd_load_elf_meta32): Likewise.
25552         (grub_freebsd_load_elf_meta64): Likewise.
25553         (grub_freebsd_add_meta): Removed.
25554         (grub_netbsd_load_elf_meta32): New prototype.
25555         (grub_netbsd_load_elf_meta64): Likewise.
25556         (grub_bsd_add_meta): Likewise.
25557         (grub_openbsd_ramdisk_descriptor): New struct.
25558         (grub_openbsd_find_ramdisk32): New prototype.
25559         (grub_openbsd_find_ramdisk64): Likewise.
25560         * include/grub/i386/coreboot/loader.h: Removed.
25561         * include/grub/i386/efi/loader.h: Likewise.
25562         * include/grub/i386/ieee1275/loader.h: Likewise.
25563         * include/grub/i386/linux.h (linux_kernel_header): Change void *
25564         to grub_uint32_t.
25565         * include/grub/i386/loader.h: Removed.
25566         * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25567         value.
25568         (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25569         (grub_phys_addr_t): New type.
25570         (grub_vtop): New inline function.
25571         (grub_map_memory): Likewise.
25572         (grub_unmap_memory): Likewise.
25573         * include/grub/i386/multiboot/loader.h: Removed.
25574         * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25575         (NETBSD_BTINFO_CONSOLE): New definition.
25576         (NETBSD_BTINFO_SYMTAB): Likewise.
25577         (NETBSD_BTINFO_MODULES): Likewise.
25578         (NETBSD_BTINFO_FRAMEBUF): Likewise.
25579         (grub_netbsd_bootinfo): New struct.
25580         (grub_netbsd_btinfo_common): Use explicit bitsize.
25581         (grub_netbsd_btinfo_mmap_entry): Removed.
25582         (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25583         (grub_netbsd_btinfo_bootdisk): New struct.
25584         (grub_netbsd_btinfo_symtab): Likewise.
25585         (grub_netbsd_btinfo_serial): Likewise.
25586         (grub_netbsd_btinfo_modules): Likewise.
25587         (grub_netbsd_btinfo_framebuf): Likewise.
25588         (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25589         * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25590         Likewise.
25591         (grub_openbsd_bootargs): Use explicit bitsize.
25592         (grub_openbsd_bootarg_console): New struct.
25593         (GRUB_OPENBSD_COM_MAJOR): New definition.
25594         (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25595         * include/grub/i386/pc/efiemu.h: Removed.
25596         * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25597         * include/grub/i386/qemu/loader.h: Removed.
25598         * include/grub/i386/relocator.h: Rewritten.
25599         * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25600         * include/grub/mips/memory.h: New file.
25601         * include/grub/mips/multiboot.h: Rewritten.
25602         * include/grub/mips/relocator.h: Rewritten.
25603         * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25604         (grub_vtop): New function.
25605         (grub_map_memory): Likewise.
25606         (grub_unmap_memory): Likewise.
25607         * include/grub/misc.h (ALIGN_DOWN): New definition.
25608         * include/grub/mm.h (grub_mm_check_real): New proto.
25609         (GRUB_MM_CHECK): New definition.
25610         * include/grub/mm_private.h: New file.
25611         * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25612         (grub_multiboot_get_mbi_size): Removed.
25613         (grub_multiboot_make_mbi): Change prottype.
25614         (grub_multiboot_set_accepts_video): New proto.
25615         (grub_multiboot_add_elfsyms): Likewise.
25616         (grub_multiboot_payload_eip): New variable.
25617         * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25618         New prototype.
25619         * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25620         New definition.
25621         (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25622         (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25623         * include/grub/powerpc/ieee1275/loader.h: Removed.
25624         * include/grub/powerpc/memory.h: New file.
25625         * include/grub/powerpc/relocator.h: Likewise.
25626         * include/grub/relocator.h: Likewise.
25627         * include/grub/relocator_private.h: Likewise.
25628         * include/grub/sparc64/ieee1275/loader.h: Removed.
25629         * include/grub/x86_64/memory.h: New file.
25630         * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25631         (grub_xnu_heap_malloc): Likewise.
25632         (grub_xnu_heap_real_start): Removed.
25633         (grub_xnu_heap_start): Likewise.
25634         (grub_xnu_relocator): New variable.
25635         (grub_xnu_heap_target_start): Likewise.
25636         * tests/util/grub-shell.in: Support non-pc.
25637         * util/grub-mkimage.c (image_targets): Fix multiboot target.
25639 2010-08-29  Vladimir Serbinenko  <phcoder@gmail.com>
25641         * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25642         on malloc error.
25643         (grub_bidi_logical_to_visual): Check that malloc succeded.
25644         * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25645         puts.
25646         (grub_xputs_normal): Likewise.
25648 2010-08-29  Vladimir Serbinenko  <phcoder@gmail.com>
25650         * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25651         extra_dist.
25653 2010-08-29  Vladimir Serbinenko  <phcoder@gmail.com>
25655         * grub-core/efiemu/runtime/efiemu.sh: Removed.
25657 2010-08-29  Vladimir Serbinenko  <phcoder@gmail.com>
25659         * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25661 2010-08-29  Vladimir Serbinenko  <phcoder@gmail.com>
25663         * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25664         dprintf.
25666 2010-08-29  BVK Chaitanya  <bvk.groups@gmail.com>
25668         * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25670 2010-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
25672         * grub-core/normal/term.c (print_more): Fix a memory leak.
25673         (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25674         (grub_xputs_normal): Likewise.
25676 2010-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
25678         * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25679         the begining of the string
25681 2010-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
25683         * grub-core/script/script.c (grub_script_parse): Free parsed on
25684         failure.
25686 2010-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
25688         * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25689         on failure.
25691 2010-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
25693         * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25694         return.
25696 2010-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
25698         * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25699         (scroll_up): Fix a memory leak.
25701 2010-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
25703         * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25704         errors.
25706 2010-08-27  Vladimir Serbinenko  <phcoder@gmail.com>
25708         Handle USB pendrives exposed as floppies.
25710         * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25711         floppy.
25712         * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25713         Check for partitions on all devices.
25715 2010-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
25717         * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25718         (readkey): Likewise.
25720 2010-08-25  BVK Chaitanya  <bvk.groups@gmail.com>
25722         Multiple variable names support to "export" command.
25724         * normal/context.c (grub_cmd_export): "export" command supports
25725         multiple variable names.
25727 2010-08-23  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25729         * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25730         --target=drive output to Mach device name.
25732 2010-08-23  BVK Chaitanya  <bvk.groups@gmail.com>
25734         New Automake based build system for GRUB.
25736         * ABOUT-NLS: New file.
25737         * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25738         in Makefile.util.def file.
25739         * Makefile.util.def: New file.  Autogen build definitions file for
25740         GRUB host utils.
25741         * conf/Makefile.common: New file.  Common variables for GRUB host
25742         utils and target modules.
25743         * conf/Makefile.extra-dist: New file.  Extra files for make dist.
25744         * docs/Makefile.am: New file.  Automake file for docs.
25745         * gentpl.py: New file.  Python script to generate Autogen
25746         template.
25747         * grub-core/Makefile.am: New file.  GRUB target modules' rules
25748         that doesn't fit in Makefile.core.def file.
25749         * grub-core/Makefile.core.def: New file.  Autogen build
25750         definitions file for GRUB target modules.
25751         * grub-core/lib/setjmp.S: New file.  Wrapper for target_cpu
25752         specific setjmp.S file.
25753         * po/Makefile.am: New file.
25755         * .bzrignore: New ignores.
25756         * INSTALL: New requirements, without Ruby.
25757         * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25758         * autogen.sh: Updated to invoke autogen as necessary.
25759         * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25760         and defines for Automake conditionals.
25761         * geninit.sh: Refactoring.
25763         * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25764         necessary.
25765         * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25766         New prototype.
25768         * include/grub/test.h: Fix functional test modules' naming.
25769         * grub-core/tests/example_functional_test.c: Fix test module name.
25771         * util/misc.c: Hosted versions' of grub functions for libgrub.a
25772         * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25773         * util/grub-editenv.c: Likewise.
25774         * util/grub-fstest.c: Likewise.
25775         * util/grub-mkdevicemap.c: Likewise.
25776         * util/grub-mkfont.c: Likewise.
25777         * util/grub-mkimage.c: Likewise.
25778         * util/grub-mkpasswd-pbkdf2.c: Likewise.
25779         * util/grub-probe.c: Likewise.
25780         * util/grub-script-check.c: Likewise.
25781         * util/i386/pc/grub-setup.c: Likewise.
25782         * util/sparc64/ieee1275/grub-setup.c: Likewise.
25784         * tests/util/grub-shell.in: Fix override directory path.
25785         * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25786         * util/import_gcry.py: Create Makefile.gcry.def file instead.
25788         * util/lvm.c: Update #includes.
25789         * util/raid.c: Likewise.
25790         * util/resolve.c: Likewise.
25791         * grub-core/bus/emu/pci.c: Likewise.
25792         * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25793         * grub-core/lib/posix_wrap/string.h: Likewise.
25794         * grub-core/kern/emu/main.c: Likewise.
25796         * grub-core/gensymlist.sh: New file.  Script for generating kernel
25797         symbols file.
25798         * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25800         * grub-core/gentrigtables.c: Fix unused variable warnings.
25802         * Makefile.in: Removed.
25803         * conf/any-emu.rmk: Removed.
25804         * conf/common.rmk: Removed.
25805         * conf/i386-coreboot.rmk: Removed.
25806         * conf/i386-efi.rmk: Removed.
25807         * conf/i386-ieee1275.rmk: Removed.
25808         * conf/i386-multiboot.rmk: Removed.
25809         * conf/i386-pc.rmk: Removed.
25810         * conf/i386-qemu.rmk: Removed.
25811         * conf/i386.rmk: Removed.
25812         * conf/mips-yeeloong.rmk: Removed.
25813         * conf/mips.rmk: Removed.
25814         * conf/powerpc-ieee1275.rmk: Removed.
25815         * conf/sparc64-ieee1275.rmk: Removed.
25816         * conf/tests.rmk: Removed.
25817         * conf/x86-efi.rmk: Removed.
25818         * conf/x86_64-efi.rmk: Removed.
25819         * gendistlist.sh: Removed.
25820         * geninitheader.sh: Removed.
25821         * genkernsyms.sh.in: Removed.
25822         * genmk.rb: Removed.
25823         * gensymlist.sh.in: Removed.
25824         * mkinstalldirs: Removed.
25825         * boot: Moved ...
25826         * grub-core/boot: ... to here.
25827         * bus: Moved ...
25828         * grub-core/bus: ... to here.
25829         * commands: Moved ...
25830         * grub-core/commands: ... to here.
25831         * disk: Moved ...
25832         * grub-core/disk: ... to here.
25833         * efiemu: Moved ...
25834         * grub-core/efiemu: ... to here.
25835         * font: Moved ...
25836         * grub-core/font: ... to here.
25837         * fs: Moved ...
25838         * grub-core/fs: ... to here.
25839         * gencmdlist.sh: Moved ...
25840         * grub-core/gencmdlist.sh: ... to here.
25841         * genemuinit.sh: Moved ...
25842         * grub-core/genemuinit.sh: ... to here.
25843         * genemuinitheader.sh: Moved ...
25844         * grub-core/genemuinitheader.sh: ... to here.
25845         * genfslist.sh: Moved ...
25846         * grub-core/genfslist.sh: ... to here.
25847         * genhandlerlist.sh: Moved ...
25848         * grub-core/genhandlerlist.sh: ... to here.
25849         * genmoddep.awk: Moved ...
25850         * grub-core/genmoddep.awk: ... to here.
25851         * genmodsrc.sh: Moved ...
25852         * grub-core/genmodsrc.sh: ... to here.
25853         * genpartmaplist.sh: Moved ...
25854         * grub-core/genpartmaplist.sh: ... to here.
25855         * genparttoollist.sh: Moved ...
25856         * grub-core/genparttoollist.sh: ... to here.
25857         * genterminallist.sh: Moved ...
25858         * grub-core/genterminallist.sh: ... to here.
25859         * gentrigtables.c: Moved ...
25860         * grub-core/gentrigtables.c: ... to here.
25861         * genvideolist.sh: Moved ...
25862         * grub-core/genvideolist.sh: ... to here.
25863         * gettext: Moved ...
25864         * grub-core/gettext: ... to here.
25865         * gfxmenu: Moved ...
25866         * grub-core/gfxmenu: ... to here.
25867         * gnulib: Moved ...
25868         * grub-core/gnulib: ... to here.
25869         * hello: Moved ...
25870         * grub-core/hello: ... to here.
25871         * hook: Moved ...
25872         * grub-core/hook: ... to here.
25873         * io: Moved ...
25874         * grub-core/io: ... to here.
25875         * kern: Moved ...
25876         * grub-core/kern: ... to here.
25877         * lib: Moved ...
25878         * grub-core/lib: ... to here.
25879         * loader: Moved ...
25880         * grub-core/loader: ... to here.
25881         * mmap: Moved ...
25882         * grub-core/mmap: ... to here.
25883         * normal: Moved ...
25884         * grub-core/normal: ... to here.
25885         * partmap: Moved ...
25886         * grub-core/partmap: ... to here.
25887         * parttool: Moved ...
25888         * grub-core/parttool: ... to here.
25889         * script: Moved ...
25890         * grub-core/script: ... to here.
25891         * term: Moved ...
25892         * grub-core/term: ... to here
25893         * tests/example_functional_test.c: Moved ...
25894         * grub-core/tests/example_functional_test.c: ... to here.
25895         * tests/lib/functional_test.c: Moved ...
25896         * grub-core/tests/lib/functional_test.c: ... to here.
25897         * tests/lib/test.c: Moved ...
25898         * grub-core/tests/lib/test.c: ... to here.
25899         * video: Moved ...
25900         * grub-core/video: ... to here.
25902 2010-08-23  BVK Chaitanya  <bvk.groups@gmail.com>
25904         Replace --enable-grub-emu-modules with grub-emu-lite.
25906         * kern/emu/cache.S: New file.  Wrapper for $target_cpu specific
25907         cache.S.
25909         * include/grub/emu/misc.h (grub_emu_init): New prototype.
25910         * kern/emu/full.c: New file. For grub-emu specific initialization.
25911         * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25912         * kern/emu/main.c: Call initialization function grub_emu_init.
25914         * Makefile.in: Include grub-emu-lite in install.
25915         * commands/parttool.c: Use grub_no_autoload to differentiate
25916         between grub-emu and grub-emu-lite.
25917         * include/grub/misc.h: New variable grub_no_autoload.
25919         * conf/any-emu.rmk: New rules for grub-emu-lite.
25920         * configure.ac: Remove --enable-grub-emu-modules.
25921         * genmk.rb: Cleanup unnecessary rules.
25922         * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25924         * normal/main.c: Don't load list files on grub-emu-lite.
25925         * util/misc.c (grub_arch_sync_caches): Removed.
25927 2010-08-23  Colin Watson  <cjwatson@ubuntu.com>
25929         * kern/mips/startup.S (grub_prefix): Update comment to refer to
25930         grub-mkimage rather than grub-mkelfimage.
25931         * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25933 2010-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
25935         * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25936         a key after CapsLock or NumLock. It's just a qemu bug.
25938 2010-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
25940         * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25941         needed by libusb wrapper.
25943 2010-08-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25945         * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25947 2010-08-21  Vladimir Serbinenko  <phcoder@gmail.com>
25949         * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25950         --nounzip is passed.
25952 2010-08-20  Vladimir Serbinenko  <phcoder@gmail.com>
25954         USB hotunplugging and USB serial support.
25956         * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25957         * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25958         (grub_uhci_transfer): Respect timeout and set *actual.
25959         * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25960         non-standard length.
25961         (grub_usb_device_attach): Autoload modules.
25962         (GRUB_MOD_INIT): Set grub_term_poll_usb.
25963         (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25964         * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25965         users updated.
25966         (grub_usb_add_hub): Fill nports and children.
25967         (attach_root_port): Receive hub instead of controller.
25968         All users updated. Fill hub->devices.
25969         (grub_usb_root_hub): Allocate hub->devices.
25970         (detach_device): New function.
25971         (poll_nonroot_hub): Fill children and detach devices.
25972         * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25973         actual arguments. All users updated.
25974         (grub_usb_bulk_read_extended): New function.
25975         * bus/usb/serial/common.c: New file.
25976         * bus/usb/serial/ftdi.c: Likewise.
25977         * bus/usb/serial/pl2303.c: Likewise.
25978         * commands/terminal.c (handle_command): Support wildcard.
25979         * commands/usbtest.c: Output "Unknown" instead of empty string.
25980         * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25981         (usbserial_common_mod_SOURCES): New variable.
25982         (usbserial_common_mod_CFLAGS): Likewise.
25983         (usbserial_common_mod_LDFLAGS): Likewise.
25984         (pkglib_MODULES): Add usbserial_pl2303.mod.
25985         (usbserial_pl2303_mod_SOURCES): New variable.
25986         (usbserial_pl2303_mod_CFLAGS): Likewise.
25987         (usbserial_pl2303_mod_LDFLAGS): Likewise.
25988         (pkglib_MODULES): Add usbserial_ftdi.mod.
25989         (usbserial_ftdi_mod_SOURCES): New variable.
25990         (usbserial_ftdi_mod_CFLAGS): Likewise.
25991         (usbserial_ftdi_mod_LDFLAGS): Likewise.
25992         (pkglib_MODULES): Add serial.mod.
25993         (serial_mod_SOURCES): New variable.
25994         (serial_mod_CFLAGS): Likewise.
25995         (serial_mod_LDFLAGS): Likewise.
25996         * conf/i386-pc.rmk: Likewise.
25997         * conf/mips-yeeloong.rmk: Likewise.
25998         * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25999         * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
26000         * disk/usbms.c (first_available_slot): New variable.
26001         (grub_usbms_attach): Don't reuse free slots due to potential cache
26002         problems.
26003         * include/grub/serial.h: Moved to ..
26004         * include/grub/ns8250.h: ...this.
26005         * include/grub/serial.h: New file.
26006         * include/grub/term.h (grub_term_poll_usb): New variable.
26007         * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
26008         readkey. All users updated.
26009         (grub_terminfo_output_state): Pass term to put.
26010         * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
26011         (grub_usb_controller_dev): Add timeout and actual arguments to
26012         transfer. All users updated.
26013         (grub_usb_interface): New field detach_data.
26014         (grub_usb_device): New fields children and nports.
26015         (grub_usb_ep_type_t): New type.
26016         (grub_usb_get_ep_type): New function.
26017         (grub_usb_bulk_read_extended): Likewise.
26018         * include/grub/usbdesc.h (grub_usb_desc): New type.
26019         * include/grub/usbserial.h: New file.
26020         * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
26021         * kern/term.c (grub_term_poll_usb): New variable.
26022         (grub_getkey): Call grub_term_poll_usb if set.
26023         (grub_checkkey): Likewise.
26024         (grub_getkeystatus): Likewise.
26025         * term/serial.c: Moved controller-specific parts to ...
26026         * term/ns8250.c: ... here.
26027         * term/serial.c: Mostly rewritten.
26028         * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
26029         according to spec.
26031 2010-08-20  Robert Millan  <rmh@gnu.org>
26033         Make kFreeBSD code more generic to support ext2fs as root, ufs as
26034         a separate module and maybe other interesting combinations.
26036         * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
26037         (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
26038         (kfreebsd_entry): Add generic filesystem module load routine.
26039         Map GRUB `ext2' to kFreeBSD `ext2fs'.
26041 2010-08-20  Colin Watson  <cjwatson@ubuntu.com>
26043         * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
26044         "numcenter" (I misunderstood the purpose of this entry).
26045         * docs/grub.texi (sendkey): Likewise.
26047 2010-08-20  Colin Watson  <cjwatson@ubuntu.com>
26049         * commands/i386/pc/sendkey.c (options): Remove "keep" from all
26050         status flag options; simply omitting the option is equivalent and
26051         simpler.  Rename "wait" to "pause".  Rename "sysreq" to "sysrq".
26052         (keysym_table): Rename "num5numlock" to "numlock".
26053         (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
26054         can uniformly say that only the last of multiple `sendkey'
26055         invocations has any effect.
26056         * docs/grub.texi (sendkey): New section.
26058 2010-08-19  Colin Watson  <cjwatson@ubuntu.com>
26060         * commands/i386/pc/sendkey.c (options): Fix three typos.
26062 2010-08-19  Vladimir Serbinenko  <phcoder@gmail.com>
26064         Implement sendkey support.
26066         * commands/i386/pc/sendkey.c: New file.
26067         * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
26068         (sendkey_mod_SOURCES): New variable.
26069         (sendkey_mod_CFLAGS): Likewise.
26070         (sendkey_mod_LDFLAGS): Likewise.
26072 2010-08-18  Colin Watson  <cjwatson@ubuntu.com>
26074         * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
26075         fix warnings from Autoconf.
26077 2010-08-18  Colin Watson  <cjwatson@ubuntu.com>
26079         * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
26080         to avoid false positives with some assemblers that output things
26081         like "someprefix_func" as part of their output.
26083 2010-08-15  Robert Millan  <rmh@gnu.org>
26085         * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
26086         errors.
26087         * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
26088         grub_get_libzfs_handle() errors.
26090 2010-08-14  Robert Millan  <rmh@gnu.org>
26092         * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
26093         filesystem is not ZFS.
26095 2010-08-12  BVK Chaitanya  <bvk.groups@gmail.com>
26097         Fix for misspelled color names defaulting to black/black (bug
26098         reported by Doug Nazar)
26100         * include/grub/normal.h (grub_parse_color_name_pair): Add return
26101         status to prototype.
26102         * normal/color.c (grub_parse_color_name_pair): Return failure
26103         status.
26104         (grub_env_write_color_normal): Ignore bad color names.
26105         (grub_env_write_color_highlight): Likewise.
26106         * normal/main.c (GRUB_MOD_INIT): Set default color names.
26108 2010-08-12  BVK Chaitanya  <bvk.groups@gmail.com>
26110         "shift" command support to GRUB script.
26112         * include/grub/script_sh.h (grub_script_shift): New prototype.
26113         * script/execute.c (grub_script_shift): New function.
26114         * script/main.c (grub_script_init): Register shift command.
26115         (grub_script_fini): Unregister shift command.
26116         * util/grub-script-check.c (grub_script_cmd_shift): New function.
26118         * tests/grub_script_shift.in: New testcase.
26119         * conf/tests.rmk: Rules for new testcase.
26121 2010-08-12  BVK Chaitanya  <bvk.groups@gmail.com>
26123         "continue" command support to GRUB script.
26125         * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26126         (grub_script_break): Continue support.
26127         * script/main.c (grub_script_init): Register continue command.
26128         (grub_script_fini): Unregister continue command.
26130         * tests/grub_script_continue.in: New testcase.
26131         * conf/tests.rmk: Rules for new testcase.
26133 2010-08-12  BVK Chaitanya  <bvk@dbook>
26135         "break" command support to GRUB script.
26137         * conf/common.rmk: Rule updates to grub-script-check.
26138         * include/grub/misc.h (grub_min): New function.
26139         * include/grub/script_sh.h (grub_script_init): New prototype.
26140         (grub_script_fini): New prototype.
26141         (grub_script_break): New prototype.
26142         * script/main.c (grub_script_init): New function.
26143         (grub_script_fini): New function.
26144         * script/execute.c (grub_script_break): New function.
26145         * normal/main.c: Calls to grub_script_{init,fini}.
26146         * util/grub-script-check.c (grub_script_break): New function.
26148         * tests/grub_script_break.in: New testcase.
26149         * conf/tests.rmk: Rules for new test case.
26151 2010-08-12  BVK Chaitanya  <bvk.groups@gmail.com>
26153         Function parameters support to GRUB script.
26155         * script/yylex.l (VARIABLE): Regular expression update.
26156         * script/function.c (grub_script_function_call): Moved ...
26157         * script/execute.c (grub_script_function_call): ... to here.
26158         (grub_script_execute_arglist_to_argv): Removed.
26159         (grub_script_arglist_to_argv): New function.
26160         * script/argv.c: New file.
26161         (grub_script_argv_free): New function.
26162         (grub_script_argv_next): Likewise.
26163         (grub_script_argv_append): Likewise.
26164         (grub_script_argv_split_append): Likewise.
26165         * include/grub/script_sh.h (grub_script_argv): New struct.
26166         (grub_script_argv_free): New function.
26167         (grub_script_argv_next): Likewise.
26168         (grub_script_argv_append): Likewise.
26169         (grub_script_argv_split_append): Likewise.
26171         * conf/common.rmk (normal.mod): New source script/argv.c.
26173         * tests/grub_script_echo1.in: More tests.
26174         * tests/grub_script_vars1.in: Likewise.
26175         * tests/grub_script_functions.in: New test case.
26176         * conf/tests.rmk: Rules for new testcase.
26178 2010-08-12  BVK Chaitanya  <bvk.groups@gmail.com>
26180         Remove grub_script_cmdblock struct.
26182         * include/grub/script_sh.h: Remove grub_script_cmdblock.
26183         * script/parser.y: Likewise.
26184         * script/execute.c: Rename cmdblock suffix to cmdlist.
26185         * script/script.c: Likewise.
26186         * util/grub-script-check.c: Likewise.
26188 2010-08-11  Yves Blusseau  <blusseau@zetam.org>
26190         * .bzrignore: add grub-macho2img
26192 2010-08-11  Vladimir Serbinenko  <phcoder@gmail.com>
26194         * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26196 2010-08-11  Vladimir Serbinenko  <phcoder@gmail.com>
26198         Remove the dump of sm712 initialisation sequence.
26200         * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26201         * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26202         (GRUB_VGA_IO_MISC_WRITE): Likewise.
26203         (GRUB_VGA_CR_*): Added many registers.
26204         (GRUB_VGA_SR_*): Likewise.
26205         (GRUB_VGA_GR_*): Likewise.
26206         (grub_vga_write_arx): New function.
26207         (grub_video_hw_config): New struct.
26208         (grub_vga_set_geometry): New function.
26209         * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26210         GRUB_PCI_CLASS_SUBCLASS_VGA.
26211         * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26212         * video/sm712.c (grub_sm712_write_reg): New function
26213         (grub_sm712_read_reg): Likewise.
26214         (grub_sm712_sr_write): Likewise.
26215         (grub_sm712_gr_write): Likewise.
26216         (grub_sm712_cr_write): Likewise.
26217         (grub_sm712_write_arx): Likewise.
26218         (grub_sm712_cr_shadow_write): Likewise.
26219         (grub_sm712_write_dda_lookup): Likewise.
26220         (grub_video_sm712_setup): Initialise the video rather then
26221         blindly replay the dump.
26222         (main) [TEST]: Add a routine to be able to compile as standalone for
26223         tests.
26224         * video/sm712_init.c (sm712_init): Removed.
26225         (sm712_sr_seq1): New array.
26226         (sm712_sr_seq2): Likewise.
26228 2010-08-10  Vladimir Serbinenko  <phcoder@gmail.com>
26230         * include/grub/vga.h: Add missing grub/pci.h include.
26232 2010-08-10  Yves Blusseau  <blusseau@zetam.org>
26234         * util/grub-macho2img.c (main): fix typo
26236 2010-08-10  Vladimir Serbinenko  <phcoder@gmail.com>
26238         * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26239         (grub_vga_gr_read): Likewise.
26240         (grub_vga_cr_write): Likewise.
26241         (grub_vga_cr_read): Likewise.
26242         (grub_vga_sr_write): Likewise.
26243         (grub_vga_sr_read): Likewise.
26244         (grub_vga_palette_read): Likewise.
26245         (grub_vga_palette_write): Likewise.
26246         * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26247         (grub_sm712_sr_read): New function.
26248         (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26249         * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26251 2010-08-09  Robert Millan  <rmh@gnu.org>
26253         * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26254         out unused variables on non-ZFS build.
26256 2010-08-08  Robert Millan  <rmh@gnu.org>
26258         Fix path generation for sub-filesystems in ZFS.
26260         * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26261         missing slash.
26263 2010-08-08  Robert Millan  <rmh@gnu.org>
26265         * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26267 2010-08-08  Robert Millan  <rmh@gnu.org>
26269         * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26270         exist, issue a proper error message (rely on `ls' for translated
26271         strings).
26273 2010-08-08  Robert Millan  <rmh@gnu.org>
26275         Fix grub-probe invocation.
26277         * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26279 2010-08-04  Robert Millan  <rmh@gnu.org>
26281         * configure.ac: Remove checks for getfsstat() and getmntany().
26282         Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26283         * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26284         [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26285         [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26286         [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26287         function.
26288         (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26289         via find_mount_point_from_dir() and getfsstat() / getmntany().
26291 2010-08-04  Robert Millan  <rmh@gnu.org>
26293         * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26294         (grub_find_zpool_from_mount_point): Merge into ...
26295         (grub_find_zpool_from_dir): ... this.
26296         * kern/emu/misc.c: Likewise.
26298         * kern/emu/misc.c
26299         (grub_make_system_path_relative_to_its_root): Replace
26300         grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26301         with grub_find_zpool_from_dir().
26302         * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26304 2010-08-04  Robert Millan  <rmh@gnu.org>
26306         Support OpenSolaris in ZFS device resolution.
26308         * configure.ac: Check for getmntany().
26309         * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26310         [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26311         support.
26313 2010-08-03  Robert Millan  <rmh@gnu.org>
26315         Fix grub-emu build.
26317         * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26318         * include/grub/emu/misc.h: ... here.
26320         * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26321         * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26323         * util/misc.c: Remove `<grub/util/libzfs.h>'.
26324         [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26325         (grub_get_libzfs_handle): Move to ...
26326         * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26327         (grub_get_libzfs_handle): ... here.
26329 2010-08-03  BVK Chaitanya  <bvk.groups@gmail.com>
26331         * script/execute.c (grub_script_execute_cmdline): Check for NULL
26332         as command name case.
26334 2010-08-02  Colin Watson  <cjwatson@ubuntu.com>
26336         * disk/raid.c (insert_array): Select unique numbers for named arrays
26337         as well, for use as keys in the disk cache.
26339 2010-08-01  Robert Millan  <rmh@gnu.org>
26341         * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26342         kFreeBSD device name, except on ZFS where the filesystem label is
26343         used.
26344         (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26345         `/boot/zfs/zpool.cache'.
26346         Set mountfrom kernel variable using ${kfreebsd_device}.
26348 2010-08-01  Robert Millan  <rmh@gnu.org>
26350         Make it even harder to use uninitialized `libzfs_handle' (and
26351         make the interface a bit simpler).
26353         * include/grub/util/misc.h (grub_util_init_libzfs)
26354         (libzfs_handle): Remove.
26355         (grub_get_libzfs_handle): New prototype.
26357         * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26358         attribute.
26359         (grub_util_init_libzfs): Remove.
26360         (grub_get_libzfs_handle): New function.
26362         * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26363         grub_get_libzfs_handle() to obtain a libzfs handle instead of
26364         accessing `libzfs_handle' directly.
26366 2010-08-01  Robert Millan  <rmh@gnu.org>
26368         * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26369         (grub_find_zpool_from_mount_point): New function prototypes.
26371         * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26372         * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26374         * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26375         * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this.  Remove
26376         `static' attribute.
26378         * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26379         finding zpool from mount point into ...
26380         * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26382         * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26383         requested path is part of a ZFS pool, use
26384         grub_find_zpool_from_mount_point() to detect its filesystem name,
26385         and generate a path with `/fsname@path' syntax.
26387 2010-08-01  Colin Watson  <cjwatson@ubuntu.com>
26389         * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26390         (void) rather than () so that this is a proper prototype.
26392 2010-08-01  Vladimir Serbinenko  <phcoder@gmail.com>
26394         * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26396 2010-08-01  Vladimir Serbinenko  <phcoder@gmail.com>
26398         * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26399         [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26401 2010-08-01  Colin Watson  <cjwatson@ubuntu.com>
26403         * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26405 2010-08-01  Colin Watson  <cjwatson@ubuntu.com>
26407         * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26409 2010-08-01  Colin Watson  <cjwatson@ubuntu.com>
26411         * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26412         and GRUB_CMDLINE_XEN_DEFAULT.  Recommend setting
26413         GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26414         disable gfxpayload.
26415         (Shell-like scripting): Add real content.
26416         (Serial terminal): Suggest `terminal_input serial; terminal_output
26417         serial' rather than putting the two commands on separate lines,
26418         since console input will be inoperative after the first command.
26419         (menuentry): Document --class, --users, and --hotkey options.
26420         (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26421         Vladimir Serbinenko).
26423 2010-08-01  Vladimir Serbinenko  <phcoder@gmail.com>
26424 2010-08-01  Colin Watson  <cjwatson@ubuntu.com>
26426         * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26428 2010-08-01  Robert Millan  <rmh@gnu.org>
26430         * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26431         (grub_find_zpool_from_mount_point): New function prototypes.
26433         * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26434         * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26436         * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26437         * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this.  Remove
26438         `static' attribute.
26440         * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26441         finding zpool from mount point into ...
26442         * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26444         * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26445         requested path is part of a ZFS pool, use
26446         grub_find_zpool_from_mount_point() to detect its filesystem name,
26447         and generate a path with `/fsname@path' syntax.
26449 2010-08-01  Robert Millan  <rmh@gnu.org>
26451         Prevent accidental use of uninitialized libzfs_handle.
26453         * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26454         * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26455         * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26457 2010-08-01  Colin Watson  <cjwatson@ubuntu.com>
26459         * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26460         util/grub.d/10_linux.in).  Fixes Debian bug #591093.
26462 2010-08-01  Robert Millan  <rmh@gnu.org>
26464         * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26466 2010-07-31  Robert Millan  <rmh@gnu.org>
26468         * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26470 2010-07-31  Robert Millan  <rmh@gnu.org>
26472         * kern/emu/misc.c: Add missing license header.
26474 2010-07-31  Robert Millan  <rmh@gnu.org>
26476         * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26478         * include/grub/util/libnvpair.h: Include `<config.h>'.
26479         [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26480         declaring libnvpair prototypes ourselves.
26481         * include/grub/util/libzfs.h: Include `<config.h>'.
26482         [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26483         declaring libzfs prototypes ourselves.
26485         (libzfs_handle): Moved to ...
26486         * include/grub/util/misc.h (libzfs_handle): ... here.
26487         Include `<grub/util/libzfs.h>'.
26489 2010-07-30  Robert Millan  <rmh@gnu.org>
26491         * include/grub/emu/misc.h: Add missing license header.
26493 2010-07-30  Robert Millan  <rmh@gnu.org>
26495         Enable `grub-probe -t device' resolution on ZFS.
26497         * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26498         * include/grub/util/libnvpair.h: New file.
26499         * include/grub/util/libzfs.h: New file.
26501         * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26502         [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26503         `<grub/util/libnvpair.h>'.
26504         [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26506         (find_mount_point_from_dir): New static function.
26507         [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26508         function.
26509         [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26510         find_root_device_from_libzfs() before ressorting to find_root_device().
26512         * include/grub/util/misc.h (grub_util_init_libzfs): New function
26513         prototype.
26514         * util/misc.c: Include `<grub/util/libzfs.h>'.
26515         (grub_util_init_libzfs): New function.
26516         [HAVE_LIBZFS] (libzfs_handle): New global variable.
26517         [HAVE_LIBZFS] (fini_libzfs): New static function.
26518         (grub_util_init_libzfs): New function.
26519         * util/grub-probe.c (main): Call grub_util_init_libzfs().
26521 2010-07-30  Robert Millan  <rmh@gnu.org>
26523         * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26524         (xmalloc, xrealloc, xstrdup, xasprintf): Add
26525         `warn_unused_result' attribute.
26526         * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26527         (grub_xasprintf, grub_xvasprintf): Likewise.
26528         * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26530 2010-07-29  Robert Millan  <rmh@gnu.org>
26532         * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26533         (probe): Handle `PRINT_FS_LABEL'.
26534         (main): Handle `-t fs_label'.
26536 2010-07-29  Robert Millan  <rmh@gnu.org>
26538         * configure.ac: Remove grub-mkisofs checks.
26540 2010-07-28  Vladimir Serbinenko  <phcoder@gmail.com>
26542         * util/ieee1275/grub-install.in: Don't use empty grub_device.
26543         Reported by: Lennart Sorensen.
26545 2010-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
26547         * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26548         prior to terminal_input/terminal_output separation. It's been over 1.5
26549         years and those versions weren't widely deployed.
26551 2010-07-22  Colin Watson  <cjwatson@ubuntu.com>
26553         * disk/raid.c (insert_array): Don't count named arrays when looking
26554         for unused array numbers.
26555         Reported and tested by: Michael Guntsche.
26557 2010-07-20  Colin Watson  <cjwatson@ubuntu.com>
26559         * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26560         implementation of this so that grub-emu links again, with a note
26561         that this should support hotplugging in the future.
26563 2010-07-20  Colin Watson  <cjwatson@ubuntu.com>
26565         * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26567 2010-07-20  Colin Watson  <cjwatson@ubuntu.com>
26569         * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26570         handle on failure.
26571         (grub_loopback_close): Remove empty function.
26572         (grub_loopback_dev): Remove close method.
26574 2010-07-20  Colin Watson  <cjwatson@ubuntu.com>
26576         Disable EFI cursor when the EFI console becomes inactive.
26578         * term/efi/console.c (grub_efi_console_init): New function.
26579         (grub_efi_console_fini): New function.
26580         (grub_console_term_output): Register init and fini methods.
26582 2010-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
26584         * tests/util/grub-shell-tester.in: Remove bashism and declare as
26585         sh script.
26587 2010-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
26589         * disk/loopback.c (grub_loopback): Replace filename with file.
26590         (delete_loopback): Handle new semantics.
26591         (grub_cmd_loopback): Likewise.
26592         (grub_loopback_iterate): Likewise.
26593         (grub_loopback_close): Likewise.
26595 2010-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
26597         * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26598         with -p "".
26599         Reported by: Tito Keitel.
26601 2010-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
26603         * docs/grub.texi (Naming convention): Document new naming convention.
26605 2010-07-20  Vadim Solomin  <vadic052@gmail.com>
26606 2010-07-20  Colin Watson  <cjwatson@ubuntu.com>
26608         Generate device.map in something closer to the old ordering.
26610         * util/deviceiter.c (struct device): New declaration.
26611         (compare_file_names): Rename to ...
26612         (compare_devices): ... this.  Sort by kernel name in preference to
26613         the stable by-id name, but keep the latter as a fallback comparison.
26614         Update header comment.
26615         (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26616         of `struct device' rather than of plain file names.
26618 2010-07-20  Thomas Frauendorfer  <Thomas.Frauendorfer@googlemail.com>
26620         * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26621         on i386.
26623 2010-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
26625         * commands/acpi.c (setup_common_tables): Use sizeof instead of
26626         hardcoding size.
26627         (setv1table): Likewise.
26629 2010-07-20  Colin Watson  <cjwatson@ubuntu.com>
26631         * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26632         removing the homehost if present.
26633         * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26634         (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26635         removing the homehost if present.
26636         (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26637         if possible.
26638         * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26640         * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26641         parameter.  Set its pointer target to 0.
26642         * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26643         parameter.  Set its pointer target to 0 for 0.9 metadata, or to the
26644         `data_offset' value from the superblock for 1.x metadata.
26645         * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26646         data on the device.
26647         (insert_array): Record the start sector of data on the device.
26648         (grub_raid_register): Pass start_sector parameters to
26649         grub_raid_list->detect and insert_array.
26650         * include/grub/raid.h (struct grub_raid_array): Add start_sector
26651         member.
26652         (struct grub_raid): Add start_sector parameter to `detect'.
26654         * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26655         __attribute__ ((packed)), leaving a comment.
26656         (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26657         (grub_mdraid_detect_09): ... here and ...
26658         (grub_mdraid_detect_1x): ... here.
26660 2010-07-20  Peter Henn  <peter.henn@web.de>
26662         * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26663         chunk size and disk size, which are already given as sector counts
26664         as distinct from the 0.90 units.  Fetch the correct device number
26665         from the role table instead of using the table index.
26667 2010-07-20  Felix Zielcke  <fzielcke@z-51.de>
26669         * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26670         * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26671         (WriteMostly1): New macro.
26672         Set array->name to NULL for metadata format 0.90.  Add support for
26673         metadata 1.x.  Fix some comments.
26674         * disk/raid.c (): Add support for name based RAID arrays.  Fix a
26675         few comments.
26676         * util/getroot.c (grub_util_get_grub_dev): Add support for
26677         /dev/md/name style devices.
26679 2010-07-20  Colin Watson  <cjwatson@ubuntu.com>
26681         * .bzrignore: Ignore 20_linux_xen.
26683 2010-07-17  Colin Watson  <cjwatson@ubuntu.com>
26685         * util/import_unicode.py: Remove unnecessary imports.
26687 2010-07-17  Aleš Nesrsta <starous@volny.cz>
26689         Hotplugging and USB hub support.
26691         * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26692         (grub_ohci): Likewise.
26693         (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26694         (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26695         (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26696         (GRUB_OHCI_CTRL_EDS): Likewise.
26697         (GRUB_OHCI_BULK_EDS): Likewise.
26698         (GRUB_OHCI_TDS): Likewise.
26699         (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26700         (grub_ohci_ed_phys2virt): New function.
26701         (grub_ohci_virt_to_phys): Likewise.
26702         (grub_ohci_td_phys2virt): Likewise.
26703         (grub_ohci_td_virt2phys): Likewise.
26704         (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26705         attachment.
26706         (grub_ohci_find_ed): New function.
26707         (grub_ohci_alloc_td): Likewise.
26708         (grub_ohci_free_td): Likewise.
26709         (grub_ohci_free_tds): Likewise.
26710         (grub_ohci_transfer): Use previously allocated memory.
26711         (grub_ohci_portstatus): Reset status changed bit.
26712         (grub_ohci_detect_dev): Supply status changed.
26713         (grub_ohci_fini_hw): Free memory.
26714         (grub_ohci_restore_hw): Reallocate memory.
26715         * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26716         Reset status change.
26717         (grub_uhci_detect_dev): Supply status_change.
26718         * bus/usb/usb.c (attach_hooks): New var.
26719         (grub_usb_device_attach): New function.
26720         (grub_usb_register_attach_hook_class): Likewise.
26721         (grub_usb_unregister_attach_hook_class): Likewise.
26722         * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26723         (grub_usb_add_hub): Reset connection changed bit.
26724         (attach_root_port): New function.
26725         (grub_usb_root_hub): Likewise.
26726         (poll_nonroot_hub): Likewise.
26727         (grub_usb_poll_devices): Likewise.
26728         * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26729         * disk/usbms.c (grub_usbms_open): Use device hooks.
26730         (grub_usbms_iterate) :Poll devices.
26731         (grub_usbms_finddevs): Split into ...
26732         (grub_usbms_attach): ... this ...
26733         (grub_usbms_attach): ... and this.
26734         * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26735         in detect_dev.
26736         (grub_usb_interface): New fields attached and detach_hook.
26737         (grub_usb_attach_hook_class): New type.
26738         (grub_usb_attach_desc): New struct.
26739         (grub_usb_register_attach_hook_class): New function.
26740         (grub_usb_unregister_attach_hook_class): Likewise.
26741         (grub_usb_poll_devices): Likewise.
26742         (grub_usb_device_attach): Likewise.
26743         * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26744         (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26746 2010-07-17  Vladimir Serbinenko  <phcoder@gmail.com>
26748         * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26749         * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26750         delta determination style. Works with most NetBSD partitions too.
26752 2010-07-17  Vladimir Serbinenko  <phcoder@gmail.com>
26754         * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26755         * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26757 2010-07-17  Vladimir Serbinenko  <phcoder@gmail.com>
26759         * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26761 2010-07-14  Anton Blanchard  <anton@samba.org>
26763         * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26764         ET_DYN files.
26766 2010-07-14  Grégoire Sutre  <gregoire.sutre@gmail.com>
26768         * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26770 2010-07-14  Grégoire Sutre  <gregoire.sutre@gmail.com>
26772         * kern/partition.c (grub_partition_check_containment): New function to
26773         check that a partition is physically contained in a parent.  Since
26774         offsets are relative (and non-negative), this reduces to checking that
26775         the partition ends before its parent.
26776         (grub_partition_map_probe): Discard out-of-range sub-partitions.
26777         (grub_partition_iterate): Likewise.
26778         * include/grub/partition.h (grub_partition_map): Slightly more detailed
26779         comments.
26780         * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26781         partitions that start before their parent, and add debug printfs.
26783 2010-07-13  Colin Watson  <cjwatson@ubuntu.com>
26785         * Makefile.in (.SUFFIX): Spell correctly, as ...
26786         (.SUFFIXES): ... this.  Fixes bug where `make foo' (where foo is a
26787         bare module name without `.mod', e.g. `test') tried to invoke a
26788         Modula-2 compiler.
26790 2010-07-13  Colin Watson  <cjwatson@ubuntu.com>
26792         * README: Point to the Info manual.
26794 2010-07-13  Jiro SEKIBA <jir@unicus.jp>
26796         * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26797         2nd superblock position from partition size.
26799 2010-07-10  Colin Watson  <cjwatson@ubuntu.com>
26801         * Makefile.in (MAINTAINER_CLEANFILES): Remove
26802         unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26803         unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26804         outputs.
26806 2010-07-10  Vladimir Serbinenko  <phcoder@gmail.com>
26808         Restructure SCSI .id handling.
26809         Reported and tested by: Aleš Nesrsta.
26811         * disk/ata.c (grub_atapi_close): Removed. All users updated.
26812         (grub_atapi_dev): Changed .name to "ata". New field .id.
26813         * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26814         (grub_usbms_dev): New field .id.
26815         * disk/scsi.c (grub_scsi_iterate): Generate name.
26816         (grub_scsi_open): Parse name.
26817         * include/grub/scsi.h (grub_make_scsi_id): New function.
26818         (grub_scsi_dev): Change iterate and open to number instead of naming
26819         busses. All users updated.
26820         (grub_scsi): Remove name. Add .bus.
26822 2010-07-10  Vladimir Serbinenko  <phcoder@gmail.com>
26824         * commands/help.c (grub_cmd_help): Fix a typo.
26826 2010-07-10  Vladimir Serbinenko  <phcoder@gmail.com>
26828         * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26829         Reported and tested by: Colin Watson.
26831 2010-07-10  Vladimir Serbinenko  <phcoder@gmail.com>
26833         * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26834         in this context.
26836 2010-07-07  Vladimir Serbinenko  <phcoder@gmail.com>
26838         * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26840 2010-07-07  Colin Watson  <cjwatson@ubuntu.com>
26842         * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26843         indentation.
26845 2010-07-06  Colin Watson  <cjwatson@ubuntu.com>
26847         * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26848         and disk/raid6_recover.c.
26849         * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26850         * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26852 2010-07-06  Colin Watson  <cjwatson@ubuntu.com>
26854         * term/gfxterm.c (repaint_schedulded): Rename to ...
26855         (repaint_scheduled): ... this.  Update all callers.
26856         (repaint_was_schedulded): Rename to ...
26857         (repaint_was_scheduled): ... this.  Update all callers.
26859 2010-07-06  Colin Watson  <cjwatson@ubuntu.com>
26861         * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26862         which we expect to be handled by upper layers.
26864 2010-07-06  BVK Chaitanya  <bvk.groups@gmail.com>
26866         * bus/usb/usbhub.c: #include time.h header.
26868 2010-07-06  Colin Watson  <cjwatson@ubuntu.com>
26870         * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26871         entry_name also for entries without stat blocks (e.g. ".."); fixes
26872         corruption of the first entry in a directory.
26874 2010-07-06  Colin Watson  <cjwatson@ubuntu.com>
26876         * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26877         after setting gfxterm as the active terminal.  GRUB_BACKGROUND
26878         doesn't work otherwise.
26880 2010-07-05  Colin Watson  <cjwatson@ubuntu.com>
26882         * docs/grub.texi (Features): Update list of supported file systems.
26883         (GNU/Linux): Update for GRUB 2.
26884         (Serial terminal): Remove mention of --disable-serial, which was a
26885         GRUB Legacy configure option.  Update instructions to use
26886         `terminal_input' and `terminal_output' rather than `terminal'.
26887         (Vendor power-on keys): Copy-edit.  Add cross-references to `Simple
26888         configuration' and `Installing GRUB using grub-install'.
26889         (Menu entry editor): Update for GRUB 2.
26890         (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26891         Document new -a, -u, and -v options.
26892         (initrd): New section.
26893         (initrd16): New section.
26894         (linux): New section.
26895         (linux16): New section.
26896         (search): The `var' argument to `--set' is optional.
26897         (GRUB only offers a rescue shell): Go into a little more detail on
26898         drive ordering.
26900 2010-07-05  Colin Watson  <cjwatson@ubuntu.com>
26902         * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26904 2010-07-05  Colin Watson  <cjwatson@ubuntu.com>
26906         * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26907         unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26909 2010-07-05  Colin Watson  <cjwatson@ubuntu.com>
26911         * util/i386/pc/grub-setup.c (setup): Rename prefix to
26912         install_prefix, in line with install_dos_part and install_bsd_part.
26913         Add new prefix variable, which is copied to install_prefix after
26914         comparing core.img in memory with the one read from disk in the
26915         no-embedding case, and use that rather than overwriting
26916         install_prefix immediately when installing to a partition.
26917         Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26918         Bicakci.
26920 2010-07-04  Grégoire Sutre  <gregoire.sutre@gmail.com>
26922         * configure.ac: Avoid == in test command, it's not portable.
26923         * util/grub.d/30_os-prober.in: Likewise.
26925 2010-07-04  Colin Watson  <cjwatson@ubuntu.com>
26927         * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26929 2010-07-04  Grégoire Sutre  <gregoire.sutre@gmail.com>
26931         * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26932         multiple (top-level) partmaps.
26934 2010-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
26936         * util/i386/efi/grub-install.in: Don't use empty grub_device.
26937         Reported by: Tino Keitel.
26939 2010-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
26941         Bidi and diacritics support.
26943         * Makefile.in (widthspec.bin): New target.
26944         (widthspec.h): Likewise.
26945         (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26946         * autogen.sh: Generate unidata.c.
26947         * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26948         * commands/ls.c (grub_ls_list_devices): Likewise.
26949         (grub_ls_list_files): Likewise.
26950         * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26951         (grub_mini_cmd_lsmod): Likewise.
26952         * commands/read.c: Likewise.
26953         * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26954         * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26955         * lib/arg.c (grub_arg_show_help): Likewise.
26956         * lib/crypto.c (grub_password_get): Likewise.
26957         * normal/auth.c (grub_username_get): Likewise.
26958         * normal/misc.c (grub_normal_print_device_info): Likewise.
26959         * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26960         * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26961         (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26962         (normal/charset.c_DEPENDENCIES): New variable.
26963         (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26964         (pkglib_MODULES): Remove charset.mod.
26965         (charset_mod_SOURCES): Removed.
26966         (charset_mod_CFLAGS): Likewise.
26967         (charset_mod_LDFLAGS): Likewise.
26968         (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26969         * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26970         and term/tparm.c.
26971         * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26972         * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26973         (kernel_img_HEADERS): Add terminfo.h.
26974         * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26975         Fill ->font. Reverse ascii bitmaps.
26976         (grub_font_get_xheight): New function.
26977         * font/font.c (grub_font_get_string_width): Moved from here ...
26978         * gfxmenu/font.c (grub_font_get_string_width): ... here.
26979         * font/font.c (grub_font_draw_string): Moved from here ...
26980         * gfxmenu/font.c (grub_font_draw_string): ... here.
26981         * font/font.c (grub_font_dup_glyph): New function.
26982         (grub_font_blit_glyph): Likewise.
26983         (grub_font_blit_glyph_mirror): Likewise.
26984         (blit_comb): Likewise.
26985         (grub_font_construct_dry_run): Likewise.
26986         (grub_font_get_constructed_device_width): Likewise.
26987         (grub_font_construct_glyph): Likewise.
26988         * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26989         * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26990         * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26991         * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26992         (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26993         (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26994         (grub_font_get_xheight): New proto.
26995         (grub_font_get_constructed_device_width): Likewise.
26996         (grub_font_construct_glyph): Likewise.
26997         * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26998         * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26999         * include/grub/font.h (grub_font_draw_string): Moved from here ...
27000         * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
27001         * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
27002         * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
27003         * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
27004         (grub_console_getcharwidth): Likewise.
27005         * include/grub/misc.h (grub_xputs): New proto.
27006         (grub_puts): Inlined.
27007         * include/grub/normal.h (grub_print_ucs4): Add margin specification.
27008         (grub_normal_get_line_counter): Removed.
27009         (grub_install_newline_hook): Likewise.
27010         (grub_normal_get_char_counter): New proto.
27011         (grub_normal_reset_more): Likewise.
27012         (grub_xputs_normal): Likewise.
27013         * include/grub/powerpc/ieee1275/console.h: Removed.
27014         * include/grub/sparc64/ieee1275/console.h: Likewise.
27015         * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
27016         (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
27017         (GRUB_TERM_CODE_TYPE_CP437): Likewise.
27018         (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
27019         (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
27020         (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
27021         (grub_term_input): Pass reference to self. All users updated.
27022         (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
27023         Pass reference to self. New fields normal_color, highlight_color and
27024         data. All users updated.
27025         (grub_putchar): Removed.
27026         (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
27027         (grub_unicode_estimate_width): New function.
27028         (grub_term_getcharwidth): Add defaults.
27029         (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
27030         (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
27031         (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
27032         (grub_cls): Remove EXPORT_FUNC.
27033         (grub_setcolorstate): Inline.
27034         (grub_newline_hook): Removed.
27035         * include/grub/terminfo.h: Rewritten. All users updated.
27036         * include/grub/unicode.h: New file.
27037         * include/grub/video.h (grub_video_signed_rect): New type.
27038         * kern/emu/console.c (grub_console_highlight_color): Removed.
27039         (grub_console_normal_color): Likewise.
27040         (grub_console_standard_color): Made static.
27041         (grub_ncurses_putchar): Remove mapping.
27042         (grub_ncurses_getcharwidth): Removed.
27043         (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27044         (grub_ncurses_setcolor): Removed.
27045         (grub_ncurses_getcolor): Likewise.
27046         * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
27047         (grub_console_putchar): ... this.
27048         (grub_console_putchar): Handle argument difference.
27049         * kern/ieee1275/init.c (grub_machine_init): Split console_init into
27050         console_init_early and console_init_lately.
27051         * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
27052         * kern/misc.c (grub_puts): Removed.
27053         (grub_vprintf): Store UTF-8 string instead of outputting it directly.
27054         (grub_vsnprintf_real): Remove str = NULL support.
27055         * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
27056         * normal/charset.c (grub_utf8_to_ucs4): ... here.
27057         * kern/term.c (grub_putcode): Renamed to ...
27058         (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
27059         (grub_putchar): Removed.
27060         (grub_xputs_dumb): New function.
27061         (grub_xputs): New variable.
27062         * lib/charset.c: Move from here ...
27063         * normal/charset.c: ... to here.
27064         (grub_ucs4_to_utf8): New function.
27065         (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
27066         (join_types): New variable.
27067         (unpack_join): New function.
27068         (bidi_types): New variable.
27069         (unpack_bidi): New function.
27070         (get_bidi_type): Likewise.
27071         (get_join_type): Likewise.
27072         (is_mirrored): Likewise.
27073         (grub_unicode_get_comb_type): Likewise.
27074         (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
27075         (is_type_after): Likewise.
27076         (grub_unicode_aglomerate_comb): Likewise.
27077         (bidi_line_wrap): Likewise.
27078         (grub_bidi_line_logical_to_visual): Likewise.
27079         (grub_bidi_logical_to_visual): Likewise.
27080         (grub_unicode_mirror_code): Likewise.
27081         (grub_unicode_shape_code): Likewise.
27082         * normal/cmdline.c (grub_cmdline_get): Reset more counter.
27083         Don't use grub_putchar.
27084         * normal/main.c (grub_normal_init_page): Use grub_putcode.
27085         (grub_normal_reader_init): Likewise.
27086         (grub_xputs_saved): New variable.
27087         (GRUB_MOD_INIT): Set grub_xputs.
27088         (GRUB_MOD_FINI): Restore grub_xputs.
27089         * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
27090         (menu_init): Avoid printing gfxmenu error.
27091         (show_menu): Use grub_normal_get_char_counter.
27092         * normal/menu_entry.c (update_screen): Fix out-of-array.
27093         (complete): Avoid NULL dereferencing.
27094         * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
27095         * normal/menu_text.c (print_spaces): Removed.
27096         (grub_print_ucs4): Likewise.
27097         (grub_print_message_indented): Use grub_print_ucs4.
27098         (print_message): Use grub_putcode.
27099         (print_entry): Hanlde diacritics.
27100         * normal/term.c (term_state): New type.
27101         (grub_more_lines): Removed.
27102         (term_states): New variable.
27103         (grub_normal_line_counter): Renamed to ..
27104         (grub_normal_char_counter): ...this. All users updated.
27105         (grub_normal_get_line_counter): Renamed to ...
27106         (grub_normal_get_char_counter): ... this.
27107         (grub_normal_reset_more): New function.
27108         (process_newline): Removed.
27109         (print_more): New function.
27110         (grub_install_newline_hook): Removed.
27111         (map_code): New function.
27112         (grub_puts_terminal): Use grub_print_ucs4.
27113         (putglyph): New function.
27114         (putcode_real): Likewise.
27115         (grub_putcode): Use putcode_real.
27116         (get_maxwidth): New function.
27117         (get_startwidth): Likewise.
27118         (print_ucs4_terminal): Likewise.
27119         (find_term_state): Likewise.
27120         (put_glyphs_terminal): Likewise.
27121         (print_backlog): Likewise.
27122         (print_ucs4_real): Likewise.
27123         (grub_print_ucs4): Likewise.
27124         (grub_xputs_normal): Likewise.
27125         * term/efi/console.c (grub_console_putchar): Output diacritics.
27126         (grub_console_getcharwidth): Removed.
27127         (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27128         * term/gfxterm.c (clear_char): Free chars.
27129         (scroll_up): Avoid leaking memory.
27130         (grub_gfxterm_putchar): Support diacritics.
27131         (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27132         * term/i386/pc/console.c (grub_console_term_output): Declare as
27133         GRUB_TERM_CODE_TYPE_VGA.
27134         * term/i386/pc/vga.c (grub_vga_term): Declare as
27135         GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27136         * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27137         GRUB_TERM_CODE_TYPE_VGA.
27138         * term/i386/vga_common.c (map_char): Removed.
27139         (grub_console_putchar): Likewise.
27140         (grub_console_getcharwidth): Likewise.
27141         * term/ieee1275/ofconsole.c: Simplify using terminfo.
27142         (colors): Reordered to match terminfo.
27143         (grub_ofconsole_normal_color): Removed.
27144         (grub_ofconsole_writeesc): Likewise.
27145         (grub_ofconsole_highlight_color): Likewise.
27146         (grub_ofconsole_getcharwidth): Likewise.
27147         (grub_ofconsole_setcolorstate): Likewise.
27148         (grub_ofconsole_setcolor): Likewise.
27149         (grub_ofconsole_getcolor): Likewise.
27150         (grub_ofconsole_readkey): Renamed to ...
27151         (readkey): ... this. Remove escape sequence handling. Return -1 on no
27152         key.
27153         (grub_ofconsole_checkkey): Removed.
27154         (grub_ofconsole_getkey): Likewise.
27155         (grub_ofconsole_getxy): Likewise.
27156         (grub_ofconsole_gotoxy): Likewise.
27157         (grub_ofconsole_cls): Likewise.
27158         (grub_ofconsole_refresh): Likewise.
27159         (grub_ofconsole_terminfo_input): New struct.
27160         (grub_ofconsole_terminfo_output): Likewise.
27161         (grub_ofconsole_term_input): Use terminfo.
27162         (grub_ofconsole_term_output): Likewise.
27163         (grub_console_init): Split into ...
27164         (grub_console_init_early): ...this and ...
27165         (grub_console_init_lately): ...this. Use terminfo.
27166         (grub_ofconsole_putchar): Renamed to ...
27167         (put): ... this. Remove mapping.
27168         (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27169         * term/serial.c: Simplify using terminfo.
27170         (xpos): Removed.
27171         (ypos): Likewise.
27172         (keep_track): Likewise.
27173         (registered): Likewise.
27174         (input_buf): Likewise.
27175         (npending): Likewise.
27176         (serial_translate_key_sequence): Likewise.
27177         (fill_input_buf): Likewise.
27178         (grub_serial_checkkey): Likewise.
27179         (grub_serial_getkey): Likewise.
27180         (grub_serial_getxy): Likewise.
27181         (grub_serial_gotoxy): Likewise.
27182         (grub_serial_putchar): Likewise.
27183         (grub_serial_cls): Likewise.
27184         (grub_serial_setcolorstate): Likewise.
27185         (grub_serial_setcursor): Likewise.
27186         (serial_hw_init): Use serial_hw_fetch.
27187         (grub_serial_terminfo_input): New variable.
27188         (grub_serial_terminfo_output): Likewise.
27189         (grub_serial_term_input): Use terminfo.
27190         (grub_serial_term_output): Likewise.
27191         * term/terminfo.c (putstr): Use put.
27192         (grub_terminfo_all_free): New function
27193         (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27194         (grub_terminfo_output_register): New function.
27195         (grub_terminfo_output_unregister): Likewise.
27196         (grub_terminfo_getxy): Likewise.
27197         (grub_terminfo_readkey): Likewise.
27198         (grub_terminfo_checkkey): Likewise.
27199         (grub_terminfo_getkey): Likewise.
27200         (grub_terminfo_input_init): Likewise.
27201         (print_terminfo): Likewise.
27202         (grub_cmd_terminfo): Handle encoding.
27203         (grub_terminfo_gotoxy): Track position.
27204         (grub_terminfo_cls): Likewise.
27205         (grub_terminfo_putchar): Likewise.
27206         (grub_terminfo_setcolorstate): Handle colors
27207         (grub_terminfo_cursor_on): This ...
27208         (grub_terminfo_cursor_off): ... and this merged into ...
27209         (grub_terminfo_setcursor): ... this.
27210         * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27211         * unicode/ArabicShaping.txt: New file (imported from Unicode).
27212         * unicode/BidiMirroring.txt: Likewise.
27213         * unicode/UnicodeData.txt: Likewise.
27214         * unicode/COPYING: Likewise.
27215         * util/grub-editenv.c (grub_putchar): Removed.
27216         (grub_xputs_real): New function.
27217         (grub_xputs): New variable.
27218         * util/grub-fstest.c (grub_putchar): Removed.
27219         (grub_xputs_real): New function.
27220         (grub_xputs): New variable.
27221         * util/grub-mkdevicemap.c (grub_putchar): Removed.
27222         (grub_xputs_real): New function.
27223         (grub_xputs): New variable.
27224         * util/grub-probe.c (grub_putchar): Removed.
27225         (grub_xputs_real): New function.
27226         (grub_xputs): New variable.
27227         * util/grub-script-check.c (grub_putchar): Removed.
27228         (grub_xputs_real): New function.
27229         (grub_xputs): New variable.
27230         * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27231         (grub_xputs_real): New function.
27232         (grub_xputs): New variable.
27233         * util/import_unicode.py: New file.
27234         * util/grub-mkfont.c (ft_errmsgs): New array.
27235         (grub_glyph_info): Make bitmap a pointer.
27236         (file_formats): New type WIDTH_SPEC.
27237         (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27238         (options): Add width-spec.
27239         (help): Likewise.
27240         (add_char): Renamed to ...
27241         (add_glyph): ... this.
27242         (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27243         (glyph_replace): New type.
27244         (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27245         (add_char): New function.
27246         (add_subst): Likewise.
27247         (process_cursive): Likewise.
27248         (add_font): Handle GSUB.
27249         (write_font_width_spec): New function.
27250         (main): Sort glyphs.
27251         * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27252         * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27253         * kern/term.c (grub_cls): Moved from here...
27254         * normal/term.c (grub_cls): ... here.
27256 2010-07-02  Colin Watson  <cjwatson@ubuntu.com>
27258         * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27259         suitable for using within the format argument of printf when
27260         converting grub_size_t.
27261         * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27262         "x" to convert grub_size_t arguments.
27264 2010-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
27266         * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27267         too long captions.
27268         (list_get_minimal_size): Take selection box into account.
27270 2010-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
27272         * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27273         NULL font.
27275 2010-07-02  Colin Watson  <cjwatson@ubuntu.com>
27277         * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27278         devices when iterating over /dev/disk/by-id; they will be handled
27279         later if appropriate, which they aren't always (e.g. LVM).
27281 2010-07-02  Colin Watson  <cjwatson@ubuntu.com>
27283         * include/grub/misc.h (grub_reboot): Declare as noreturn.
27284         * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27285         fails.
27286         (grub_halt): Likewise.
27287         * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27288         reset-all fails.
27289         (grub_halt): Don't return, even if all of shut-down, power-off, and
27290         poweroff fail.
27292 2010-07-02  Colin Watson  <cjwatson@ubuntu.com>
27294         * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27295         arguments, not three.
27297 2010-07-02  Colin Watson  <cjwatson@ubuntu.com>
27299         * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27300         * util/grub.d/10_linux.in: Use it to check for LVM, so that
27301         LVM-on-RAID is handled correctly.
27303 2010-07-02  Colin Watson  <cjwatson@ubuntu.com>
27305         * docs/grub.texi (Changes from GRUB Legacy): New section.
27306         (Future): Fix typo.
27308 2010-07-02  Colin Watson  <cjwatson@ubuntu.com>
27310         * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27311         grub.d/README accidentally ends up executable for one reason or
27312         another.  Ignore it.
27314 2010-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
27316         * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27317         (gpt_partition_map_iterate): Support non-512B sectors.
27319 2010-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
27321         * kern/efi/init.c (grub_efi_init): Disable watchdog.
27322         Tested by: Seth Goldberg.
27324 2010-07-02  Vladimir Serbinenko  <phcoder@gmail.com>
27326         * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27327         Properly align mbi.
27328         Reported by: Seth Goldberg.
27330 2010-07-01  Vladimir Serbinenko  <phcoder@gmail.com>
27332         * util/grub-mkrescue.in: Avoid module duplication.
27334 2010-07-01  Sean Finney  <seanius@seanius.net>
27336         * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27338 2010-07-01  Sean Finney  <seanius@seanius.net>
27340         * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27342 2010-07-01  Vladimir Serbinenko  <phcoder@gmail.com>
27344         * disk/lvm.c (grub_lvm_checkvalue): New function.
27345         (grub_lvm_check_flag): Likewise.
27347 2010-07-01  Robert Millan  <rmh@gnu.org>
27349         * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27350         Support 'p' as partition separator on kernel of FreeBSD (used
27351         with GPT labels).
27352         (grub_util_biosdisk_get_grub_dev): Likewise.
27354 2010-07-01  Vladimir Serbinenko  <phcoder@gmail.com>
27356         Yeeloong firmware port.
27358         * boot/mips/yeeloong/fwstart.S: New file.
27359         * bus/cs5536.c (gpiodump): New const.
27360         (set_io_space): New function.
27361         (set_iod): Likewise.
27362         (set_p2d): Likewise.
27363         (grub_cs5536_init_geode): Likewise.
27364         * commands/mips/yeeloong/lsspd.c: New file.
27365         * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27366         (serial_mod_SOURCES): New variable.
27367         (serial_mod_CFLAGS): Likewise.
27368         (serial_mod_LDFLAGS): Likewise.
27369         * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27370         term/terminfo.c and term/tparm.c.
27371         (pkglib_IMAGES): Add fwstart.img.
27372         (fwstart_img_SOURCES): New variable.
27373         (fwstart_img_CFLAGS): Likewise.
27374         (fwstart_img_ASFLAGS): Likewise.
27375         (fwstart_img_LDFLAGS): Likewise.
27376         (fwstart_img_FORMAT): Likewise.
27377         (pkglib_MODULES): Add lsspd.mod.
27378         (lsspd_mod_SOURCES): New variable.
27379         (lsspd_mod_CFLAGS): Likewise.
27380         (lsspd_mod_LDFLAGS): Likewise.
27381         (pkglib_MODULES): Add halt.mod.
27382         (halt_mod_SOURCES): New variable.
27383         (halt_mod_CFLAGS): Likewise.
27384         (halt_mod_LDFLAGS): Likewise.
27385         * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27386         (serial_mod_SOURCES): Removed.
27387         (serial_mod_CFLAGS): Likewise.
27388         (serial_mod_LDFLAGS): Likewise.
27389         * disk/ata.c (check_device): New function.
27390         (grub_ata_device_initialize): Use check_device.
27391         (grub_ata_iterate): Recheck devices.
27392         (grub_ata_open): Likewise.
27393         (grub_atapi_iterate): Likewise.
27394         (grub_atapi_open): Likewise.
27395         * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27396         (GRUB_ATA_CH1_PORT1): Likewise.
27397         (GRUB_ATA_CH0_PORT2): Likewise.
27398         (GRUB_ATA_CH1_PORT2): Likewise.
27399         * include/grub/mips/loongson.h: New file.
27400         * include/grub/mips/yeeloong/ec.h: Likewise.
27401         * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27402         (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27403         (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27404         * include/grub/misc.h (grub_halt): Declare as noreturn.
27405         * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27406         (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27407         (UART_ENABLE_FIFO_TRIGGER1): New definition.
27408         (UART_ENABLE_DTRRTS): Likewise.
27409         (UART_ENABLE_MODEM): Removed.
27410         (UART_ENABLE_OUT2): New const.
27411         * include/grub/term.h (grub_term_register_input_active): New function.
27412         (grub_term_register_output_active): Likewise.
27413         * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27414         argument.
27415         * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27416         (init_pci): New function.
27417         (grub_machine_init): Execute platform init when firmware. Init serial.
27418         (grub_halt): Implement.
27419         (grub_exit): Likewise.
27420         (grub_reboot): Likewise.
27421         * term/serial.c (serial_hw_init): Update macros.
27422         [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27423         * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27424         (image_targets): New target mipsel-yeeloong-flash.
27425         (generate_image): Support IMAGE_YEELOONG_FLASH.
27426         * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27427         (grub_video_sm712_setup): Init card.
27428         (grub_video_sm712_set_palette): Removed.
27429         * video/sm712_init.c: New file.
27431 2010-06-30  Colin Watson  <cjwatson@ubuntu.com>
27433         * Makefile.in (install-local): Temporarily prepend $(builddir) to
27434         PATH when running help2man and then run it on the unadorned
27435         executable names, rather than passing $(builddir)/* paths to
27436         help2man.  This avoids the build directory ending up in generated
27437         manual pages.
27439 2010-06-29  Colin Watson  <cjwatson@ubuntu.com>
27441         * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27442         to avoid accidents when debugging with 'sh -x'.
27443         * util/grub-mkrescue.in: Likewise.
27444         * util/grub.d/00_header.in: Likewise.
27445         * util/grub.d/10_hurd.in: Likewise.
27446         * util/grub.d/10_kfreebsd.in: Likewise.
27447         * util/grub.d/10_linux.in: Likewise.
27448         * util/grub.d/10_netbsd.in: Likewise.
27449         * util/grub.d/10_windows.in: Likewise.
27450         * util/grub.d/20_linux_xen.in: Likewise.
27451         * util/grub.d/30_os-prober.in: Likewise.
27452         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27454 2010-06-29  Colin Watson  <cjwatson@ubuntu.com>
27456         * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27457         last character in the buffer.
27458         Reported by: Vladimir Serbinenko.
27460 2010-06-29  Robert Millan  <rmh@gnu.org>
27462         * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27463         (Command-line and menu entry commands): Document `badram' command.
27465 2010-06-28  Robert Millan  <rmh@gnu.org>
27467         * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27468         * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27469         command using ${GRUB_BADRAM} as parameter.
27471 2010-06-28  Colin Watson  <cjwatson@ubuntu.com>
27473         * docs/grub.texi (Device map): New section.
27474         (Themes): New section (stub).
27475         * Makefile.in (docs/grub.info): The info documentation now builds
27476         without errors.  Make sure it stays that way.
27478 2010-06-28  Vladimir Serbinenko  <phcoder@gmail.com>
27480         Use normal parser for menu entries.
27481         Reported by: Thomas Frauendorfer
27483         * include/grub/parser.h (grub_parser_execute): Don't export.
27484         * normal/menu.c (grub_menu_execute_entry_real): New function.
27485         (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27487 2010-06-28  Colin Watson  <cjwatson@ubuntu.com>
27489         * docs/grub.texi (Embedded configuration): New section (replacing
27490         old "Preset Menu" stub).
27491         (Images): New section.
27492         (configfile): Note that any menu entries defined in `file' are shown
27493         immediately.
27495 2010-06-28  Josh Triplett  <josh@joshtriplett.org>
27497         * mmap/i386/pc/mmap_helper.S: Set CF on return.
27499 2010-06-28  Colin Watson  <cjwatson@ubuntu.com>
27501         * util/grub-install.in: Add --debug-image= option.
27503 2010-06-28  Colin Watson  <cjwatson@ubuntu.com>
27505         Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27506         possible on Linux.
27508         * util/deviceiter.c (check_device): Rename to ...
27509         (check_device_readable_unique): ... this.  Update all callers.
27510         Maintain and check a list of which devices (by canonicalized name)
27511         have already been seen.
27512         (clear_seen_devices): New function.
27513         (compare_file_names) [__linux__]: New function.
27514         (grub_util_iterate_devices): Clear the list of seen devices on exit
27515         and (just in case) on entry.
27516         (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27517         devices in /dev/disk/by-id/, in sorted order.  Remove DM-RAID
27518         seen-devices list, superseded by general code in check_device.
27520 2010-06-28  Colin Watson  <cjwatson@ubuntu.com>
27522         * commands/cat.c (options): New variable.
27523         (grub_cmd_cat): Parse options.  If the --dos option is given, print
27524         DOS-style "\r\n" line endings as simple newlines (Debian bug
27525         #586358).
27526         (GRUB_MOD_INIT): Use extcmd.
27527         (GRUB_MOD_FINI): Likewise.
27528         * docs/grub.texi (cat): Document --dos.
27530 2010-06-28  Vladimir Serbinenko  <phcoder@gmail.com>
27532         XEN with Linux grub-mkconfig support.
27534         * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27535         * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27536         GRUB_CMDLINE_XEN_DEFAULT.
27537         * util/grub.d/20_linux_xen.in: New file.
27539 2010-06-28  Vladimir Serbinenko  <phcoder@gmail.com>
27541         Initialise VGA video on qemu ourselves.
27543         * boot/i386/qemu/boot.S: Don't call 0xc000.
27544         * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27545         (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27546         (kernel_img_HEADERS): Add pci.h.
27547         * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27548         * configure.ac: Force unifont on qemu and yeeloong.
27549         * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27550         (grub_vga_palette_write): Use correct register.
27551         * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27552         Call grub_qemu_init_cirrus.
27553         * kern/i386/qemu/init.c: New file.
27554         * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27556         * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27558 2010-06-26  Pavel Roskin  <proski@gnu.org>
27560         * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27561         13.
27563 2010-06-26  Colin Watson  <cjwatson@ubuntu.com>
27565         * docs/grub.texi (Simple configuration): Explain that
27566         GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27567         set to `true' to disable their respective recovery entries, not
27568         merely set.
27570 2010-06-26  Colin Watson  <cjwatson@ubuntu.com>
27572         Make the `source' command slightly faster.
27574         * normal/main.c (grub_normal_execute): Don't re-read list files when
27575         nested.
27577 2010-06-23  Colin Watson  <cjwatson@ubuntu.com>
27579         * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27580         field position and mask size to red fields from mode_info, not
27581         green.
27582         * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27583         Remove redundant tag->common.framebuffer_type assignment.
27584         Reported by: Seth Goldberg.
27586 2010-06-23  Colin Watson  <cjwatson@ubuntu.com>
27588         Sync up other versions of the Linux loader with Robert Millan's
27589         change of 2010-01-09, "Make loader output a bit more user-friendly".
27591         * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27592         grub_dprintf().
27593         (grub_cmd_linux): Likewise.
27594         (grub_cmd_initrd): Likewise.
27595         * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27596         * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27598 2010-06-21  Colin Watson  <cjwatson@ubuntu.com>
27600         * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27601         larger than MEMORY_MAP_SIZE.
27603 2010-06-21  BVK Chaitanya  <bvk.groups@gmail.com>
27605         Fix parallel build.
27607         * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27608         dependency.
27609         * script/parser.y: #include grub_script.tab.h header.
27611 2010-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
27613         Support >3GiB and <16MiB RAM in i386-qemu.
27615         * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27616         (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27617         (grub_lower_mem): Removed.
27618         (grub_upper_mem): Likewise.
27619         (mem_size): Made static.
27620         (above_4g): New variable.
27621         (grub_machine_mmap_init): Detect small mem_size and above_4g.
27622         (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27623         support.
27625 2010-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
27627         Cirrus 5446 and Bochs video cards support.
27629         * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27630         video_bochs.mod
27631         (video_cirrus_mod_SOURCES): New variable.
27632         (video_cirrus_mod_CFLAGS): Likewise.
27633         (video_cirrus_mod_LDFLAGS): Likewise.
27634         (video_bochs_mod_SOURCES): Likewise.
27635         (video_bochs_mod_CFLAGS): Likewise.
27636         (video_bochs_mod_LDFLAGS): Likewise.
27637         * include/grub/vga.h: New file.
27638         * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27639         (grub_video_fb_set_page_t): New type.
27640         (grub_video_fb_setup): New prototype.
27641         (grub_video_fb_swap_buffers): Likewise.
27642         (grub_video_fb_get_info_and_fini): Likewise.
27643         * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27644         (CRTC_DATA_PORT): Likewise.
27645         (CRTC_CURSOR): Likewise.
27646         (CRTC_CURSOR_ADDR_HIGH): Likewise.
27647         (CRTC_CURSOR_ADDR_LOW): Likewise.
27648         (CRTC_CURSOR_DISABLE): Likewise.
27649         (update_cursor): Use grub_vga_cr_write.
27650         (grub_vga_text_setcursor): Likewise.
27651         * video/bochs.c: New file.
27652         * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27653         (palette): Likewise.
27654         (palette_size): Likewise.
27655         (framebuffer): New variable.
27656         (grub_video_fb_init): Use 'framebuffer'.
27657         (grub_video_fb_fini): Likewise.
27658         (grub_video_fb_get_info): Likewise.
27659         (grub_video_fb_get_palette): Likewise.
27660         (grub_video_fb_set_palette): Likewise.
27661         (grub_video_fb_set_viewport): Likewise.
27662         (grub_video_fb_get_viewport): Likewise.
27663         (grub_video_fb_map_color): Likewise.
27664         (grub_video_fb_map_rgb): Likewise.
27665         (grub_video_fb_map_rgba): Likewise.
27666         (grub_video_fb_unmap_color): Likewise.
27667         (grub_video_fb_unmap_color_int): Likewise.
27668         (grub_video_fb_fill_rect): Likewise.
27669         (grub_video_fb_blit_bitmap): Likewise.
27670         (grub_video_fb_blit_render_target): Likewise.
27671         (grub_video_fb_scroll): Likewise.
27672         (grub_video_fb_create_render_target): Likewise.
27673         (grub_video_fb_doublebuf_blit_init): Likewise.
27674         (grub_video_fb_set_active_render_target): Handle doublebuffering.
27675         (doublebuf_pageflipping_update_screen): New function.
27676         (doublebuf_pageflipping_init): Likewise.
27677         (grub_video_fb_setup): Likewise.
27678         (grub_video_fb_swap_buffers): Likewise.
27679         (grub_video_fb_get_info_and_fini): Likewise.
27680         * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27681         All users updated.
27682         (doublebuf_pageflipping_commit): Restructured into ...
27683         (doublebuf_pageflipping_set_page): ... this.
27684         (doublebuf_pageflipping_update_screen): Removed.
27685         (doublebuf_pageflipping_init): Likewise.
27686         (double_buffering_init): Likewise.
27687         (grub_video_vbe_setup): Use grub_video_fb_setup.
27688         (grub_video_vbe_swap_buffers): Removed.
27689         (grub_video_vbe_set_active_render_target): Likewise.
27690         (grub_video_vbe_get_active_render_target): Likewise.
27691         (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27692         (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27693         grub_video_fb_set_active_render_target and
27694         grub_video_fb_get_active_render_target.
27695         * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27696         (SEQUENCER_DATA_PORT): Likewise.
27697         (MAP_MASK_REGISTER): Likewise.
27698         (CRTC_ADDR_PORT): Likewise.
27699         (CRTC_DATA_PORT): Likewise.
27700         (START_ADDR_HIGH_REGISTER): Likewise.
27701         (START_ADDR_LOW_REGISTER): Likewise.
27702         (GRAPHICS_ADDR_PORT): Likewise.
27703         (GRAPHICS_DATA_PORT): Likewise.
27704         (READ_MAP_REGISTER): Likewise.
27705         (INPUT_STATUS1_REGISTER): Likewise.
27706         (INPUT_STATUS1_VERTR_BIT): Likewise.
27707         (get_map_mask): Use grub_vga_sr_read.
27708         (set_map_mask): Use grub_vga_sr_write.
27709         (set_read_map): Use grub_vga_gr_write.
27710         (set_start_address): Use grub_vga_cr_write.
27711         * video/sm712.c (framebuffer): Remove leftover fields.
27713 2010-06-20  Colin Watson  <cjwatson@ubuntu.com>
27715         * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX.  Stop
27716         setting GRUB_VIDEO_BACKEND.  Make it available as a user override
27717         instead.  Replace the gfxterm backend check with a check that
27718         ${GRUB_PREFIX}/video.lst is non-empty.
27719         * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27720         again.
27721         (load_video): New generated function.  Call it before loading
27722         gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27723         * util/grub.d/10_linux.in (linux_entry): Call load_video.
27724         * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27725         * docs/grub.texi (Simple configuration): Document
27726         GRUB_VIDEO_BACKEND.
27728 2010-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
27730         Use video functions in linux and xnu loaders.
27732         * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27733         * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27734         * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27735         * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27736         loader/i386/pc/linux.c.
27737         (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27738         (find_line_len): Removed.
27739         (find_framebuf): Likewise.
27740         (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27741         * loader/i386/efi/xnu.c: Removed.
27742         * loader/i386/pc/xnu.c: Moved from here...
27743         * loader/i386/xnu.c: ...here.
27745         Enable priorities in video drivers.
27747         * include/grub/video.h (grub_video_adapter_prio_t): New type.
27748         (grub_video_adapter): New field prio.
27749         (grub_video_register): Respect prio when inserting.
27750         * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27751         * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27752         * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27753         * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27754         * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27755         * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27756         * video/sm712.c (grub_video_sm712_adapter): Likewise.
27758         Fix SDL driver ID.
27760         * include/grub/video.h (grub_video_driver_id_t): New value
27761         GRUB_VIDEO_DRIVER_SDL.
27762         * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27764 2010-06-17  Colin Watson  <cjwatson@ubuntu.com>
27766         * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27767         argument to printf.
27768         * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27770 2010-06-17  Colin Watson  <cjwatson@ubuntu.com>
27772         * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27773         * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27775 2010-06-17  Colin Watson  <cjwatson@ubuntu.com>
27777         * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27778         directly, and recommend grub-install instead.
27779         * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27781 2010-06-17  Colin Watson  <cjwatson@ubuntu.com>
27783         Fix i386-pc prefix handling with nested partitions (Debian bug
27784         #585068).  Note that the case where the core image is booted using
27785         multiboot and relocated from its original location still requires
27786         more work.
27788         * kern/i386/pc/init.c (make_install_device): If the prefix starts
27789         with "(,", fill the boot drive in between those two characters, but
27790         expect that a full partition specification including partition map
27791         names will follow.
27792         * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27793         specified, write a prefix without the drive name but including a
27794         full partition specification.
27796 2010-06-16  Colin Watson  <cjwatson@ubuntu.com>
27798         * util/grub-mkconfig.in: Ignore non-option arguments, for
27799         compatibility with older versions (before 2010-06-12) which did the
27800         same.  In particular, this makes it easier to ship an update-grub
27801         wrapper which is compatible with that used with GRUB Legacy (Debian
27802         bug #586056).
27804 2010-06-14  Grégoire Sutre  <gregoire.sutre@gmail.com>
27806         * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27807         for manual page generation.
27809 2010-06-14  Grégoire Sutre  <gregoire.sutre@gmail.com>
27811         * po/POTFILES: Remove leftover commands/handler.c.
27813 2010-06-14  Colin Watson  <cjwatson@ubuntu.com>
27815         * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27816         left this script non-functional.
27818 2010-06-14  Colin Watson  <cjwatson@ubuntu.com>
27820         * docs/man/grub-emu.h2m: New file.
27822 2010-06-13  Colin Watson  <cjwatson@ubuntu.com>
27824         * docs/grub.texi (Commands): Document reduced command set in rescue
27825         mode.
27826         (cpuid): New section.
27828 2010-06-13  Grégoire Sutre  <gregoire.sutre@gmail.com>
27830         * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27831         new partition naming style.
27832         * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27834 2010-06-12  BVK Chaitanya  <bvk.groups@gmail.com>
27836         Add "-o grub.iso" like cmdline options support.
27838         * util/grub-install.in: Improve cmdline option parsing.
27839         * util/grub-mkconfig.in: Likewise.
27840         * util/grub-mkrescue.in: Likewise.
27841         * util/grub-reboot.in: Likewise.
27842         * util/grub-set-default.in: Likewise.
27843         * util/i386/efi/grub-install.in: Likewise.
27844         * util/ieee1275/grub-install.in: Likewise.
27845         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27847 2010-06-12  Colin Watson  <cjwatson@ubuntu.com>
27849         * .bzrignore: Ignore 41_custom.
27851 2010-06-12  Thomas Schmitt  <scdbackup@gmx.net>
27853         * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27855 2010-06-12  Colin Watson  <cjwatson@ubuntu.com>
27857         Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27858         prototype declarations.
27860         * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27861         generating fs, partmap, and video lists.
27862         * include/grub/fs.h (grub_fs_register): Omit prototype if
27863         GRUB_LST_GENERATOR is defined.
27864         * include/grub/partition.h (grub_partition_map_register): Likewise.
27865         * include/grub/video.h (grub_video_register): Likewise.
27867 2010-06-12  Javier Martín <lordhabbit@gmail.com>
27869         * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27871 2010-06-12  Thomas Schmitt  <scdbackup@gmx.net>
27873         * util/grub-mkrescue.in: Support --xorriso argument.
27875 2010-06-12  Vladimir Serbinenko  <phcoder@gmail.com>
27877         * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27878         Suggested by: Thomas Schmitt.
27880 2010-06-12  Vladimir Serbinenko  <phcoder@gmail.com>
27882         * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27883         Suggested by: Thomas Schmitt.
27885 2010-06-12  Vladimir Serbinenko  <phcoder@gmail.com>
27887         custom.cfg support.
27889         * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27890         * util/grub.d/41_custom.in: New file.
27892 2010-06-12  Colin Watson  <cjwatson@ubuntu.com>
27894         * util/grub-mkrescue.in (make_image): Remove sh module, which has
27895         been merged back into normal.
27897 2010-06-11  Colin Watson  <cjwatson@ubuntu.com>
27899         * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27900         (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27902 2010-06-11  Colin Watson  <cjwatson@ubuntu.com>
27904         * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27905         when generating manual pages.
27906         * docs/man/grub-bin2h.h2m: New file.
27907         * docs/man/grub-editenv.h2m: New file.
27908         * docs/man/grub-fstest.h2m: New file.
27909         * docs/man/grub-install.h2m: New file.
27910         * docs/man/grub-macho2img.h2m: New file.
27911         * docs/man/grub-mkconfig.h2m: New file.
27912         * docs/man/grub-mkdevicemap.h2m: New file.
27913         * docs/man/grub-mkfont.h2m: New file.
27914         * docs/man/grub-mkimage.h2m: New file.
27915         * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27916         * docs/man/grub-mkrelpath.h2m: New file.
27917         * docs/man/grub-mkrescue.h2m: New file.
27918         * docs/man/grub-ofpathname.h2m: New file.
27919         * docs/man/grub-pe2elf.h2m: New file.
27920         * docs/man/grub-probe.h2m: New file.
27921         * docs/man/grub-reboot.h2m: New file.
27922         * docs/man/grub-script-check.h2m: New file.
27923         * docs/man/grub-set-default.h2m: New file.
27924         * docs/man/grub-setup.h2m: New file.
27926 2010-06-10  Vladimir Serbinenko  <phcoder@gmail.com>
27928         Use FOR_* macros instead of *_iterate whenever possible.
27930         * commands/handler.c: Removed.
27931         * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27932         * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27933         * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27934         * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27935         (grub_probe_SOURCES): Remove kern/parser.c.
27936         (util/grub-script-check.c_DEPENDENCIES): Removed.
27937         (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27938         and grub_script_check_init.c.
27939         (grub_script_check_init.lst): Removed.
27940         (grub_script_check_init.h): Likewise.
27941         (grub_script_check_init.c): Likewise.
27942         (pkglib_MODULES): Remove handler.mod and sh.mod.
27943         (handler_mod_SOURCES): Removed.
27944         (handler_mod_CFLAGS): Likewise.
27945         (handler_mod_LDFLAGS): Likewise.
27946         (normal_mod_SOURCES): Remove normal/handler.c.
27947         Add script/main.c, script/script.c, script/execute.c,
27948         script/function.c, script/lexer.c, grub_script.tab.c
27949         and grub_script.yy.c.
27950         * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27951         * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27952         * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27953         (grub_setup_SOURCES): Remove kern/parser.c.
27954         * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27955         * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27956         * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27957         * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27958         * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27959         (grub_setup_SOURCES): Remove kern/parser.c.
27960         * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27961         * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27962         * include/grub/command.h (grub_command_iterate): Removed.
27963         (FOR_COMMANDS): New macro.
27964         * include/grub/dl.h (grub_dl): New member next.
27965         (grub_dl_iterate): Removed.
27966         (grub_dl_head): New variable declaration.
27967         (FOR_DL_MODULES): New macro.
27968         * include/grub/fs.h: Include list.h.
27969         (grub_fs): Make next first element.
27970         (grub_fs_list): New variable declaration.
27971         (grub_fs_register): Make inline.
27972         (grub_fs_unregister): Likewise.
27973         (grub_fs_iterate): Removed.
27974         (FOR_FILESYSTEMS): New macro.
27975         * include/grub/handler.h: Removed.
27976         * include/grub/list.h (grub_list_hook_t): Removed.
27977         (grub_list_test_t): Likewise.
27978         (grub_list_pop): Likewise.
27979         (grub_list_iterate): Likewise.
27980         (grub_list_insert): Likewise.
27981         (FOR_LIST_ELEMENTS): New macro.
27982         * include/grub/parser.h (grub_parser_class): Removed.
27983         (grub_parser_register): Likewise.
27984         (grub_parser_unregister): Likewise.
27985         (grub_parser_get_current): Likewise.
27986         (grub_parser_set_current): Likewise.
27987         (grub_register_rescue_parser): Likewise.
27988         (grub_rescue_parse_line): New function.
27989         * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27990         * include/grub/script_sh.h (grub_script_function_list): New variable
27991         declaration.
27992         (FOR_SCRIPT_FUNCTIONS): New macro.
27993         (grub_script_function_iterate): Removed.
27994         (grub_normal_parse_line): New prototype.
27995         * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27996         (FOR_DISABLED_TERM_INPUTS): Likewise.
27997         (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27998         (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27999         * include/grub/video.h (grub_video_adapter): Move 'next' to first
28000         element.
28001         (grub_video_register): Inline.
28002         (grub_video_unregister): Likewise.
28003         (grub_video_adapter_list): New variable declaration.
28004         (grub_video_iterate): Removed.
28005         (FOR_VIDEO_ADAPTERS): New macro.
28006         * kern/dl.c (grub_dl_list): Removed. All users updated.
28007         (grub_dl_iterate): Removed.
28008         * kern/fs.c (grub_fs_list): Make global.
28009         (grub_fs_register): Removed.
28010         (grub_fs_unregister): Likewise.
28011         (grub_fs_iterate): Likewise.
28012         * kern/handler.c: Removed.
28013         * kern/list.c (grub_list_pop): Removed.
28014         (grub_list_iterate): Likewise.
28015         (grub_list_insert): Likewise.
28016         (grub_named_list_find): Use FOR_LIST_ELEMENTS.
28017         (grub_prio_list_insert): Don't use grub_list_insert.
28018         * kern/main.c (grub_register_rescue_parser): Don't call
28019         grub_register_rescue_parser.
28020         * kern/parser.c (grub_parser_class): Removed.
28021         (grub_parser_execute): Use grub_rescue_parse_line.
28022         * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
28023         (grub_rescue_parser): Removed.
28024         (grub_register_rescue_parser): Likewise.
28025         * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
28026         * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
28027         (grub_auth_check_authentication): Likewise.
28028         * normal/completion.c (iterate_command): Removed.
28029         (grub_normal_do_completion): Use FOR_COMMANDS.
28030         * normal/handler.c: Removed.
28031         * normal/main.c (read_config_file): Remove parser changing.
28032         (grub_normal_execute): Don't call read_handler_list.
28033         (grub_normal_read_line_real): Statically allocate prompt.
28034         (grub_cmdline_run): Use grub_normal_parse_line.
28035         (GRUB_MOD_FINI): Don't call free_handler_list.
28036         * normal/menu_entry.c (run): Likewise.
28037         * script/function.c (grub_script_function_list): Make global.
28038         (grub_script_function_iterate): Removed.
28039         * script/main.c (grub_normal_parse_line): Make global.
28040         (grub_sh_parser): Removed.
28041         (GRUB_MOD_INIT): Likewise.
28042         (GRUB_MOD_FINI): Likewise.
28043         * tests/lib/functional_test.c (grub_functional_test): Use
28044         FOR_LIST_ELEMENTS.
28045         * tests/lib/test.c (free_failures): Don't use grub_list_pop.
28046         (grub_test_run): Use FOR_LIST_ELEMENTS.
28047         * tests/lib/unit_test.c (main): Likewise.
28048         * util/deviceiter.c (grub_util_iterate_devices): Don't use
28049         grub_list_pop.
28050         * util/grub-fstest.c (grub_term_input_class): Removed.
28051         (grub_term_output_class): Likewise.
28052         * util/grub-probe.c: Likewise.
28053         * util/i386/pc/grub-setup.c: Likewise.
28054         * util/sparc64/ieee1275/grub-setup.c: Likewise.
28055         * util/grub-script-check.c (main): Don't call grub_init_all and
28056         grub_fini_all.
28057         * video/video.c (grub_video_adapter_list): Make global.
28058         (grub_video_register): Removed.
28059         (grub_video_unregister): Likewise.
28060         (grub_video_iterate): Likewise.
28062 2010-06-09  Vladimir Serbinenko  <phcoder@gmail.com>
28064         * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
28065         reported by Henrique Ferreiro.
28067 2010-06-09  Robert Millan  <rmh@gnu.org>
28069         * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
28070         ones, when both are available.
28072 2010-06-08  Grégoire Sutre  <gregoire.sutre@gmail.com>
28074         Make --version uniform and avoid hard-coded program name.
28076         * util/grub-mkimage.c (main): Use `program_name' instead of
28077         hard-coded string.
28078         * util/i386/pc/grub-setup.c (main): Likewise.
28079         * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
28080         * util/grub-install.in: Save the basename of $0 in $self, and use the
28081         latter in informational messages.  Use the same format for --version
28082         as the binary programs.
28083         * util/grub-mkconfig.in: Likewise.
28084         * util/grub-mkrescue.in: Likewise.
28085         * util/grub-reboot.in: Likewise.
28086         * util/grub-set-default.in: Likewise.
28087         * util/i386/efi/grub-install.in: Likewise.
28088         * util/ieee1275/grub-install.in: Likewise.
28089         * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
28091 2010-06-08  Grégoire Sutre  <gregoire.sutre@gmail.com>
28093         * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
28094         embedding area.  Use <= instead of == when checking for non-emptiness.
28096 2010-06-08  Grégoire Sutre  <gregoire.sutre@gmail.com>
28098         * configure.ac: Add `.' to the directories searched for unifont.
28100 2010-06-08  Colin Watson  <cjwatson@ubuntu.com>
28102         * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28103         grub_script.yy.h.
28105 2010-06-08  Colin Watson  <cjwatson@ubuntu.com>
28107         * docs/grub.texi (History): Expand to cover GRUB 2.
28108         (Serial terminal): Refer to `terminal_input' and `terminal_output'
28109         commands, not `terminal'.
28110         (serial): Likewise.
28111         (terminal_input): New section.
28112         (terminal_output): New section.
28113         (uppermem): New section (stub).
28114         (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28116 2010-06-08  Colin Watson  <cjwatson@ubuntu.com>
28118         * docs/grub.texi (Security): Menu entries are unrestricted by
28119         default, not restricted to superusers as I had previously thought.
28120         Reword to account for this.
28122 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28124         * kern/emu/misc.c (device_mapper_null_log): New function.
28125         (grub_device_mapper_supported): New function.
28126         * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28127         prototype.
28128         * kern/emu/hostdisk.c (find_partition_start): Check whether
28129         device-mapper is supported before trying to use it.
28130         * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28132 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28134         * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28135         (File name syntax): Likewise.
28136         (help): --all is no longer supported in GRUB 2.  Be more precise
28137         about pattern matching.
28139 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28141         * normal/completion.c (grub_normal_do_completion): When completing
28142         arguments to "set" and the current word contains an equals sign,
28143         skip to after the equals sign before starting completion.
28145 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28147         * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28149 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28151         * docs/grub.texi (Network): New section.
28152         (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28153         `(nd)' as in GRUB Legacy.
28154         (pxe_unload): New section.
28156 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28158         * docs/grub.texi (Troubleshooting): `echo' is not usually available
28159         in the rescue shell, so recommend using `set' instead.  Thanks,
28160         Jordan Uggla.
28162 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28164         * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28165         (password): New section.
28166         (password_pbkdf2): New section.
28167         (search): New section.
28168         (Security): New section.
28169         (Troubleshooting): New section, currently very incomplete.
28170         (Invoking grub-mkpasswd-pbkdf2): New section.
28171         (Internals): New section, currently very incomplete.
28173 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28175         * util/grub.d/00_header.in: Add some more quoting (of
28176         "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28177         work again.
28178         Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28180 2010-06-07  Colin Watson  <cjwatson@ubuntu.com>
28182         * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28183         to `count', fixing variable shadowing that broke the -c option.
28185 2010-06-05  Colin Watson  <cjwatson@ubuntu.com>
28187         * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28188         in case they contain spaces.
28190 2010-06-04  Colin Watson  <cjwatson@ubuntu.com>
28192         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28193         "part_" to partmap module names, in line with grub-install.
28194         Reported by: Jindřich Makovička (Debian bug #584426).
28196 2010-06-04  Colin Watson  <cjwatson@ubuntu.com>
28198         * util/grub-mkimage.c: Make target-related error messages slightly
28199         more helpful; -O talks about "format".  Explicitly point to the use
28200         of -O if no target is specified.
28201         Reported by: Didier Raboud (Debian bug #584415).
28203 2010-06-03  Colin Watson  <cjwatson@ubuntu.com>
28205         * INSTALL: Document several build requirements for optional features
28206         (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28208 2010-06-02  Grégoire Sutre  <gregoire.sutre@gmail.com>
28210         * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28211         [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28212         (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28214 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28216         * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28217         Thanks to Jordan Uggla for spotting this.
28219 2010-06-02  Aleš Nesrsta <starous@volny.cz>
28221         Finally make USB usable.
28223         * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28224         (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28225         (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28226         (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28227         (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28228         (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28229         (GRUB_OHCI_FSMPS): Likewise.
28230         (GRUB_OHCI_PERIODIC_START): Likewise.
28231         (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28232         (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28233         (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28234         (GRUB_OHCI_SET_PORT_RESET): Likewise.
28235         (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28236         * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28237         (grub_ohci_transaction): Likewise.
28238         (grub_ohci_transfer): Improve condition detection algorithms.
28239         Handle toggle property. Program the transactions correctly.
28240         Improve error handling. Various important fixups.
28241         (grub_ohci_portstatus): Put register writes in right order.
28242         * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28243         (grub_uhci_transfer): Don't show "failed" message on success.
28244         * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28245         array.
28246         (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28247         determine its size.
28248         * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28249         before initialization is completed. Use IN direction for empty
28250         transfers. Use last_trans and compute toggle.
28251         * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28252         (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28253         (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28254         (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28255         * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28256         (grub_usb_device): Increase toggle to 256.
28257         (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28258         GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28259         GRUB_USBMS_SUBCLASS_SFF8070.
28260         * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28261         (grub_scsi_inquiry): New member page and alloc_length.
28262         (grub_scsi_request_sense): New structure.
28263         (grub_scsi_request_sense_data): Likewise.
28264         (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28265         control.
28266         * disk/scsi.c (grub_scsi_request_sense): New function.
28267         (grub_scsi_test_unit_ready): Likewise.
28268         (grub_scsi_inquiry): Fill new fields.
28269         (grub_scsi_read_capacity): Likewise.
28270         (grub_scsi_read10): Add request sense at the end.
28271         (grub_scsi_read12): Likewise.
28272         (grub_scsi_write10): Likewise.
28273         (grub_scsi_write12): Likewise.
28274         (grub_scsi_open): Add Test Unit Ready.
28275         * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28276         Support additional subclasses. Con't clear halt yet. Activate the
28277         proper config. Calculate LUNs correctly.
28278         (grub_usbms_transfer): Various important fixups.
28280 2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
28282         * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28283         * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28284         (grub_ohci_fini_hw): New function.
28285         (grub_ohci_restore_hw): Likewise.
28286         (GRUB_MOD_INIT(ohci)): Register preboot hook.
28287         (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28288         * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28290 2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
28292         Dedicated DMA allocations.
28294         * bus/pci.c (grub_memalign_dma32): New function
28295         (grub_dma_free): Likewise.
28296         (grub_dma_get_virt): Likewise.
28297         (grub_dma_get_phys): Likewise.
28298         * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28299         (grub_ohci_pci_iter): Use dma32_alloc.
28300         (grub_ohci_transfer): Likewise.
28301         * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28302         (grub_usb_bulk_readwrite): Likewise.
28303         * include/grub/pci.h: Add declarations.
28305 2010-06-02  Vladimir Serbinenko  <phcoder@gmail.com>
28307         CS5536 support.
28309         * bus/cs5536.c: New file.
28310         * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28311         * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28312         (cs5536_mod_SOURCES): New variable.
28313         (cs5536_mod_CFLAGS): Likewise.
28314         (cs5536_mod_LDFLAGS): Likewise.
28315         * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28316         machine/pci.h.
28317         (kernel_img_SOURCES): Add bus/cs5536.c.
28318         (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28319         usb_keyboard.mod.
28320         (usb_mod_SOURCES): New variable.
28321         (usb_mod_CFLAGS): New variable.
28322         (usb_mod_LDFLAGS): New variable.
28323         (usbtest_mod_SOURCES): New variable.
28324         (usbtest_mod_CFLAGS): New variable.
28325         (usbtest_mod_LDFLAGS): New variable.
28326         (ohci_mod_SOURCES): New variable.
28327         (ohci_mod_CFLAGS): New variable.
28328         (ohci_mod_LDFLAGS): New variable.
28329         (usbms_mod_SOURCES): New variable.
28330         (usbms_mod_CFLAGS): New variable.
28331         (usbms_mod_LDFLAGS): New variable.
28332         (usb_keyboard_mod_SOURCES): New variable.
28333         (usb_keyboard_mod_CFLAGS): New variable.
28334         (usb_keyboard_mod_LDFLAGS): New variable.
28335         * include/grub/smbus.h: New file.
28336         * include/grub/cs5536.h: New file.
28338 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28340         * util/grub.d/00_header.in: Add safety check to make sure that
28341         ${locale_dir} exists before trying to probe it.
28343 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28345         * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28346         per the GNU Coding Standards; this is now too obscure to be worth
28347         documenting.
28348         (QNX): Likewise.
28349         (chainloader): Remove cross-reference to `SCO UnixWare'.
28351 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28353         * docs/grub.texi (Chain-loading): New section.
28354         (DOS/Windows): New section, borrowed from GRUB Legacy with details
28355         adjusted for GRUB 2.
28356         (SCO UnixWare): Likewise.
28357         (QNX): Likewise.
28358         (chainloader): Add reference to `Block list syntax'.
28359         (drivemap): New section.
28360         (parttool): New section.
28362 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28364         * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28365         the grub shell'.
28366         (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28367         (Installing GRUB using grub-install): Remove reference to the grub
28368         shell; mention `grub-mkimage' and `grub-setup' instead.
28369         (Invoking grub-install): Likewise.
28370         (Interface): Add reference to `Menu entry editor'.
28371         (serial): Remove `--device' option.
28373 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28375         * docs/grub.texi (Configuration): New section, documenting
28376         configuration file generation using grub-mkconfig.  I've left a slot
28377         for documenting the full shell scripting format but have not yet
28378         started on writing that up.
28379         (Invoking grub-mkconfig): New section.
28381 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28383         * docs/grub.texi (direntry): Remove grub-terminfo reference.
28384         (GNU GRUB manual): Likewise.
28385         (General commands): Update description of `terminfo' for GRUB 2.
28387 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28389         * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28390         (GRUB_MOD_INIT): Fix capitalisation.
28391         * docs/grub.texi (Command-line and menu entry commands): Document
28392         gettext and gptsync commands.
28394 2010-06-02  Colin Watson  <cjwatson@ubuntu.com>
28396         * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28397         kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28399 2010-06-01  Colin Watson  <cjwatson@ubuntu.com>
28401         Add btrfs probing support, currently only in the single-device case.
28403         * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28404         function.
28405         (grub_guess_root_device): Call find_root_device_from_mountinfo
28406         before looking in /dev.
28408 2010-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
28410         * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28411         GRUB_DISK_SIZE_UNKNOWN.
28412         * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28414 2010-05-31  Jiro SEKIBA <jir@unicus.jp>
28416         * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28417         * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28418         corrupted or not synced properly.
28420 2010-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
28422         * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28423         Reported by: Seth Goldberg.
28425 2010-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
28427         * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28428         addition of dest.
28429         Reported by: Seth Goldberg.
28431 2010-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
28433         * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28434         Reported by: Seth Goldberg.
28436 2010-05-31  Vladimir Serbinenko  <phcoder@gmail.com>
28438         * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28439         64-bit address as signed on MIPS.
28441 2010-05-28  Colin Watson  <cjwatson@ubuntu.com>
28443         * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28444         to the empty string.
28446 2010-05-28  BVK Chaitanya  <bvk.groups@gmail.com>
28448         Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28450         * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28451         * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28452         * kern/misc.c (__enable_execute_stack): Disable on
28453         GRUB_MACHINE_EMU.
28455 2010-05-28  Colin Watson  <cjwatson@ubuntu.com>
28457         Make grub-probe work with symbolic links under /dev/mapper as well
28458         as with real block devices.  The Linux world seems to be (at best)
28459         in transition here, and GRUB shouldn't get caught in the middle.
28461         * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28462         /dev/mapper.
28464 2010-05-27  Colin Watson  <cjwatson@ubuntu.com>
28466         * util/grub-script-check.c (main): Ensure defined behaviour on empty
28467         input files (in which case exit zero).
28469 2010-05-27  Colin Watson  <cjwatson@ubuntu.com>
28471         * kern/emu/misc.c (canonicalize_file_name): realpath can still
28472         return NULL for various reasons even if it has a maximum-length
28473         buffer: for example, there might be a symlink loop, or the path
28474         might exceed PATH_MAX.  If this happens, return NULL.
28476 2010-05-27  Robert Millan  <rmh@gnu.org>
28478         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28479         partmap module to handle cross-partmap setups.
28480         Reported by Orestes Mas.  Gràcies!
28482 2010-05-27  Colin Watson  <cjwatson@ubuntu.com>
28484         * util/grub-mkrescue.in: Initialise override_dir rather than
28485         assuming that it's unset or empty in the environment.
28487 2010-05-26  Grégoire Sutre  <gregoire.sutre@gmail.com>
28489         * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28490         variable index into p_index to suppress a warning with -Wshadow.
28492 2010-05-25  BVK Chaitanya  <bvk.groups@gmail.com>
28494         * INSTALL: Added flex >= 2.5.35 requirement.
28496 2010-05-23  Vladimir Serbinenko  <phcoder@gmail.com>
28498         * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28500 2010-05-23  Vladimir Serbinenko  <phcoder@gmail.com>
28502         cmostest support.
28504         * commands/i386/cmostest.c: New file.
28505         * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28506         (cmostest_mod_SOURCES): New variable.
28507         (cmostest_mod_CFLAGS): Likewise.
28508         (cmostest_mod_LDFLAGS): Likewise.
28509         * conf/i386-pc.rmk: Likewise.
28510         * docs/grub.texi (Vendor power-on keys): New section.
28511         * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28512         GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28513         and GRUB_BUTTON_CMOS_ADDRESS.
28514         * util/grub.d/00_header.in: Handle powering-on by separate button.
28516 2010-05-23  Vladimir Serbinenko  <phcoder@gmail.com>
28518         * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28519         Removed drawing_scrollbar argument. All users updated
28520         Fixes #29792.
28521         Reported by Jo Shields
28523 2010-05-23  Vladimir Serbinenko  <phcoder@gmail.com>
28525         * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28526         buffer since gfxterm handles double repaint.
28528 2010-05-23  Vladimir Serbinenko  <phcoder@gmail.com>
28530         * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28531         * term/gfxterm.c (real_scroll): Likewise.
28533 2010-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
28535         * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28536         before calling BIOS.
28538 2010-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
28540         * include/grub/i18n.h: Always enable grub_gettext.
28542 2010-05-21  Vladimir Serbinenko  <phcoder@gmail.com>
28544         * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28545         partition naming style.
28547 2010-05-21  Colin Watson  <cjwatson@ubuntu.com>
28549         * util/grub-mkconfig.in: Fix handling of -o so that it works when
28550         not the first option.
28552 2010-05-20  Colin Watson  <cjwatson@ubuntu.com>
28554         * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28556 2010-05-20  Colin Watson  <cjwatson@ubuntu.com>
28558         * util/misc.c: Move inclusion of <limits.h> to ...
28559         * kern/emu/misc.c: ... here.  Needed for canonicalize_file_name.
28561 2010-05-20  Grégoire Sutre  <gregoire.sutre@gmail.com>
28563         * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28564         Fix merge error in NetBSD code.
28565         (find_partition_start) [__NetBSD__]: Likewise.
28567 2010-05-19  BVK Chaitanya  <bvk.groups@gmail.com>
28569         Fix grub-mkrescue usage unit testing.
28571         * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28573 2010-05-18  Christian Franke  <franke@computer.org>
28575         * util/grub.d/10_windows.in: Use path names instead of
28576         drive letters to prevent warning from Cygwin 1.7.
28577         Add drivemap command to menuentry if needed.
28579 2010-05-18  Justus Winter  <4winter@informatik.uni-hamburg.de>
28581         * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28582         gnumach and gnumach.gz.
28584 2010-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
28586         * include/grub/i18n.h (gettext): Inline instead of using #define.
28587         (grub_gettext): Likewise.
28588         (_): Likewise.
28590 2010-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
28592         * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28593         -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28594         * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28595         (main): Add a slash after pkglibdirroot.
28597 2010-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
28599         * util/grub-install.in: Add missing "in" keyword.
28601 2010-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
28603         * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28604         Reported by: Seth Goldberg.
28606 2010-05-18  Vladimir Serbinenko  <phcoder@gmail.com>
28608         * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28610 2010-05-18  Colin Watson  <cjwatson@ubuntu.com>
28612         * configure.ac: Check for Linux device-mapper support.
28614         * util/hostdisk.c (device_is_mapped): New function.
28615         (find_partition_start): New function, partly broken out from
28616         linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28617         device-mapper support added.
28618         (linux_find_partition): Use find_partition_start.
28619         (convert_system_partition_to_system_disk): Add `st' argument.
28620         Support Linux /dev/mapper/* devices if device-mapper support is
28621         available; only DM-RAID devices are understood at present.
28622         (find_system_device): Add `st' argument.  Pass it to
28623         convert_system_partition_to_system_disk.
28624         (grub_util_biosdisk_get_grub_dev): Pass stat result to
28625         find_system_device and convert_system_partition_to_system_disk.  Use
28626         find_partition_start.
28628         * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28629         kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28630         * util/deviceiter.c [__linux__]: Define MINOR.
28631         (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28632         * util/mkdevicemap.c (grub_putchar): New function.
28633         (grub_getkey): New function.
28634         (grub_refresh): New function.
28635         (main): Set debug=all if -v -v is used.
28637 2010-05-18  Colin Watson  <cjwatson@ubuntu.com>
28639         Fix build with non-GNU libcs.
28641         * util/misc.c (canonicalize_file_name): Move to ...
28642         * kern/emu/misc.c (canonicalize_file_name): ... here.  Needed by
28643         grub_make_system_path_relative_to_its_root.
28645 2010-05-18  Colin Watson  <cjwatson@ubuntu.com>
28647         * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28648         we handle finding grub-mkimage.  Default to finding grub-mkimage in
28649         ${bindir} with program_transform_name applied, and provide a
28650         --grub-mkimage option to override this.
28652 2010-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
28654         Remove grub-mkisofs.
28656         * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28657         (grub_mkisofs_SOURCES): Removed.
28658         (grub_mkisofs_CFLAGS): Removed.
28659         * util/mkisofs/defaults.h: Removed.
28660         * util/mkisofs/eltorito.c: Likewise.
28661         * util/mkisofs/exclude.h: Likewise.
28662         * util/mkisofs/hash.c: Likewise.
28663         * util/mkisofs/include/: Likewise.
28664         * util/mkisofs/include/fctldefs.h: Likewise.
28665         * util/mkisofs/include/mconfig.h: Likewise.
28666         * util/mkisofs/include/prototyp.h: Likewise.
28667         * util/mkisofs/include/statdefs.h: Likewise.
28668         * util/mkisofs/iso9660.h: Likewise.
28669         * util/mkisofs/joliet.c: Likewise.
28670         * util/mkisofs/match.c: Likewise.
28671         * util/mkisofs/match.h: Likewise.
28672         * util/mkisofs/mkisofs.c: Likewise.
28673         * util/mkisofs/mkisofs.h: Likewise.
28674         * util/mkisofs/msdos_partition.h: Likewise.
28675         * util/mkisofs/multi.c: Likewise.
28676         * util/mkisofs/name.c: Likewise.
28677         * util/mkisofs/rock.c: Likewise.
28678         * util/mkisofs/tree.c: Likewise.
28679         * util/mkisofs/write.c: Likewise.
28681 2010-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
28683         Unify grub-mkimage accross platforms.
28685         * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28686         * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28687         (grub_mkelfimage_SOURCES): Removed.
28688         (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28689         (util/grub-mkimage.c_DEPENDENCIES): .. this.
28690         (bin_UTILITIES): Add grub-mkimage.
28691         (grub_mkimage_SOURCES): New variable.
28692         (kernel_img_HEADERS): Remove machine/kernel.h.
28693         * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28694         (pkglib_PROGRAMS): Add kernel.img.
28695         (kernel_img_HEADERS): Add machine/kernel.h.
28696         (kernel_img_FORMAT): Removed.
28697         (bin_UTILITIES): Remove grub-mkimage.
28698         (grub_mkimage_SOURCES): Removed.
28699         (grub_mkimage_CFLAGS): Likewise.
28700         (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28701         * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28702         (pkglib_PROGRAMS): Add kernel.img.
28703         (bin_UTILITIES): Remove grub-mkimage.
28704         (grub_mkimage_SOURCES): Removed.
28705         (grub_mkimage_CFLAGS): Likewise.
28706         (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28707         * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28708         (pkglib_PROGRAMS): Add kernel.img.
28709         * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28710         (pkglib_PROGRAMS): Add kernel.img.
28711         * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28712         (grub_mkimage_SOURCES): Removed.
28713         (grub_mkimage_CFLAGS): Likewise.
28714         (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28715         * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28716         (pkglib_PROGRAMS): Add kernel.img.
28717         (bin_UTILITIES): Remove grub-mkimage.
28718         (grub_mkimage_SOURCES): Removed.
28719         (grub_mkimage_CFLAGS): Likewise.
28720         (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28721         * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28722         (grub_mkimage_SOURCES): Removed.
28723         (grub_mkimage_CFLAGS): Likewise.
28724         (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28725         * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28726         * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28727         (grub_pe32_optional_header): ... this.
28728         (grub_pe64_optional_header): ... and this. All users updated.
28729         (GRUB_PE32_PE32_MAGIC): Split into ..
28730         (GRUB_PE32_PE32_MAGIC): .. this.
28731         (GRUB_PE32_PE64_MAGIC): .. and this.
28732         (GRUB_PE32_SIGNATURE_SIZE): New definition.
28733         * include/grub/elf.h (PT_GNU_STACK): New definition.
28734         * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28735         * include/grub/i386/efi/kernel.h: Likewise.
28736         * include/grub/i386/kernel.h: Likewise.
28737         * include/grub/i386/pc/kernel.h: Likewise.
28738         * include/grub/i386/qemu/boot.h: Likewise.
28739         * include/grub/mips/kernel.h: Likewise.
28740         * include/grub/mips/qemu-mips/kernel.h: Likewise.
28741         * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28742         * include/grub/powerpc/kernel.h: Likewise.
28743         * include/grub/sparc64/ieee1275/boot.h: Likewise.
28744         * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28745         * include/grub/sparc64/kernel.h: Likewise.
28746         * include/grub/x86_64/efi/kernel.h: Likewise.
28747         * include/grub/x86_64/kernel.h: Likewise.
28748         * include/grub/offsets.h: New file.
28749         * include/grub/kernel.h (grub_module_info): Split into ...
28750         (grub_module_info32): ... this.
28751         (grub_module_info64): ... and this.
28752         * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28753         * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28754         (grub_boot_blocklist): Moved from here ...
28755         * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28756         * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28757         * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28758         * include/grub/types.h (grub_target_to_host16): Removed.
28759         (grub_target_to_host32): Likewise.
28760         (grub_target_to_host64): Likewise.
28761         (grub_host_to_target16): Likewise.
28762         (grub_host_to_target32): Likewise.
28763         (grub_host_to_target64): Likewise.
28764         (grub_host_to_target_addr): Likewise.
28766         Support grub-mkrescue for efi, coreboot and qemu.
28768         * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28769         * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28770         * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28771         * util/grub-mkrawimage.c: Moved from here ...
28772         * util/grub-mkimage.c: ... here. All users updated.
28773         (ALIGN_ADDR): Use image_target.
28774         (TARGET_NO_FIELD): New const.
28775         (image_target_desc): New type.
28776         (image_targets): New array.
28777         (grub_target_to_host64): Use image_target.
28778         (grub_target_to_host32): Likewise.
28779         (grub_target_to_host16): Likewise.
28780         (grub_host_to_target64): Likewise.
28781         (grub_host_to_target32): Likewise.
28782         (grub_host_to_target16): Likewise.
28783         (grub_host_to_target_addr): Likewise.
28784         (generate_image): Handle multiimage.
28785         (main): Require -O parameter. All users updated.
28786         * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28787         util/efi/grub-mkimage.c
28788         * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28789         New option --rom-directory.
28790         Use xorriso.
28791         * util/i386/efi/grub-mkimage.c: Removed.
28792         * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28793         (grub_target_to_host32): Likewise.
28794         (grub_target_to_host64): Likewise.
28795         (grub_host_to_target16): Likewise.
28796         (grub_host_to_target32): Likewise.
28797         (grub_host_to_target64): Likewise.
28798         * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28799         (grub_target_to_host32): Likewise.
28800         (grub_target_to_host64): Likewise.
28801         (grub_host_to_target16): Likewise.
28802         (grub_host_to_target32): Likewise.
28803         (grub_host_to_target64): Likewise.
28805 2010-05-17  BVK Chaitanya  <bvk.groups@gmail.com>
28807         Source tree is reorganized for emu build.
28809         * include/grub/util/console.h: Move from here...
28810         * include/grub/emu/console.h: ...to here.
28811         * include/grub/util/getroot.h: Move from here...
28812         * include/grub/emu/getroot.h: ...to here.
28813         * include/grub/util/hostdisk.h: Move from here...
28814         * include/grub/emu/hostdisk.h: ...to here.
28815         * util/console.c: Move from here...
28816         * kern/emu/console.c: ...to here.
28817         * util/getroot.c: Move from here...
28818         * kern/emu/getroot.c: ...to here.
28819         * util/grub-emu.c: Move from here...
28820         * kern/emu/main.c: ...to here.
28821         * util/hostdisk.c: Move from here...
28822         * kern/emu/hostdisk.c: ...to here.
28823         * util/hostfs.c: Move from here...
28824         * kern/emu/hostfs.c: ...to here.
28825         * util/mm.c: Move from here...
28826         * kern/emu/mm.c: ...to here.
28827         * util/pci.c: Move from here...
28828         * bus/emu/pci.c: ...to here.
28829         * util/sdl.c: Move from here...
28830         * video/emu/sdl.c: ...to here.
28831         * util/time.c: Move from here...
28832         * kern/emu/time.c: ...to here.
28833         * util/usb.c: Move from here...
28834         * bus/usb/emu/usb.c: ...to  here.
28836         * include/grub/emu/misc.h: New header for grub-emu functions.
28837         * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28839         * conf/any-emu.rmk: Rule updates for above renames.
28840         * conf/common.rmk: Likewise.
28841         * conf/i386-pc.rmk: Likewise.
28842         * conf/i386-qemu.rmk: Likewise.
28843         * conf/mips.rmk: Likewise.
28844         * conf/sparc64-ieee1275.rmk: Likewise.
28845         * conf/x86-efi.rmk: Likewise.
28847         * disk/lvm.h: #include updates for above renames.
28848         * util/grub-mkrelpath.c: Likewise.
28849         * util/grub-probe.c: Likewise.
28850         * util/i386/pc/grub-setup.c: Likewise.
28851         * util/sparc64/ieee1275/grub-setup.c: Likewise.
28852         * kern/emu/console.c: Likewise.
28853         * kern/emu/getroot.c: Likewise.
28854         * kern/emu/hostdisk.c: Likewise.
28855         * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28857         * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28858         * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28859         * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28860         * util/misc.c: Remove grub-emu functions.
28862 2010-05-13  Vladimir Serbinenko  <phcoder@gmail.com>
28864         Fix gfxmenu crash.
28865         Reported by: Thorsten Grützmacher.
28867         * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28868         timeout hook.
28869         (circprog_set_property): Register and unregister timeout hook.
28870         * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28871         (label_destroy): Free template. and unregister hook.
28872         (label_set_state): New function.
28873         (label_set_property): Handle templates and hooks.
28874         * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28875         timeout hook.
28876         (progress_bar_set_property): Register and unregister timeout hook.
28877         * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28878         * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28879         * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28880         (update_timeout_visit): Removed.
28881         (update_timeouts): New function.
28882         (redraw_timeouts): Likewise.
28883         (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28884         (grub_gfxmenu_clear_timeout): Likewise.
28885         * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28886         (grub_gfxmenu_timeout_notify): Likewise.
28887         (grub_gfxmenu_timeout_notifications): New external variable.
28888         (grub_gfxmenu_timeout_register): New function.
28889         (grub_gfxmenu_timeout_unregister): Likewise.
28891 2010-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
28893         Transform (broken) vga terminal into (working) vga video driver.
28895         * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28896         video/i386/pc/vga.c.
28897         * include/grub/video.h (grub_video_driver_id):
28898         Add GRUB_VIDEO_DRIVER_VGA.
28899         * term/i386/pc/vga.c: Renamed to ...
28900         * video/i386/pc/vga.c: ...this
28901         (DEBUG_VGA): Removed.
28902         (CHAR_WIDTH): Likewise.
28903         (CHAR_HEIGHT): Likewise.
28904         (TEXT_WIDTH): Likewise.
28905         (TEXT_HEIGHT): Likewise.
28906         (DEFAULT_FG_COLOR): Likewise.
28907         (DEFAULT_BG_COLOR): Likewise.
28908         (colored_char): Likewise.
28909         (xpos): Likewise.
28910         (ypos): Likewise.
28911         (cursor_state): Likewise.
28912         (fg_color): Likewise.
28913         (bg_color): Likewise.
28914         (text_buf): Likewise.
28915         (page): Likewise.
28916         (font): Likewise.
28917         (framebuffer): New variable.
28918         (set_read_map): Disabled.
28919         (setup): New variable.
28920         (is_target): Likewise.
28921         (grub_vga_mod_init): Likewise.
28922         (grub_vga_mod_fini): Likewise.
28923         (check_vga_mem): Likewise.
28924         (write_char): Likewise.
28925         (write_cursor): Likewise.
28926         (scroll_up): Likewise.
28927         (grub_vga_putchar): Likewise.
28928         (grub_vga_getcharwidth): Likewise.
28929         (grub_vga_getwh): Likewise.
28930         (grub_vga_getxy): Likewise.
28931         (grub_vga_gotoxy): Likewise.
28932         (grub_vga_cls): Likewise.
28933         (grub_vga_setcolorstate): Likewise.
28934         (grub_vga_setcursor): Likewise.
28935         (grub_video_vga_init): New function.
28936         (grub_video_vga_setup): Likewise.
28937         (grub_video_vga_fini): Likewise.
28938         (update_target): Likewise.
28939         (grub_video_vga_blit_bitmap): Likewise.
28940         (grub_video_vga_blit_render_target): Likewise.
28941         (grub_video_vga_set_active_render_target): Likewise.
28942         (grub_video_vga_get_active_render_target): Likewise.
28943         (grub_video_vga_swap_buffers): Likewise.
28944         (grub_video_vga_set_palette): Likewise.
28945         (grub_video_vga_get_info_and_fini): Likewise.
28946         (grub_vga_term): Removed.
28947         (grub_video_vga_adapter): New variable.
28948         (GRUB_MOD_INIT): Register a video driver instead of terminal.
28949         (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28951 2010-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
28953         * video/readers/jpeg.c: Indented.
28955 2010-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
28957         Various jpeg cleanups.
28959         * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28960         (grub_jpeg_decode_quan_table): Use sizeof.
28961         (grub_jpeg_decode_du): Use ARRAY_SIZE.
28963 2010-05-05  Peter Hurley <No e-mail available> (tiny change)
28965         * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28966         tables. Ignore non-last ac bit.
28967         (grub_jpeg_decode_quan_table): Likewise.
28969 2010-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
28971         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28972         GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28973         * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28974         GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28975         * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28976         1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28978 2010-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
28980         * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28981         error.
28983 2010-05-05  Vladimir Serbinenko  <phcoder@gmail.com>
28985         * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28987 2010-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
28989         * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28990         condition.
28992 2010-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
28994         * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28995         part.
28997 2010-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
28999         * kern/mm.c (grub_mm_init_region): Check for region size after aligning
29000         pointers.
29002 2010-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
29004         * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
29006 2010-05-01  Christian Franke  <franke@computer.org>
29008         * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
29009         Remove broken Cygwin path conversion.
29010         * util/misc.c: [__CYGWIN__] Add include and define.
29011         [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
29012         for Cygwin 1.7.
29013         (make_system_path_relative_to_its_root): Simplify loop, replace early
29014         return by break.
29015         [__CYGWIN__] Add conversion to win32 path.
29016         Include "/" case in trailing slash removal.
29018 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29020         * kern/main.c (grub_load_config): Fix copy-pasted comment.
29021         Reported by: Seth Goldberg
29023 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29025         * commands/help.c (grub_cmd_help): Fix a typo.
29026         Reported by: Seth Goldberg
29028 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29030         * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
29031         name and add N_.
29032         * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
29033         * commands/iorw.c (GRUB_MOD_INIT): Likewise.
29034         * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
29035         * commands/regexp.c (GRUB_MOD_INIT): Likewise.
29036         * commands/setpci.c (GRUB_MOD_INIT): Likewise.
29037         * commands/terminal.c (GRUB_MOD_INIT): Likewise.
29038         * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29039         * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29040         * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29041         * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29042         * normal/context.c (GRUB_MOD_INIT): Likewise.
29043         * normal/main.c (GRUB_MOD_INIT): Likewise.
29044         * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29045         * term/serial.c (GRUB_MOD_INIT): Likewise.
29046         * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29048 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29050         * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
29051         extra == 0.
29053 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29055         * commands/iorw.c: New file.
29056         * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
29057         (iorw_mod_SOURCES): New variable.
29058         (iorw_mod_CFLAGS): Likewise.
29059         (iorw_mod_LDFLAGS): Likewise.
29061 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29063         Hotkey support
29065         * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
29066         * normal/main.c (hotkey_aliases): New variable.
29067         (grub_normal_add_menu_entry): Parse "--hotkey".
29068         * normal/menu_text.c (run_menu): Handle hotkeys.
29070 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29072         * kern/i386/coreboot/init.c (grub_machine_init): Call
29073         grub_machine_mmap_init on qemu.
29075 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29077         * boot/i386/qemu/boot.S: Add a missing .code16.
29079 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29081         Use LBIO on coreboot.
29083         * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
29084         kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
29085         * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
29086         New declaration.
29087         * kern/i386/coreboot/init.c (grub_machine_init): Don't call
29088         grub_machine_mmap_init on coreboot.
29089         * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
29090         GRUB_LINUXBIOS_MEMBER_LINK.
29091         (grub_machine_mmap_iterate): Fix declaration.
29092         * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
29094 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29096         Split coreboot and multiboot ports.
29098         * conf/i386-multiboot.rmk: New file.
29099         * configure.ac: Add multiboot port.
29100         * include/grub/i386/multiboot/boot.h: New file.
29101         * include/grub/i386/multiboot/console.h: Likewise.
29102         * include/grub/i386/multiboot/init.h: Likewise.
29103         * include/grub/i386/multiboot/kernel.h: Likewise.
29104         * include/grub/i386/multiboot/loader.h: Likewise.
29105         * include/grub/i386/multiboot/memory.h: Likewise.
29106         * include/grub/i386/multiboot/serial.h: Likewise.
29107         * include/grub/i386/multiboot/time.h: Likewise.
29108         * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29109         * loader/multiboot.c: Likewise.
29110         * loader/multiboot_mbi2.c: Likewise.
29111         * util/grub-mkrescue.in: Generate multiboot rescue.
29113 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29115         * kern/parser.c (grub_parser_execute): Cope with read-only config.
29117 2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
29119         Merge handling of input and output terminals. Fix a hang.
29121         * commands/terminal.c (abstract_terminal): New struct.
29122         (handle_command): New function. Based on grub_cmd_terminal_input.
29123         (grub_cmd_terminal_input): Use handle_command.
29124         (grub_cmd_terminal_output): Use handle_command.
29126 2010-05-01  BVK Chaitanya  <bvk.groups@gmail.com>
29128         Fix comment handling.
29130         * tests/grub_script_comments.in: New testcase.
29131         * conf/tests.rmk: Rules for new testcase.
29132         * script/yylex.l: Updated flex rules.
29134 2010-04-28  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29136         * docs/grub.texi (play): Document that zero pitches produce rests.
29137         * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29138         if argc is 1.
29140 2010-04-27  Vladimir Serbinenko  <phcoder@gmail.com>
29142         * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29143         autogen issues.
29145 2010-04-26  Christian Franke  <franke@computer.org>
29147         * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29148         * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29149         (grub_get_prefix): Remove function.
29150         * util/grub-emu.c (main): Replace grub_get_prefix () call by
29151         make_system_path_relative_to_its_root ().
29152         * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29154 2010-04-24  Christian Franke  <franke@computer.org>
29156         * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29157         (kernel_img_LDFLAGS): Remove -static-libgcc.
29159 2010-04-24  Christian Franke  <franke@computer.org>
29161         * configure.ac: Do not CHECK_BSS_START_SYMBOL
29162         and CHECK_END_SYMBOL if grub-emu is built.
29163         Unset TARGET_OBJ2ELF if grub-emu is built
29164         without module support.
29166 2010-04-24  Jiro SEKIBA <jir@unicus.jp>
29168         Nilfs2 support.
29170         * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29171         (grub_fstest_SOURCES): Likewise.
29172         (pkglib_MODULES): Add nilfs2.mod.
29173         (nilfs2_mod_SOURCES): New variable.
29174         (nilfs2_mod_CFLAGS): Likewise.
29175         (nilfs2_mod_LDFLAGS): Likewise.
29176         * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29177         * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29178         * fs/nilfs2.c: New file.
29180 2010-04-21  Vladimir Serbinenko  <phcoder@gmail.com>
29182         * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29183         is not supported.
29185 2010-04-19  Grégoire Sutre  <gregoire.sutre@gmail.com>
29187         Add grub-mkconfig support for NetBSD.
29189         * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29190         * util/grub-mkconfig.in: export new NetBSD specific variables.
29191         * po/POTFILES-shell: added 10_netbsd.in.
29192         * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29194 2010-04-19  BVK Chaitanya  <bvk.groups@gmail.com>
29196         Fix emu build with grub-emu-pci and grub-emu-modules.
29198         * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29199         functions.
29200         * include/grub/libpciaccess.h: New file.
29201         * conf/any-emu.rmk: Update kernel headers for emu build.
29203 2010-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
29205         * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29207 2010-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
29209         * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29211 2010-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
29213         * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29214         Retrieve chosen/bootpath if bootpath isn't hardcoded.
29215         * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29216         util/ieee1275/ofpath.c.
29217         * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29218         * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29219         * include/grub/sparc64/ieee1275/boot.h
29220         (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29221         (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29222         * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29223         * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29224         const char *.
29225         * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29226         (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29227         Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29228         install.
29230 2010-04-18  Grégoire Sutre  <gregoire.sutre@gmail.com>
29232         * util/grub-mkconfig.in: Corrected two == equality tests.
29233         Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29234         * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29235         expect a number appended to it.
29236         * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29237         expects a number appended to it.
29239 2010-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
29241         * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29243 2010-04-18  Vladimir Serbinenko  <phcoder@gmail.com>
29245         * util/hostdisk.c (make_device_name): Change to new partition naming.
29247 2010-04-17  Vladimir Serbinenko  <phcoder@gmail.com>
29249         * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29251 2010-04-17  Christian Franke  <franke@computer.org>
29253         * Makefile.in: Add missing localedir setting.
29255 2010-04-14  Colin Watson  <cjwatson@ubuntu.com>
29257         Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29258         mistake in r2156.  Noticed by Anthony Fok.
29260         * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29261         @localedir@.
29262         * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29264 2010-04-14  BVK Chaitanya  <bvk.groups@gmail.com>
29266         Fix a spurious, uninitialized variable warning.
29268         * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29269         Initialize variable, shdr.
29270         (grub_freebsd_load_elfmodule): Likewise.
29271         (grub_freebsd_load_elf_meta): Likewise.
29273 2010-04-13  BVK Chaitanya  <bvk.groups@gmail.com>
29275         Fix for escaped dollar in double quoted strings.
29277         * script/yylex.l: Updated flex rules.
29278         * conf/tests.rmk: Rule for new testcase.
29279         * tests/grub_script_dollar.in: New testcase.
29281 2010-04-13  Carles Pina i Estany  <carles@pina.cat>
29282 2010-04-13  Colin Watson  <cjwatson@ubuntu.com>
29284         Enclose all translated strings in grub.cfg in single quotes, and
29285         escape them appropriately (Ubuntu bug #552921).
29287         * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29288         * util/grub.d/10_hurd.in: Use it.
29289         * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29290         * util/grub.d/10_linux.in (linux_entry): Likewise.
29292 2010-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
29294         Fix cygwin compilation.
29296         * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29297         * include/grub/misc.h (__register_frame_info)
29298         [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29299         (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29300         * kern/misc.c (__register_frame_info)
29301         [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29302         (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29304 2010-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
29306         * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29308 2010-04-11  Vladimir Serbinenko  <phcoder@gmail.com>
29310         Unify libgcc processing.
29312         * Makefile.in (kernel_img_LDFLAGS): New variable.
29313         * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29314         * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29315         overwriting.
29316         * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29317         * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29318         * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29319         * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29320         * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29321         overwriting. Remove -lgcc and -static-libgcc
29322         * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29323         * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29324         * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29325         (kernel_img_LDFLAGS): Append instead of overwriting.
29326         Remove -lgcc and -static-libgcc
29327         * conf/sparc64-ieee1275.rmk: Likewise.
29328         * include/grub/powerpc/libgcc.h: Move to ...
29329         * include/grub/libgcc.h: .. this.
29330         * include/grub/libgcc.h: Don't export most of the function on x86.
29331         (__bswapsi2): New export.
29332         (__bswapdi2): Likewise.
29333         * include/grub/mips/libgcc.h: Removed.
29334         * include/grub/sparc64/libgcc.h: Likewise.
29336 2010-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
29338         * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29339         disk_info_msg (conflicts with gettexting into languages with cases).
29341 2010-04-10  Grégoire Sutre  <gregoire.sutre@gmail.com>
29343         Add grub-probe support for NetBSD.
29345         * util/getroot.c (find_root_device): Convert block device to
29346         character device on NetBSD.
29347         * util/probe.c (probe): Require character device on NetBSD.
29348         * util/hostdisk.c: NetBSD specific headers.
29349         (configure_device_driver): new function to tune device driver
29350         parameters (currently only for NetBSD floppy driver).
29351         (grub_util_biosdisk_open): NetBSD specific code (get disk size
29352         via disklabel ioctl).
29353         (open_device): call configure_device_driver on NetBSD.
29354         (convert_system_partition_to_system_disk): NetBSD specific code.
29355         (device_is_wholedisk): Likewise.
29356         (grub_util_biosdisk_get_grub_dev): Likewise.
29357         (make_device_name): Fixed a typo in bsd_part_str.
29358         * configure.ac: check for opendisk() and getrawpartition() on
29359         NetBSD and set LIBUTIL.
29360         * Makefile.in: add LIBUTIL to LIBS.
29362 2010-04-10  BVK Chaitanya  <bvk.groups@gmail.com>
29364         Documentation fix.
29366         * util/grub-script-check.c: Better help message.
29368 2010-04-10  BVK Chaitanya  <bvk.groups@gmail.com>
29370         Fix FreeBSD build.
29372         * configure.ac: Flex version check.
29373         * conf/common.rmk: Add -Wno-error to sh.mod.
29374         * script/yylex.l: Remove all #pragma.
29376 2010-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
29378         * include/grub/util/misc.h (canonicalise_file_name): Add missing
29379         prototype.
29380         Reported by: Seth Goldberg.
29382 2010-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
29384         * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29385         Rename "module" to "module2".
29386         Reported by: Seth Goldberg.
29388 2010-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
29390         * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29391         EXPORT_FUNC.
29392         Reported by: Seth Goldberg.
29394 2010-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
29396         * lib/posix_wrap/locale.h: Add missing file.
29397         Reported by: Seth Goldberg.
29399 2010-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
29401         grub-emu module load support.
29403         * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29404         NO_DYNAMIC_MODULES switched to this.
29405         (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29406         (CFLAGS): Likewise.
29407         * conf/any-emu.rmk: Generate symlist.
29408         (kernel_img_HEADERS): Add util/datetime.h.
29409         (kernel_img_HEADERS) [sdl]: Add sdl.h.
29410         (kernel_img_HEADERS) [libusb]: Add libusb.h.
29411         (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29412         kern/$(target_cpu)/cache.S.
29413         * configure.ac (grub-emu-modules): New option.
29414         * genmk.rb: Handle multiple source lists.
29415         * include/grub/sdl.h: New file.
29416         * include/grub/libusb.h: Likewise.
29417         * util/grub-emu.c (main): Hanle (host) root.
29418         * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29419         GRUB_ERR_UNKNOWN_DEVICE.
29420         * util/misc.c: Move mm functions to ...
29421         * util/mm.c: ... here. All users updated.
29423 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29425         * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29426         (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29427         missing files.
29428         (maintainer-clean): Remove libgcrypt-grub.
29430 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29432         * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29434 2010-04-09  EFI Coder <eficoder@hotmail.com>
29436         * normal/menu_text.c (print_message): Clean up the message and show
29437         the Fn information when on EFI
29438         * term/efi/console.c (grub_console_checkkey): Add F4 support.
29440 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29442         * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29443         All users updated.
29444         * normal/crypto.c (read_crypto_list): Likewise.
29445         * normal/dyncmd.c (read_command_list): Likewise.
29446         * normal/term.c (read_terminal_list): Likewise.
29447         * normal/main.c (read_lists): Use explicit prefix.
29448         (read_lists_hook): Use read_lists.
29449         (grub_normal_execute): Likewise.
29451 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29453         * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29454         Reported by: Thomas Schmitt.
29455         Add -no-emul-boot to grub-mkisofs parameters.
29457 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29459         * font/font.c: Indented.
29461 2010-04-09  BVK Chaitanya  <bvk.groups@gmail.com>
29463         Elif support to GRUB script (by Deepak Vankadaru).
29465         * tests/grub_script_if.in: New testcase.
29466         * conf/tests.rmk: Rule for new testcase.
29467         * script/parser.y: Grammar rules for elif.
29469 2010-04-09  BVK Chaitanya  <bvk.groups@gmail.com>
29471         While and until loops support to GRUB script.
29473         * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29474         (grub_script_create_cmdwhile): New function prototype.
29475         (grub_script_execute_cmdwhile): New function prototype.
29476         * script/execute.c (grub_script_execute_cmdwhile): New function.
29477         * script/parser.y (command): New commands.
29478         (whilecmd): New grammar rule.
29479         (untilcmd): New grammar rule.
29480         * script/script.c (grub_script_create_cmdwhile): New function.
29481         * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29482         function.
29484         * tests/grub_script_while1.in: New testcase.
29485         * conf/tests.rmk: Rule for new testcase.
29487 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29489         * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29490         as *.jpg.
29492 2010-04-09  Mario Vazquez <mariovazq@gmail.com>
29494         GRUB_BACKGROUND support.
29496         * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29497         * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29499 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29501         Load fonts and modules for gfxmenu in grub-mkconfig.
29502         Idea by: Mario Vazquez
29504         * util/grub.d/00_header.in: Load pf2 and image modules.
29506 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29508         grub-mkconfig multiple terminal support.
29510         * util/grub-mkconfig.in: Handle multiple terminals correctly.
29511         * util/grub.d/00_header.in: Likewise.
29513 2010-04-09  Vladimir Serbinenko  <phcoder@gmail.com>
29515         * Makefile.in: Specify files explicitly instead of using $< and $@ since
29516         we use cd $(srcdir).
29518 2010-04-08  Colin Watson  <cjwatson@ubuntu.com>
29520         * util/grub.d/10_linux.in: Only use the first word of
29521         GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29522         spaces in GRUB_DISTRIBUTOR.
29523         * util/grub.d/10_kfreebsd.in: Likewise.
29524         * util/grub.d/10_hurd.in: Likewise.
29526 2010-04-06  BVK Chaitanya  <bvk.groups@gmail.com>
29528         Fix unit testing framework for Qemu 0.12.
29530         * tests/util/grub-shell.in: Remove -serial stdio option.
29532 2010-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
29534         POSIX header file wrappers.
29536         * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29537         equivalents.
29538         * lib/posix_wrap/ctype.h: Likewise.
29539         * lib/posix_wrap/errno.h: Likewise.
29540         * lib/posix_wrap/langinfo.h: Likewise.
29541         * lib/posix_wrap/limits.h: Likewise.
29542         * lib/posix_wrap/localcharset.h: Likewise.
29543         * lib/posix_wrap/stdint.h: Likewise.
29544         * lib/posix_wrap/stdio.h: Likewise.
29545         * lib/posix_wrap/stdlib.h: Likewise.
29546         * lib/posix_wrap/string.h: Likewise.
29547         * lib/posix_wrap/sys/types.h: Likewise.
29548         * lib/posix_wrap/unistd.h: Likewise.
29549         * lib/posix_wrap/wchar.h: Likewise.
29550         * lib/posix_wrap/wctype.h: Likewise.
29551         * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29552         (grub_script.yy.h): Likewise.
29553         * script/yylex.l: Remove POSIX emulation #defines.
29554         * Makefile.in (POSIX_CFLAGS): New variable.
29555         (GNULIB_UTIL_CFLAGS): Likewise.
29557         Regexp support.
29559         * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29560         (regexp_mod_SOURCES): New variable.
29561         (regexp_mod_CFLAGS): Likewise.
29562         (regexp_mod_LDFLAGS): Likewise.
29563         * commands/regexp.c: New file.
29564         * gnulib/regcomp.c: New file. Imported from gnulib.
29565         * gnulib/regex.c: Likewise.
29566         * gnulib/regex_internal.c: Likewise.
29567         * gnulib/regex_internal.h: Likewise.
29568         * gnulib/regexec.c: Likewise.
29569         * gnulib/regex.h: Likewise.
29571 2010-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
29573         * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29574         unsupported video mode types.
29576 2010-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
29578         * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29580 2010-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
29582         * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29583         * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29585 2010-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
29587         Remove unused grub_vga_get_font.
29589         * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29590         * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29592 2010-04-03  Grégoire Sutre  <gregoire.sutre@gmail.com>
29594         * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29595         * include/grub/misc.h: Likewise.
29597 2010-04-03  Grégoire Sutre  <gregoire.sutre@gmail.com>
29599         * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29600         for which failure is fatal.
29602 2010-04-03  Grégoire Sutre  <gregoire.sutre@gmail.com>
29604         * util/grub-install.in: Use mkdir -p to create grub directory.
29605         * util/i386/efi/grub-install.in: Likewise.
29606         * util/ieee1275/grub-install.in: Likewise.
29608 2010-04-03  Grégoire Sutre  <gregoire.sutre@gmail.com>
29610         * Makefile.in (LEX): new variable.
29612 2010-04-03  Grégoire Sutre  <gregoire.sutre@gmail.com>
29614         * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29615         `=' and added double quotes on operands of this equality test.
29617 2010-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
29619         * Makefile.in (uninstall): Remove a leftover debug echo.
29620         Reported by: Grégoire Sutre
29622 2010-04-03  Vladimir Serbinenko  <phcoder@gmail.com>
29624         MIPS multiboot2 support.
29626         * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29627         (multiboot2_mod_SOURCES): New variable.
29628         (multiboot2_mod_CFLAGS): Likewise.
29629         (multiboot2_mod_LDFLAGS): Likewise.
29630         (multiboot2_mod_ASFLAGS): Likewise.
29631         * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29632         definition.
29633         (MULTIBOOT_ENTRY_REGISTER): Likewise.
29634         (MULTIBOOT_MBI_REGISTER): Likewise.
29635         (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29636         (MULTIBOOT_ELF32_MACHINE): Likewise.
29637         (MULTIBOOT_ELF64_MACHINE): Likewise.
29638         * include/grub/mips/multiboot.h: New file.
29639         * include/grub/video.h (grub_video_driver_id): New type
29640         GRUB_VIDEO_DRIVER_SM712.
29641         (grub_video_get_info_and_fini): Export.
29642         (grub_video_get_palette): Likewise.
29643         (grub_video_get_driver_id): Likewise.
29644         * include/multiboot2.h: Resynced with spec.
29645         * loader/i386/multiboot.c: Moved from here ...
29646         * loader/multiboot.c: ... here. All users updated.
29647         (grub_multiboot_boot): Use platform-specific macros.
29648         * loader/i386/multiboot_elfxx.c: Moved from here ...
29649         * loader/multiboot_elfxx.c: ... here. All users updated.
29650         (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29651         * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29652         * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29654 2010-04-02  Vladimir Serbinenko  <phcoder@gmail.com>
29656         Import gnulib argp module.
29658         * gnulib/argp-ba.c: New file.
29659         * gnulib/argp-eexst.c: Likewise.
29660         * gnulib/argp-fmtstream.c: Likewise.
29661         * gnulib/argp-fmtstream.h: Likewise.
29662         * gnulib/argp-fs-xinl.c: Likewise.
29663         * gnulib/argp-help.c: Likewise.
29664         * gnulib/argp-namefrob.h: Likewise.
29665         * gnulib/argp-parse.c: Likewise.
29666         * gnulib/argp-pin.c: Likewise.
29667         * gnulib/argp-pv.c: Likewise.
29668         * gnulib/argp-pvh.c: Likewise.
29669         * gnulib/argp-version-etc.c: Likewise.
29670         * gnulib/argp-version-etc.h: Likewise.
29671         * gnulib/argp-xinl.c: Likewise.
29672         * gnulib/argp.h: Likewise.
29674 2010-03-31  Vladimir Serbinenko  <phcoder@gmail.com>
29676         * kern/device.c (grub_device_iterate): Clear errors after failed
29677         opening device.
29679 2010-03-31  Vladimir Serbinenko  <phcoder@gmail.com>
29681         * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29682         returned by firmware.
29684 2010-03-30  Vladimir Serbinenko  <phcoder@gmail.com>
29686         * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29687         compilation on coreboot and qemu
29689 2010-03-28  Vladimir Serbinenko  <phcoder@gmail.com>
29691         * include/multiboot2.h: Resync with spec.
29693 2010-03-28  Vladimir Serbinenko  <phcoder@gmail.com>
29695         Multiboot2 tag support
29697         * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29698         loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29699         Remove loader/multiboot_loader.c.
29700         * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29701         (grub_multiboot2_real_boot): Likewise.
29702         * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29703         (grub_get_multiboot_mmap_count): New proto.
29704         (grub_fill_multiboot_mmap): Likewise.
29705         (grub_multiboot_set_video_mode): Likewise.
29706         (grub_multiboot_set_console): Likewise.
29707         (grub_multiboot_load): Likewise.
29708         (grub_multiboot_load_elf): Likewise.
29709         (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29710         (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29711         * include/multiboot.h: Resynced with specification.
29712         * include/multiboot2.h: Resynced with specification.
29713         * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29714         * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29715         * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29716         * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29717         users updated.
29718         * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29719         * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29720         * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29721         Removed.
29722         * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29723         Moved from here...
29724         * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29725         * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29726         Moved from here...
29727         * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29728         * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29729         * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29730         All users updated.
29731         * loader/i386/multiboot_mbi2.c: New file.
29733 2010-03-27  Vladimir Serbinenko  <phcoder@gmail.com>
29735         Resync with gnulib.
29737         * Makefile.in (GNULIB_CFLAGS): New variable.
29738         * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29739         (grub_script_check_CFLAGS): New variable.
29740         * gnulib/alloca.h: Resync with gnulib.
29741         * gnulib/error.c: Likewise.
29742         * gnulib/error.h: Likewise.
29743         * gnulib/fnmatch.c: Likewise.
29744         * gnulib/fnmatch_loop.c: Likewise.
29745         * gnulib/getdelim.c: Likewise.
29746         * gnulib/getline.c: Likewise.
29747         * gnulib/getopt.c: Likewise.
29748         * gnulib/getopt1.c: Likewise.
29749         * gnulib/getopt_int.h: Likewise.
29750         * gnulib/gettext.h: Likewise.
29751         * gnulib/progname.c: Likewise.
29752         * gnulib/progname.h: Likewise.
29754 2010-03-27  Grégoire Sutre  <gregoire.sutre@gmail.com>
29756         Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29757         which is the case with --disabled-nls.
29759         * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29760         && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29761         * util/misc.c: Likewise.
29762         * util/mkisofs/mkisofs.c: Likewise.
29763         * util/mkisofs/mkisofs.h: Likewise.
29765 2010-03-27  Vladimir Serbinenko  <phcoder@gmail.com>
29767         Simplify Apple CC support.
29769         * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29770         Add 0 byte at the end not to have a symbol with empty target.
29771         * mmap/i386/pc/mmap_helper.S: Likewise.
29772         * genmk.rb: Ignore errors 2030 and 2050.
29773         * kern/i386/pc/startup.S: Use LOCAL when possible.
29775 2010-03-26  BVK Chaitanya  <bvk.groups@gmail.com>
29777         Testcase and the fix for final semicolon on cmdline.
29779         * tests/grub_script_final_semicolon.in: New testcase.
29780         * conf/tests.rmk: Rules for the new testcase.
29781         * script/parser.y: Grammar fix.
29783 2010-03-26  BVK Chaitanya  <bvk@localhost>
29785         Blank lines testcase for GRUB script.
29787         * tests/grub_script_blanklines.in: New testcase.
29788         * conf/tests.rmk: Rules for the new testcase.
29790 2010-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
29792         Don't use __FILE__.
29794         * genmk.rb: Add -DGRUB_FILE to all C targets.
29795         * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29796         * include/grub/list.h: Likewise.
29797         * include/grub/misc.h: Likewise.
29798         * include/grub/mm.h: Likewise.
29799         * include/grub/test.h: Likewise.
29800         * kern/mm.c: Likewise.
29801         * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29803 2010-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
29805         Sunpc partitions support.
29807         * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29808         (grub_fstest_SOURCES): Likewise.
29809         (pkglib_MODULES): Add part_sunpc.mod.
29810         (part_sunpc_mod_SOURCES): New variable.
29811         (part_sunpc_mod_CFLAGS): Likewise.
29812         (part_sunpc_mod_LDFLAGS): Likewise.
29813         * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29814         * partmap/sunpc.c: New file.
29816 2010-03-26  BVK Chaitanya  <bvk@localhost>
29818         For loop support to GRUB script.
29820         * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29821         (grub_script_create_cmdfor): New function prototype.
29822         (grub_script_execute_cmdfor): New function prototype.
29823         * script/execute.c (grub_script_execute_cmdfor): New function.
29824         * script/parser.y (command): New for command.
29825         (forcmd): New grammar rule.
29826         * script/script.c (grub_script_create_cmdfor): New function.
29827         * util/grub-script-check.c (grub_script_execute_cmdfor): New
29828         function.
29829         * tests/grub_script_for1.in: New testcase.
29830         * conf/tests.rmk: Rules for new testcase.
29832 2010-03-26  Vladimir Serbinenko  <phcoder@gmail.com>
29834         Nested partitions
29836         * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29837         'partition' is NULL, grub_partition_get_start already does that.
29838         * commands/loadenv.c (check_blocklists): Likewise.
29839         (write_blocklists): Likewise.
29840         * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29841         (grub_fstest_SOURCES): Likewise.
29842         (pkglib_MODULES): Add part_bsd.mod.
29843         (part_bsd_mod_SOURCES): New variable.
29844         (part_bsd_mod_CFLAGS): Likewise.
29845         (part_bsd_mod_LDFLAGS): Likewise.
29846         * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29847         (grub_emu_SOURCES): Likewise.
29848         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29849         * include/grub/bsdlabel.h: New file.
29850         * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29851         'get_name'.
29852         (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29853         (grub_partition_map_list): New variable.
29854         (grub_partition_map_register): Inline.
29855         (grub_partition_map_unregister): Likewise.
29856         (FOR_PARTITION_MAPS): New macro.
29857         (grub_partition_map_iterate): Removed.
29858         (grub_partition_get_start): Handle nested partitions.
29859         * include/grub/msdos_partition.h: Remove bsd-related entries.
29860         (grub_pc_partition): Remove.
29861         * kern/disk.c (grub_disk_close): Free partition data.
29862         (grub_disk_adjust_range): Handle nested partitions.
29863         * kern/partition.c (grub_partition_map_probe): New function.
29864         (grub_partition_probe): Parse name to number, handle subpartitions.
29865         (get_partmap): New function.
29866         (grub_partition_iterate): Handle subpartitions.
29867         (grub_partition_get_name): Likewise.
29868         * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29869         * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29870         * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29871         * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29872         Set 'number'.
29873         (acorn_partition_map_probe): Remove.
29874         (acorn_partition_map_get_name): Likewise.
29875         * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29876         Set 'number'.
29877         Set 'index' to 0 since there can be only one partition entry per sector.
29878         (amiga_partition_map_probe): Remove.
29879         (amiga_partition_map_get_name): Likewise.
29880         * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29881         Set 'number'.
29882         Set 'offset' and 'index' to real positions of partitions.
29883         (apple_partition_map_probe): Remove.
29884         (apple_partition_map_get_name): Likewise.
29885         * partmap/bsdlabel.c: New file.
29886         * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29887         Set 'number'.
29888         Allocate 'data' so it can be correctly freed.
29889         Set 'index' to offset inside sector.
29890         (gpt_partition_map_probe): Remove.
29891         (gpt_partition_map_get_name): Likewise.
29892         * partmap/msdos.c (grub_partition_parse): Remove.
29893         (pc_partition_map_iterate): Don't force raw access.
29894         Set 'number'.
29895         Make 'ext_offset' a local variable.
29896         (pc_partition_map_probe): Remove.
29897         (pc_partition_map_get_name): Remove.
29898         * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29899         Set 'number'.
29900         (sun_partition_map_probe): Remove.
29901         (sun_partition_map_get_name): Likewise.
29902         * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29903         (grub_pcpart_type): Likewise.
29904         * util/hostdisk.c (open_device): Handle new numbering scheme.
29905         (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29906         * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29907         * util/grub-probe.c (probe_partmap): Handle nested paritions.
29908         * util/grub-install.in: Insert all subpartition modules.
29909         * util/ieee1275/grub-install.in: Likewise.
29911 2010-03-24  Adrian Glaubitz  <glaubitz@physik.fu-berlin.de>
29913         * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29914         grammar.
29916 2010-03-24  Colin Watson  <cjwatson@ubuntu.com>
29918         * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29920 2010-03-21  Colin Watson  <cjwatson@ubuntu.com>
29922         * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29923         match where 'make install' puts them.
29924         * util/i386/efi/grub-install.in: Likewise.
29926 2010-03-19  Colin Watson  <cjwatson@ubuntu.com>
29928         * .bzrignore: Add gentrigtables, grub-script-check,
29929         grub_script_check_init.c, grub_script_check_init.h, and
29930         trigtables.c.
29932 2010-03-18  Vladimir Serbinenko  <phcoder@gmail.com>
29934         * kern/parser.c: Indented.
29936 2010-03-17  Vladimir Serbinenko  <phcoder@gmail.com>
29938         * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29940 2010-03-17  Vladimir Serbinenko  <phcoder@gmail.com>
29942         * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29943         alpha_mask_size == 0 case.
29945 2010-03-14  BVK Chaitanya  <bvk.groups@gmail.com>
29947         GRUB shell lexer and parser improvements.
29949         * conf/any-emu.rmk: Build rule updates.
29950         * conf/common.rmk: Likewise.
29951         * conf/i386-coreboot.rmk: Likewise.
29952         * conf/i386-efi.rmk: Likewise.
29953         * conf/i386-ieee1275.rmk: Likewise.
29954         * conf/i386-pc.rmk: Likewise.
29955         * conf/powerpc-ieee1275.rmk: Likewise.
29956         * conf/x86_64-efi.rmk: Likewise.
29958         * configure.ac: Configure check for flex.
29960         * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29961         types.
29962         (grub_lexer_param): Struct member updates.
29963         (grub_parser_param): Likewise.
29964         (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29965         (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29966         (grub_script_lexer_init): Prototype update.
29967         (grub_script_lexer_record_start): Likewise.
29968         (grub_script_lexer_record_stop): Likewise.
29969         (grub_script_lexer_yywrap): New function prototype.
29970         (grub_script_lexer_fini): Likewise.
29971         (grub_script_execute_argument_to_string): Removed by...
29972         (grub_script_execute_argument_to_argv): ...better version.
29974         * script/execute.c (ROUND_UPTO): New macro.
29975         (grub_script_execute_cmdline): Out of memory fixes.
29976         (grub_script_execute_menuentry): Likewise.
29977         (grub_script_execute_argument_to_string): Removed. Update all
29978         users by...
29979         (grub_script_execute_argument_to_argv): ...better version.
29980         * script/function.c (grub_script_function_create): Use
29981         grub_script_execute_argument_to_argv instead of
29982         grub_script_execute_argument_to_string.
29984         * script/lexer.c (check_varstate): Removed.
29985         (check_textstate): Removed.
29986         (grub_script_lexer_record_start): Likewise.
29987         (grub_script_lexer_record_stop): Likewise.
29988         (recordchar): Replaced with...
29989         (grub_script_lexer_record): ...new function.
29990         (nextchar): Removed.
29991         (grub_script_lexer_init): Rewritten.
29992         (grub_script_yylex): Rewritten.
29993         (append_newline): New function.
29994         (grub_script_lexer_yywrap): New function.
29995         (grub_script_lexer_fini): New function.
29996         (grub_script_yyerror): Sets error flag.
29998         * script/yylex.l: New file.
29999         (grub_lexer_yyfree): Wrapper for flex yyffre.
30000         (grub_lexer_yyalloc): Likewise.
30001         (grub_lexer_yyrealloc): Likewise.
30002         * script/parser.y: Refactored.
30004         * script/script.c (grub_script_arg_add): Out of memory fixes.
30005         (grub_script_add_arglist): Likewise.
30006         (grub_script_create_cmdline): Likewise.
30007         (grub_script_create_cmdmenu): Likewise.
30008         (grub_script_add_cmd): Likewise.
30009         (grub_script_parse): Use grub_script_lexer_fini to deallocated.
30010         * util/grub-script-check.c (grub_script_execute_menuentry): Remove
30011         unnecessary code.
30013         * tests/grub_script_echo1.in: New testcase.
30014         * tests/grub_script_vars1.in: New testcase.
30015         * tests/grub_script_echo_keywords.in: New testcase.
30017 2010-03-14  Vladimir Serbinenko  <phcoder@gmail.com>
30019         Remove some redundancy in build system.
30021         * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
30022         (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
30023         (TARGET_LDFLAGS): Add -nostdlib.
30024         (TARGET_IMG_LDFLAGS): Likewise.
30025         * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
30026         anything since mmap isn't available.
30027         * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
30028         Add util/time.c.
30029         (pkglib_MODULES): Remove reboot.mod.
30030         (reboot_mod_SOURCES): Removed.
30031         (reboot_mod_CFLAGS): Likewise.
30032         (reboot_mod_LDFLAGS): Likewise.
30033         * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
30034         (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
30035         (DEFSYMFILES): Add kernel_syms.lst.
30036         (kernel_img_HEADERS): Add common headers.
30037         (symlist.c): New target.
30038         (kernel_syms.lst): Likewise.
30039         (pkglib_MODULES): Add memdisk.mod.
30040         (memdisk_mod_SOURCES): New variable.
30041         (memdisk_mod_CFLAGS): Likewise.
30042         (memdisk_mod_LDFLAGS): Likewise.
30043         (pkglib_MODULES): Add reboot.mod.
30044         (reboot_mod_SOURCES): New variable.
30045         (reboot_mod_CFLAGS): Likewise.
30046         (reboot_mod_LDFLAGS): Likewise.
30047         (pkglib_MODULES): Add date.mod.
30048         (date_mod_SOURCES): New variable.
30049         (date_mod_CFLAGS): Likewise.
30050         (date_mod_LDFLAGS): Likewise.
30051         (pkglib_MODULES): Add datehook.mod.
30052         (datehook_mod_SOURCES): New variable.
30053         (datehook_mod_CFLAGS): Likewise.
30054         (datehook_mod_LDFLAGS): Likewise.
30055         (pkglib_MODULES): Add lsmmap.mod.
30056         (lsmmap_mod_SOURCES): New variable.
30057         (lsmmap_mod_CFLAGS): Likewise.
30058         (lsmmap_mod_LDFLAGS): Likewise.
30059         (pkglib_MODULES): Add boot.mod.
30060         (boot_mod_SOURCES): New variable.
30061         (boot_mod_CFLAGS): Likewise.
30062         (boot_mod_LDFLAGS): Likewise.
30063         * conf/i386-coreboot.rmk: Removed redundant parts.
30064         * conf/i386-ieee1275.rmk: Likewise.
30065         * conf/i386-pc.rmk: Likewise.
30066         * conf/mips-yeeloong.rmk: Likewise.
30067         * conf/mips.rmk: Likewise.
30068         * conf/powerpc-ieee1275.rmk: Likewise.
30069         * conf/sparc64-ieee1275.rmk: Likewise.
30070         * conf/x86_64-efi.rmk: Likewise.
30071         * conf/i386-coreboot.rmk: Moved qemu parts ..
30072         * conf/i386-qemu.rmk: ... here
30073         * conf/i386-efi.rmk: Moved common parts to...
30074         * conf/x86-efi.rmk: ... here.
30075         * conf/i386.rmk: Added modules common to all x86 variants.
30076         * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
30077         * disk/memdisk.c: Remove grub/machine/kernel.h.
30078         * gensymlist.sh.in: Include symbol.h.
30079         * hook/datehook.c: Correct module name.
30080         * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
30081         (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
30082         * include/grub/i386/efi/serial.h: New file.
30083         * include/grub/x86_64/efi/serial.h: Likewise.
30084         * util/time.c: Likewise.
30085         * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
30087 2010-03-14  Colin King  <colin.king@ubuntu.com>
30088 2010-03-14  Colin Watson  <cjwatson@ubuntu.com>
30090         Shrink the pre-partition-table part of boot.img by eight bytes.
30092         * boot/i386/pc/boot.S (ERR): New macro.
30093         (chs_mode): Use ERR.
30094         (geometry_error): Likewise.
30095         (hd_probe_error): Remove.  This is only used once, so we wrwite
30096         it inline instead.
30097         (read_error): Instead of printing read_error_string, just set up
30098         %si and fall through to ...
30099         (error_message): ... this new function, also used by ERR.
30101 2010-03-14  Colin Watson  <cjwatson@ubuntu.com>
30103         Speed up consecutive hostdisk operations on the same device.
30105         * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30106         (grub_util_biosdisk_open): Initialise disk->data.
30107         (struct linux_partition_cache): New structure.
30108         (linux_find_partition): Cache partition start positions; these are
30109         expensive to compute on every read and write.
30110         (open_device): Cache open file descriptor in disk->data, so that we
30111         don't have to reopen it and flush the buffer cache for consecutive
30112         operations on the same device.
30113         (grub_util_biosdisk_close): New function.
30114         (grub_util_biosdisk_dev): Set `close' member.
30116         * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30117         * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30118         * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30119         * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30120         * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30122 2010-03-14  Vladimir Serbinenko  <phcoder@gmail.com>
30124         Compile parts of grub-emu as modules.
30126         * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30127         (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30128         partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30129         (all-local): Add $(GRUB_EMU).
30130         (install-local): Install $(GRUB_EMU).
30131         (uninstall): Uninstall $(GRUB_EMU).
30132         * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30133         * kern/dl.c: Likewise.
30134         * commands/sleep.c: Not include machine/time.h.
30135         * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30136         (COMMON_CFLAGS): Likewise.
30137         (sbin_UTILITIES): Remove grub-emu.
30138         (grub_emu_SOURCES): Removed.
30139         (kernel_img_RELOCATABLE): New variable.
30140         (pkglib_PROGRAMS): Add kernel.img.
30141         (kernel_img_SOURCES): New variable
30142         (kernel_img_CFLAGS): Likewise.
30143         (kernel_img_LDFLAGS): Likewise.
30144         (TARGET_NO_STRIP): Likewise.
30145         (TARGET_NO_DYNAMIC_MODULES): Likewise.
30146         (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30147         halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30148         (grub-emu): New target.
30149         (GRUB_EMU): New variable.
30150         * configure.ac: Whitelist -emu as possible x86_64 architecture.
30151         * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30152         * loader/xnu.c: Likewise.
30153         * include/grub/pci.h: Likewise.
30154         * genemuinit.sh: New file.
30155         * genemuinitheader.sh: Likewise.
30156         * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30157         Support TARGET_NO_DYNAMIC_MODULES.
30158         * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30159         * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30160         * disk/loopback.c: Likewise.
30161         * font/font_cmd.c: Likewise.
30162         * partmap/acorn.c: Likewise.
30163         * partmap/amiga.c: Likewise.
30164         * partmap/apple.c: Likewise.
30165         * partmap/gpt.c: Likewise.
30166         * partmap/msdos.c: Likewise.
30167         * partmap/sun.c: Likewise.
30168         * parttool/msdospart.c: Likewise.
30169         * term/gfxterm.c: Likewise.
30170         * video/bitmap.c: Likewise.
30171         * video/readers/jpeg.c: Likewise.
30172         * video/readers/png.c: Likewise.
30173         * video/readers/tga.c: Likewise.
30174         * video/video.c: Likewise.
30175         * util/grub-emu.c (read_command_list): Removed.
30176         (main): Don't call util_init_nls.
30177         * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30178         (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30180 2010-03-14  Vladimir Serbinenko  <phcoder@gmail.com>
30182         * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30183         date.mod, datehook.mod.
30184         (datetime_mod_SOURCES): New variable.
30185         (datetime_mod_CFLAGS): Likewise.
30186         (datetime_mod_LDFLAGS): Likewise.
30187         (date_mod_SOURCES): Likewise.
30188         (date_mod_CFLAGS): Likewise.
30189         (date_mod_LDFLAGS): Likewise.
30190         (datehook_mod_SOURCES): Likewise.
30191         (datehook_mod_CFLAGS): Likewise.
30192         (datehook_mod_LDFLAGS): Likewise.
30193         * conf/sparc64-ieee1275.rmk: Likewise.
30194         * lib/ieee1275/datetime.c: New file.
30196 2010-03-14  Vladimir Serbinenko  <phcoder@gmail.com>
30198         * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30199         (ieee1275_fb_mod_SOURCES): New variable.
30200         (ieee1275_fb_mod_CFLAGS): Likewise.
30201         (ieee1275_fb_mod_LDFLAGS): Likewise.
30202         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30203         New proto.
30204         * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30205         (HEAP_MAX_ADDR): Likewise.
30206         * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30207         type.
30208         Correct stop condition.
30209         (grub_ieee1275_devices_iterate): New function.
30210         * video/ieee1275.c: New file.
30212 2010-03-14  Vladimir Serbinenko  <phcoder@gmail.com>
30214         Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30216         * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30217         as scratch.
30218         * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30219         SCRATCH_PAD_DISKBOOT as scratch.
30220         (bootit): Pass Openfirmware pointer in %o4.
30221         * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30222         of 0x200000.
30223         (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30224         with util/grub-mkrawimage.c.
30225         * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30226         * include/grub/aout.h (AOUT_MID_SUN): New definition.
30227         (grub_aout_get_type) [GRUB_UTIL]: Removed.
30228         (grub_aout_load) [GRUB_UTIL]: Likewise.
30229         * include/grub/kernel.h (grub_modules_get_end): New proto.
30230         * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30231         (SCRATCH_PAD_BOOT): New definition.
30232         (SCRATCH_PAD_DISKBOOT): Likewise.
30233         (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30234         * include/grub/sparc64/ieee1275/ieee1275.h
30235         (grub_ieee1275_original_stack): New variable
30236         * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30237         New definition
30238         (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30239         (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30240         (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30241         (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30242         (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30243         (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30244         (grub_platform_image_format_t): New type.
30245         * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30246         * kern/main.c (grub_modules_get_end)
30247         [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30248         * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30249         (codestart): Switch stacks.
30250         * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30251         variable.
30252         (grub_heap_init): Use grub_modules_get_end.
30253         * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30254         stack.
30255         * util/grub-mkrawimage.c (generate_image): Support sparc64.
30256         (main): Likewise.
30257         * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30259 2010-03-14  Thorsten Glaser <tg@mirbsd.org>
30261         * util/grub-mkrescue.in: Base ISO UUID on UTC.
30263 2010-03-08  Matt Kraai  <kraai@ftbfs.org>
30265         * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30266         bug #559005).
30268 2010-03-07  Vladimir Serbinenko  <phcoder@gmail.com>
30270         * genmoddep.awk: Output all missing symbols and not only first.
30272 2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
30274         * NEWS: Put the date of 1.98 release.
30276 2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
30278         * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30279         ft2build.h.
30281 2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
30283         * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30284         completition in the middle of string.
30286 2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
30288         * util/grub-mkrescue.in: Use mktemp with explicit template.
30290 2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
30292         * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30294 2010-03-06  Vladimir Serbinenko  <phcoder@gmail.com>
30296         * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30297         right pointer.
30299 2010-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
30301         Fix FreeBSD compilation.
30303         * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30304         * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30306 2010-03-05  Vladimir Serbinenko  <phcoder@gmail.com>
30308         * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30310 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30312         * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30314 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30316         * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30318 2010-03-04  Robert Millan  <rmh.grub@aybabtu.com>
30320         Support relative image path in theme file.
30322         * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30323         (image_set_property): Handle theme_dir and relative path.
30325 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30327         * configure.ac: Alias amd64 to x86_64.
30329 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30331         * NEWS: mention multiboot on EFI.
30333 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30335         * kern/main.c (grub_load_modules): Handle errors from init functions of
30336         embeded modules.
30338 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30340         * normal/autofs.c (autoload_fs_module): Handle errors.
30342 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30344         Disable linux.mod on qemu-mips since it's not functional and leads
30345         to compilation failure.
30347         * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30348         * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30349         * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30350         * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30351         * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30352         * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30353         * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30354         * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30355         * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30356         * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30357         Reported by: BVK Chaitanya
30359 2010-03-04  Jordan Uggla  <jordan.uggla@gmail.com>
30361         * INSTALL: Add gettext as a dependency and add qemu to a new section
30362         "Prerequisites for make-check".
30364 2010-03-04  Christian Franke  <franke@computer.org>
30366         * util/grub-pe2elf.c: Add missing include "progname.h".
30368 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30370         * normal/crypto.c (read_crypto_list): Fix a typo.
30371         Reported by: Seth Goldberg.
30373 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30375         * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30376         Reported by: Seth Goldberg.
30378 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30380         * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30381         ascii.bitmaps.
30383 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30385         * genmk.rb: Remove terminal*.lst in make clean.
30386         Reported by: Seth Goldberg.
30388 2010-03-04  Vladimir Serbinenko  <phcoder@gmail.com>
30390         * util/i386/efi/grub-install.in: Copy gettext files.
30392 2010-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
30394         * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30396 2010-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
30398         Wait for user entry basing on presence of output rather than on errors.
30400         * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30401         (grub_install_newline_hook): Likewise.
30402         * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30403         * normal/menu.c (show_menu): Check line_counter to determine presence
30404         of output.
30405         * normal/term.c (grub_normal_line_counter): New variable.
30406         (grub_normal_get_line_counter): New function.
30407         (grub_install_newline_hook): Likewise.
30409 2010-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
30411         * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30413 2010-03-01  Vladimir Serbinenko  <phcoder@gmail.com>
30415         * configure.ac: Update version to 1.98.
30417 2010-02-26  Vladimir Serbinenko  <phcoder@gmail.com>
30419         * util/grub.d/10_linux.in (linux_entry): Don't default to
30420         gfxpayload=keep if Linux doesn't support video handover.
30422 2010-02-25  Vladimir Serbinenko  <phcoder@gmail.com>
30424         Don't compile video modules on yeeloong since video subsystem is part
30425         of kernel.
30427         * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30428         video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30429         * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30430         video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30431         * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30432         * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30433         * include/grub/bitmap_scale.h: Likewise.
30434         * include/grub/bufio.h: Likewise.
30435         * include/grub/font.h: Likewise.
30436         * include/grub/gfxterm.h: Likewise.
30437         * include/grub/video.h: Likewise.
30438         * include/grub/vbe.h: Don't include video_fb.h.
30439         * video/i386/pc/vbe.c: Include video_fb.h.
30440         * commands/i386/pc/vbetest.c: Include video.h.
30442 2010-02-25  Jordan Uggla  <jordan.uggla@gmail.com>
30444         * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30445         * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30446         default entry if GRUB_SAVEDEFAULT=true.  This allows using
30447         GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30448         saving a new default on every boot.
30450 2010-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
30452         * normal/crypto.c (read_crypto_list): Fix a memory leak.
30453         * normal/term.c (read_terminal_list): Likewise.
30454         * normal/main.c (grub_normal_init_page): Likewise.
30455         (grub_normal_read_line_real): Likewise.
30457 2010-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
30459         * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30460         memory leak.
30461         Reported by: Seth Goldberg.
30463 2010-02-24  Joey Korkames  <joey+lists@kidfixit.com>
30465         * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30466         duplicate declaration of `start'.
30468 2010-02-20  Vladimir Serbinenko  <phcoder@gmail.com>
30470         * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30471         filename.
30472         Reported by: Georgy Buranov
30474 2010-02-20  Carles Pina i Estany  <carles@pina.cat>
30476         * util/grub-mkrawimage.c (usage): Change string formatting to
30477         improve gettext.
30479 2010-02-20  Manoel Rebelo Abranches <mrabran@br.ibm.com>
30481         * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30482         backspace keys.
30484 2010-02-20  Vladimir Serbinenko  <phcoder@gmail.com>
30486         * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30487         Reported by: Michael Suchanek.
30489 2010-02-18  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30491         * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30492         * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30494 2010-02-16  Vladimir Serbinenko  <phcoder@gmail.com>
30496         Remove any reference to non-free fonts.
30498         * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30499         * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30500         uses non-free components.
30501         * font/font.c (grub_font_get_name): Remove example name.
30502         * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30503         * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30504         * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30505         * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30507 2010-02-16  Georgy Buranov <gburanov@gmail.com>
30509         * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30511 2010-02-15  Vladimir Serbinenko  <phcoder@gmail.com>
30513         * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30514         Double divisor.
30515         (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30516         features.
30517         (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30519 2010-02-15  Vladimir Serbinenko  <phcoder@gmail.com>
30521         * gensymlist.sh.in: Use TARGET_CC instead of CC.
30523 2010-02-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30525         * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30526         * docs/grub.texi (Command-line and menu entry commands): Document play
30527         command.
30529 2010-02-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30531         * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30532         parse arguments as inline tempo and notes.  Move code for playing notes
30533         to...
30534         (play): ... new function.
30536 2010-02-14  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30538         * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30539         grub_uint16_t instead of short.
30540         (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30541         disk from little endian to cpu endianness.
30543 2010-02-07  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30545         * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30546         GRUB_TICKS_PER_SECOND instead of 120.
30548 2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>
30550         * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30551         escape sequence after \e.
30553 2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>
30555         * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30556         non-ASCII characters.
30558 2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>
30560         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30561         set root in single quotes to prevent \, from being unescaped.
30563 2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>
30565         Prevent unknown commands from stopping menuentry execution.
30567         * script/execute.c (grub_script_execute_cmdline): Print error after
30568         unknown command.
30570 2010-02-14  Vladimir Serbinenko  <phcoder@gmail.com>
30572         * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30573         Reported by: Pavel Pisa.
30575 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30577         * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30579 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30581         Merge grub_ieee1275_map_physical into grub_map and rename to
30582         grub_ieee1275_map
30584         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30585         * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30586         Remove.
30587         * kern/ieee1275/openfw.c (grub_map): Rename to ...
30588         (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30589         necessary.
30590         * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30592 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30594         * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30595         opening and not after.
30597 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30599         * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30600         constants.
30602 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30604         * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30605         (alloc_phys): Use ALIGN_UP instead of align_addr.
30607 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30609         * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30611 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30613         * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30615 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30617         * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30618         verbose dprintf.
30620 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30622         Fix over-4GiB seek on sparc64.
30624         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30625         Replace pos_i and pos_lo with pos. All users updated.
30626         * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30627         New constant.
30628         * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30629         Likewise.
30630         * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30631         and pos_lo.
30633 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30635         * util/grub-mkrawimage.c (main): Call set_program_name.
30637 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30639         Properly align 64-bit targets.
30641         * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30642         (generate_image): Use ALIGN_ADDR.
30644 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30646         Properly create cross-endian images.
30648         * include/grub/types.h (grub_host_to_target_addr): New macro
30649         * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30651 2010-02-13  Vladimir Serbinenko  <phcoder@gmail.com>
30653         * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30655 2010-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
30657         Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30659         * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30660         * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30661         (grub_linux_boot): Divide by 64K when on VESA.
30663 2010-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
30665         Support GRUB_GFXPAYLOAD_LINUX.
30667         * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30668         * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30670 2010-02-10  Vladimir Serbinenko  <phcoder@gmail.com>
30672         * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30673         to show messages instead of discarding them.
30674         Process errors after executing command and not before. Keep old method
30675         too as precaution.
30677 2010-02-09  Vladimir Serbinenko  <phcoder@gmail.com>
30679         * configure.ac: Check for ft2build.h.
30681 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30683         * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30685 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30687         * genkernsyms.sh.in: Use TARGET_CC.
30689 2010-02-07  Colin Watson  <cjwatson@ubuntu.com>
30691         * NEWS: Update.
30693 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30695         * include/grub/multiboot2.h: Remove leftover file.
30696         * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30697         * include/grub/partition.h [GRUB_UTIL]: Likewise.
30699 2010-02-07  Yves Blusseau  <blusseau@zetam.org>
30701         * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30703 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30705         Fix warnings in grub-emu when compiling with maximum warning options.
30707         * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30708         (grub_arch_modules_addr): Return 0 and not NULL.
30709         * util/misc.c (ENABLE_RELOCATABLE): New definition.
30710         (xstrdup): Use newstr instead of dup.
30711         * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30712         of disk to dsk to avoid shadowing.
30713         (find_free_slot): Fix prototype.
30714         * util/getroot.c (grub_util_is_dmraid): Make static.
30715         * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30716         Add missing prototype.
30717         * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30719 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30721         * loader/i386/linux.c (grub_linux_setup_video): Handle error
30722         appropriately.
30724 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30726         * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30727         code out.
30729 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30731         * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30732         * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30733         * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30734         * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30735         * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30736         * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30738 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30740         * include/grub/err.h (grub_err_printf): Don't export.
30742 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30744         * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30746 2010-02-07  Vladimir Serbinenko  <phcoder@gmail.com>
30748         * include/grub/i18n.h (grub_gettext_dummy): Removed.
30749         * kern/misc.c (grub_gettext_dummy): Make static.
30751 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30753         * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30754         by non-valid ones.
30755         * kern/term.c (grub_putchar): Likewise.
30757 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30759         * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30760         buggy hook call and memory leak.
30762 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30764         * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30766 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30768         * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30770 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30772         * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30773         modevar.
30774         Return grub_errno on allocation error.
30776 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30778         * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30780 2010-02-06  Yves Blusseau  <blusseau@zetam.org>
30782         * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30783         (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30785 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30787         * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30788         non-pxe disk.
30789         (grub_pxefs_open): Likewise.
30791 2010-02-06  Robert Millan  <rmh.grub@aybabtu.com>
30793         * util/grub.d/10_hurd.in: Add --class information to menuentries.
30794         * util/grub.d/10_kfreebsd.in: Likewise.
30795         * util/grub.d/10_linux.in: Likewise.
30797 2010-02-06  Colin D Bennett  <colin@gibibit.com>
30799         * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30800         (gfxmenu_mod_SOURCES): New variable.
30801         (gfxmenu_mod_CFLAGS): Likewise.
30802         (gfxmenu_mod_LDFLAGS): Likewise.
30803         * include/grub/term.h (grub_term_set_current_output): Declare
30804         argument as const.
30805         * docs/gfxmenu-theme-example.txt: New file.
30806         * gfxmenu/gfxmenu.c: Likewise.
30807         * gfxmenu/gui_box.c: Likewise.
30808         * gfxmenu/gui_canvas.c: Likewise.
30809         * gfxmenu/gui_circular_progress.c: Likewise.
30810         * gfxmenu/gui_image.c: Likewise.
30811         * gfxmenu/gui_label.c: Likewise.
30812         * gfxmenu/gui_list.c: Likewise.
30813         * gfxmenu/gui_progress_bar.c: Likewise.
30814         * gfxmenu/gui_string_util.c: Likewise.
30815         * gfxmenu/gui_util.c: Likewise.
30816         * gfxmenu/icon_manager.c: Likewise.
30817         * gfxmenu/model.c: Likewise.
30818         * gfxmenu/named_colors.c: Likewise.
30819         * gfxmenu/theme_loader.c: Likewise.
30820         * gfxmenu/view.c: Likewise.
30821         * gfxmenu/widget-box.c: Likewise.
30822         * include/grub/gfxmenu_model.h: Likewise.
30823         * include/grub/gfxmenu_view.h: Likewise.
30824         * include/grub/gfxwidgets.h: Likewise.
30825         * include/grub/gui.h: Likewise.
30826         * include/grub/gui_string_util.h: Likewise.
30827         * include/grub/icon_manager.h: Likewise.
30829 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30831         Agglomerate scrolling in gfxterm.
30833         * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30834         (grub_virtual_screen_setup): Initialise 'total_screen'.
30835         (write_char): Split to ...
30836         (paint_char): ... this ...
30837         (write_char): ... and this.
30838         (paint_char): Handle delayed scrolling.
30839         (draw_cursor): Likewise.
30840         (scroll_up): Split to ...
30841         (real_scroll): ... this ...
30842         (scroll_up): ... and this.
30843         (real_scroll): Handle multi-line scroll and draw below-the-bottom
30844         characters.
30845         (grub_gfxterm_refresh): Call real_scroll.
30847 2010-02-06  Colin D Bennett  <colin@gibibit.com>
30849         * include/grub/misc.h (grub_iscntrl): New inline function.
30850         (grub_isalnum): Likewise.
30851         (grub_strtol): Likewise.
30853 2010-02-06  Colin D Bennett  <colin@gibibit.com>
30855         * normal/menu_text.c (get_entry_number): Move from here ...
30856         * normal/menu.c (get_entry_number): ... moved here.
30857         * include/grub/menu.h (grub_menu_get_default_entry_index):
30858         New prototype.
30859         * normal/menu.c (grub_menu_get_default_entry_index): New function.
30860         * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30861         * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30862         (grub_menu_viewer_should_return): Likewise.
30863         * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30864         * normal/menu_text.c (run_menu): Enable menu switching.
30865         * normal/menu_viewer.c (should_return): New variable.
30866         (menu_viewer_changed): Likewise.
30867         (grub_menu_viewer_show_menu): Handle menu viewer changes.
30868         (grub_menu_viewer_should_return): New function.
30869         (menuviewer_write_hook): Likewise.
30870         (grub_menu_viewer_init): Likewise.
30872 2010-02-06  Colin D Bennet <colin@gibibit.com>
30873 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30875         Support for gfxterm in a window.
30877         * include/grub/gfxterm.h: New file.
30878         * include/grub/video.h (struct grub_video_rect): New declaration.
30879         (grub_video_rect_t): Likewise.
30880         * term/gfxterm.c (struct grub_gfxterm_window): New type.
30881         (refcount): New variable.
30882         (render_target): Likewise.
30883         (window): Likewise.
30884         (repaint_callback): Likewise.
30885         (grub_virtual_screen_setup): Use 'render_target'.
30886         (init_window): New function.
30887         (grub_gfxterm_init_window): Likewise.
30888         (grub_gfxterm_init): Check reference counter.
30889         Use init_window.
30890         (destroy_window): New function.
30891         (grub_gfxterm_destroy_window): Likewise.
30892         (grub_gfxterm_fini): Check reference counter.
30893         Use destroy_window.
30894         (redraw_screen_rect): Restore viewport.
30895         Use 'render_target' and 'window'.
30896         Call 'repaint_callback'.
30897         (write_char): Use 'render_target'.
30898         (draw_cursor): Likewise.
30899         (scroll_up): Restore viewport.
30900         Use 'render_target' and 'window'.
30901         Call 'repaint_callback'.
30902         (grub_gfxterm_cls): Likewise.
30903         (grub_gfxterm_refresh): Use 'window'.
30904         (grub_gfxterm_set_repaint_callback): New function.
30905         (grub_gfxterm_background_image_cmd): Use 'window'.
30906         (grub_gfxterm_get_term): New function.
30907         (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30909 2010-02-06  Colin D Bennett  <colin@gibibit.com>
30911         Bitmap scaling support.
30913         * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30914         (bitmap_scale_mod_SOURCES): New variable.
30915         (bitmap_scale_mod_CFLAGS): Likewise.
30916         (bitmap_scale_mod_LDFLAGS): Likewise.
30917         * include/grub/bitmap_scale.h: New file.
30918         * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30919         (background_image_cmd_options): New variable.
30920         (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30921         (cmd): Rename and change type to ...
30922         (background_image_cmd_handle): ... this. All users updated.
30923         (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30924         * video/bitmap_scale.c: New file.
30926 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30928         SDL support.
30930         * Makefile.in (LIBSDL): New variable.
30931         (enable_grub_emu_sdl): Likewise.
30932         * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30933         (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30934         (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30935         * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30936         * util/sdl.c: New file.
30938 2010-02-06  Colin D Bennett  <colin@gibibit.com>
30939 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
30941         Double buffering support.
30943         * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30944         * include/grub/video.h: Update comment.
30945         * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30946         New type.
30947         (grub_video_fb_doublebuf_blit_init): New prototype.
30948         * term/gfxterm.c (scroll_up): Support double buffering.
30949         (grub_gfxterm_refresh): Likewise.
30950         * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30951         (grub_video_fb_doublebuf_blit_init): Likewise.
30952         * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30953         'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30954         'displayed_page', 'render_page' and 'update_screen'.
30955         (grub_video_vbe_fini): Free offscreen buffer.
30956         (doublebuf_pageflipping_commit): New function.
30957         (doublebuf_pageflipping_update_screen): Likewise.
30958         (doublebuf_pageflipping_init): Likewise.
30959         (double_buffering_init): Likewise.
30960         (grub_video_vbe_setup): Enable doublebuffering.
30961         (grub_video_vbe_swap_buffers): Implement.
30962         (grub_video_vbe_set_active_render_target): Handle double buffering.
30963         (grub_video_vbe_get_active_render_target): Likewise.
30964         (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30965         (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30966         (grub_video_vbe_enable_double_buffering): Likewise.
30967         (grub_video_vbe_swap_buffers): Use update_screen.
30968         (grub_video_set_mode): Use double buffering.
30970 2010-02-06  Robert Millan  <rmh.grub@aybabtu.com>
30972         * maintainance/gentrigtables.py: Remove.
30973         * lib/trig.c: Likewise.
30975         * gentrigtables.c: New file.  C rewrite of gentrigtables.py.
30977         * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30978         `trigtables.c'.
30979         (trigtables.c): New rule.
30980         (gentrigtables): Likewise.
30981         (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30983 2010-02-06  Robert Millan  <rmh.grub@aybabtu.com>
30985         * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30986         integer constants.
30988 2010-02-06  Colin D Bennet <colin@gibibit.com>
30990         Trigonometry support.
30992         * include/grub/trig.h: New file.
30993         * lib/trig.c: Likewise.
30994         * maintainance/gentrigtables.py: Likewise.
30995         * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30996         (trig_mod_SOURCES): New variable.
30997         (trig_mod_CFLAGS): Likewise.
30998         (trig_mod_LDFLAGS): Likewise.
31000 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
31002         * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
31003         disk devices.
31005 2010-02-06  Vladimir Serbinenko  <phcoder@gmail.com>
31007         * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
31008         error.
31010 2010-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
31012         * util/hostdisk.c (open_device): Don't use partition device when reading
31013         before the partition.
31014         (grub_util_biosdisk_read): Don't read from partition and before the
31015         partition in single operation.
31016         (grub_util_biosdisk_write): Don't write to partition and before the
31017         partition in single operation.
31019 2010-02-03  Torsten Landschoff   <torsten@debian.org>
31021         * kern/disk.c (grub_disk_read): Fix offset computation when reading
31022         last sectors.
31024 2010-02-03  Vladimir Serbinenko  <phcoder@gmail.com>
31026         * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
31027         CDROM reads.
31028         (grub_biosdisk_write): Refuse to write to CDROM.
31030 2010-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
31032         * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
31034 2010-01-31  Vladimir Serbinenko  <phcoder@gmail.com>
31036         * font/font.c (find_glyph): Check that bmp_idx is available before
31037         using it.
31038         (grub_font_get_string_width): Never call grub_font_get_glyph_internal
31039         with (font == NULL).
31041 2010-01-28  Christian Schmitt  <chris@ilovelinux.de>
31043         * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
31045 2010-01-28  BVK Chaitanya  <bvk.groups@gmail.com>
31047         * include/grub/script_sh.h (sourcecode): Add const qualifier.
31048         * util/grub-script-check.c (getline): Fix empty lines case.
31050 2010-01-28  Robert Millan  <rmh.grub@aybabtu.com>
31052         * Makefile.in (check): Exit with fail status when one of the tests
31053         fails.
31054         * tests/example_functional_test.c (example_test): Fix reversed assert.
31055         * tests/example_unit_test.c (example_test): Likewise.
31057 2010-01-28  Colin Watson  <cjwatson@ubuntu.com>
31059         * util/grub.d/10_linux.in: This script does not use any of the
31060         contents of gettext.sh, only the external command `gettext', so stop
31061         sourcing it.  (Moreover, gettext.sh isn't necessarily installed in
31062         the same prefix as GRUB.)
31063         * util/grub.d/10_kfreebsd.in: Likewise.
31065 2010-01-27  Vladimir Serbinenko  <phcoder@gmail.com>
31067         * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
31068         of the line.
31070 2010-01-27  Vladimir Serbinenko  <phcoder@gmail.com>
31072         * kern/disk.c (grub_disk_read): Fix offset computation when reading
31073         last sectors.
31075 2010-01-27  Vladimir Serbinenko  <phcoder@gmail.com>
31077         * commands/hashsum.c (hash_file): Avoid possible stack overflow by
31078         having a 4KiB and not 32KiB buffer size.
31080 2010-01-27  Robert Millan  <rmh.grub@aybabtu.com>
31082         * util/hostfs.c: Include `<errno.h>'.
31083         (grub_hostfs_read): Handle errors from fseeko() and fread().
31085 2010-01-27  Robert Millan  <rmh.grub@aybabtu.com>
31087         * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
31088         loop when using read hooks on files whose size isn't sector-aligned.
31090 2010-01-27  Robert Millan  <rmh.grub@aybabtu.com>
31092         Remove unused parameter.
31094         * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
31095         (grub_iso9660_open): Remove initialization of `data->length'.
31097 2010-01-27  Robert Millan  <rmh.grub@aybabtu.com>
31099         * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
31100         memleak conditions.
31102 2010-01-27  Carles Pina i Estany  <carles@pina.cat>
31104         * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31105         (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31107 2010-01-26  Carles Pina i Estany  <carles@pina.cat>
31109         * util/bin2h.c (usage): Fix warning (space after backslash).
31111 2010-01-26  Carles Pina i Estany  <carles@pina.cat>
31113         * font/font.c: Include `grub/fontformat.h.
31114         Remove font file format constants.
31115         (grub_font_load): Use the new macros.
31116         * include/grub/fontformat.h: New file.
31117         * util/grub-mkfont.c: Include `grub/fontformat.c'.
31118         (write_font_pf2): Use the new macros.
31120 2010-01-26  Robert Millan  <rmh.grub@aybabtu.com>
31122         * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31123         does.
31125 2010-01-26  Robert Millan  <rmh.grub@aybabtu.com>
31127         * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31129         * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31130         (_start): Macroify `0x7F'.
31132         * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31133         (make_install_device): Use "(pxe)" as fallback prefix when booting
31134         via PXE.
31136 2010-01-26  Vladimir Serbinenko  <phcoder@gmail.com>
31138         * configure.ac: Reset LIBS after check for libgcc symbols.
31140 2010-01-25  Colin Watson  <cjwatson@ubuntu.com>
31142         * util/hostdisk.c (open_device): Add trailing newline to debug
31143         message.
31145 2010-01-25  Grégoire Sutre  <gregoire.sutre@gmail.com>
31147         * configure.ac: Check for `limits.h'.
31148         * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31150 2010-01-24  Robert Millan  <rmh.grub@aybabtu.com>
31152         * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31153         capitalize error strings.
31155 2010-01-24  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31157         * util/grub.d/10_hurd.in: Add a recovery mode.
31159 2010-01-23  Vladimir Serbinenko  <phcoder@gmail.com>
31161         * configure.ac: Check for libgcc symbols with -nostdlib.
31163 2010-01-23  BVK Chaitanya  <bvk.groups@gmail.com>
31165         * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31167 2010-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
31169         * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31170         stack since heap may be unavailable at that point.
31171         (grub_ofconsole_gotoxy): Likewise.
31173 2010-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
31175         * configure.ac: Check for _restgpr_14_x.
31176         * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31177         and _savegpr_* prototypes.
31179 2010-01-22  Robert Millan  <rmh.grub@aybabtu.com>
31181         Use generic grub_reboot() for i386-efi.
31183         * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31184         * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31185         * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31187 2010-01-22  Vladimir Serbinenko  <phcoder@gmail.com>
31189         * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31190         presence of "prefix" variable as it breaks when normal.mod is
31191         embedded.
31193 2010-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
31195         * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31196         stack since heap is unavailable at that point.
31198 2010-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
31200         * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31201         (grub_freebsd_bootinfo): Rewritten.
31202         * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31204 2010-01-21  Vladimir Serbinenko  <phcoder@gmail.com>
31206         * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31208 2010-01-21  Robert Millan  <rmh.grub@aybabtu.com>
31210         * po/POTFILES: Remove mkisofs-related files.  They have their own TLP
31211         domain now.
31213 2010-01-20  Felix Zielcke <fzielcke@z-51.de>
31215         * util/misc.c (make_system_path_relative_to_its_root): Change the work
31216         around for handling "/" to the correct fix.  Fix a memory leak.  Use
31217         xstrdup instead of strdup.
31219 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31221         * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31223 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31225         Optimise glyph lookup by Basic Multilingual Plane lookup array.
31227         * font/font.c (struct grub_font): New member 'bmp_idx'.
31228         (font_init): Initialise 'bmp_idx'.
31229         (load_font_index): Fill 'bmp_idx'.
31230         (find_glyph): Make inline. Use bmp_idx for BMP characters.
31232 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31234         * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31235         unnecessary calls.
31237 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31239         Move context handling out of the kernel.
31241         * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31242         * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31243         * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31244         * conf/i386-efi.rmk: Likewise.
31245         * conf/i386-ieee1275.rmk: Likewise.
31246         * conf/i386-pc.rmk: Likewise.
31247         * conf/powerpc-ieee1275.rmk: Likewise.
31248         * conf/sparc64-ieee1275.rmk: Likewise.
31249         * conf/x86_64-efi.rmk: Likewise.
31250         * include/grub/env.h: Include grub/menu.h.
31251         (grub_env_var_type): Removed.
31252         (grub_env_var): Replaced field 'type' with 'global'.
31253         (grub_env_find): New prototype.
31254         (grub_env_context_open): Remove EXPORT_FUNC.
31255         (grub_env_context_close): Likewise.
31256         (grub_env_export): Likewise.
31257         (grub_env_set_data_slot): Removed.
31258         (grub_env_get_data_slot): Likewise.
31259         (grub_env_unset_data_slot): Likewise.
31260         (grub_env_unset_menu): New prototype.
31261         (grub_env_set_menu): Likewise.
31262         (grub_env_get_menu): Likewise.
31263         * include/grub/env_private.h: New file.
31264         * include/grub/normal.h (grub_context_init): New prototype.
31265         (grub_context_fini): Likewise.
31266         * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31267         * normal/context.c (grub_cmd_export): ... to here.
31268         * kern/env.c: Include env_private.h.
31269         (HASHSZ): Moved to include/grub/env_private.h.
31270         (grub_env_context): Likewise.
31271         (grub_env_sorted_var): Likewise.
31272         (current_context): Renamed from this ...
31273         (grub_current_context): ...to this. 'static' removed. All users updated.
31274         (grub_env_find): Removed 'static'.
31275         (grub_env_context_open): Moved to normal/context.c.
31276         (grub_env_context_close): Likewise.
31277         (grub_env_export): Likewise.
31278         (mangle_data_slot_name): Removed.
31279         (grub_env_set_data_slot): Likewise.
31280         (grub_env_get_data_slot): Likewise.
31281         (grub_env_unset_data_slot): Likewise.
31282         * kern/main.c (grub_set_root_dev): Don't export root.
31283         It will be done later.
31284         (grub_main): Don't export prefix.
31285         It will be done later.
31286         * normal/context.c: New file.
31287         * normal/main.c (free_menu): Use grub_env_unset_menu.
31288         (grub_normal_add_menu_entry): Use grub_env_get_menu.
31289         (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31290         (GRUB_MOD_INIT(normal)): Call grub_context_init.
31291         (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31293 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31295         setpci support.
31297         * commands/setpci.c: New file.
31298         * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31299         (setpci_mod_SOURCES): New variable.
31300         (setpci_mod_CFLAGS): Likewise.
31301         (setpci_mod_LDFLAGS): Likewise.
31303 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31305         Byte-addressable PCI configuration space.
31307         * bus/pci.c (grub_pci_make_address): Use byte address instead of
31308         dword address.
31309         (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31310         GRUB_PCI_REG_CACHELINE.
31311         * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31312         GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31313         * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31314         GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31315         * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31316         * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31317         grub_pci_make_address.
31318         (lock_rom_area): Likewise.
31319         * commands/lspci.c (grub_lspci_iter): Use macroses
31320         GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31321         of grub_pci_make_address.
31322         * disk/ata.c (grub_ata_pciinit): Likewise.
31323         * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31324         (GRUB_PCI_REG_VENDOR): Likewise.
31325         (GRUB_PCI_REG_DEVICE): Likewise.
31326         (GRUB_PCI_REG_COMMAND): Likewise.
31327         (GRUB_PCI_REG_STATUS): Likewise.
31328         (GRUB_PCI_REG_REVISION): Likewise.
31329         (GRUB_PCI_REG_CLASS): Likewise.
31330         (GRUB_PCI_REG_CACHELINE): Likewise.
31331         (GRUB_PCI_REG_LAT_TIMER): Likewise.
31332         (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31333         (GRUB_PCI_REG_BIST): Likewise.
31334         (GRUB_PCI_REG_ADDRESSES): Likewise.
31335         (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31336         (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31337         (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31338         (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31339         (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31340         (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31341         (GRUB_PCI_REG_CIS_POINTER): Likewise.
31342         (GRUB_PCI_REG_SUBVENDOR): Likewise.
31343         (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31344         (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31345         (GRUB_PCI_REG_CAP_POINTER): Likewise.
31346         (GRUB_PCI_REG_IRQ_LINE): Likewise.
31347         (GRUB_PCI_REG_IRQ_PIN): Likewise.
31348         (GRUB_PCI_REG_MIN_GNT): Likewise.
31349         (GRUB_PCI_REG_MAX_LAT): Likewise.
31350         * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31351         * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31352         * video/efi_uga.c (find_framebuf): Likewise.
31353         * video/sm712.c (grub_video_sm712_setup): Likewise.
31354         * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31355         space.
31357 2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>
31359         * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31360         can be reliably determined to be supported.
31362 2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>
31364         * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31365         that VESA is supported.
31366         (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31367         supported.
31369 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31371         * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31373 2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>
31375         * util/misc.c (make_system_path_relative_to_its_root): Work around
31376         special-casing of "/", as previous incarnation of this routine did.
31378 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31380         Fix any-emu compilation.
31382         * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31383         * grub_bin2h_SOURCES: New variable.
31385 2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>
31387         * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31389 2010-01-20  Robert Millan  <rmh.grub@aybabtu.com>
31391         * util/grub.d/00_header.in: Fix handling of locale_dir.
31393 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31395         * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31396         as possible unifont location (Gentoo).
31397         Reported by: Alexander Brüning
31399 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31401         Don't try to generate lists for kernel.img.
31403         * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31404         (pkglib_MODULES): Remove kernel.img.
31405         (kernel_img_EXPORTS): Removed.
31406         (kernel_img_RELOCATABLE): New variable.
31407         * conf/x86_64-efi.rmk: Likewise.
31408         * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31410 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31412         * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31413         grub_xasprintf or grub_snprintf.
31414         (grub_vsprintf): Likewise.
31415         (grub_snprintf): New proto.
31416         (grub_vsnprintf): Likewise.
31417         (grub_xasprintf): Likewise.
31418         (grub_xvasprintf): Likewise.
31419         * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31420         (grub_sprintf): Removed.
31421         (grub_vsnprintf): New function.
31422         (grub_snprintf): Likewise.
31423         (grub_xvasprintf): Likewise.
31424         (grub_xasprintf): Likewise.
31425         (grub_vsprintf): Renamed to ...
31426         (grub_vsnprintf_real): ...this. New argument max_len.
31428 2010-01-20  BVK Chaitanya  <bvk.groups@gmail.com>
31430         * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31431         fix grub-script-check warning.
31433 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31435         * include/grub/font.h (grub_font_load): Fix prototype.
31437 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31439         * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31441 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31443         * include/grub/x86_64/at_keyboard.h: New file.
31445 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31447         * loader/mips/linux.c: Include missing grub/i18n.h.
31449 2009-12-20  Robert Millan  <rmh.grub@aybabtu.com>
31451         * normal/menu.c (notify_execution_failure): Clarify error message.
31453 2009-12-20  Robert Millan  <rmh.grub@aybabtu.com>
31455         * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31456         return value (and revert all return statements).  Update users.
31458 2010-01-20  Dan Merillat  <debian@dan.merillat.org>
31460         * kern/device.c (grub_device_iterate): Allocate new part_ent
31461         structure based on sizeof (*p) rather than sizeof (p->next), to
31462         account for structure padding.
31464         * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31465         disk is NULL, which might happen for LVM physical volumes with no
31466         LVM signature.
31468 2009-12-20  Robert Millan  <rmh.grub@aybabtu.com>
31470         * loader/mips/linux.c (grub_cmd_initrd)
31471         (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31473 2009-12-20  Robert Millan  <rmh.grub@aybabtu.com>
31475         * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31476         (grub_video_video_init, grub_video_bitmap_init)
31477         (grub_font_manager_init, grub_term_gfxterm_init)
31478         (grub_at_keyboard_init): New extern declarations.
31479         (grub_machine_init): Initialize gfxterm and at_keyboard.
31481         * kern/main.c (grub_main): Revert grub_printf delay kludge.
31483         * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31484         `gfxterm.mod' into core image.
31486         * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31487         (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31488         (kernel_img_FORMAT): Copy to ...
31490         * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31491         (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31492         (kernel_img_FORMAT): ... here, and ...
31494         * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31495         (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31496         (kernel_img_FORMAT): ... here.
31498         (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31499         and input (at_keyboard) terminals in kernel.
31500         (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31502         (pkglib_MODULES): Remove `pci.mod'.
31503         (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31504         (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31505         (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31506         (at_keyboard_mod_LDFLAGS): Remove variables.
31508 2010-01-11  Felix Zielcke <fzielcke@z-51.de>
31510         * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31512 2009-12-10  Robert Millan  <rmh.grub@aybabtu.com>
31514         * include/grub/mips/libgcc.h: Only export symbols for functions
31515         that libgcc provides.
31517 2009-12-02  Vladimir Serbinenko  <phcoder@gmail.com>
31519         MIPS support.
31521         * bus/bonito.c: New file.
31522         * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31523         GRUB_PCI_NUM_DEVICES.
31524         * term/i386/pc/serial.c: Move to ...
31525         * term/serial.c: ... here. All users updated.
31526         * util/i386/pc/grub-mkimage.c: Move to ...
31527         * util/grub-mkrawimage.c: ... here. All users updated.
31528         * term/i386/pc/at_keyboard.c: Move to ...
31529         * term/at_keyboard.c: ... here. All users updated.
31530         * conf/mips-qemu-mips.rmk: New file.
31531         * conf/mips-yeeloong.rmk: Likewise.
31532         * conf/mips.rmk: Likewise.
31533         * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31534         mipsel-qemu-mips.
31535         * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31536         to port addresses.
31537         (grub_ata_pciinit): Support CS5536.
31538         * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31539         * font/font_cmd.c (loadfont_command): Open file before passing it to
31540         grub_font_load.
31541         (pseudo_file_read): New function.
31542         (pseudo_file_close): Likewise.
31543         (pseudo_fs): New structure.
31544         (load_font_module): New function.
31545         (GRUB_MOD_INIT(font_manager)): Load embedded font.
31546         * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31547         * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31548         * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31549         * include/grub/i386/at_keyboard.h: Split into ...
31550         * include/grub/at_keyboard.h: ... this ...
31551         * include/grub/i386/at_keyboard.h: ... and this.
31552         * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31553         New prototype.
31554         * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31555         updated.
31556         (grub_elf64_size): Likewise.
31557         * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31558         filename.
31559         * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31560         * include/grub/i386/coreboot/serial.h: Rewritten.
31561         * include/grub/i386/ieee1275/serial.h: Include
31562         grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31563         * include/grub/i386/pc/serial.h: Moved from here ...
31564         * include/grub/serial.h: ... to here. All users updated.
31565         * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31566         (GRUB_PCI_NUM_BUS): Likewise.
31567         (GRUB_PCI_NUM_DEVICES): Likewise.
31568         (grub_pci_device_map_range): Add missing volatile keyword.
31569         * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31570         * include/grub/mips/at_keyboard.h: New file.
31571         * include/grub/mips/cache.h: Likewise.
31572         * include/grub/mips/io.h: Likewise.
31573         * include/grub/mips/kernel.h: Likewise.
31574         * include/grub/mips/libgcc.h: Likewise.
31575         * include/grub/mips/pci.h: Likewise.
31576         * include/grub/mips/qemu-mips/boot.h: Likewise.
31577         * include/grub/mips/qemu-mips/kernel.h: Likewise.
31578         * include/grub/mips/qemu-mips/loader.h: Likewise.
31579         * include/grub/mips/qemu-mips/memory.h: Likewise.
31580         * include/grub/mips/qemu-mips/serial.h: Likewise.
31581         * include/grub/mips/qemu-mips/time.h: Likewise.
31582         * include/grub/mips/relocator.h: Likewise.
31583         * include/grub/mips/time.h: Likewise.
31584         * include/grub/mips/types.h: Likewise.
31585         * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31586         * include/grub/mips/yeeloong/boot.h: Likewise.
31587         * include/grub/mips/yeeloong/kernel.h: Likewise.
31588         * include/grub/mips/yeeloong/loader.h: Likewise.
31589         * include/grub/mips/yeeloong/memory.h: Likewise.
31590         * include/grub/mips/yeeloong/pci.h: Likewise.
31591         * include/grub/mips/yeeloong/serial.h: Likewise.
31592         * include/grub/mips/yeeloong/time.h: Likewise.
31593         * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31594         * kern/elf.c (grub_elf32_size): New parameter. All users
31595         updated.
31596         (grub_elf64_size): Likewise.
31597         * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31598         Load modules before saying "Welcome to GRUB!".
31599         Call grub_refresh after saying "Welcome to GRUB!".
31600         * kern/mips/cache.S: New file.
31601         * kern/mips/cache_flush.S: Likewise.
31602         * kern/mips/dl.c: Likewise.
31603         * kern/mips/init.c: Likewise.
31604         * kern/mips/qemu-mips/init.c: Likewise.
31605         * kern/mips/startup.S: Likewise.
31606         * kern/mips/yeeloong/init.c: Likewise.
31607         * kern/term.c (grub_putcode): Handle NULL terminal.
31608         (grub_getcharwidth): Likewise.
31609         (grub_getkey): Likewise.
31610         (grub_checkkey): Likewise.
31611         (grub_getkeystatus): Likewise.
31612         (grub_getxy): Likewise.
31613         (grub_getwh): Likewise.
31614         (grub_gotoxy): Likewise.
31615         (grub_cls): Likewise.
31616         (grub_setcolorstate): Likewise.
31617         (grub_setcolor): Likewise.
31618         (grub_getcolor): Likewise.
31619         (grub_refresh): Likewise.
31620         * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31621         (write_jump): Add hatch nop.
31622         * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31623         * lib/mips/setjmp.S: New file.
31624         * loader/mips/linux.c: Likewise.
31625         * term/i386/pc/at_keyboard.c: Move from here ...
31626         * term/at_keyboard.c: ... to here.
31627         * term/i386/pc/serial.c: Moved from here ...
31628         * term/serial.c: ... to here. All users updated.
31629         (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31630         (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31631         (serial_translate_key_sequence): Avoid deadlock.
31632         (grub_serial_getkey): Handle backspace.
31633         (grub_serial_putchar): Fix newline handling.
31634         * util/i386/pc/grub-mkimage.c: Move from here ...
31635         * util/grub-mkrawimage.c: ... to here. All users updated.
31636         (generate_image): New parameters 'font_path' and 'format'.
31637         Support embedding font.
31638         Use grub_host_to_target* instead of grub_cpu_to_le*.
31639         (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31640         (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31641         (options): New option "--font".
31642         (usage): Likewise.
31643         (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31644         (main): Handle "--font".
31645         * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31646         (grub_virtual_screen_setup): Set bg_color_display.
31647         (redraw_screen_rect): Use bg_color_display instead of incorrect
31648         bg_color.
31649         (grub_gfxterm_cls): Likewise.
31650         * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31651         Support embedding config file.
31652         (add_segments): Likewise.
31653         (options): New option "--config".
31654         (main): Handle "--config".
31655         * video/sm712.c: New file.
31657 2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>
31659         Fix parallel builds.
31661         * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31662         font.c depend on ascii.h).
31664 2010-01-12  Carles Pina i Estany  <carles@pina.cat>
31666         * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31668 2010-01-11  Carles Pina i Estany  <carles@pina.cat>
31670         * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31671         By default: disabled.
31672         * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31673         parameter.
31675 2010-01-10  Carles Pina i Estany  <carles@pina.cat>
31677         * font/font.c: Update copyright years.
31678         * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31680 2010-01-10  Carles Pina i Estany  <carles@pina.cat>
31682         * font/font.c: Include `ascii.h'.
31683         (ASCII_BITMAP_SIZE): New macro.
31684         (ascii_font_glyph): Define.
31685         (ascii_glyph_lookup): New function.
31686         (grub_font_get_string_width): Change comment. If glyph not found, use
31687         ascii_glyph_lookup.
31688         (grub_font_get_glyph_with_fallback): If glyph not available returns
31689         ascii_glyph_lookup.
31690         * util/grub-mkfont.c (file_formats): New enum.
31691         (options): Add `ascii-bitmaps' new option.
31692         (usage): Add `asii-bitmaps' new option.
31693         (write_font_ascii_bitmap): New function.
31694         (write_font): Rename to ...
31695         (write_font_p2): ... this. Remove print_glyphs call.
31696         (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31697         used. Call print_glyphs.
31698         * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31700 2010-01-14  Robert Millan  <rmh.grub@aybabtu.com>
31702         * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31703         (grub_bin2h_SOURCES): New variable.
31704         * util/bin2h.c: New file.
31706 2010-01-20  Vladimir Serbinenko  <phcoder@gmail.com>
31708         * include/multiboot.h: Resynced with spec.
31709         * include/multiboot2.h: Likewise.
31710         * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31711         GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31713 2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>
31715         * include/grub/term.h (grub_term_register_input,
31716         grub_term_register_output): Check return of terminal init()
31717         routines, and abort if errors are raised.
31719         * commands/terminal.c: Update copyright year.
31721 2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>
31723         * commands/terminal.c (grub_cmd_terminal_input)
31724         (grub_cmd_terminal_output): Check return of terminal init()
31725         routines, and abort if errors are raised.
31727 2010-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
31729         * include/grub/i386/bsd.h: Fix include pathes.
31731 2010-01-18  Vladimir Serbinenko  <phcoder@gmail.com>
31733         Add missing *BSD copyright headers.
31735         * include/grub/aout.h: Add BSD licence.
31736         * include/grub/i386/bsd.h: Parts under different licences moved to ...
31737         * include/grub/i386/freebsd_linker.h: ... here,
31738         * include/grub/i386/freebsd_reboot.h: ... here,
31739         * include/grub/i386/netbsd_bootinfo.h: ... here,
31740         * include/grub/i386/netbsd_reboot.h: ... here,
31741         * include/grub/i386/openbsd_bootarg.h: ... here,
31742         * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31743         licence to each file.
31745 2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>
31747         * acinclude.m4: Remove `nop' assembly instruction; it's not
31748         implemented by all architectures.
31750 2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>
31752         * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31753         ELILO.  This is no longer necessary.
31755 2010-01-18  BVK Chaitanya  <bvk.groups@gmail.com>
31757         Added new tool, grub-scrit-check to verify grub.cfg syntax.
31759         * util/grub-script-check.c: grub-script-check tool.
31760         * conf/common.rmk: Make rules for grub-script-check.
31762 2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>
31764         Fix annoying UI bug in rescue mode.  Thanks to Tristan Gingold for
31765         spotting it back in 2008.  Shame on me for forgetting he did.
31767         * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31769 2010-01-18  Robert Millan  <rmh.grub@aybabtu.com>
31771         * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31772         (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this.  Update all users.
31773         (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31774         (GRUB_VIDEO_LINUX_TYPE_VESA): ... this.  Update all users.
31775         (GRUB_VIDEO_TYPE_EFI): Rename to ...
31776         (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this.  Update all users.
31778 2010-01-17  Robert Millan  <rmh.grub@aybabtu.com>
31780         * include/grub/test.h: Add license header.
31781         * tests/example_functional_test.c: Likewise.
31782         * tests/example_unit_test.c: Likewise.
31783         * tests/lib/functional_test.c: Likewise.
31784         * tests/lib/test.c: Likewise.
31785         * tests/lib/unit_test.c: Likewise.
31787 2010-01-17  Vladimir Serbinenko  <phcoder@gmail.com>
31789         Use flag-based instead of hook-based video mode selection and "auto"
31790         keyword.
31792         * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31793         (grub_video_set_mode): Changed prototype. All users updated.
31794         (grub_video_check_mode_flag): New inline function.
31795         * video/video.c (parse_modespec): New function.
31796         (grub_video_set_mode): Parse flags and keywords.
31798 2010-01-17  Carles Pina i Estany  <carles@pina.cat>
31800         * util/misc.c (grub_util_info): Fix the order of the parameters in a
31801         fprintf call.
31803 2010-01-16  Grégoire Sutre <gregoire.sutre@gmail.com>
31805         * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31807 2010-01-16  Carles Pina i Estany  <carles@pina.cat>
31809         * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31810         string.
31811         * util/grub-emu.c (usage): Likewise.
31812         * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31813         * util/i386/efi/grub-mkimage.c (usage): Likewise.
31814         * util/i386/pc/grub-mkimage.c (usage): Likewise.
31815         * util/i386/pc/grub-setup.c (usage): Likewise.
31817 2010-01-16  Carles Pina i Estany  <carles@pina.cat>
31819         * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31820         the message.
31821         (grub_util_info): Likewise.
31822         (grub_util_error): Likewise.
31823         * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31824         and/or new lines in `grub_util_warna', `grub_util_info',
31825         `grub_util_error' calls.
31826         * util/getroot.c: Likewise.
31827         * util/grub-editenv.c: Likewise.
31828         * util/grub-emu.c: Likewise.
31829         * util/grub-fstest.c: Likewise.
31830         * util/grub-mkdevicemap.c: Likewise.
31831         * util/grub-mkfont.c: Likewise.
31832         * util/grub-mkpasswd-pbkdf2.c: Likewise.
31833         * util/grub-mkrelpath.c: Likewise.
31834         * util/grub-pe2elf.c: Likewise.
31835         * util/grub-probe.c: Likewise.
31836         * util/hostdisk.c: Likewise.
31837         * util/i386/efi/grub-mkimage.c: Likewise.
31838         * util/i386/pc/grub-mkimage.c: Likewise.
31839         * util/i386/pc/grub-setup.c: Likewise.
31840         * util/ieee1275/ofpath.c: Likewise.
31841         * util/mkisofs/eltorito.c: Likewise.
31842         * util/mkisofs/rock.c: Likewise.
31843         * util/mkisofs/write.c: Likewise.
31844         * util/raid.c: Likewise.
31845         * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31846         * util/sparc64/ieee1275/grub-setup.c: Likewise.
31848 2010-01-15  Vladimir Serbinenko  <phcoder@gmail.com>
31850         Enable multiboot on non-pc.
31852         * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31853         multiboot.mod and multiboot2.mod to ...
31854         * conf/i386.rmk (pkglib_MODULES): ... here.
31855         * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31856         Moved to ...
31857         * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31858         * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31859         Moved to ...
31860         * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31861         * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31862         Moved to ...
31863         * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31864         * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31865         Moved to ...
31866         * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31867         * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31868         relocator.mod.
31869         (ata_mod_SOURCES): Removed.
31870         (ata_mod_CFLAGS): Likewise.
31871         (ata_mod_LDFLAGS): Likewise.
31872         (relocator_mod_SOURCES): Removed.
31873         (relocator_mod_CFLAGS): Likewise.
31874         (relocator_mod_ASFLAGS): Likewise.
31875         (relocator_mod_LDFLAGS): Likewise.
31876         Include i386.mk.
31877         * include/grub/x86_64/multiboot.h: New file.
31878         * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31879         Terminate EFI.
31881 2010-01-15  Vladimir Serbinenko  <phcoder@gmail.com>
31883         Video multiboot support.
31885         * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31886         New prototype.
31887         * include/multiboot.h: Resynced with multiboot specification.
31888         * include/multiboot2.h: Likewise.
31889         * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31890         (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31891         * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31892         (HAS_VGA_TEXT): Likewise.
31893         (accepts_video): New variable.
31894         (grub_multiboot_set_accepts_video): New function.
31895         (grub_multiboot_get_mbi_size): Account for video structures.
31896         (set_video_mode): New function.
31897         (retrieve_video_parameters): Likewise.
31898         (grub_multiboot_make_mbi): Fill video fields.
31900 2010-01-15  Vladimir Serbinenko  <phcoder@gmail.com>
31902         Video driver ids.
31904         * include/grub/video.h (grub_video_driver_id): New type.
31905         (grub_video_adapter): New member 'id'. All users updated.
31906         (grub_video_get_driver_id): New proto.
31907         * video/video.c (grub_video_get_driver_id): New function.
31909 2010-01-14  Carles Pina i Estany  <carles@pina.cat>
31911         * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31912         `var=val'.
31914 2010-01-14  Carles Pina i Estany  <carles@pina.cat>
31916         * normal/cmdline.c (print_completion): Gettextizze.
31918 2001-01-14  Carles Pina i Estany  <carles@pina.cat>
31920         * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31922 2010-01-14  Carles Pina i Estany  <carles@pina.cat>
31924         * gettext/gettext.c (grub_gettext_translate): Push and pop
31925         grub_errno.
31926         (grub_gettext_delete_list): Change comment style.
31927         * kern/err.c (grub_error): Gettextizze.
31928         (grub_fatal): Gettextizze.
31930 2010-01-14  Robert Millan  <rmh.grub@aybabtu.com>
31932         * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31933         (grub_linux16_real_boot): ... this.
31934         * kern/i386/loader.S: Likewise.
31935         * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31936         (grub_linux16_boot): New function.  Switches to text mode and calls
31937         grub_linux16_real_boot().
31939         * loader/i386/bsd.c: Include `<grub/video.h>'.
31940         (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31941         text mode before calling grub_unix_real_boot().
31943         * loader/i386/multiboot.c: Include `<grub/video.h>'.
31944         (grub_multiboot_boot): Switch to text mode before calling
31945         grub_relocator32_boot().
31947         * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31948         (grub_chainloader_boot): Switch to text mode before calling
31949         grub_chainloader_real_boot().
31951 2010-01-05  Jordan Uggla  <jordan.uggla@gmail.com>
31952 2010-01-05  Colin Watson  <cjwatson@ubuntu.com>
31954         * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31955         non-empty value.
31957 2010-01-05  Jordan Uggla  <jordan.uggla@gmail.com>
31958 2010-01-05  Colin Watson  <cjwatson@ubuntu.com>
31960         * util/grub.d/00_header.in: Define a "savedefault" function for use
31961         in menu entries.
31962         * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31964 2010-01-05  Jordan Uggla  <jordan.uggla@gmail.com>
31965 2010-01-05  Colin Watson  <cjwatson@ubuntu.com>
31967         * util/grub-mkconfig_lib.in (save_default_entry): Only set
31968         saved_entry if boot_once is unset.
31969         * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31970         previous saved entry (i.e. grub-reboot).
31972 2009-12-08  Colin Watson  <cjwatson@ubuntu.com>
31974         * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31976 2009-12-08  Colin Watson  <cjwatson@ubuntu.com>
31978         * util/grub.d/00_header.in: Use `set var=val' rather than plain
31979         `var=val'.
31980         * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31982 2009-12-08  Colin Watson  <cjwatson@ubuntu.com>
31984         * util/grub-reboot.in: Fix --version output.
31985         * util/grub-set-default.in: Likewise.
31987 2009-12-08  Colin Watson  <cjwatson@ubuntu.com>
31989         * util/grub.d/00_header.in: Silently ignore zero-sized environment
31990         blocks.
31992 2009-12-08  Colin Watson  <cjwatson@ubuntu.com>
31994         * util/grub.d/00_header.in: Quote the value assigned to `default',
31995         in case it contains spaces.
31997 2009-12-08  Colin Watson  <cjwatson@ubuntu.com>
31999         * util/grub.d/30_os-prober.in: Fix merge error that moved a
32000         `save_default_entry' call from the macosx case to the linux case.
32002 2009-10-25  Vladimir Serbinenko  <phcoder@gmail.com>
32003 2009-10-25  Colin Watson  <cjwatson@ubuntu.com>
32005         * normal/menu.c (grub_menu_execute_entry): Save selected entry title
32006         in `chosen' environment variable.
32007         * normal/menu_text.c (get_entry_number): Check if the variable
32008         matches the title of a menu entry.
32009         (run_menu): Pass menu to get_entry_number.
32011         * util/grub-reboot.in: New file.
32012         * util/grub-set-default.in: New file.
32013         * conf/common.rmk (grub-reboot): New utility.
32014         (grub-set-default): New utility.
32016         * util/grub-mkconfig_lib.in (save_default_entry): New function.
32017         * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
32018         default to `${saved_entry}'.  If `${prev_saved_entry}' is non-empty,
32019         move it to `saved_entry' for the next boot.  Load environment on
32020         initialisation.
32021         * util/grub.d/10_kfreebsd.in: Call save_default_entry.
32022         * util/grub.d/10_hurd.in: Likewise.
32023         * util/grub.d/10_linux.in (linux_entry): Likewise.
32024         * util/grub.d/10_windows.in: Likewise.
32025         * util/grub.d/30_os-prober.in: Likewise.
32027         * util/grub-install.in: Create environment block.
32028         * util/i386/efi/grub-install.in: Likewise.
32029         * util/ieee1275/grub-install.in: Likewise.
32030         * util/sparc64/ieee1275/grub-install.in: Likewise.
32032 2010-01-14  BVK Chaitanya  <bvk.groups@gmail.com>
32034         Unit testing framework for GRUB.
32036         * Makefile.in: Test framework build rules for 'make check'.
32037         * conf/tests.rmk: Build rules for individual tests and framework.
32039         * include/grub/test.h: Header file for whitebox tests.
32040         * tests/lib/functional_test.c: Framework support for whitebox
32041         functional tests.
32042         * tests/lib/test.c: Common whitebox testing code for unit and
32043         functional tests.
32044         * tests/lib/unit_test.c: Framework support for whitebox unit
32045         tests.
32047         * tests/util/grub-shell-tester.in: Support utility for grub-script
32048         tests.
32049         * tests/util/grub-shell.in: Utility to execute grub-script
32050         commands in a Qemu instance.
32052         * tests/example_functional_test.c: Example whitebox functional
32053         test.
32054         * tests/example_grub_script_test.in: Example grub-script test.
32055         * tests/example_scripted_test.in: Example scripted test.
32056         * tests/example_unit_test.c: Example whitebox unit test.
32058 2010-01-14  Vladimir Serbinenko  <phcoder@gmail.com>
32060         * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
32061         Add loader/i386/multiboot_mbi.c.
32062         (multiboot2_mod_SOURCES): Likewise.
32063         * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
32064         (multiboot2_mod_SOURCES): Likewise.
32065         * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
32066         (grub_multiboot_make_mbi): Likewise.
32067         (grub_multiboot_free_mbi): Likewise.
32068         (grub_multiboot_init_mbi): Likewise.
32069         (grub_multiboot_add_module): Likewise.
32070         (grub_multiboot_set_bootdev): Likewise.
32071         * loader/i386/multiboot.c (mbi): Removed.
32072         (mbi_dest): Likewise.
32073         (alloc_mbi): New variable.
32074         (grub_multiboot_payload_size): Removed. All users updated.
32075         (grub_multiboot_pure_size): New variable.
32076         (grub_multiboot_boot): Use grub_multiboot_make_mbi.
32077         (grub_multiboot_unload): Use grub_multiboot_free_mbi.
32078         (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
32079         (grub_fill_multiboot_mmap): Likewise.
32080         (grub_multiboot_get_bootdev): Likewise.
32081         (grub_multiboot): Use multiboot_mbi functions.
32082         * loader/i386/multiboot_mbi.c: New file.
32084 2010-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
32086         * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
32087         it would result in module crash.
32089 2010-01-13  Vladimir Serbinenko  <phcoder@gmail.com>
32091         * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
32092         (grub_ofconsole_getwh): Split to ...
32093         (grub_ofconsole_getwh): ... this.
32094         (grub_ofconsole_dimensions): ...and this.
32095         (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
32097 2010-01-13  Robert Millan  <rmh.grub@aybabtu.com>
32099         * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32101 2010-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
32103         * loader/i386/pc/multiboot2.c: Removed stalled file.
32105 2010-01-12  Vladimir Serbinenko  <phcoder@gmail.com>
32107         * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32108         Reported by: Grégoire Sutre
32110 2010-01-11  Robert Millan  <rmh.grub@aybabtu.com>
32112         * util/misc.c (canonicalize_file_name): New function.
32113         (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32114         instead of realpath().
32116 2010-01-11  Colin Watson  <cjwatson@ubuntu.com>
32118         * util/grub-install.in (usage): Clarify meaning of --root-directory,
32119         and make it clearer that it's optional.  Based on confusion
32120         witnessed on IRC.
32122 2010-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
32124         * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32125         in premature implicit newline.
32127 2010-01-10  Vladimir Serbinenko  <phcoder@gmail.com>
32129         * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32130         which resulted in garbled command line at the end of screen.
32132 2010-01-10  Robert Millan  <rmh.grub@aybabtu.com>
32134         * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32135         initialization with similar approach as with other Linux loaders.
32137 2010-01-10  Robert Millan  <rmh.grub@aybabtu.com>
32139         Fix i386-ieee1275 build.
32141         * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32142         and grub_term_height() for video_{width,height} initialization.
32144 2010-01-10  Robert Millan  <rmh.grub@aybabtu.com>
32146         Fix grub-emu build.
32148         * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32150 2010-01-07  Vladimir Serbinenko  <phcoder@gmail.com>
32151 2010-01-09  Robert Millan  <rmh.grub@aybabtu.com>
32153         Support for multiple terminals.
32155         * Makefile.in (pkglib_DATA): terminal.lst.
32156         (terminal.lst): New target.
32157         * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32158         (GRUB_MOD_INIT(handler)): Likewise.
32159         (GRUB_MOD_FINI(handler)): Likewise.
32160         * commands/help.c (grub_cmd_help): Handle multiple terminals.
32161         * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32162         * commands/sleep.c (do_print): Use grub_term_restore_pos.
32163         (grub_cmd_sleep): Use grub_term_save_pos.
32164         * commands/terminal.c: New file.
32165         * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32166         commands/terminal.c and lib/charset.c.
32167         * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32168         (pkglib_MODULES): Add terminal.mod.
32169         (terminal_mod_SOURCES): New variable.
32170         (terminal_mod_CFLAGS): Likewise.
32171         (terminal_mod_LDFLAGS): Likewise.
32172         * genhandlerlist.sh: Don't handle terminals.
32173         * genmk.rb: Generate terminal-*.lst.
32174         * genterminallist.sh: New file.
32175         * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32176         (grub_is_valid_utf8): Likewise.
32177         (grub_utf8_to_ucs4_alloc): Likewise.
32178         * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32179         (grub_menu_register_viewer): Changed argument.
32180         (grub_menu_try_text): New proto.
32181         (grub_gfxmenu_try_hook): New declaration.
32182         * include/grub/normal.h (grub_normal_exit_level): New declaration.
32183         (grub_menu_init_page): Additional argument term.
32184         (grub_normal_init_page): Likewise.
32185         (grub_cmdline_get): Arguments simplified.
32186         (grub_utf8_to_ucs4_alloc): Removed.
32187         (grub_print_ucs4): Additional argument term.
32188         (grub_getstringwidth): Likewise.
32189         (grub_print_message_indented): Likewise.
32190         (grub_menu_text_register_instances): New proto.
32191         (grub_show_menu): Likewise.
32192         (read_terminal_list): Likewise.
32193         (grub_set_more): Likewise.
32194         * include/grub/parser.h: Include handler.h.
32195         * include/grub/reader.h: Rewritten.
32196         * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32197         (GRUB_TERM_WIDTH): Changed to function.
32198         (GRUB_TERM_HEIGHT): Likewise.
32199         (GRUB_TERM_BORDER_WIDTH): Likewise.
32200         (GRUB_TERM_BORDER_HEIGHT): Likewise.
32201         (GRUB_TERM_NUM_ENTRIES): Likewise.
32202         (GRUB_TERM_ENTRY_WIDTH): Likewise.
32203         (GRUB_TERM_CURSOR_X): Likewise.
32204         (grub_term_input_class): Likewise.
32205         (grub_term_output_class): Likewise.
32206         (grub_term_outputs_disabled): New declaration.
32207         (grub_term_inputs_disabled): Likewise.
32208         (grub_term_outputs): Likewise.
32209         (grub_term_inputs): Likewise.
32210         (grub_term_register_input): Rewritten.
32211         (grub_term_register_output): Likewise.
32212         (grub_term_unregister_input): Likewise.
32213         (grub_term_unregister_output): Likewise.
32214         (FOR_ACTIVE_TERM_INPUTS): New macro.
32215         (FOR_DISABLED_TERM_INPUTS): Likewise.
32216         (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32217         (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32218         * include/grub/terminfo.h: Add oterm argument to all protypes.
32219         * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32220         Use grub_rescue_run.
32221         * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32222         All users updated.
32223         * kern/reader.c: Removed. All users updated.
32224         * kern/rescue_reader.c (grub_rescue_init): Removed.
32225         (grub_rescue_reader): Likewise.
32226         (grub_register_rescue_reader): Likewise.
32227         (grub_rescue_run): New function based on kern/reader.c.
32228         * kern/term.c: Adapted for multiterm.
32229         * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32230         (grub_is_valid_utf8): Likewise.
32231         (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32232         * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32233         right terminal.
32234         * loader/i386/linux.c (grub_linux_boot): Likewise.
32235         * normal/auth.c (grub_username_get): New function.
32236         (grub_auth_check_authentication): Use grub_username_get.
32237         * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32238         * normal/color.c: Adapt for multiterm.
32239         * normal/main.c (read_config_file): Don't use grub_reader_loop.
32240         (grub_normal_init_page): Additional argument term.
32241         (read_lists): Call read_terminal_lists.
32242         (grub_enter_normal_mode): Call grub_cmdline_run.
32243         Handle grub_normal_exit_level.
32244         (grub_cmd_normal): Make reentrant.
32245         (grub_cmd_normal_exit): New function.
32246         (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32247         * normal/menu.c: Adapt for multiterm.
32248         * normal/menu_entry.c: Likewise.
32249         * normal/menu_text.c: Likewise.
32250         * normal/menu_viewer.c: Removed. All users updated.
32251         * normal/term.c: New file.
32252         * util/console.c: Change order of includes to workaround a bug in
32253         ncurses headers.
32254         * term/terminfo.c: New argument oterm on all exported functions.
32255         All users updated.
32256         * util/grub-editenv.c (grub_term_input_class): Removed.
32257         (grub_term_output_class): Likewise.
32259 2010-01-09  Robert Millan  <rmh.grub@aybabtu.com>
32261         Make loader output a bit more user-friendly.
32263         * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32264         is being loaded.  Likewise for the Hurd.
32266         * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32267         that kernel of FreeBSD ${version} is being loaded.
32269         * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32270         grub_dprintf().
32271         (grub_cmd_initrd): Likewise.
32272         * util/grub.d/10_linux.in (linux_entry): Print message indicating
32273         that Linux ${version} is being loaded.  Likewise for initrd.
32275 2010-01-09  Carles Pina i Estany  <carles@pina.cat>
32277         * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32279 2010-01-08  Carles Pina i Estany  <carles@pina.cat>
32281         * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32282         (GRUB_MOD_INIT): Gettextizze.
32283         * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32284         (GRUB_MOD_INIT): Gettextizze.
32285         * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32286         (grub_cmd_linux): Capitalise Linux.
32287         (GRUB_MOD_INIT): Gettextizze.
32288         * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32289         (grub_cmd_linux): Capitalise Linux.
32290         (GRUB_MOD_INIT): Gettextizze.
32291         * loader/i386/linux.c: Include `<grub/i18n.h>'.
32292         (grub_cmd_linux): Capitalise Linux.
32293         (GRUB_MOD_INIT): Gettextizze.
32294         * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32295         (GRUB_MOD_INIT): Gettextizze.
32296         * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32297         (grub_cmd_linux): Capitalise Linux.
32298         (GRUB_MOD_INIT): Gettextizze.
32299         * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32300         (grub_cpu_xnu_init): Gettextizze.
32301         * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32302         (GRUB_MOD_INIT): Gettextizze.
32303         * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32304         (GRUB_MOD_INIT): Gettextizze.
32305         * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32306         (grub_linux_load64): Capitalise Linux.
32307         (GRUB_MOD_INIT): Gettextizze.
32308         * loader/xnu.c: Include `<grub/i18n.h>'.
32309         (GRUB_MOD_INIT): Gettextizze.
32310         * po/POTFILES: Add `loader/efi/appleloader.c',
32311         `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32312         `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32313         `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32314         `loader/i386/xnu.c', `loader/multiboot_loader.c',
32315         `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32316         and `loader/xnu.c'.
32318 2010-01-08  Robert Millan  <rmh.grub@aybabtu.com>
32320         * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32322 2010-01-08  Robert Millan  <rmh.grub@aybabtu.com>
32324         * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32325         (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32326         * util/mkisofs/mkisofs.c (main): Readjust --version output.
32328 2010-01-07  Robert Millan  <rmh.grub@aybabtu.com>
32330         Reset Multiboot 2 support.  New loader implements the draft in
32331         /branches/multiboot2 and shares as much code as possible with the
32332         production Multiboot 1 implementation.
32334         * loader/ieee1275/multiboot2.c: Remove file.  Update all users.
32335         * loader/multiboot2.c: Likewise.
32336         * loader/i386/multiboot_helper.S: Likewise.
32337         * include/multiboot2.h: Replace with latest version from the draft
32338         in /branches/multiboot2.
32340         * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32341         `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32342         and `loader/multiboot2.c'.
32343         (pkglib_MODULES): Add `multiboot2.mod'.
32344         (multiboot2_mod_SOURCES): New variable.
32345         (multiboot2_mod_LDFLAGS): Likewise.
32346         (multiboot2_mod_CFLAGS): Likewise.  Define `GRUB_USE_MULTIBOOT2'.
32348         * conf/i386-pc.rmk: Likewise.
32350         * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32351         (multiboot_mod_SOURCES): Remove variable.
32352         (multiboot_mod_LDFLAGS): Likewise.
32353         (multiboot_mod_CFLAGS): Likewise.
32355         * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32356         `<multiboot2.h>' instead of `<multiboot.h>'.
32357         [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32358         (MULTIBOOT_HEADER_MAGIC): New macros.
32360         * loader/multiboot_loader.c (module_version_status): Remove variable.
32361         (find_multi_boot2_header): Remove function.
32362         (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32363         logic.  Always check for the Multiboot version we're compiling for.
32364         (grub_cmd_module_loader): Likewise.
32365         [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32366         command instead of `multiboot'.
32368 2010-01-07  Robert Millan  <rmh.grub@aybabtu.com>
32370         * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32371         * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here.  Update
32372         all users.
32374 2010-01-07  Robert Millan  <rmh.grub@aybabtu.com>
32375 2010-01-07  Vladimir Serbinenko  <phcoder@gmail.com>
32377         Fix breakage introduced with previous commit.
32379         * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32380         commands.
32381         * normal/handler.c (read_handler_list): Revert part of previous commit
32382         affecting this file.
32383         * normal/main.c (read_lists): Move read_handler_list() call back to ...
32384         (grub_normal_execute): ... here.
32386 2010-01-07  Robert Millan  <rmh.grub@aybabtu.com>
32388         Merge prefix-redefinition-fix branch.
32390         * normal/autofs.c (read_fs_list): Make function capable of being
32391         run multiple times, gracefuly replacing the previous data
32392         structures.
32393         * normal/dyncmd.c (read_command_list): Likewise.
32394         * normal/handler.c (read_handler_list): Likewise.
32395         * normal/main.c (read_lists): New function.  Calls all the
32396         list reading functions.
32397         (grub_normal_execute): Use read_lists() instead of calling all
32398         list reading functions explicitly.  Register read_lists() as a
32399         variable hook attached to ${prefix}.
32401 2010-01-07  Vladimir Serbinenko  <phcoder@gmail.com>
32403         Merge crypto branch.
32405         * Makefile.in (pkglib_DATA):  Add crypto.lst.
32406         (crypto.lst): New target.
32407         * commands/hashsum.c: New file.
32408         * commands/password.c (check_password): Use grub_crypto_memcmp.
32409         * commands/password_pbkdf2.c: New file.
32410         * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32411         * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32412         normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32413         (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32414         -I$(srcdir)/lib/libgcrypt_wrap.
32415         * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32416         (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32417         password_pbkdf2.mod.
32418         (crypto_mod_SOURCES): New variable.
32419         (crypto_mod_CFLAGS): Likewise.
32420         (crypto_mod_LDFLAGS): Likewise.
32421         (hashsum_mod_SOURCES): New variable.
32422         (hashsum_mod_CFLAGS): Likewise.
32423         (hashsum_mod_LDFLAGS): Likewise.
32424         (pbkdf2_mod_SOURCES): New variable.
32425         (pbkdf2_mod_CFLAGS): Likewise.
32426         (pbkdf2_mod_LDFLAGS): Likewise.
32427         (password_pbkdf2_mod_SOURCES): New variable.
32428         (password_pbkdf2_mod_CFLAGS): Likewise.
32429         (password_pbkdf2_mod_LDFLAGS): Likewise.
32430         (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32431         (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32432         (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32433         Include conf/gcry.rmk.
32434         * include/grub/auth.h: Rewritten.
32435         * include/grub/crypto.h: New file.
32436         * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32437         * include/grub/normal.h (read_crypto_list): New prototype.
32438         * lib/crypto.c: New file.
32439         * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32440         * lib/pbkdf2.c: Likewise.
32441         * normal/auth.c (grub_auth_strcmp): Removed.
32442         (grub_iswordseparator): Likewise.
32443         (grub_auth_strword): Likewise.
32444         (is_authenticated): Use grub_strword.
32445         (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32446         and grub_strword. Pass entered password to authentication callback.
32447         * normal/crypto.c: New file.
32448         * normal/main.c: Call read_crypto_list.
32449         * util/grub-mkpasswd-pbkdf2.c: New file.
32450         * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32452 2010-01-06  Vladimir Serbinenko  <phcoder@gmail.com>
32454         Fix descent and ascent calculation.
32456         * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32457         (options): New option "asce".
32458         (usage): Likewise.
32459         (add_char): Ignore invalid glyphs for descent calculation.
32460         Calculate ascent from actual content.
32461         (print_glyphs): Use 'asce'.
32462         (write_font): Likewise. Allow ascent override.
32463         (main): Handle "asce" option.
32465 2010-01-06  Carles Pina i Estany  <carles@pina.cat>
32467         * kern/err.c: Include `<grub/i18n.h>'.
32468         (grub_print_error): Add full stop. Gettextizze.
32469         * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32470         (grub_bsd_load_elf): Capitalise ELF.
32471         (grub_cmd_freebsd_loadenv): Add `s' in error string.
32472         (grub_cmd_freebsd_module): Likewise.
32473         (grub_cmd_freebsd_module_elf): Likewise.
32474         * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32476 2010-01-06  Carles Pina i Estany  <carles@pina.cat>
32478         * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32479         * commands/search_file.c (HELP_MESSAGE): New macro.
32480         * commands/search_label.c (HELP_MESSAGE): Likewise.
32481         * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32482         * po/POTFILES: Add `commands/search_file.c',
32483         `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32484         `commands/search.c'.
32486 2010-01-05  Robert Millan  <rmh.grub@aybabtu.com>
32488         * config.rpath: Update from Gnulib.
32490 2010-01-05  Yves Blusseau  <blusseau@zetam.org>
32492         * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32494 2010-01-05  Yves Blusseau  <yves.blusseau@zetam.org>
32496         * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32498 2010-01-05  Colin Watson  <cjwatson@ubuntu.com>
32500         * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32501         arguments to fread so that we get a return value in bytes, rather
32502         than something that will normally be rounded down to 0.
32503         Adjust error handling to avoid producing garbage when size_t is not
32504         the same size as long long.
32506 2010-01-05  Colin Watson  <cjwatson@ubuntu.com>
32508         * util/mkisofs/write.c (padblock_write): Check return value of
32509         fread.
32511 2010-01-05  Robert Millan  <rmh.grub@aybabtu.com>
32513         Remove grub-mkfloppy.  Images produced by grub-mkrescue are valid
32514         floppy images now.
32516         * util/i386/pc/grub-mkfloppy.in: Remove.  Update all users.
32518 2010-01-04  Robert Millan  <rmh.grub@aybabtu.com>
32520         * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32521         instead of manual alignment.
32522         * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32523         verbose).  Avoid attempts to read past end of the device
32524         (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32525         but GRUB_DISK_CACHE_SIZE may exceed that).
32527 2010-01-04  Robert Millan  <rmh.grub@aybabtu.com>
32529         * commands/crc.c (grub_cmd_crc): Abort on read errors.
32530         * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32531         it to upper layer.
32533 2010-01-04  Vladimir Serbinenko  <phcoder@gmail.com>
32535         * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32536         New constant.
32537         (grub_efi_piwg_device_path): New structure
32538         (grub_efi_piwg_device_path_t): New type.
32539         * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32540         (devpath_1): Transform to a structure. All users updated.
32541         (devpath_2): Likewise.
32542         (devpath_3): Likewise.
32543         (devpath_4): Likewise.
32544         (devpath_5): Likewise.
32546 2010-01-04  Vladimir Serbinenko  <phcoder@gmail.com>
32548         * loader/efi/appleloader.c: Restored. Update all users.
32550 2010-01-03  Robert Millan  <rmh.grub@aybabtu.com>
32552         * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32554         * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32555         (struct boot_blocklist): Move from here ...
32556         * include/grub/i386/pc/boot.h [ASM_FILE]
32557         (struct grub_boot_blocklist): ... to here.  Update all users.
32558         (setup): Only initialize `start' member of `first_block'
32559         structure.  Add assert() calls to verify the other members.
32561         * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32562         (generate_image): Fix broken blocklist length initialization.
32563         Add assert() call to verify blocklist `segment' field.
32565 2010-01-03  Robert Millan  <rmh.grub@aybabtu.com>
32567         * loader/efi/appleloader.c: Remove.  Update all users.
32569 2010-01-03  Robert Millan  <rmh.grub@aybabtu.com>
32571         * boot/i386/pc/boot.S: Update copyright year.
32572         * boot/i386/pc/cdboot.S: Likewise.
32573         * boot/i386/pc/diskboot.S: Likewise.
32574         * boot/i386/pc/lnxboot.S: Likewise.
32575         * boot/i386/pc/pxeboot.S: Likewise.
32576         * bus/pci.c: Likewise.
32577         * commands/cmp.c: Likewise.
32578         * commands/help.c: Likewise.
32579         * commands/hexdump.c: Likewise.
32580         * commands/i386/pc/halt.c: Likewise.
32581         * commands/i386/pc/play.c: Likewise.
32582         * commands/i386/pc/vbeinfo.c: Likewise.
32583         * commands/ls.c: Likewise.
32584         * commands/test.c: Likewise.
32585         * disk/dmraid_nvidia.c: Likewise.
32586         * disk/i386/pc/biosdisk.c: Likewise.
32587         * disk/ieee1275/nand.c: Likewise.
32588         * disk/ieee1275/ofdisk.c: Likewise.
32589         * disk/lvm.c: Likewise.
32590         * disk/raid.c: Likewise.
32591         * disk/raid6_recover.c: Likewise.
32592         * disk/scsi.c: Likewise.
32593         * fs/affs.c: Likewise.
32594         * fs/cpio.c: Likewise.
32595         * fs/ext2.c: Likewise.
32596         * fs/hfs.c: Likewise.
32597         * fs/iso9660.c: Likewise.
32598         * fs/ntfs.c: Likewise.
32599         * fs/sfs.c: Likewise.
32600         * fs/udf.c: Likewise.
32601         * fs/ufs.c: Likewise.
32602         * fs/xfs.c: Likewise.
32603         * gencmdlist.sh: Likewise.
32604         * genmk.rb: Likewise.
32605         * include/grub/disk.h: Likewise.
32606         * include/grub/efi/api.h: Likewise.
32607         * include/grub/efi/efi.h: Likewise.
32608         * include/grub/efi/pe32.h: Likewise.
32609         * include/grub/elf.h: Likewise.
32610         * include/grub/fs.h: Likewise.
32611         * include/grub/i386/at_keyboard.h: Likewise.
32612         * include/grub/i386/pc/memory.h: Likewise.
32613         * include/grub/i386/pc/vbe.h: Likewise.
32614         * include/grub/i386/pci.h: Likewise.
32615         * include/grub/i386/tsc.h: Likewise.
32616         * include/grub/ieee1275/ieee1275.h: Likewise.
32617         * include/grub/ntfs.h: Likewise.
32618         * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32619         * include/grub/sparc64/libgcc.h: Likewise.
32620         * include/grub/symbol.h: Likewise.
32621         * include/grub/types.h: Likewise.
32622         * include/multiboot2.h: Likewise.
32623         * io/gzio.c: Likewise.
32624         * kern/device.c: Likewise.
32625         * kern/disk.c: Likewise.
32626         * kern/efi/efi.c: Likewise.
32627         * kern/efi/mm.c: Likewise.
32628         * kern/elf.c: Likewise.
32629         * kern/file.c: Likewise.
32630         * kern/i386/dl.c: Likewise.
32631         * kern/i386/pc/init.c: Likewise.
32632         * kern/i386/pc/startup.S: Likewise.
32633         * kern/ieee1275/ieee1275.c: Likewise.
32634         * kern/ieee1275/init.c: Likewise.
32635         * kern/main.c: Likewise.
32636         * kern/mm.c: Likewise.
32637         * kern/powerpc/dl.c: Likewise.
32638         * kern/sparc64/dl.c: Likewise.
32639         * kern/x86_64/dl.c: Likewise.
32640         * lib/hexdump.c: Likewise.
32641         * loader/efi/appleloader.c: Likewise.
32642         * loader/i386/ieee1275/linux.c: Likewise.
32643         * loader/i386/pc/chainloader.c: Likewise.
32644         * loader/i386/pc/linux.c: Likewise.
32645         * loader/i386/pc/multiboot2.c: Likewise.
32646         * loader/ieee1275/multiboot2.c: Likewise.
32647         * loader/multiboot2.c: Likewise.
32648         * loader/multiboot_loader.c: Likewise.
32649         * loader/powerpc/ieee1275/linux.c: Likewise.
32650         * normal/completion.c: Likewise.
32651         * normal/menu_entry.c: Likewise.
32652         * partmap/apple.c: Likewise.
32653         * util/grub.d/10_hurd.in: Likewise.
32654         * util/hostfs.c: Likewise.
32655         * video/readers/png.c: Likewise.
32657 2010-01-03  Colin Watson  <cjwatson@ubuntu.com>
32659         * include/grub/misc.h (GNUC_PREREQ): New macro.
32660         (ATTRIBUTE_ERROR): New macro.
32661         * include/grub/list.h (grub_bad_type_cast_real): Use
32662         ATTRIBUTE_ERROR.
32664 2010-01-03  Carles Pina i Estany  <carles@pina.cat>
32666         * normal/menu_text.c (print_message): Change messages.
32668 2010-01-03  Carles Pina i Estany  <carles@pina.cat>
32670         * normal/menu_entry.c (store_completion): Gettextizze.
32672 2010-01-03  Carles Pina i Estany  <carles@pina.cat>
32674         * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32676 2010-01-03  Carles Pina i Estany  <carles@pina.cat>
32678         * po/POTFILES: Sort correctly.
32680 2010-01-03  Carles Pina i Estany  <carles@pina.cat>
32682         * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32683         * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32684         * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32685         full stop.
32686         * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32687         summary. Gettextizze the strings.
32688         * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32689         * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32690         * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32691         full stop.
32692         (GRUB_MOD_INIT): Remove command name from summary.
32693         * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32694         summary.
32695         * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32696         * term/i386/pc/serial.c (options): Add full stops.
32697         (GRUB_MOD_INIT): Remove command name from the summary.
32699 2010-01-03  Carles Pina i Estany  <carles@pina.cat>
32701         * commands/acpi.c: Gettextizze help strings and/or options. Include
32702         `grub/i18n.h' if needed.
32703         * commands/blocklist.c: Likewise.
32704         * commands/boot.c: Likewise.
32705         * commands/cat.c: Likewise.
32706         * commands/cmp.c: Likewise.
32707         * commands/configfile.c: Likewise.
32708         * commands/crc.c: Likewise.
32709         * commands/date.c: Likewise.
32710         * commands/echo.c: Likewise.
32711         * commands/efi/fixvideo.c: Likewise.
32712         * commands/efi/loadbios.c: Likewise.
32713         * commands/gptsync.c: Likewise.
32714         * commands/halt.c: Likewise.
32715         * commands/handler.c: Likewise.
32716         * commands/hdparm.c: Likewise.
32717         * commands/hexdump.c: Likewise.
32718         * commands/i386/cpuid.c: Likewise.
32719         * commands/i386/pc/drivemap.c: Likewise.
32720         * commands/i386/pc/halt.c: Likewise.
32721         * commands/i386/pc/pxecmd.c: Likewise.
32722         * commands/i386/pc/vbeinfo.c: Likewise.
32723         * commands/i386/pc/vbetest.c: Likewise.
32724         * commands/ieee1275/suspend.c: Likewise.
32725         * commands/keystatus.c: Likewise.
32726         * commands/loadenv.c: Likewise.
32727         * commands/ls.c: Likewise.
32728         * commands/lsmmap.c: Likewise.
32729         * commands/lspci.c: Likewise.
32730         * commands/memrw.c: Likewise.
32731         * commands/minicmd.c: Likewise.
32732         * commands/parttool.c: Likewise.
32733         * commands/password.c: Likewise.
32734         * commands/probe.c: Likewise.
32735         * commands/read.c: Likewise.
32736         * commands/reboot.c: Likewise.
32737         * commands/search.c: Likewise.
32738         * commands/sleep.c: Likewise.
32739         * commands/test.c: Likewise.
32740         * commands/true.c: Likewise.
32741         * commands/usbtest.c: Likewise.
32742         * commands/videotest.c: Likewise.
32743         * commands/xnu_uuid.c: Likewise.
32744         * disk/loopback.c: Likewise.
32745         * hello/hello.c: Likewise.
32746         * loader/i386/bsd.c: Likewise.
32747         * term/i386/pc/serial.c: Likewise.
32748         * po/POTFILES: Add new files.
32750 2010-01-02  Colin Watson  <cjwatson@ubuntu.com>
32752         * term/i386/pc/at_keyboard.c
32753         (keyboard_controller_wait_untill_ready): Rename to ...
32754         (keyboard_controller_wait_until_ready): ... this. Update all users.
32756 2010-01-01  Carles Pina i Estany  <carles@pina.cat>
32758         * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32759         (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32760         string using string width.
32761         * normal/menu_text.c (grub_print_message_indented): Use
32762         grub_print_spaces and not print_spaces.
32763         (print_timeout): Likewise.
32764         (print_spaces): Move to...
32765         * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32767 2010-01-01  Robert Millan  <rmh.grub@aybabtu.com>
32769         Import from Gnulib.
32771         * gnulib/getdelim.c: New file.
32772         * gnulib/getline.c: Likewise.
32774 2009-12-31 BVK Chaitanya  <bvk.groups@gmail.com>
32776         * include/grub/list.h (grub_assert_fail): Removed.
32777         (grub_bad_type_cast_real): New function.
32778         (grub_bad_type_cast): New macro.
32779         (GRUB_AS_LIST): Use grub_bad_type_cast.
32780         (GRUB_AS_LIST_P): Likewise.
32781         (GRUB_AS_NAMED_LIST): Likewise.
32782         (GRUB_AS_NAMED_LIST_P): Likewise.
32783         (GRUB_AS_PRIO_LIST): Likewise.
32784         (GRUB_AS_PRIO_LIST_P): Likewise.
32785         * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32787 2009-12-29 Vladimir Serbinenko  <phcoder@gmail.com>
32789         * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32790         Fix syntax error.
32792 2009-12-29  Robert Millan  <rmh.grub@aybabtu.com>
32794         * configure.ac: Check for TARGET_CFLAGS initialization before we
32795         initialize it ourselves (sigh).
32796         Move a few modifications to TARGET_CFLAGS to be unconditional
32797         (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32798         eh_frame)
32800         * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32801         * term/i386/pc/at_keyboard.c
32802         (keyboard_controller_wait_untill_ready): Likewise.
32803         (keyboard_controller_led): Rename `led_status' paramter to avoid
32804         name conflict.
32806 2009-12-28  Carles Pina i Estany  <carles@pina.cat>
32808         * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32809         quotes.
32811 2009-12-27  Vladimir Serbinenko  <phcoder@gmail.com>
32813         * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32815 2009-12-27  Vladimir Serbinenko  <phcoder@gmail.com>
32817         * normal/menu_text.c (grub_print_message_indented): Prevent
32818         past-the-end-of-array dereference.
32820 2009-12-27  Vladimir Serbinenko  <phcoder@gmail.com>
32822         * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32823         (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32825 2009-12-27  Carles Pina i Estany  <carles@pina.cat>
32827         * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32828         * normal/main.c (grub_normal_read_line): Remove a space from the
32829         default prompt.
32831 2009-12-27  Carles Pina i Estany  <carles@pina.cat>
32833         * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32834         * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32835         * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32836         * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32837         * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32838         * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32839         * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32841 2009-12-26  Carles Pina i Estany  <carles@pina.cat>
32843         * video/readers/jpeg.c (cmd): Declare.
32844         (grub_cmd_jpegtest): Use `grub_command_t' type.
32845         (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32846         Assign to `cmd'.
32847         (GRUB_MOD_FINI): Use `cmd' to unregister.
32848         * video/readers/png.c (cmd): Declare.
32849         (grub_cmd_pngtest): Use `grub_command_t' type.
32850         (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32851         Assign to `cmd'.
32852         (GRUB_MOD_FINI): Use `cmd' to unregister.
32853         * video/readers/tga.c (cmd): Declare.
32854         (grub_cmd_tgatest): Use `grub_command_t' type.
32855         (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32856         Assign to `cmd'.
32857         (GRUB_MOD_FINI): Use `cmd' to unregister.
32859 2009-12-26  Carles Pina i Estany  <carles@pina.cat>
32861         * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32862         stops.
32863         * kern/corecmd.c (grub_register_core_commands): Likewise.
32864         * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32865         * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32866         * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32867         * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32868         * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32869         * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32870         * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32871         * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32872         * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32873         * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32874         * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32875         * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32876         * normal/handler.c (insert_handler): Likewise.
32877         * normal/main.c (GRUB_MOD_INIT): Likewise.
32878         * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32880 2009-12-26  Carles Pina i Estany  <carles@pina.cat>
32882         * commands/help.c (grub_cmd_help): Print the command name before the
32883         summary.
32884         (GRUB_MOD_INIT): Remove command name from the summary.
32885         * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32886         string as summary.
32887         * lib/arg.c (find_long): Print the command name before the summary.
32888         * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32889         summary.
32890         * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32891         * commands/cat.c (GRUB_MOD_INIT): Likewise.
32892         * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32893         * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32894         * commands/crc.c (GRUB_MOD_INIT): Likewise.
32895         * commands/date.c (GRUB_MOD_INIT): Likewise.
32896         * commands/echo.c (GRUB_MOD_INIT): Likewise.
32897         * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32898         * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32899         * commands/handler.c (GRUB_MOD_INIT): Likewise.
32900         * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32901         * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32902         * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32903         * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32904         * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32905         * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32906         * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32907         * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32908         * commands/ls.c (GRUB_MOD_INIT): Likewise.
32909         * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32910         * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32911         * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32912         * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32913         * commands/password.c (GRUB_MOD_INIT): Likewise.
32914         * commands/probe.c (GRUB_MOD_INIT): Likewise.
32915         * commands/read.c (GRUB_MOD_INIT): Likewise.
32916         * commands/search.c (GRUB_MOD_INIT): Likewise.
32917         * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32918         * commands/test.c (GRUB_MOD_INIT): Likewise.
32919         * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32920         * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32921         * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32922         * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32923         * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32924         * lib/arg.c (GRUB_MOD_INIT): Likewise.
32925         * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32926         * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32927         * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32928         * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32929         * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32930         * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32931         * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32932         * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32934 2009-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
32936         Use search command for preliminar UUID search.
32938         * commands/search.c: Split into ...
32939         * commands/search_wrap.c: ...this
32940         * commands/search.c: ...and this.
32941         * commands/search_file.c: New file.
32942         * commands/search_label.c: New file.
32943         * commands/search_uuid.c: New file.
32944         * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32945         Add commands/search_wrap.c, commands/search_file.c,
32946         commands/search_label.c and commands/search_uuid.c.
32947         * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32948         (search_mod_SOURCES): Set to commands/search_wrap.c.
32949         (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32950         search_label.mod.
32951         (search_fs_file_mod_SOURCES): New variable.
32952         (search_fs_file_mod_CFLAGS): Likewise.
32953         (search_fs_file_mod_LDFLAGS): Likewise.
32954         (search_label_mod_SOURCES): Likewise.
32955         (search_label_mod_CFLAGS): Likewise.
32956         (search_label_mod_LDFLAGS): Likewise.
32957         (search_fs_uuid_mod_SOURCES): New variable.
32958         (search_fs_uuid_mod_CFLAGS): Likewise.
32959         (search_fs_uuid_mod_LDFLAGS): Likewise.
32960         (fs_file_mod_SOURCES): Removed.
32961         (fs_file_mod_CFLAGS): Likewise.
32962         (fs_file_mod_LDFLAGS): Likewise.
32963         (fs_uuid_mod_SOURCES): Removed.
32964         (fs_uuid_mod_CFLAGS): Likewise.
32965         (fs_uuid_mod_LDFLAGS): Likewise.
32966         * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32967         Set to util/grub-install.in.
32968         * disk/fs_file.c: Removed.
32969         * disk/fs_uuid.c: Likewise.
32970         * include/grub/search.h: New file.
32971         * util/grub-install.in: Handle sparc64.
32972         Create and use load.cfg.
32973         * util/sparc64/ieee1275/grub-install.in: Removed.
32975 2009-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
32977         * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32978         Ignore return status if CF is cleared.
32979         (grub_biosdisk_get_diskinfo_standard): Likewise.
32981 2009-12-25  Robert Millan  <rmh.grub@aybabtu.com>
32983         * term/i386/pc/at_keyboard.c
32984         (keyboard_controller_wait_untill_ready): New function.
32985         (grub_keyboard_controller_write, grub_keyboard_controller_read)
32986         (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32987         for keyboard polling, rather than duplicate the same loop.  This
32988         saves a few bytes in code size.
32990 2009-12-25  Vladimir Serbinenko  <phcoder@gmail.com>
32992         Support for (pxe[:server[:gateway]]) syntax and
32993         use environment variable for PXE.
32995         * commands/i386/pc/pxecmd.c (options): Removed.
32996         (print_ip): Removed.
32997         (grub_cmd_pxe): Removed
32998         (grub_cmd_pxe_unload): New function.
32999         * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
33000         (grub_pxe_your_ip): Made static.
33001         (grub_pxe_default_server_ip): Likewise.
33002         (grub_pxe_default_gateway_ip): Likewise.
33003         (grub_pxe_blksize): Likewise.
33004         (parse_ip): New function.
33005         (grub_pxe_open): Support server and gateway specification.
33006         (grub_pxe_close): Free disk->data.
33007         (grub_pxefs_open): Use disk->data.
33008         (grub_pxefs_read): Likewise.
33009         (grub_env_write_readonly): New function.
33010         (set_mac_env): Likewise.
33011         (set_env_limn_ro): Likewise.
33012         (parse_dhcp_vendor): Likewise.
33013         (grub_pxe_detect): Set the environment variables.
33014         (set_ip_env): New function.
33015         (write_ip_env): Likewise.
33016         (grub_env_write_pxe_default_server): Likewise.
33017         (grub_env_write_pxe_default_gateway): Likewise.
33018         (grub_env_write_pxe_blocksize): Likewise.
33019         (GRUB_MOD_INIT(pxe)): Set environment variables.
33020         * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
33021         (grub_pxe_mac_addr_t): ... this. All users updated.
33022         (grub_pxe_your_ip): Removed.
33023         (grub_pxe_server_ip): Likewise.
33024         (grub_pxe_gateway_ip): Likewise.
33025         (grub_pxe_blksize): Likewise.
33027 2009-12-25  Carles Pina i Estany  <carles@pina.cat>
33029         * commands/help.c: Include `<grub/i18n.h>'.
33030         (grub_cmd_help): Gettextizze.
33031         (GRUB_MOD_INIT): Likewise.
33032         * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
33033         (GRUB_MOD_INIT): Gettextizze.
33034         * commands/search.c: Include `<grub/i18n.h>'.
33035         (options): Gettextizze.
33036         (GRUB_MOD_INIT): Gettextizze.
33037         * lib/arg.c: Include `<grub/i18n.h>'.
33038         (help_options): Gettextizze.
33039         (find_long): Likewise.
33040         (grub_arg_show_help): Likewise.
33041         * normal/dyncmd.c: Include `<grub/i18n.h>'.
33042         (read_command_list): Gettextizze.
33043         * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
33044         `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
33046 2009-12-25  Robert Millan  <rmh.grub@aybabtu.com>
33048         * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
33049         * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
33050         (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
33051         (led_status): New variable.
33052         (keyboard_controller_led): New function.
33053         (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
33054         update led status for caps lock, num lock and scroll lock.
33056 2009-12-25  Felix Zielcke <fzielcke@z-51.de>
33058         * util/hostdisk.c (open_device): Fix a comment.
33060 2009-12-24  Robert Millan  <rmh.grub@aybabtu.com>
33062         * util/grub-install.in (host_os): New variable.
33063         * util/i386/efi/grub-install.in (host_os): Likewise.
33065 2009-12-24  Robert Millan  <rmh.grub@aybabtu.com>
33067         * util/mkisofs/write.c (padblock_write): Abort when given an
33068         excedingly large embed image, instead of silently truncating it.
33070 2009-12-24  Robert Millan  <rmh.grub@aybabtu.com>
33072         * include/multiboot.h: Indentation fixes.
33074 2009-12-24  Robert Millan  <rmh.grub@aybabtu.com>
33076         * include/multiboot.h (struct multiboot_aout_symbol_table)
33077         (struct multiboot_elf_section_header_table): New structure
33078         declarations (stolen from GRUB Legacy).
33079         (struct multiboot_info): Replace opaque `syms' with a.out and ELF
33080         table information.
33082         (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
33083         (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
33084         type aliases.
33086 2009-12-24  Robert Millan  <rmh.grub@aybabtu.com>
33088         * include/multiboot.h: Make comments src2texi-friendly.
33090 2009-12-24  Robert Millan  <rmh.grub@aybabtu.com>
33092         For consistency with [multiboot]/docs/boot.S.
33094         * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
33095         (MULTIBOOT_HEADER_MAGIC): ... to this.  Update all users.
33096         (MULTIBOOT_MAGIC2): Rename from this ...
33097         (MULTIBOOT_BOOTLOADER_MAGIC): ... to this.  Update all users.
33099 2009-12-24  Robert Millan  <rmh.grub@aybabtu.com>
33101         * include/multiboot.h: Remove `<grub/types.h>'.
33102         (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33103         types.  Update all users.
33105 2009-12-25  Carles Pina i Estany  <carles@pina.cat>
33107         * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33108         `couldn't' and `can not' by `cannot'.
33109         * commands/i386/pc/drivemap.c: Likewise.
33110         * disk/ata.c: Likewise.
33111         * disk/ieee1275/nand.c: Likewise.
33112         * fs/affs.c: Likewise.
33113         * fs/fat.c: Likewise.
33114         * fs/hfs.c: Likewise.
33115         * fs/hfsplus.c: Likewise.
33116         * fs/iso9660.c: Likewise.
33117         * fs/jfs.c: Likewise.
33118         * fs/minix.c: Likewise.
33119         * fs/reiserfs.c: Likewise.
33120         * fs/sfs.c: Likewise.
33121         * fs/udf.c: Likewise.
33122         * fs/ufs.c: Likewise.
33123         * fs/xfs.c: Likewise.
33124         * loader/powerpc/ieee1275/linux.c: Likewise.
33125         * loader/sparc64/ieee1275/linux.c: Likewise.
33126         * util/grub-probe.c: Likewise.
33127         * util/misc.c: Likewise.
33129 2009-12-24  Carles Pina i Estany  <carles@pina.cat>
33131         * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33132         grub_errno calls.
33133         * commands/acpi.c: Likewise.
33134         * commands/blocklist.c: Likewise.
33135         * commands/efi/loadbios.c: Likewise.
33136         * commands/i386/pc/drivemap.c: Likewise.
33137         * commands/loadenv.c: Likewise.
33138         * commands/memrw.c: Likewise.
33139         * commands/password.c: Likewise.
33140         * commands/videotest.c: Likewise.
33141         * disk/ata.c: Likewise.
33142         * disk/ata_pthru.c: Likewise.
33143         * disk/dmraid_nvidia.c: Likewise.
33144         * disk/ieee1275/nand.c: Likewise.
33145         * disk/ieee1275/ofdisk.c: Likewise.
33146         * disk/loopback.c: Likewise.
33147         * disk/lvm.c: Likewise.
33148         * disk/mdraid_linux.c: Likewise.
33149         * disk/raid.c: Likewise.
33150         * disk/raid6_recover.c: Likewise.
33151         * disk/scsi.c: Likewise.
33152         * efiemu/main.c: Likewise.
33153         * efiemu/mm.c: Likewise.
33154         * efiemu/pnvram.c: Likewise.
33155         * efiemu/symbols.c: Likewise.
33156         * font/font.c: Likewise.
33157         * fs/cpio.c: Likewise.
33158         * fs/hfsplus.c: Likewise.
33159         * fs/iso9660.c: Likewise.
33160         * fs/jfs.c: Likewise.
33161         * fs/minix.c: Likewise.
33162         * fs/ntfs.c: Likewise.
33163         * fs/ntfscomp.c: Likewise.
33164         * fs/reiserfs.c: Likewise.
33165         * fs/ufs.c: Likewise.
33166         * fs/xfs.c: Likewise.
33167         * gettext/gettext.c: Likewise.
33168         * include/grub/auth.h: Likewise.
33169         * kern/elf.c: Likewise.
33170         * kern/file.c: Likewise.
33171         * kern/ieee1275/init.c: Likewise.
33172         * kern/ieee1275/mmap.c: Likewise.
33173         * kern/ieee1275/openfw.c: Likewise.
33174         * kern/powerpc/dl.c: Likewise.
33175         * kern/sparc64/dl.c: Likewise.
33176         * lib/arg.c: Likewise.
33177         * loader/i386/bsd.c: Likewise.
33178         * loader/i386/bsdXX.c: Likewise.
33179         * loader/i386/efi/linux.c: Likewise.
33180         * loader/i386/efi/xnu.c: Likewise.
33181         * loader/i386/ieee1275/linux.c: Likewise.
33182         * loader/i386/linux.c: Likewise.
33183         * loader/i386/multiboot.c: Likewise.
33184         * loader/i386/pc/linux.c: Likewise.
33185         * loader/i386/pc/multiboot2.c: Likewise.
33186         * loader/i386/xnu.c: Likewise.
33187         * loader/ieee1275/multiboot2.c: Likewise.
33188         * loader/macho.c: Likewise.
33189         * loader/machoXX.c: Likewise.
33190         * loader/multiboot2.c: Likewise.
33191         * loader/multiboot_loader.c: Likewise.
33192         * loader/powerpc/ieee1275/linux.c: Likewise.
33193         * loader/sparc64/ieee1275/linux.c: Likewise.
33194         * loader/xnu.c: Likewise.
33195         * loader/xnu_resume.c: Likewise.
33196         * mmap/i386/pc/mmap.c: Likewise.
33197         * normal/menu_viewer.c: Likewise.
33198         * partmap/acorn.c: Likewise.
33199         * partmap/amiga.c: Likewise.
33200         * partmap/apple.c: Likewise.
33201         * script/lexer.c: Likewise.
33202         * term/gfxterm.c: Likewise.
33203         * term/i386/pc/serial.c: Likewise.
33204         * term/i386/pc/vga.c: Likewise.
33205         * term/ieee1275/ofconsole.c: Likewise.
33206         * term/terminfo.c: Likewise.
33207         * video/bitmap.c: Likewise.
33208         * video/efi_gop.c: Likewise.
33209         * video/efi_uga.c: Likewise.
33210         * video/fb/video_fb.c: Likewise.
33211         * video/i386/pc/vbe.c: Likewise.
33212         * video/readers/tga.c: Likewise.
33213         * video/video.c: Likewise.
33215 2009-12-23  Felix Zielcke <fzielcke@z-51.de>
33217         * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33218         * commands/lspci.c: Likewise.
33219         * commands/probe.c: Likewise.
33220         * commands/xnu_uuid.c: Likewise.
33221         * conf/i386-coreboot.rmk: Likewise.
33222         * conf/i386-efi.rmk: Likewise.
33223         * conf/i386-ieee1275.rmk: Likewise.
33224         * conf/i386-pc.rmk: Likewise.
33225         * conf/powerpc-ieee1275.rmk: Likewise.
33226         * conf/sparc64-ieee1275.rmk: Likewise.
33227         * conf/x86_64-efi.rmk: Likewise.
33228         * fs/i386/pc/pxe.c: Likewise.
33229         * gettext/gettext.c: Likewise.
33230         * include/grub/efi/graphics_output.h: Likewise.
33231         * include/grub/i386/pc/memory.h: Likewise.
33232         * kern/env.c: Likewise.
33233         * kern/i386/qemu/startup.S: Likewise.
33234         * lib/i386/pc/biosnum.c: Likewise.
33235         * lib/i386/relocator.c: Likewise.
33236         * lib/i386/relocator_asm.S: Likewise.
33237         * lib/relocator.c: Likewise.
33238         * loader/i386/bsd.c: Likewise.
33239         * loader/i386/multiboot.c: Likewise.
33240         * loader/i386/pc/chainloader.c: Likewise.
33241         * loader/i386/xnu.c: Likewise.
33242         * loader/xnu.c: Likewise.
33243         * normal/main.c: Likewise.
33244         * normal/menu_text.c: Likewise.
33245         * util/getroot.c: Likewise.
33246         * util/grub-mkconfig_lib.in: Likewise.
33247         * util/grub.d/00_header.in: Likewise.
33248         * util/i386/pc/grub-mkimage.c: Likewise.
33249         * util/mkisofs/eltorito.c: Likewise.
33250         * util/mkisofs/exclude.h: Likewise.
33251         * util/mkisofs/hash.c: Likewise.
33252         * util/mkisofs/iso9660.h: Likewise.
33253         * util/mkisofs/joliet.c: Likewise.
33254         * util/mkisofs/mkisofs.c: Likewise.
33255         * util/mkisofs/mkisofs.h: Likewise.
33256         * util/mkisofs/multi.c: Likewise.
33257         * util/mkisofs/name.c: Likewise.
33258         * util/mkisofs/rock.c: Likewise.
33259         * util/mkisofs/tree.c: Likewise.
33260         * util/mkisofs/write.c: Likewise.
33261         * video/efi_gop.c: Likewise.
33263 2009-12-23  Vladimir Serbinenko  <phcoder@gmail.com>
33265         * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33266         size counting.
33268 2009-12-22  Felix Zielcke <fzielcke@z-51.de>
33270         * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33271         * genmk.rb (class SCRIPT): Modify the target file instead of source.
33273 2009-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
33275         * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33276         (GRUB_MOD_INIT(memrw)): Update help line.
33278 2009-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
33280         * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33281         Use grub_extcmd_t. All users updated.
33282         (options): New variable.
33283         (grub_cmd_read): Restructure for readability. Support "-v" option.
33284         (grub_cmd_write): Restructure for readability.
33286 2009-12-22  Felix Zielcke <fzielcke@z-51.de>
33288         * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33290 2009-12-22  Felix Zielcke <fzielcke@z-51.de>
33292         * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33293         with the actual contents of the correspondending make variable.
33294         * util/grub-mkrescue.in (pkglib_DATA): New variable.
33295         (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33296         specifying `*.lst' and `efiemu??.o'
33298 2009-12-22  Felix Zielcke <fzielcke@z-51.de>
33300         * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33301         after function name.
33302         Noticed by Rene Engelhard <rene@debian.org>.
33304 2009-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
33306         * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33307         (options): New variable.
33308         (iospace): Likewise.
33309         (grub_lspci_iter): List IO spaces if "-i" was given.
33310         (grub_cmd_lspci): Parse options.
33311         (GRUB_MOD_INIT(lspci)): Use extcmd.
33312         (GRUB_MOD_FINI(lspci)): Likewise.
33314 2009-12-22  Felix Zielcke <fzielcke@z-51.de>
33316         * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33317         `function' keyword.
33318         Patch by Tony Mancill <tmancill@debian.org>.
33320 2009-12-22  Vladimir Serbinenko  <phcoder@gmail.com>
33322         * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33323         (grub_uhci_portstatus): Likewise.
33324         (grub_uhci_portstatus): Add necessary delay.
33325         * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33327 2009-12-21  Carles Pina i Estany  <carles@pina.cat>
33329         * commands/acpi.c (options): Fix capitalizations and/or full stops.
33330         (GRUB_MOD_INIT): Likewise.
33331         * commands/boot.c (GRUB_MOD_INIT): Likewise.
33332         * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33333         * commands/echo.c (options): Fix capitalizations and/or full stops.
33334         * commands/efi/loadbios.c (enable_rom_area): Likewise.
33335         (enable_rom_area): Likewise.
33336         (GRUB_MOD_INIT): Likewise.
33337         * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33338         * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33339         * commands/handler.c (GRUB_MOD_INIT): Likewise.
33340         * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33341         * commands/hexdump.c (options): Likewise.
33342         * commands/i386/cpuid.c (options): Likewise.
33343         (GRUB_MOD_INIT): Likewise.
33344         * commands/i386/pc/drivemap.c (options): Likewise.
33345         (GRUB_MOD_INIT): Likewise.
33346         * commands/i386/pc/halt (options): Likewise.
33347         (GRUB_MOD_INIT): Likewise.
33348         * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33349         * commands/i386/pc/pxecmd.c (options): Likewise.
33350         * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33351         * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33352         * commands/keystatus.c (options): Likewise.
33353         (GRUB_MOD_INIT): Likewise.
33354         * commands/loadenv.c (options): Likewise.
33355         * commands/ls.c (options): Likewise.
33356         * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33357         * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33358         * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33359         * commands/parttool.c (helpmsg): Likewise.
33360         * commands/probe.c (options): Likewise.
33361         * commands/read.c (GRUB_MOD_INIT): Likewise.
33362         * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33363         * commands/search.c (options): Likewise.
33364         * commands/sleep.c (options): Likewise.
33365         * commands/test.c (GRUB_MOD_INIT): Likewise.
33366         * commands/true.c (GRUB_MOD_INIT): Likewise.
33367         * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33368         * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33369         * lib/arg.c (help_options): Likewise.
33370         * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33371         `$(XGETTEXT)'.
33372         * po/POTFILES: Add `commands/loadenv.c'.
33374 2009-12-21  Felix Zielcke <fzielcke@z-51.de>
33376         * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33377         instead of specifying them explicit.
33379 2009-12-21  Robert Millan  <rmh.grub@aybabtu.com>
33381         * NEWS: Add grub-probe support for GNU/Hurd.
33383 2009-12-21  Robert Millan  <rmh.grub@aybabtu.com>
33385         * NEWS: gettext was added after 1.97.
33387 2009-12-21  Robert Millan  <rmh.grub@aybabtu.com>
33389         * util/mkisofs/msdos_partition.h: New file (based on
33390         include/grub/msdos_partition.h).
33391         * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33392         (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33393         (ld_options, main): Recognize --protective-msdos-label.
33394         * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33395         * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33396         (padblock_write): If `use_protective_msdos_label' is set, patch a
33397         protective DOS-style label in the output image.
33399         * util/grub-mkrescue.in: Use --protective-msdos-label.
33401 2009-12-21  Robert Millan  <rmh.grub@aybabtu.com>
33403         * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33404         boot.
33406 2009-12-21  Robert Millan  <rmh.grub@aybabtu.com>
33408         * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33409         variables.
33410         (ld_options, main): Recognize `--embedded-boot'.
33411         * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33412         declarations.
33413         * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33414         (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33415         (padblock_write): Likewise.  Rewrite to support embedded boot image.
33417         * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33418         for BIOS-based disk boot instead of only ElTorito.
33420 2009-12-21  Robert Millan  <rmh.grub@aybabtu.com>
33422         * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33423         build (not needed for bootstrap).
33425 2009-12-21  Robert Millan  <rmh.grub@aybabtu.com>
33427         * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33428         from i386-pc build (not needed for bootstrap).
33429         Rewrite a pair of strings.
33431 2009-12-21  Robert Millan  <rmh.grub@aybabtu.com>
33433         * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33435 2009-12-21  Vladimir Serbinenko  <phcoder@gmail.com>
33437         * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33439 2009-12-21 Andreas Born  <futur.andy@googlemail.com>
33441         * kern/env.c (grub_env_context_open): Mark exported variable for
33442         reexport.
33444 2009-12-21 Andreas Born  <futur.andy@googlemail.com>
33446         * kern/env.c (grub_env_export): Create nonexistent variables before
33447         exporting.
33449 2009-12-20 Carles Pina i Estany  <carles@pina.cat>
33451         * include/grub/auth.h: Include `<grub/i18n.h>'.
33452         (GRUB_GET_PASSWORD): Gettextizze string.
33453         * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33454         menu_text.c.
33455         (grub_utf8_to_ucs4_alloc): Fix indentation.
33456         (grub_print_ucs4): Likewise.
33457         (grub_getstringwidth): Likewise.
33458         (print_message_indented): New declaration.
33459         * normal/auth.c: Include `<grub/i18n.h>'.
33460         (grub_auth_check_authentication): Gettexttize string.
33461         * normal/cmdline.c: Include `<grub/i18n.h>'.
33462         (grub_cmdline_get): Gettextizze.
33463         * normal/color.c: Include `<grub/i18n.h>'.
33464         (grub_parse_color_name_pair): Gettexttize strings.
33465         * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33466         string (use `print_message_indented').
33467         * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33468         `include/grub/normal.h'.
33469         (print_message_indented): Renamed to ...
33470         (grub_print_message_indented): ... this. Remove `static' qualifer (now
33471         used in normal/main.c).
33472         (print_message): Use `grub_print_message_indented' instead of
33473         `print_message_indented'.
33474         (print_timeout): Likewise.
33475         * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33476         (grub_normal_print_device_info): Gettexttize strings.
33477         * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33479 2009-12-20  Vladimir Serbinenko  <phcoder@gmail.com>
33481         * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33482         of arguments. Return number of tokens and not arguments. All users
33483         updated.
33485 2009-12-20  Vladimir Serbinenko  <phcoder@gmail.com>
33487         * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33488         non-MSDOS paritions.
33490 2009-12-19  Vladimir Serbinenko  <phcoder@gmail.com>
33492         * include/grub/types.h (UNUSED): Removed since it conflicts with
33493         NetBSD headers. All users changed to direct __attribute__ ((unused)).
33494         Reported by Grégoire Sutre.
33496 2009-12-19  Carles Pina i Estany  <carles@pina.cat>
33498         * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33499         (grub_print_ucs4_alloc): Likewise.
33500         (grub_getstringwidth): Likewise.
33501         * normal/main.c (grub_normal_init_page): Gettextize version string.
33502         * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33503         (getstringwidth): Renamed to ...
33504         (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33505         in normal/main.c).  Use `grub_utf8_to_ucs4_alloc'.
33506         (grub_print_ucs4): Remove `static' qualifer (now used in
33507         normal/main.c).
33508         * po/POTFILES: Add normal/main.c.
33510 2009-12-19  Carles Pina i Estany  <carles@pina.cat>
33512         * normal/menu_text.c (STANDARD_MARGIN): New macro.
33513         (print_message_indented): Add `margin_left' and `margin_right'
33514         parameters.
33515         (print_message): Update `print_message_indented' calls. Adds '\n' to the
33516         strings.
33517         (print_timeout): Use `print_message_indented' to print the message.
33518         Deletes `second_stage' parameter.
33519         (run_menu): Update `print_timeout' calls.
33521 2009-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
33523         Fix console palette on OpenFirmware.
33525         * term/ieee1275/ofconsole.c (MAX): Removed.
33526         (colors): Redone based on VGA palette.
33527         (grub_ofconsole_setcolor): Discard brightness bit since only 8
33528         colors are supported.
33529         (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33531 2009-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
33533         Fix potential EfiEmu double prepare.
33535         * efiemu/main.c (prepared): New variable
33536         (grub_efiemu_unload): Set prepare to '0'.
33537         (grub_efiemu_prepare): Return if already prepared. Set prepared.
33539         set_virtual_address_map support.
33541         * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33542         prototype.
33543         * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33544         prototype.
33545         (grub_efiemu_crc32): Likewise.
33546         (grub_efiemu_crc64): Likewise.
33547         (grub_efiemu_set_virtual_address_map): Likewise.
33548         * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33549         New definition.
33550         (grub_autoefi_set_virtual_address_map): Likewise.
33551         * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33552         * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33553         Restructure flow to accomodate it.
33554         * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33555         (grub_efiemu_crc): Recompute CRC32.
33556         * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33557         (efiemu_ptv_relocated): ... this. Made global. All users updated.
33558         * efiemu/symbols.c (relocated_handle): New variable.
33559         (grub_efiemu_free_syms): Free relocated_handle.
33560         (grub_efiemu_alloc_syms): Allocate relocated_handle.
33561         (grub_efiemu_write_sym_markers): New function.
33562         (grub_efiemu_set_virtual_address_map): Likewise.
33564         Newer XNU parameters.
33566         * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33567         * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33568         (grub_xnu_fill_devicetree): New prototype.
33569         (grub_xnu_heap_real_start): New variable.
33570         * loader/xnu.c (get_name_ptr): New function.
33571         (grub_xnu_load_driver): Fill namelen and name.
33573         64-bit xnu support.
33575         * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33576         and 'loader/macho64.c'.
33577         * conf/i386-pc.rmk: Likewise.
33578         * conf/x86_64-efi.rmk: Likewise.
33579         * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33580         * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33581         * include/grub/macho.h (grub_macho_segment64): New structure.
33582         * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33583         (grub_macho_size32): ... to this.
33584         (grub_macho32_get_entry_point): Renamed from ...
33585         (grub_macho_get_entry_point32): ... to this.
33586         (grub_macho_contains_macho64): New prototype.
33587         (grub_macho_size64): Likewise.
33588         (grub_macho_get_entry_point64): Likewise.
33589         (grub_macho32_load): Renamed from ...
33590         (grub_macho_load32): ... to this.
33591         (grub_macho32_filesize): Renamed from ...
33592         (grub_macho_filesize32): ... to this.
33593         (grub_macho32_readfile): Renamed from ...
33594         (grub_macho_readfile32): ... to this.
33595         (grub_macho_filesize64): New prototype.
33596         (grub_macho_readfile64): Likewise.
33597         (grub_macho_parse32): Likewise.
33598         (grub_macho_parse64): Likewise.
33599         * loader/macho.c: Split into ...
33600         * loader/machoXX.c: ... and this. Replace 32 with XX.
33601         * loader/macho32.c: New file.
33602         * loader/macho64.c: Likewise.
33603         * loader/xnu.c (grub_xnu_is_64bit): New variable.
33604         (grub_cmd_xnu_kernel): Make 32-bit only.
33605         (grub_cmd_xnu_kernel64): New function.
33606         (grub_xnu_load_driver): Support Mach-O 64.
33607         (grub_cmd_xnu_mkext): Likewise.
33608         * util/grub.d/30_os-prober.in (osx_entry): New function.
33609         Generate entries for 64-bit boot too.
33611         Eliminate ad-hoc tree format in XNU and EfiEmu.
33613         * efiemu/main.c (grub_efiemu_prepare): Update comment.
33614         * efiemu/pnvram.c: Rewritten to use environment variables.
33615         All users updated.
33617         Inline utf16_to_utf8.
33619         * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33620         * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33621         All users updated.
33622         * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33624         * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33625         * commands/usbtest.c (grub_usb_get_string): ... move here.
33626         (usb_print_str): Fix error handling.
33627         * include/grub/usb.h (grub_usb_get_string): Remove.
33629         UTF-8 to UTF-16 transformation.
33631         * conf/common.rmk (pkglib_MODULES): Add charset.mod
33632         (charset_mod_SOURCES): New variable.
33633         (charset_mod_CFLAGS): Likewise.
33634         (charset_mod_LDFLAGS): Likewise.
33635         * include/grub/utf.h: New file.
33636         * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33638         Support for device properties.
33640         * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33641         (grub_xnu_devprop_device_header): Likewise.
33642         (grub_xnu_devprop_device_descriptor): Likewise.
33643         (grub_xnu_devprop_add_device): New prototype.
33644         (grub_xnu_devprop_remove_device): Likewise.
33645         (grub_xnu_devprop_remove_property): Likewise.
33646         (grub_xnu_devprop_add_property_utf8): Likewise.
33647         (grub_xnu_devprop_add_property_utf16): Likewise.
33648         (grub_cpu_xnu_init): Likewise.
33649         (grub_cpu_xnu_fini): Likewise.
33650         (grub_cpu_xnu_unload): Likewise.
33651         * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33652         (property_descriptor): Likewise.
33653         (devices): New variable.
33654         (grub_xnu_devprop_remove_property): New function.
33655         (grub_xnu_devprop_add_device): Likewise.
33656         (grub_xnu_devprop_remove_device): Likewise.
33657         (grub_xnu_devprop_add_property): Likewise.
33658         (grub_xnu_devprop_add_property_utf8): Likewise.
33659         (grub_xnu_devprop_add_property_utf16): Likewise.
33660         (hextoval): Likewise.
33661         (grub_cpu_xnu_fill_devprop): Likewise.
33662         (grub_cmd_devprop_load): Likewise.
33663         (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33664         grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33665         (cmd_devprop_load): New variable.
33666         (grub_cpu_xnu_init): New function.
33667         (grub_cpu_xnu_fini): Likewise.
33668         * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33669         * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33670         (grub_cmd_xnu_devtree): Likewise.
33671         (hextoval): New function.
33672         (unescape): Likewise.
33673         (grub_xnu_fill_devicetree): Likewise.
33675         * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33676         * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33678 2009-12-18  Vladimir Serbinenko  <phcoder@gmail.com>
33680         Workaround for broken ATI VBE.
33682         * video/i386/pc/vbe.c (last_set_mode): New variable.
33683         (grub_vbe_set_video_mode): Set 'last_set_mode'.
33684         (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33685         (grub_video_vbe_setup): Don't check for reserved flag.
33687 2009-12-17  Felix Zielcke <fzielcke@z-51.de>
33689         * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33690         the `find' command.
33692 2009-12-16  Vladimir Serbinenko  <phcoder@gmail.com>
33694         UUID support for HFS.
33696         * fs/hfs.c (grub_hfs_uuid): New function.
33697         (grub_hfs_fs): New value .uuid.
33698         * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33700 2009-12-14  Felix Zielcke <fzielcke@z-51.de>
33702         Fix a segfault with parsing unknown long options.
33704         * util/grub-mkrelpath.c (options): Zero terminate it.
33706 2009-12-13  Carles Pina i Estany  <carles@pina.cat>
33708         * include/grub/misc.h (grub_puts): New declaration.
33709         (grub_puts_): Likewise.
33710         * kern/misc.c (grub_puts): New definition.
33711         (grub_puts_): Likewise.
33713 2009-12-13  Robert Millan  <rmh.grub@aybabtu.com>
33715         * util/grub-probe.c (probe): Improve error message.
33717 2009-12-13  Robert Millan  <rmh.grub@aybabtu.com>
33719         * loader/i386/multiboot_elfxx.c
33720         (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33721         initialization.
33723 2009-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
33725         Relocator framework
33727         * loader/i386/xnu_helper.S: Removed. All users updated.
33728         * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33729         (relocator_mod_SOURCES): New variable.
33730         (relocator_mod_CFLAGS): Likewise.
33731         (relocator_mod_LDFLAGS): Likewise.
33732         (relocator_mod_ASFLAGS): Likewise.
33733         * conf/x86_64.rmk: Likewise.
33734         * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33735         (grub_multiboot_payload_entry_offset): Likewise.
33736         (grub_multiboot_forward_relocator): Likewise.
33737         (grub_multiboot_forward_relocator_end): Likewise.
33738         (grub_multiboot_backward_relocator): Likewise.
33739         (grub_multiboot_backward_relocator_end): Likewise.
33740         (grub_multiboot_payload_eip): New variable.
33741         (grub_multiboot_payload_orig): Likewise.
33742         * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33743         (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33744         * include/grub/i386/memory.h
33745         (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33746         (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33747         (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33748         (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33749         (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33750         * include/grub/i386/relocator.h: New file.
33751         * include/grub/x86_64/relocator.h: Likewise.
33752         * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33753         (XNU_RELOCATOR): New macro.
33754         (grub_xnu_launcher_start): Remove.
33755         (grub_xnu_launcher_end): Likewise.
33756         * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33757         (grub_xnu_heap_real_start): Remove.
33758         (grub_xnu_heap_start): Change to void *. All users updated.
33759         * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33760         * lib/i386/relocator.c: New file.
33761         * lib/i386/relocator_asm.S: Likewise.
33762         * lib/i386/relocator_backward.S: Likewise.
33763         * lib/mips/relocator.c: Likewise.
33764         * lib/mips/relocator_asm.S: Likewise.
33765         * lib/relocator.c: Likewise.
33766         * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33767         (entry): Removed.
33768         (playground): Likewise.
33769         (grub_multiboot_payload_orig): New variable.
33770         (grub_multiboot_payload_dest): Likewise.
33771         (grub_multiboot_payload_size): Likewise.
33772         (grub_multiboot_payload_eip): Likewise.
33773         (grub_multiboot_payload_esp): Likewise.
33774         (grub_multiboot_boot): Use grub_relocator32_boot.
33775         (grub_multiboot_unload): Free relocators.
33776         (grub_multiboot): Setup stack. Use relocators.
33777         * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33778         (grub_multiboot_load_elfXX): Use relocators.
33779         * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33780         (grub_multiboot_payload_size): Likewise.
33781         (grub_multiboot_payload_dest): Likewise.
33782         (grub_multiboot_payload_entry_offset): Likewise.
33783         (grub_multiboot_forward_relocator): Likewise.
33784         (grub_multiboot_backward_relocator): Likewise.
33785         (grub_multiboot_real_boot): Likewise.
33786         * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33787         (grub_xnu_entry_point): Likewise.
33788         (grub_xnu_arg1): Likewise.
33789         (grub_xnu_stack): Likewise.
33790         (grub_xnu_launch): Removed.
33791         (grub_xnu_boot_resume): New function.
33792         (grub_xnu_boot): Use relocators.
33793         * loader/i386/xnu_helper.S: Removed.
33794         * loader/xnu.c (grub_xnu_heap_start): New variable.
33795         (grub_xnu_heap_size): Likewise.
33796         (grub_xnu_heap_malloc): Use relocators.
33797         * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33799 2009-12-13  Vladimir Serbinenko  <phcoder@gmail.com>
33801         * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33802         anything.
33804 2009-12-13  Carles Pina i Estany  <carles@pina.cat>
33806         * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33807         GRUB_ERR_NONE before calling grub_env_set.
33809 2009-12-12  Robert Millan  <rmh@aybabtu.com>
33811         * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33812         * genmk.rb (video): New variable.
33813         (CLEANFILES, VIDEOFILES): Add #{video}.
33814         (#{video}): New target rule.
33815         * genvideolist.sh: New file.
33816         * Makefile.in (pkglib_DATA): Add video.lst.
33817         (video.lst): New target rule.
33818         * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33819         `video.lst'.
33820         * util/grub.d/30_os-prober.in: Replace `vbe' with
33821         ${GRUB_VIDEO_BACKEND}.
33823 2009-12-11  Robert Millan  <rmh.grub@aybabtu.com>
33825         * THANKS: Add David Miller.
33827 2009-12-11  Vladimir Serbinenko  <phcoder@gmail.com>
33829         libpciaccess support.
33831         * Makefile.in (LIBPCIACCESS): New variable.
33832         (enable_grub_emu_pci): Likewise.
33833         * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33834         util/pci.c and commands/lspci.c.
33835         (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33836         * configure.ac (grub-emu-pci): New option.
33837         * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33838         (grub_pci_device_unmap_range): Likewise.
33839         * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33840         (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33841         (grub_pci_address_t) [!GRUB_UTIL]: New type.
33842         (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33843         (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33844         (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33845         (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33846         * include/grub/pciutils.h: New file.
33847         * util/pci.c: Likewise.
33849 2009-12-11  Felix Zielcke <fzielcke@z-51.de>
33851         * util/misc.c: Don't include <errno.h> twice.
33853 2009-12-10  Felix Zielcke <fzielcke@z-51.de>
33855         * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33856         name in an error message.
33857         (grub_biosdisk_rw): Likewise.
33859 2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
33861         Eliminate NTFS 4Gib barrier.
33863         * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33864         (read_run_data): Likewise.
33865         (grub_ntfs_read_run_list): Likewise.
33866         (grub_ntfs_read_block): Likewise.
33867         (grub_ntfs_iterate_dir): Likewise.
33868         (read_mft): Likewise.
33869         (read_data): Likewise.
33870         Use COM_LOG_LEN.
33871         * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33872         to avoid 64-bit division
33873         * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33874         (grub_ntfs_rlst): Use grub_disk_addr_t.
33876 2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
33878         Eliminate grub-fstest 4Gib barrier.
33880         * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33881         (read_file): Fix error reporting.
33883 2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
33885         Eliminate hexdump 4Gib barrier.
33887         * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33888         * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33890 2009-12-10  Vladimir Serbinenko  <phcoder@gmail.com>
33892         * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33893         Fixes amarsh bug.
33895 2009-12-09  Bruce Dubbs  <bruce.dubbs@gmail.com>
33897         Remove miscellaneous files in distclean target.
33899         * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33901 2009-12-09  Colin Watson  <cjwatson@ubuntu.com>
33903         * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33904         if they're already set.  This resolves the conflict between my
33905         grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33906         fixing the --grub-probe option again.
33907         * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33908         change on 2009-10-06, so that we now once again source
33909         `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33911 2009-12-08  Robert Millan  <rmh.grub@aybabtu.com>
33913         * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33914         `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33915         `util/devicemap.c'.
33917 2009-12-08  Carles Pina i Estany  <carles@pina.cat>
33919         * include/grub/misc.h (grub_printf_): New declaration.
33920         * kern/misc.c (grub_printf_): New definition.
33921         * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33922         instead of `grub_printf' and `_'.
33923         * normal/menu_entry.c (store_completion): Likewise.
33924         (run): Likewise.
33925         (grub_menu_entry_run): Likewise.
33926         * normal/menu_text.c (grub_wait_after_message): Likewise.
33927         (notify_booting): Likewise.
33928         (notify_fallback): Likewise.
33929         (notify_execution_failure): Likewise.
33931 2009-12-07  Colin Watson  <cjwatson@ubuntu.com>
33933         * configure.ac: Check for vasprintf.
33934         * util/misc.c (asprintf): Move allocation from here ...
33935         (vasprintf): ... to here.  New function.
33936         (xasprintf): New function.
33937         * include/grub/util/misc.h (vasprintf, xasprintf): Add
33938         prototypes.
33939         * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33940         * util/grub-mkfont.c (write_font): Likewise.
33941         * util/grub-probe.c (probe): Likewise.
33942         * util/hostdisk.c (make_device_name): Likewise.
33944 2009-12-06  David S. Miller  <davem@sunset.davemloft.net>
33946         * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33947         anything even prefixed with 'cdrom' as a cdrom.
33949 2009-12-06  Felix Zielcke <fzielcke@z-51.de>
33951         * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33952         mount points.
33954 2009-12-05  Carles Pina i Estany <carles@pina.cat>
33956         * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33957         grub_gettext_msg_list.
33958         (grub_gettext_gettranslation_from_position): Return const char *
33959         and not char *.
33960         (grub_gettext_translate): Add the translated strings into a list,
33961         returns from the list if existing there.
33962         (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33963         (grub_gettext_delete_list): Delete the list.
33964         (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33965         lang environment variable is changed.
33966         (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33968 2009-12-05  Vladimir Serbinenko  <phcoder@gmail.com>
33970         Rename kernel.mod to kernel.img.
33972         * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33973         (kernel_mod_EXPORTS): Rename to ...
33974         (kernel_img_EXPORTS): ... this.
33975         (kernel_mod_SOURCES): Rename to ...
33976         (kernel_img_SOURCES): ... this.
33977         (kernel_mod_HEADERS): Rename to ...
33978         (kernel_img_HEADERS): ... this. All users updated.
33979         (kernel_mod_CFLAGS): Rename to ...
33980         (kernel_img_CFLAGS): ... this.
33981         (kernel_mod_ASFLAGS): Rename to ...
33982         (kernel_img_ASFLAGS): ... this.
33983         (kernel_mod_LDFLAGS): Rename to ...
33984         (kernel_img_LDFLAGS): ... this.
33985         * conf/x86_64-efi.rmk: Likewise.
33986         * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33987         (read_kernel_image): ... this. All users updated.
33988         (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33990 2009-12-05  Carles Pina i Estany  <carles@pina.cat>
33992         * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33993         (print_spaces): New function.
33994         (grub_print_ucs4): New function.
33995         (getstringwidth): New function.
33996         (print_message_indented): New function.
33997         (print_message): Gettexttize strings using print_message_indented.
33998         (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33999         width.
34000         (get_entry_number): Gettextize and uses dynamic terminal width.
34001         (notify_booting, notify_fallback, notify_execution_failure):
34002         Gettextize.
34003         * normal/menu_entry.c (store_completion): Cleanup the gettextized
34004         string.
34005         (run): Likewise.
34006         (grub_menu_entry_run): Likewise.
34007         * PO/POTFILES: Add normal/menu_entry.c.
34009 2009-12-05  Vladimir Serbinenko  <phcoder@gmail.com>
34011         * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
34013 2009-12-05  Carles Pina i Estany  <carles@pina.cat>
34015         * util/grub-install.in: Install gettext .mo files.
34016         * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
34018 2009-12-05  Carles Pina i Estany  <carles@pina.cat>
34020         * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
34021         grub_dprintf.
34023 2009-12-05  Robert Millan  <rmh.grub@aybabtu.com>
34025         * kern/ieee1275/openfw.c (grub_reboot): Disable for i386.  The
34026         non-firmware-dependant one in realmode.S takes precedence.
34028 2009-12-04  Robert Millan  <rmh.grub@aybabtu.com>
34030         * commands/halt.c: Replace misc arch-specific headers with
34031         `<grub/misc.h>'.
34032         * commands/reboot.c: Likewise.
34033         * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
34034         `<grub/misc.h>'.
34035         * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
34036         (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
34037         (kernel_img_SOURCES): ... to here.
34039         * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
34040         * include/grub/i386/pc/init.h: Likewise.
34041         * include/grub/powerpc/ieee1275/kernel.h: Likewise.
34042         * include/grub/sparc64/ieee1275/kernel.h: Likewise.
34044         * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
34046         * include/grub/i386/halt.h: Remove.
34047         * include/grub/i386/reboot.h: Likewise.
34049         * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
34051 2009-12-03  David S. Miller  <davem@sunset.davemloft.net>
34053         * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
34054         grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
34055         * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
34056         "progname.h"
34057         * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34058         * util/sparc64/ieee1275/grub-setup.c: Likewise.
34059         (usage): Add missing comma in printf.
34061 2009-12-02  Robert Millan  <rmh.grub@aybabtu.com>
34063         Use the same reboot approach on i386 coreboot and qemu as we do on
34064         BIOS.
34066         * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
34067         (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
34068         * kern/i386/reboot.c: Remove.
34069         * include/grub/i386/reboot.h (grub_reboot): Export function.
34070         * kern/i386/pc/startup.S (grub_reboot): Move from here ...
34071         * kern/i386/realmode.S (grub_reboot): ... to here.  Jump to
34072         0xf000:0xfff0 instead of 0xffff:0x0000.
34073         [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
34074         * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
34076 2009-11-30  Robert Millan  <rmh.grub@aybabtu.com>
34078         Fix $srcdir != $objdir build.
34080         * Makefile.in (po/%.po):  Rewrite as ...
34081         ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
34083 2009-11-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34085         Fix GNU/Hurd grub-install crash.
34086         * util/grub-probe.c (probe): Try to access `path' only when it is not
34087         NULL.
34089 2009-11-28  Vladimir Serbinenko  <phcoder@gmail.com>
34091         Correct module naming.
34093         * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34094         (GRUB_MOD_INIT(efi_uga)): ... to this
34095         (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34096         (GRUB_MOD_FINI(efi_uga)): ... to this
34097         * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
34098         (GRUB_MOD_INIT(efi_gop)): ... to this
34099         (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
34100         (GRUB_MOD_FINI(efi_gop)): ... to this
34102 2009-11-28  Robert Millan  <rmh.grub@aybabtu.com>
34104         * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34105         translatable.
34106         (usage): Translate `arg' strings using gettext().
34107         Thanks to Jordi Mallach for the suggestion.
34109 2009-11-28  Vladimir Serbinenko  <phcoder@gmail.com>
34111         GOP support. Based on patch from Bean
34112         (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34114         * video/efi_gop.c: New file.
34115         * include/grub/efi/graphics_output.h: Likewise.
34116         * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34117         (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34118         variables.
34119         * conf/x86_64-efi.rmk: Likewise.
34121 2009-11-28  Vladimir Serbinenko  <phcoder@gmail.com>
34123         Rename efi_fb to efi_uga.
34125         * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34126         'efi_uga.mod'.
34127         (efi_fb_mod_SOURCES): Rename this ...
34128         (efi_uga_mod_SOURCES): ... to this.
34129         (efi_fb_mod_CFLAGS): Rename this ...
34130         (efi_uga_mod_CFLAGS): ... to this.
34131         (efi_fb_mod_LDFLAGS): Rename this ...
34132         (efi_uga_mod_LDFLAGS): ... to this.
34133         * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34134         'efi_uga.mod'.
34135         (efi_fb_mod_SOURCES): Rename this ...
34136         (efi_uga_mod_SOURCES): ... to this.
34137         (efi_fb_mod_CFLAGS): Rename this ...
34138         (efi_uga_mod_CFLAGS): ... to this.
34139         (efi_fb_mod_LDFLAGS): Rename this ...
34140         (efi_uga_mod_LDFLAGS): ... to this.
34141         * video/efi_fb.c: Move this ...
34142         * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34144 2009-11-27  Robert Millan  <rmh.grub@aybabtu.com>
34146         * po/README: New file.  Explain our PO file workflow.
34148 2009-11-27  Robert Millan  <rmh.grub@aybabtu.com>
34150         * po/ChangeLog: Remove.  Move relevant entries back to ...
34151         * ChangeLog: ... here.
34152         * po/ca.po: Remove (now handled by TLP).
34153         * po/id.po: Likewise.
34154         * po/zh_CN.po: Likewise.
34155         * Makefile.in (LINGUAS): Initialize in a way that supports
34156         empty set.
34158 2009-11-27  Robert Millan  <rmh.grub@aybabtu.com>
34160         * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34161         reliing on po/LINGUAS.
34162         ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34163         (po/%.po): ... this.
34165 2009-11-26  Felix Zielcke <fzielcke@z-51.de>
34167         * util/i386/efi/grub-mkimage.c: Include "progname.h".
34168         (main): Use `program_name' instead of nonexistent `progname'.
34170 2009-11-26  Felix Zielcke  <fzielcke@z-51.de>
34172         * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34173         * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34175 2009-11-26  Robert Millan  <rmh.grub@aybabtu.com>
34177         * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34178         commit.
34179         * conf/i386-efi.rmk: Likewise.
34180         * conf/i386-ieee1275.rmk: Likewise.
34181         * conf/powerpc-ieee1275.rmk: Likewise.
34182         * conf/sparc64-ieee1275.rmk: Likewise.
34183         * conf/x86_64-efi.rmk: Likewise.
34185 2009-11-26  Felix Zielcke  <fzielcke@z-51.de>
34187         * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34189 2009-11-26  Felix Zielcke  <fzielcke@z-51.de>
34191         * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34193 2009-11-26  Robert Millan  <rmh.grub@aybabtu.com>
34195         * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34196         (grub_mkdevicemap_SOURCES): New variable.
34197         (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34198         (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34199         (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34200         * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34201         (grub_mkdevicemap_SOURCES): Remove.
34202         * conf/i386-efi.rmk: Likewise.
34203         * conf/i386-ieee1275.rmk: Likewise.
34204         * conf/i386-pc.rmk: Likewise.
34205         * conf/powerpc-ieee1275.rmk: Likewise.
34206         * conf/sparc64-ieee1275.rmk: Likewise.
34207         * conf/x86_64-efi.rmk: Likewise.
34208         * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34209         (usage): Fix strings to use `program_name'.
34210         (main): Initialize gettext.
34211         * util/grub-editenv.c: Likewise.
34212         * util/grub-emu.c: Likewise.
34213         * util/grub-fstest.c: Likewise.
34214         * util/grub-mkdevicemap.c: Likewise.
34215         * util/grub-mkfont.c: Likewise.
34216         * util/grub-mkrelpath.c: Likewise.
34217         * util/grub-pe2elf.c: Likewise.
34218         * util/grub-probe.c: Likewise.
34219         * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34220         * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34221         * util/sparc64/ieee1275/grub-setup.c: Likewise.
34223         * util/misc.c: Include `"progname.h"'.
34224         (progname): Remove variable.
34225         (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34227 2009-11-25  Felix Zielcke  <fzielcke@z-51.de>
34229         * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34230         printf and print a newline after the menuentry header line.
34231         * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34233 2009-11-25  Felix Zielcke  <fzielcke@z-51.de>
34235         autoconf >= 2.60 support $(localedir).
34237         * INSTALL: Note that autoconf 2.60 is required.
34238         * configure.ac (AC_PREREQ): Bump to 2.60.
34239         * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34240         * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34242 2009-11-25  Yves Blusseau  <yves.blusseau@zetam.org>
34244         * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34245         aclocal is run.
34247 2009-11-25  Robert Millan  <rmh.grub@aybabtu.com>
34249         * normal/main.c (grub_normal_read_line): Fix off-by-one
34250         buffer overflow.
34252 2009-11-25  Robert Millan  <rmh.grub@aybabtu.com>
34254         * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34255         "parser.grub" in grub_command_execute() call.
34257 2009-11-24  Carles Pina i Estany <carles@pina.cat>
34259         * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34260         * conf/i386-efi.rmk: Likewise.
34261         * conf/i386-ieee1275.rmk: Likewise.
34262         * conf/i386-pc.rmk: Likewise.
34263         * conf/powerpc-ieee1275.rmk: Likewise.
34264         * conf/sparc64-ieee1275.rmk: Likewise.
34265         * conf/x86_64-efi.rmk: Likewise.
34266         * gettext/gettex.c: Include <grub/i18n.h>.
34267         * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34268           here ...
34269         * include/grub/i18n.h: ... to here
34270         * include/grub/i18n.h: ... to here.
34271         * kern/misc.c: Include <grub/i18n.h>
34272         (grub_gettext_dummy): Move above user.
34274 2009-11-24  Felix Zielcke  <fzielcke@z-51.de>
34276         * util/Makefile.in (install-local): Convert a `for' into a normal
34277         shell expansion.
34279 2009-11-24  Robert Millan  <rmh.grub@aybabtu.com>
34281         * autogen.sh: Add automake call.
34282         * config.guess: Remove.
34283         * config.sub: Likewise.
34284         * install-sh: Likewise.
34286 2009-11-24  Felix Zielcke  <fzielcke@z-51.de>
34288         * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34290 2009-11-24  Felix Zielcke  <fzielcke@z-51.de>
34292         * util/Makefile.in (install-local): Convert a make `$(foreach)'
34293         function to a normal shell `for'.
34295 2009-11-24  Felix Zielcke  <fzielcke@z-51.de>
34297         * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34299 2009-11-24  Felix Zielcke  <fzielcke@z-51.de>
34301         * util/grub-mkrelpath.c: New file.
34302         * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34303         (grub_mkrelpath_SOURCES): New variable.
34304         * include/grub/util/misc.h: New function prototype.
34305         * util/misc.c (make_system_path_relative_to_its_root): New function.
34307         * util/grub-mkconfig_lib.in (bindir): New variable.
34308         (grub_mkrelpath): Likewise.
34309         (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34311         * util/probe.c (probe): Make the file path relative to its root.
34312         Change a info message to use the GRUB path.  Enable again the
34313         check if we can read the file with GRUB facilities.
34315         * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34316         to its root.
34318 2009-11-24  Felix Zielcke  <fzielcke@z-51.de>
34320         * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34321         platform.
34323 2009-11-24  Felix Zielcke  <fzielcke@z-51.de>
34325         * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34326         strncmp().
34328 2009-11-24  Felix Zielcke  <fzielcke@z-51.de>
34330         * util/getroot.c (grub_util_is_dmraid): New function.
34331         (grub_util_get_dev_abstraction): Treat dmraid and multipath
34332         devices as normal ones, not as LVM.
34334 2009-11-23  Carles Pina i Estany <carles@pina.cat>
34336         * conf/common.rmk: Add grub-gettext_lib target and updates
34337           lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34338           LDFLAGS.
34339         * gettext/gettext.c: New file. (Reads mo files).
34340         * include/grub/file.h (grub_file_pread): New prototype.
34341         * include/grub/i18n.h (_): New prototype.
34342         * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34343           prototypes.
34344         * kern/misc.c (grub_gettext_dummy): New function.
34345         * normal/menu_text.c: Include <grub/i18n.h>.
34346         * normal/menu_text.c (print_timeout): Gettexttize string.
34347         * normal/menu_text.c (print_message): Gettexttize string.
34348         * po/POTFILES: Add `normal/menu_text.c'.
34349         * po/ca.po: Add new translations.
34350         * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34351           gettext module and defines locale_dir and lang in grub.cfg.
34352         * NEWS: Add gettext support.
34354 2009-11-23  Robert Millan  <rmh.grub@aybabtu.com>
34356         * util/hostdisk.c: Include `<grub/i18n.h>'.
34357         (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34358         (make_device_name): Rewrite using asprintf.
34359         (convert_system_partition_to_system_disk): Replace 0 with NULL.
34360         (find_system_device): If a device is not found, generate one just
34361         by reusing the OS path name.
34362         (read_device_map): Make it permissible for device.map not to exist.
34364 2009-11-23  Robert Millan  <rmh.grub@aybabtu.com>
34366         * script/sh/execute.c: Move from here ...
34367         * script/execute.c: ... to here.  Update all users.
34368         * script/sh/function.c: Move from here ...
34369         * script/function.c: ... to here.  Update all users.
34370         * script/sh/lexer.c: Move from here ...
34371         * script/lexer.c: ... to here.  Update all users.
34372         * script/sh/main.c: Move from here ...
34373         * script/main.c: ... to here.  Update all users.
34374         * script/sh/parser.y: Move from here ...
34375         * script/parser.y: ... to here.  Update all users.
34376         * script/sh/script.c: Move from here ...
34377         * script/script.c: ... to here.  Update all users.
34379 2009-11-23  Robert Millan  <rmh.grub@aybabtu.com>
34381         * configure.ac: Detect all `emu' platforms.  Define
34382         GRUB_MACHINE_* macros in TARGET_CFLAGS.  Remove
34383         --enable-grub-emu logic.  Disable include/grub/machine
34384         symlink on `emu' platforms.
34386         * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34387         * gensymlist.sh.in: Likewise.
34389         * include/grub/i386/coreboot/machine.h: Remove file.
34390         * include/grub/i386/efi/machine.h: Likewise.
34391         * include/grub/i386/ieee1275/machine.h: Likewise.
34392         * include/grub/i386/pc/machine.h: Likewise.
34393         * include/grub/i386/qemu/machine.h: Likewise.
34394         * include/grub/powerpc/ieee1275/machine.h: Likewise.
34395         * include/grub/sparc64/ieee1275/machine.h: Likewise.
34396         * include/grub/x86_64/efi/machine.h: Likewise.
34398         * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34399         * commands/halt.c: Likewise.
34400         * commands/reboot.c: Likewise.
34401         * include/grub/autoefi.h: Likewise.
34402         * include/grub/i386/at_keyboard.h: Likewise.
34403         * include/grub/i386/kernel.h: Likewise.
34404         * include/grub/i386/loader.h: Likewise.
34405         * include/grub/i386/pc/memory.h: Likewise.
34406         * kern/dl.c: Likewise.
34407         * kern/i386/coreboot/init.c: Likewise.
34408         * loader/i386/bsd.c: Likewise.
34409         * loader/i386/linux.c: Likewise.
34410         * loader/multiboot_loader.c: Likewise.
34411         * term/i386/pc/serial.c: Likewise.
34412         * term/usb_keyboard.c: Likewise.
34414         * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34415         `<grub/machine/machine.h>'
34416         [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34417         * util/misc.c: Remove `<grub/machine/machine.h>' and
34418         `<grub/machine/time.h>'.
34420         * Makefile.in (enable_grub_emu): Remove variable.
34421         Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34423         * conf/any-emu.rmk: New file.
34424         * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34425         (grub_emu_init.c): Move from here ...
34426         * conf/any-emu.rmk: ... to here.
34428         * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34429         (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34430         * conf/any-emu.rmk: ... to here.
34432 2009-11-23  Robert Millan  <rmh.grub@aybabtu.com>
34434         * include/grub/parser.h (grub_parser_register): Document need
34435         of `name' parameter.
34436         * normal/main.c (grub_normal_read_line): Simplify prompt string.
34437         * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34438         "sh" to "grub".
34440 2009-11-23  Robert Millan  <rmh.grub@aybabtu.com>
34442         * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34443         `$(XGETTEXT)'.
34444         * include/grub/i18n.h (N_): New macro.
34445         * util/mkisofs/mkisofs.h: Likewise.
34446         * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34447         around N_().
34448         (usage): Use gettext() to translate help strings when printing them.
34450 2009-11-23  Robert Millan  <rmh.grub@aybabtu.com>
34452         Based on patch from Bean
34453         (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34455         * video/efi_fb.c: New file.
34456         * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34457         (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34458         variables.
34459         * conf/x86_64-efi.rmk: Likewise.
34461 2009-11-22  Robert Millan  <rmh.grub@aybabtu.com>
34463         * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34464         * util/i386/pc/grub-setup.c: Likewise.
34466 2009-11-21  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34468         * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34469         <hurd/fs.h>
34470         [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34471         file_get_storage_info to implement grub_guess_root_device.
34473 2009-11-21  Felix Zielcke  <fzielcke@z-51.de>
34475         * Makefile.in (target): Use make's builtin $(shell) function
34476         instead of calling directly $(SHELL) to create the locale directories,
34477         inside the $(foreach) function.
34479 2009-11-21  Felix Zielcke  <fzielcke@z-51.de>
34481         * util/grub-mkrescue.in: Print an error and usage if output option
34482         has not been given.
34484 2009-11-21  Felix Zielcke  <fzielcke@z-51.de>
34486         Patch from Loïc Minier <loic.minier@ubuntu.com>.
34487         * util/grub.d/30_os-prober.in: Cope with Linux entries where
34488         root and /boot are on different devices.
34490 2009-11-21  Robert Millan  <rmh.grub@aybabtu.com>
34492         Fix build for srcdir != objdir.
34494         * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34495         ($(srcdir)/po/$(PACKAGE).pot): ... this.  Run $(XGETTEXT) from
34496         $(srcdir).
34497         ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34498         ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34499         reference for input.
34501 2009-11-21  Robert Millan  <rmh.grub@aybabtu.com>
34503         * util/grub-mkrescue.in: Use source directory direcly (without copiing
34504         or hardlinking it).  Remove -J option, Joliet is not compatible with
34505         multiple source directories.
34507 2009-11-21  Carles Pina i Estany <carles@pina.cat>
34508 2009-11-21  Robert Millan  <rmh.grub@aybabtu.com>
34510         * util/grub-mkrescue.in: Recognize `--override-directory' option.
34511         (process_input_dir): New function.  Process an arbitrary input
34512         directory.
34513         Misc adjustments to support both "override mode" and system-wide mode.
34515 2009-11-20  Felix Zielcke  <fzielcke@z-51.de>
34517         * configure.ac (UNIFONT_BDF): Rename to ...
34518         (FONT_SOURCE): ... this.  Update all users.
34520 2009-11-20  Felix Zielcke  <fzielcke@z-51.de>
34522         * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34523         to the list of unifont files to look for.
34525 2009-11-19  Robert Millan  <rmh.grub@aybabtu.com>
34527         Patch from Joe Auricchio <jauricchio@gmail.com>
34528         * commands/minicmd.c (grub_mini_cmd_clear): New function.
34529         (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34530         (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34532 2009-11-19  Felix Zielcke  <fzielcke@z-51.de>
34534         * Makefile.in (install-local): Add a missing backslash.
34536 2009-11-19  Felix Zielcke  <fzielcke@z-51.de>
34538         * include/grub/x86_64/io.h: New file.
34540 2009-11-19  Robert Millan  <rmh.grub@aybabtu.com>
34542         * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34543         * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34544         Include `"progname.h"'.
34545         (main): Initialize gettext.
34546         * util/i386/pc/grub-setup.c: Gettexttize.
34547         * util/i386/pc/grub-mkimage.c: Likewise.
34549         * Makefile.in (po/*.po): Redefine as ...
34550         ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34552         * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34554 2009-11-19  Robert Millan  <rmh.grub@aybabtu.com>
34556         * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34557         * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34558         (program_name): Remove.
34559         (main): Initialize gettext support.
34560         * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34561         Include `<libintl.h>'.
34562         (_): New macro.
34564         * util/mkisofs/eltorito.c: Gettexttize.
34565         * util/mkisofs/joliet.c: Likewise.
34566         * util/mkisofs/mkisofs.c: Likewise.
34567         * util/mkisofs/multi.c: Likewise.
34568         * util/mkisofs/rock.c: Likewise.
34569         * util/mkisofs/tree.c: Likewise.
34570         * util/mkisofs/write.c: Likewise.
34572         * po/POTFILES: Update with new files.
34574 2009-11-18  Robert Millan  <rmh.grub@aybabtu.com>
34576         * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34577         * util/mkisofs/iso9660.h: Likewise.
34578         * util/mkisofs/joliet.c: Likewise.
34579         * util/mkisofs/mkisofs.c: Likewise.
34580         * util/mkisofs/mkisofs.h: Likewise.
34581         * util/mkisofs/rock.c: Likewise.
34582         * util/mkisofs/tree.c: Likewise.
34583         * util/mkisofs/write.c: Likewise.
34585         * util/mkisofs/eltorito.c (rcsid): Remove.
34586         * util/mkisofs/hash.c: Likewise.
34587         * util/mkisofs/joliet.c: Likewise.
34588         * util/mkisofs/name.c: Likewise.
34589         * util/mkisofs/rock.c: Likewise.
34590         * util/mkisofs/tree.c: Likewise.
34591         * util/mkisofs/write.c: Likewise.
34593 2009-11-18  Robert Millan  <rmh.grub@aybabtu.com>
34595         * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34596         instead of static allocation.
34597         * util/mkisofs/match.h: Likewise.
34599 2009-11-18  Robert Millan  <rmh.grub@aybabtu.com>
34601         * po/POTFILES-shell: New file.  List `util/grub.d/10_kfreebsd.in'
34602         and `util/grub.d/10_linux.in'.
34603         * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34604         translatable Shell files.
34606 2009-11-18  Robert Millan  <rmh.grub@aybabtu.com>
34608         * Makefile.in ($(srcdir)/aclocal.m4): New target.
34610 2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
34612         * INSTALL: Document Automake is needed for bootstrap.
34613         * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34614         * util/grub.d/10_kfreebsd.in (bindir): New variable.
34615         Add gettext initialization.
34616         (kfreebsd_entry): Make menuentry output translatable.
34618 2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
34620         * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34621         (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34622         (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34623         (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34624         (LINGUAS): Auto-generate using `po/LINGUAS'.
34625         * po/LINGUAS: New file.
34627 2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
34629         * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34630         other things).
34631         * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34632         * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34633         bindtextdomain() calls for gettext initialization.
34635 2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
34637         * gnulib/progname.c: New file (imported from Gnulib).
34638         * gnulib/progname.h: Likewise.
34639         * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34640         * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34641         (usage): Replace `progname' with `program_name'.
34642         (main): Use set_program_name() for program name initialization.
34644 2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
34646         * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34647         from here ...
34648         * Makefile.in (CPPFLAGS): ... to here.
34650 2009-11-16  Robert Millan  <rmh.grub@aybabtu.com>
34652         * aclocal.m4: Move from here ...
34653         * acinclude.m4: ... to here.
34654         * autogen.sh: Add call to `aclocal'.
34655         * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34657 2009-11-16  Robert Millan  <rmh.grub@aybabtu.com>
34659         * Makefile.in (CLEANFILES): Add `po/*.mo'.
34660         (LINGUAS): New variable.
34661         (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34662         (install-local): Install MO files.
34663         (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34664         * include/grub/i18n.h: New file.
34665         * po/POTFILES: New file.
34666         * po/ca.po: New file.
34667         * util/grub.d/10_linux.in (bindir): New variable.
34668         Add gettext initialization.
34669         (linux_entry): Make menuentry output translatable.
34670         * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34671         (usage): Make --help output translatable.
34672         (main): Initialize gettext.
34674 2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
34676         * import_gcry.py: New file (written by Vladimir with minor
34677         adjustments).
34678         * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34679         ciphers.
34680         * INSTALL: Document that Python is required for bootstrap.
34682 2009-11-17  Robert Millan  <rmh.grub@aybabtu.com>
34684         Import ciphers from libgcrypt 1.4.4.
34686          * lib/libgcrypt/cipher/ChangeLog
34687          * lib/libgcrypt/cipher/ac.c
34688          * lib/libgcrypt/cipher/arcfour.c
34689          * lib/libgcrypt/cipher/bithelp.h
34690          * lib/libgcrypt/cipher/blowfish.c
34691          * lib/libgcrypt/cipher/camellia-glue.c
34692          * lib/libgcrypt/cipher/camellia.c
34693          * lib/libgcrypt/cipher/camellia.h
34694          * lib/libgcrypt/cipher/cast5.c
34695          * lib/libgcrypt/cipher/cipher.c
34696          * lib/libgcrypt/cipher/crc.c
34697          * lib/libgcrypt/cipher/des.c
34698          * lib/libgcrypt/cipher/dsa.c
34699          * lib/libgcrypt/cipher/ecc.c
34700          * lib/libgcrypt/cipher/elgamal.c
34701          * lib/libgcrypt/cipher/hash-common.c
34702          * lib/libgcrypt/cipher/hash-common.h
34703          * lib/libgcrypt/cipher/hmac-tests.c
34704          * lib/libgcrypt/cipher/md.c
34705          * lib/libgcrypt/cipher/md4.c
34706          * lib/libgcrypt/cipher/md5.c
34707          * lib/libgcrypt/cipher/primegen.c
34708          * lib/libgcrypt/cipher/pubkey.c
34709          * lib/libgcrypt/cipher/rfc2268.c
34710          * lib/libgcrypt/cipher/rijndael-tables.h
34711          * lib/libgcrypt/cipher/rijndael.c
34712          * lib/libgcrypt/cipher/rmd.h
34713          * lib/libgcrypt/cipher/rmd160.c
34714          * lib/libgcrypt/cipher/rsa.c
34715          * lib/libgcrypt/cipher/seed.c
34716          * lib/libgcrypt/cipher/serpent.c
34717          * lib/libgcrypt/cipher/sha1.c
34718          * lib/libgcrypt/cipher/sha256.c
34719          * lib/libgcrypt/cipher/sha512.c
34720          * lib/libgcrypt/cipher/tiger.c
34721          * lib/libgcrypt/cipher/twofish.c
34722          * lib/libgcrypt/cipher/whirlpool.c
34724 2009-11-16  Robert Millan  <rmh.grub@aybabtu.com>
34726         Fix build for systems without error().
34728         * gnulib/error.c: New file (imported from Gnulib).
34729         * gnulib/error.h: Likewise.
34730         * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34731         * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34732         (this variable is now used by error()).
34734 2009-11-16  Felix Zielcke  <fzielcke@z-51.de>
34736         * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34737         instead of relying that char is signed.
34739 2009-11-16  Vladimir Serbinenko  <phcoder@gmail.com>
34741         * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34742         blocksize different from specified.
34743         (grub_pxefs_read): Likewise.
34745 2009-11-16  Felix Zielcke  <fzielcke@z-51.de>
34747         Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34749         * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34750         (grub_ata_readwrite): Likewise.  Update 2 format strings.
34751         (grub_atapi_read): Likewise.
34753         * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34754         * conf/i386.rmk (pkglib_MODULES): ... to here ...
34755         * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34756         * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34757         (ata_mod_LDFLAGS): Move from here ...
34758         * conf/i386.rmk: ... to here ...
34759         * conf/x86_64-efi.rmk: ... and here.
34760         * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34761         (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34763 2009-11-16  Robert Millan  <rmh.grub@aybabtu.com>
34765         Relicense multiboot.h, with RMS' blessing.
34767         * include/multiboot.h: Change to X11 license.
34769 2009-11-15  Robert Millan  <rmh.grub@aybabtu.com>
34771         Support --version in grub-mkisofs.
34773         * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34774         (OPTION_VERSION): New macro.
34775         (ld_options): Recognize --version.
34776         (usage): Move `program_name' from here ...
34777         (program_name): ... to here.  Add `static' qualifier.
34778         (main): Recognize `OPTION_VERSION'.
34780 2009-11-15  Felix Zielcke  <fzielcke@z-51.de>
34782         * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34783         with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34785 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>
34787         Fix help2man generation for mkisofs.
34789         * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34790         (usage): Send output to stdout (rather than stderr).
34792 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>
34794         * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34795         `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34796         * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34797         `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34798         (bin_SCRIPTS): Add `grub-mkfloppy'.
34799         (grub_mkfloppy_SOURCES): New variable.
34801         * util/grub-mkrescue.in: New file.
34802         * util/i386/pc/grub-mkfloppy.in: New file.
34804         * util/i386/coreboot/grub-mkrescue.in: Remove.
34805         * util/i386/pc/grub-mkrescue.in: Remove.
34807 2009-11-13  Robert Millan  <rmh.grub@aybabtu.com>
34809         * include/grub/multiboot.h (struct grub_multiboot_header): Move
34810         from here ...
34811         * include/multiboot.h (struct multiboot_header): ... to here.  Update
34812         all users.
34813         * include/grub/multiboot.h (struct grub_multiboot_info): Move
34814         from here ...
34815         * include/multiboot.h (struct multiboot_info): ... to here.  Update
34816         all users.
34817         * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34818         from here ...
34819         * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34820         Update all users.
34821         * include/grub/multiboot.h (struct grub_mod_list): Move
34822         from here ...
34823         * include/multiboot.h (struct multiboot_mod_list): ... to here.
34824         Update all users.
34826 2009-11-13  Robert Millan  <rmh.grub@aybabtu.com>
34828         * include/multiboot2.h (multiboot_word): Rename from this ...
34829         (multiboot2_word): ... to this.  Update all users.
34830         (multiboot_header): Rename from this ...
34831         (multiboot2_header): ... to this.  Update all users.
34832         (multiboot_tag_header): Rename from this ...
34833         (multiboot2_tag_header): ... to this.  Update all users.
34834         (multiboot_tag_start): Rename from this ...
34835         (multiboot2_tag_start): ... to this.  Update all users.
34836         (multiboot_tag_name): Rename from this ...
34837         (multiboot2_tag_name): ... to this.  Update all users.
34838         (multiboot_tag_module): Rename from this ...
34839         (multiboot2_tag_module): ... to this.  Update all users.
34840         (multiboot_tag_memory): Rename from this ...
34841         (multiboot2_tag_memory): ... to this.  Update all users.
34842         (multiboot_tag_unused): Rename from this ...
34843         (multiboot2_tag_unused): ... to this.  Update all users.
34844         (multiboot_tag_end): Rename from this ...
34845         (multiboot2_tag_end): ... to this.  Update all users.
34847 2009-11-13  Robert Millan  <rmh.grub@aybabtu.com>
34849         Disable Multiboot2 in i386-ieee1275.  It didn't actually work, and on
34850         this platform we should support Multiboot1 first.
34852         * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34853         (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34854         (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34856 2009-11-12  Robert Millan  <rmh.grub@aybabtu.com>
34858         * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34859         of write calls (converting them to fwrite() if they aren't already).
34860         (get_torito_desc): Likewise.
34861         * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34863 2009-11-12  Robert Millan  <rmh.grub@aybabtu.com>
34865         * util/i386/pc/grub-install.in: Move from here ...
34866         * util/grub-install.in: ... to here.  Update all users.
34868 2009-11-11  Colin Watson  <cjwatson@ubuntu.com>
34870         * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34872 2009-11-11  Robert Millan  <rmh.grub@aybabtu.com>
34874         Support for El Torito without floppy emulation.
34876         * util/mkisofs/eltorito.c: Include `<errno.h>'.
34877         (init_boot_catalog): Improve error handling.
34878         (get_torito_desc): Don't use floppy emulation unless requested by
34879         user. Patch boot information table when requested via
34880         `-boot-info-table'.
34881         * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34882         * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34883         (use_boot_info_table): New variables.
34884         (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34885         (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34886         (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34887         `--eltorito-emul-floppy'.
34888         (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34889         and `OPTION_ELTORITO_EMUL_FLOPPY'.
34890         * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34891         (use_boot_info_table, get_731): New prototypes.
34892         * util/mkisofs/write.c (get_731): New function.
34894 2009-11-11  Felix Zielcke  <fzielcke@z-51.de>
34896         Fix the generation of the man page.
34898         * util/pc/i386/grub-install.in: Source
34899         `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34901 2009-11-11  Robert Millan  <rmh.grub@aybabtu.com>
34903         Large file support for grub-mkisofs.
34905         * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34906         * util/mkisofs/mkisofs.c (next_extent, last_extent)
34907         (session_start): Upgrade type to `uint64_t'.  Update all users.
34908         * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34909         (struct directory_entry): Upgrade type of `starting_block' and
34910         `size' to `uint64_t'.  Update all users.
34911         (struct deferred): Remove unused structure.
34912         (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34913         Update all users.
34914         * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34915         file is larger than `UINT32_MAX'.
34916         * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34917         `size' to `uint64_t'.  Update all users.  Fix handling of fwrite()
34918         return value.
34919         (struct deferred_write): Upgrade type of `extent' and `size' to
34920         `uint64_t'.  Update all users.
34921         (last_extent_written): Upgrade type to `uint64_t'.  Update all
34922         users.
34923         (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34924         Update all users.  Upgrade type of `remain' to `int64_t' and
34925         `use' to `size_t'.  Use error() to handle fread() errors.
34926         (write_files): Rely on write_one_file() rather than calling
34927         xfwrite() directly.
34929 2009-11-09  Felix Zielcke  <fzielcke@z-51.de>
34931         * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34933 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
34935         * util/mkisofs/fnmatch.c: Remove.
34936         * util/mkisofs/getopt1.c: Likewise.
34937         * util/mkisofs/getopt.c: Likewise.
34938         * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34939         `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34940         `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34941         `gnulib/getopt1.c' and `gnulib/getopt.c'.
34942         (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34944         * configure.ac: Detect `mingw32msvc' host_os.
34945         Check for lstat(), getuid() and getgid().
34947         * util/mkisofs/joliet.c: Include `<stdint.h>'.  Replace all
34948         instances of `u_char' with `uint8_t'.
34950         * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34951         [!HAVE_GETUID] (getuid): New function (stub).
34952         [!HAVE_GETGID] (getgid): Likewise.
34953         [!HAVE_LSTAT] (lstat): Likewise.
34954         [!S_IROTH] (S_IROTH): New macro (dummy).
34955         [!S_IRGRP] (S_IRGRP): Likewise.
34957 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
34959         * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34960         conditional expression).
34962 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
34964         Import from Gnulib.
34966         * gnulib/fnmatch.c: New file.
34967         * gnulib/fnmatch.h: Likewise.
34968         * gnulib/fnmatch_loop.c: Likewise.
34969         * gnulib/getopt.c: Likewise.
34970         * gnulib/getopt.h: Likewise.
34971         * gnulib/getopt1.c: Likewise.
34972         * gnulib/getopt_int.h: Likewise.
34973         * gnulib/gettext.h: Likewise.
34975 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
34977         * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34978         * normal/handler.c (read_handler_list): Likewise.
34980 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
34982         Misc cleanup.
34984         * kern/command.c (grub_register_command_prio): Use
34985         grub_zalloc() instead of explicitly zeroing data.
34986         * kern/list.c: Include `<grub/mm.h>'.
34987         (grub_named_list_find): Replace `0' with `NULL'.
34988         * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34989         (fs_module_list): Change type to `grub_named_list_t'.  Update all
34990         users.
34991         * normal/dyncmd.c (read_command_list): Add space between function
34992         call and parenthesis.
34993         * normal/handler.c (read_handler_list): Likewise.
34995 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
34997         * normal/auth.c (punishment_delay): Moved from here ...
34998         (grub_auth_strcmp): ... to here (inside function).
35000 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
35002         * include/grub/list.h (struct grub_named_list): Remove `const'
35003         qualifier from `name'.
35004         (struct grub_prio_list): Likewise.
35006 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
35008         * normal/auth.c: Include `<grub/time.h>'.
35009         (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
35011 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
35013         * normal/auth.c (punishment_delay): New variable.
35014         (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
35015         (grub_auth_check_authentication): Punish failed login attempts with
35016         an incremental (2^N) delay.
35018 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
35020         * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
35021         path with $(srcdir).
35023 2009-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
35025         * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
35027 2009-11-09  Robert Millan  <rmh.grub@aybabtu.com>
35029         * util/i386/coreboot/grub-mkrescue.in: New file.
35030         * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
35031         variables.
35033         * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
35034         (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
35035         * configure.ac: Add header and function checks to satisfy grub-mkisofs
35036         requirements.
35037         * util/mkisofs/defaults.h: New file.
35038         * util/mkisofs/eltorito.c: Likewise.
35039         * util/mkisofs/exclude.h: Likewise.
35040         * util/mkisofs/fnmatch.c: Likewise.
35041         * util/mkisofs/getopt.c: Likewise.
35042         * util/mkisofs/getopt1.c: Likewise.
35043         * util/mkisofs/hash.c: Likewise.
35044         * util/mkisofs/include/fctldefs.h: Likewise.
35045         * util/mkisofs/include/mconfig.h: Likewise.
35046         * util/mkisofs/include/prototyp.h: Likewise.
35047         * util/mkisofs/include/statdefs.h: Likewise.
35048         * util/mkisofs/iso9660.h: Likewise.
35049         * util/mkisofs/joliet.c: Likewise.
35050         * util/mkisofs/match.c: Likewise.
35051         * util/mkisofs/match.h: Likewise.
35052         * util/mkisofs/mkisofs.c: Likewise.
35053         * util/mkisofs/mkisofs.h: Likewise.
35054         * util/mkisofs/multi.c: Likewise.
35055         * util/mkisofs/name.c: Likewise.
35056         * util/mkisofs/rock.c: Likewise.
35057         * util/mkisofs/tree.c: Likewise.
35058         * util/mkisofs/write.c: Likewise.
35060 2009-11-09  Vladimir Serbinenko  <phcoder@gmail.com>
35062         * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
35063         being insecure.
35065 2009-11-08  Robert Millan  <rmh.grub@aybabtu.com>
35067         * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
35068         `grub-mkimage' (and use $0 when possible).
35070 2009-11-08  Robert Millan  <rmh.grub@aybabtu.com>
35072         * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
35073         error message for excessively large memory map.
35075 2009-11-08  Robert Millan  <rmh.grub@aybabtu.com>
35077         * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
35078         executable bit.
35080 2009-11-08  Robert Millan  <rmh.grub@aybabtu.com>
35082         * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
35083         message for coreboot users.
35085 2009-11-07  Robert Millan  <rmh.grub@aybabtu.com>
35087         Fix build with GNU gold.
35089         * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
35090         (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
35091         (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
35092         link addresses.
35093         * aclocal.m4: Likewise.
35095 2009-11-04  Felix Zielcke  <fzielcke@z-51.de>
35097         * configure.ac (AC_PREREQ): Bump to 2.59d.
35098         * INSTALL: Make it more clear when Autoconf and Ruby are
35099         needed and when to run `./autogen.sh'.
35101 2009-11-03  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35103         * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35104         OSes.
35106 2009-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35108         * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35110 2009-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35112         * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35113         giving it to GNU Mach.
35115 2009-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35117         * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35118         GNU partition number to get internal GRUB partition number.
35120 2009-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35122         * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35123         ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35125 2009-11-01  Robert Millan  <rmh.grub@aybabtu.com>
35127         Based on patch from BVK Chaitanya  <bvk.groups@gmail.com>
35128         * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35129         case.
35131 2009-11-01  Felix Zielcke  <fzielcke@z-51.de>
35133         * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35135 2009-10-30  Robert Millan  <rmh.grub@aybabtu.com>
35137         Fix build problem.
35139         * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35140         `-isystem=$(srcdir)/include'.
35142 2009-10-30  Robert Millan  <rmh.grub@aybabtu.com>
35144         * util/i386/pc/grub-install.in: Remove hint that device.map should be
35145         checked (grub-install doesn't currently rely on it).
35147 2009-10-29  Robert Millan  <rmh.grub@aybabtu.com>
35149         Revert SVN r2660.
35151         * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35152         * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35153         * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35154         * conf/i386-ieee1275.rmk: Likewise.
35155         * conf/i386-pc.rmk: Likewise.
35156         * conf/powerpc-ieee1275.rmk: Likewise.
35157         * conf/sparc64-ieee1275.rmk: Likewise.
35158         * conf/x86_64-efi.rmk: Likewise.
35160 2009-10-28  Robert Millan  <rmh.grub@aybabtu.com>
35162         * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35164 2009-10-28  Robert Millan  <rmh.grub@aybabtu.com>
35166         * include/grub/misc.h: Stop checking for APPLE_CC.
35168 2009-10-28  Robert Millan  <rmh.grub@aybabtu.com>
35170         * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35171         doesn't cause an infinite call loop.
35173 2009-10-28  Felix Zielcke  <fzielcke@z-51.de>
35175         * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35176         strings.
35178 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35180         * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35181         variable.
35182         * Makefile.in: Likewise.
35184 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35186         * gendistlist.sh: Simplify .svn check.  Skip .bzr as well.
35188 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35190         * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35192 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35194         * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35196 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35198         * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35199         from here ...
35200         * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35202 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35204         * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35205         in $(MAKEINFO) invocation.  This makes it clear in output that
35206         errors are being ignored.
35208 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35210         * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35211         from here ...
35212         * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35213         * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35214         * conf/i386-ieee1275.rmk: Likewise.
35215         * conf/i386-pc.rmk: Likewise.
35216         * conf/powerpc-ieee1275.rmk: Likewise.
35217         * conf/sparc64-ieee1275.rmk: Likewise.
35218         * conf/x86_64-efi.rmk: Likewise.
35220 2009-10-26  Colin Watson  <cjwatson@ubuntu.com>
35222         * util/grub-editenv.c (main): If only a command is given, use
35223         DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35224         (usage): FILENAME is now optional and has a default.
35226 2009-10-26  Colin Watson  <cjwatson@ubuntu.com>
35228         Improve grub-mkconfig performance when there are several menu
35229         entries on a single filesystem.
35231         * util/grub.d/10_linux.in (linux_entry): Cache the output of
35232         prepare_grub_to_access_device.
35233         * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35234         * util/grub.d/30_os-prober.in: Likewise.
35236 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35238         * util/grub.d/10_freebsd.in: Remove.
35239         * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35240         * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35242 2009-10-26  Robert Millan  <rmh.grub@aybabtu.com>
35244         * docs/grub.cfg: Fix example usage of *BSD loaders.
35246 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35248         * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35249         grub_util_error() call.
35251 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35253         * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35254         `reserved_first_sector' member.
35255         * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35256         `reserved_first_sector' to 1.
35257         * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35258         * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35259         * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35260         * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35261         filesystems which begin at first sector.
35262         (options): New option --skip-fs-probe.
35263         (main): Handle --skip-fs-probe and pass it to setup().
35265 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35267         * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35268         (memset): Fix function prototype.
35270 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35271 2009-10-25  Vasily Averin  <vvs@parallels.com>
35273         * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35274         `dirent.direntlen == 0'.
35276 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35278         * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35279         `cpio'.
35280         [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35282 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35284         * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35285         `__trampoline_setup' and `__ucmpdi2'.
35286         * include/grub/powerpc/libgcc.h: Only export symbols for functions
35287         that libgcc provides.
35289 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35291         * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35292         * include/grub/sparc64/libgcc.h (memset): Likewise.
35293         * include/grub/misc.h (memset, memcmp): New function prototypes.
35295 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35297         * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35298         `cpio'.
35299         [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35301 2009-10-25  Robert Millan  <rmh.grub@aybabtu.com>
35303         Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35304         * docs/grub.cfg: Compensate for recent change in multiboot
35305         loader (since 2009-08-14 it won't pass filename to payload).
35306         * util/grub.d/10_hurd.in: Likewise.
35308 2009-10-21  Felix Zielcke  <fzielcke@z-51.de>
35310         * config.guess: Update to latest version from config git
35311         repository.
35312         * config.sub: Likewise.
35314 2009-10-20  Robert Millan  <rmh.grub@aybabtu.com>
35316         Fix build on sparc64.
35318         * configure.ac: Perform checks for libgcc symbols before
35319         adding `-nostdlib' to LDFLAGS.
35321 2009-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
35323         Let user specify OpenBSD root device.
35325         * loader/i386/bsd.c (openbsd_root): New variable.
35326         (openbsd_opts): New option 'root'.
35327         (OPENBSD_ROOT_ARG): New macro.
35328         (grub_openbsd_boot): Use 'openbsd_root'.
35329         (grub_cmd_openbsd): Fill 'openbsd_root'.
35331 2009-10-16  Robert Millan  <rmh.grub@aybabtu.com>
35333         * NEWS: Misc adjustments.
35335 2009-10-16  Vladimir Serbinenko  <phcoder@gmail.com>
35337         * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35339 2009-10-16  Robert Millan  <rmh.grub@aybabtu.com>
35341         * configure.ac: Bump version to 1.97.
35343 2009-10-16  Colin Watson  <cjwatson@ubuntu.com>
35345         * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35346         -mno-3dnow on x86 architectures.  Some toolchains enable these
35347         features by default, but they rely on registers that aren't enabled
35348         in GRUB.  Thanks to Vladimir Serbinenko for the suggestion.
35350 2009-10-15  Robert Millan  <rmh.grub@aybabtu.com>
35352         Make entry text a bit more readable.
35354         * util/grub.d/10_linux.in: Add `with' before `Linux'.
35356 2009-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
35358         * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35360 2009-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
35362         * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35363         operations.
35365 2009-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
35367         * configure.ac: Add missing dollar.
35369 2009-10-15  Vladimir Serbinenko  <phcoder@gmail.com>
35371         Revert 2009-06-10  Pavel Roskin  <proski@gnu.org>
35373         * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35374         * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35375         exports.
35376         * include/grub/sparc64/libgcc.h: Likewise.  Use
35377         preprocessor conditionals.
35379 2009-10-14  Robert Millan  <rmh.grub@aybabtu.com>
35381         * conf/common.rmk (grub-dumpbios): Remove rule.
35382         (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35383         * util/grub-dumpbios.in: Remove file.
35385 2009-10-14  Robert Millan  <rmh.grub@aybabtu.com>
35387         Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35388         the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35390         * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35391         from "kFreeBSD" namespace (rather than "FreeBSD").  Update all
35392         users.
35394         (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35395         "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35396         to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35397         and "freebsd_module_elf" to "kfreebsd_module_elf".  Update all
35398         users.
35400 2009-10-12  Robert Millan  <rmh.grub@aybabtu.com>
35402         * term/tparm.c: Switch to GPLv3.
35404 2009-10-09  Robert Millan  <rmh.grub@aybabtu.com>
35406         * include/grub/i386/cpuid.h: Add header protection.
35408 2009-10-09  Robert Millan  <rmh.grub@aybabtu.com>
35410         Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35412         * include/grub/i386/cpuid.h: New file.
35413         * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35414         (has_longmode): Rename to ...
35415         (grub_cpuid_has_longmode): ... this.  Update all users.  Remove
35416         `static' attribute.
35417         * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35418         (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35419         on a CPU that doesn't implement AMD64 instruction set.
35421 2009-10-06  Colin Watson  <cjwatson@ubuntu.com>
35423         * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35424         that version.texi is rebuilt on version number changes.
35426 2009-10-06  Colin Watson  <cjwatson@ubuntu.com>
35428         * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35429         Fixes bug #27602.
35431 2009-10-06  Colin Watson  <cjwatson@ubuntu.com>
35433         * util/i386/pc/grub-install.in: Source
35434         ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35435         that the --grub-probe option will work.
35436         * util/sparc64/ieee1275/grub-install.in: Likewise.
35438 2009-10-05  Robert Millan  <rmh.grub@aybabtu.com>
35440         * configure.ac: Bump version to 1.97~beta4.
35442 2009-10-03  Robert Millan  <rmh.grub@aybabtu.com>
35444         Resync grub-mkdevicemap in x86_64-efi.
35446         * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35447         (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35448         `util/devicemap.c'.
35450 2009-10-01  Colin Watson  <cjwatson@ubuntu.com>
35452         * util/grub-editenv.c (create_envblk_file): Write new block with a
35453         .new suffix and then rename it into place, to ensure atomic
35454         creation.
35456 2009-09-28  Robert Millan  <rmh.grub@aybabtu.com>
35458         Do not automatically install headers.
35460         * Makefile.in (include_DATA): Remove.  Update all users.
35462 2009-09-26  Robert Millan  <rmh.grub@aybabtu.com>
35464         * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35465         (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35467         * util/osdetect.lua: Remove.
35468         * script/lua/lauxlib.c: Likewise.
35469         * script/lua/ldebug.c: Likewise.
35470         * script/lua/grub_main.c: Likewise.
35471         * script/lua/lauxlib.h: Likewise.
35472         * script/lua/ldebug.h: Likewise.
35473         * script/lua/ltablib.c: Likewise.
35474         * script/lua/liolib.c: Likewise.
35475         * script/lua/lstrlib.c: Likewise.
35476         * script/lua/lualib.h: Likewise.
35477         * script/lua/ldo.c: Likewise.
35478         * script/lua/ldump.c: Likewise.
35479         * script/lua/ldo.h: Likewise.
35480         * script/lua/loslib.c: Likewise.
35481         * script/lua/lundump.c: Likewise.
35482         * script/lua/grub_lib.c: Likewise.
35483         * script/lua/ldblib.c: Likewise.
35484         * script/lua/lundump.h: Likewise.
35485         * script/lua/lmem.c: Likewise.
35486         * script/lua/grub_lib.h: Likewise.
35487         * script/lua/lmathlib.c: Likewise.
35488         * script/lua/lstate.c: Likewise.
35489         * script/lua/ltm.c: Likewise.
35490         * script/lua/lvm.c: Likewise.
35491         * script/lua/lmem.h: Likewise.
35492         * script/lua/lstate.h: Likewise.
35493         * script/lua/ltm.h: Likewise.
35494         * script/lua/ltable.c: Likewise.
35495         * script/lua/lvm.h: Likewise.
35496         * script/lua/llex.c: Likewise.
35497         * script/lua/lgc.c: Likewise.
35498         * script/lua/grub_lua.h: Likewise.
35499         * script/lua/loadlib.c: Likewise.
35500         * script/lua/lfunc.c: Likewise.
35501         * script/lua/lopcodes.c: Likewise.
35502         * script/lua/lparser.c: Likewise.
35503         * script/lua/ltable.h: Likewise.
35504         * script/lua/llex.h: Likewise.
35505         * script/lua/lgc.h: Likewise.
35506         * script/lua/lfunc.h: Likewise.
35507         * script/lua/lbaselib.c: Likewise.
35508         * script/lua/lopcodes.h: Likewise.
35509         * script/lua/lparser.h: Likewise.
35510         * script/lua/lzio.c: Likewise.
35511         * script/lua/linit.c: Likewise.
35512         * script/lua/lobject.c: Likewise.
35513         * script/lua/llimits.h: Likewise.
35514         * script/lua/lstring.c: Likewise.
35515         * script/lua/lzio.h: Likewise.
35516         * script/lua/lapi.c: Likewise.
35517         * script/lua/lcode.c: Likewise.
35518         * script/lua/lua.h: Likewise.
35519         * script/lua/lobject.h: Likewise.
35520         * script/lua/lstring.h: Likewise.
35521         * script/lua/lapi.h: Likewise.
35522         * script/lua/lcode.h: Likewise.
35523         * script/lua/luaconf.h: Likewise.
35525 2009-09-26  Colin Watson  <cjwatson@ubuntu.com>
35527         * docs/grub.texi (Command-line and menu entry commands): Document
35528         date and echo commands.
35530 2009-09-24  Pavel Roskin  <proski@gnu.org>
35532         * include/grub/kernel.h (struct grub_module_header): Remove
35533         `grub_module_header_types'.  Make `type' unsigned.  Make `size'
35534         32-bit on all platforms.
35535         * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35536         8-bit field.  Use grub_host_to_target32() for `size'.
35537         * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35538         * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35539         * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35541 2009-09-24  Robert Millan  <rmh.grub@aybabtu.com>
35543         Fix "lost keypress" bug in at_keyboard.
35545         * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35546         Checks for readyness of input buffer (without flushing it).
35547         (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35548         than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35550 2009-09-24  Robert Millan  <rmh.grub@aybabtu.com>
35552         * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35553         size check within GRUB_MACHINE_PCBIOS section.
35555 2009-09-24  Robert Millan  <rmh.grub@aybabtu.com>
35557         * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35558         return value.
35559         * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35560         KEYBOARD_ISREADY check.
35561         (grub_at_keyboard_checkkey): Rename to ...
35562         (grub_at_keyboard_getkey_noblock): ... this.  Update all users.
35563         Remove gratuitous cast.
35565 2009-09-23  Colin Watson  <cjwatson@ubuntu.com>
35567         * configure.ac: Call AC_PROG_MKDIR_P.
35568         * Makefile.in (docs/stamp-vti): Create docs directory.  Create
35569         version.texi in $(builddir) rather than $(srcdir).
35570         (docs/grub.info): Create docs directory.  Prepend $(builddir)/docs
35571         to makeinfo's @include search path.
35573 2009-09-23  Felix Zielcke  <fzielcke@z-51.de>
35575         * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35577 2009-09-23  Felix Zielcke  <fzielcke@z-51.de>
35579         * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35580         for `*.dpkg-new'.
35582 2009-09-21  Colin Watson  <cjwatson@ubuntu.com>
35584         Build info documentation.  Some code borrowed from Automake.
35586         * configure.ac: Check for makeinfo.
35587         * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35588         (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35589         docs/version.texi.
35590         (MOSTLYCLEANFILES): Add vti.tmp.
35591         (docs/version.texi, docs/stamp-vti): Update automatically.
35592         (docs/grub.info): Build info documentation.  Use --force and ignore
35593         errors for now.
35594         (all-local): Add $(INFOS).
35595         (install-local): Install info files.
35596         (uninstall): Uninstall info files.
35597         * docs/version.texi: Remove from revision control.  This file is
35598         automatically generated on build now.
35599         * gendistlist.sh: Add `*.info'.
35601 2009-09-21  Felix Zielcke  <fzielcke@z-51.de>
35603         * kern/term.c: Fix indentation.
35605 2009-09-21  Felix Zielcke  <fzielcke@z-51.de>
35607         * util/hostdisk.c: Fix a comment.
35609 2009-09-20  Robert Millan  <rmh.grub@aybabtu.com>
35611         Fix regression introduced in r2539.
35613         * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35614         to 0xA1.
35616 2009-09-19  Colin Watson  <cjwatson@ubuntu.com>
35618         * util/grub.d/30_os-prober.in: Don't throw away stderr from
35619         os-prober. Under normal operation, it does not print anything to
35620         stderr; if it does, we need to debug it, and throwing away stderr
35621         makes that excessively difficult.
35623 2009-09-16  Vladimir Serbinenko  <phcoder@gmail.com>
35625         * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35627 2009-09-16  Robert Millan  <rmh.grub@aybabtu.com>
35629         * aclocal.m4 (AC_LANG_PROGRAM): New macro.  Overrides stock
35630         AC_LANG_PROGRAM from autoconf.
35631         (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35632         prototypes (fixes warning).
35634         * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35635         `--disable-werror' was used.
35637 2009-09-16  Robert Millan  <rmh.grub@aybabtu.com>
35639         * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35640         uninitialized `lastaddr'.
35642 2009-09-15  Vladimir Serbinenko  <phcoder@gmail.com>
35644         * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35646 2009-09-14  Colin Watson  <cjwatson@ubuntu.com>
35648         * commands/test.c (get_fileinfo): Return immediately if
35649         grub_fs_probe fails.
35651 2009-09-14  José Martínez  <xosemp@gmail.com>
35653         * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35655 2009-09-14  Colin Watson  <cjwatson@ubuntu.com>
35657         * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35658         output.
35660 2009-09-13  Robert Millan  <rmh.grub@aybabtu.com>
35662         * configure.ac: Remove --enable-grub-pe2elf.  Only build
35663         grub-pe2elf when needed by the build system itself.
35664         * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35666 2009-09-12  Robert Millan  <rmh.grub@aybabtu.com>
35668         * configure.ac: Bump version to 1.97~beta3.
35669         * docs/version.texi: Likewise.
35671 2009-09-12  Robert Millan  <rmh.grub@aybabtu.com>
35673         * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35674         mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35675         from here ...
35676         * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35677         (grub_linux_setup_video): ... to here (with some adjustments).
35679 2009-09-12  Robert Millan  <rmh.grub@aybabtu.com>
35681         Fix memory corruption issue (spotted by Colin Watson).
35683         * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35684         causing returned size to be stored in an incorrect memory location.
35685         Fix use of uninitialized value when storing the returned size.
35687 2009-09-12  Yves Blusseau  <blusseau@zetam.org>
35689         Change clean rules to properly remove files
35691         * genmk.rb: add new clean rules
35692         * Makefile.in (clean): add the new targets
35693         (mostlyclean): likewise
35695 2009-09-11  Colin Watson  <cjwatson@ubuntu.com>
35697         * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35698         to grub_uint64_t.
35699         * fs/ntfs.c (init_file): Understand 64-bit sizes for
35700         non-resident files.
35702 2009-09-11  Colin Watson  <cjwatson@ubuntu.com>
35704         * configure.ac: Don't look for help2man when cross-compiling.  Fixes
35705         part of bug #27349.
35707 2009-09-10  Felix Zielcke  <fzielcke@z-51.de>
35709         * util/grub-mkconfig.in: Make the created config mode 400 and
35710         print a warning if it fails.
35712 2009-09-10  Robert Millan  <rmh.grub@aybabtu.com>
35714         * util/grub.d/40_custom.in: Ask user to type custom entries below
35715         comment, rather than below 'exec tail' line.
35717 2009-09-10  Colin Watson  <cjwatson@ubuntu.com>
35719         * util/grub.d/40_custom.in: Make sure that the explanatory text is
35720         visible in grub.cfg.
35722 2009-09-10  Colin Watson  <cjwatson@ubuntu.com>
35724         * util/grub.d/40_custom.in: Make it a little clearer how to use this
35725         file.
35727 2009-09-10  Felix Zielcke  <fzielcke@z-51.de>
35729         * docs/grub.cfg: Add an example menu entry for memtest86+.
35731 2009-09-09  Felix Zielcke  <fzielcke@z-51.de>
35733         * config.guess: Update to latest version from config git.
35734         * config.sub: Likewise.
35736 2009-09-08  Colin Watson  <cjwatson@ubuntu.com>
35738         * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35739         unknown-command case.  Fixes bug #27320.
35741 2009-09-08  Felix Zielcke  <fzielcke@z-51.de>
35743         * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35744         `help' if the command exists.
35746 2009-09-06  Robert Millan  <rmh.grub@aybabtu.com>
35748         * INSTALL: Require GCC 4.1.3 or later.
35750 2009-09-06  Yves Blusseau  <blusseau@zetam.org>
35752         * Makefile.in (RMKFILES): add i386-qemu.rmk
35753         (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35754         $(srcdir)/stamp-h.in
35756 2009-09-05  Robert Millan  <rmh.grub@aybabtu.com>
35758         * util/grub-probe.c (probe): Comment out buggy codepath, which
35759         was unexpectedly enabled by Colin Watson's 2009-09-02 fix.  This
35760         should be re-enabled after 1.97.
35762 2009-09-05  Felix Zielcke  <fzielcke@z-51.de>
35764         * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35765         find searches for.
35767 2009-09-04  Vladimir Serbinenko  <phcoder@gmail.com>
35769         * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35770         unnecessary calls to grub_error.
35772 2009-09-04  Colin Watson  <cjwatson@ubuntu.com>
35774         * NEWS: Mention `keystatus' and Unicode fonts.
35776 2009-09-04  Robert Millan  <rmh.grub@aybabtu.com>
35778         * configure.ac: Bump version to 1.97~beta2.
35779         * docs/version.texi: Likewise.
35781 2009-09-03  Colin Watson  <cjwatson@ubuntu.com>
35783         * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35784         containing unwind information in some cases where it previously did
35785         not. Use -fno-dwarf2-cfi-asm if available to restore the old
35786         behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35787         discussion.
35789 2009-09-02  Yves BLUSSEAU  <blusseau@zetam.org>
35791         Embedding loadenv module into grub-emu
35793         * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35794         commands/loadenv.c
35795         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35796         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35797         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35798         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35799         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35800         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35802 2009-09-03  Magnus Granberg  <zorry@ume.nu>
35804         * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35805         include -fPIE in the default specs.
35806         * configure.ac: Check if pie_possible is yes and add -fno-PIE
35807         to TARGET_CFLAGS.
35809 2009-09-03  Felix Zielcke  <fzielcke@z-51.de>
35811         * INSTALL: Note that GNU Bison 2.3 or later is required.
35813 2009-09-03  Colin Watson  <cjwatson@ubuntu.com>
35815         * kern/i386/pc/startup.S: Fix typo.
35817 2009-09-02  Vladimir Serbinenko  <phcoder@gmail.com>
35819         * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35820         according to GCS.
35822 2009-09-02  Colin Watson  <cjwatson@ubuntu.com>
35824         * docs/grub.texi (Naming convention): Describe one-based partition
35825         numbering.
35826         (Device syntax): Likewise.
35827         (File name syntax): Likewise.
35828         (Block list syntax): Likewise.
35829         (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35830         menu.lst.
35831         (File name syntax): Likewise.
35832         (Command-line and menu entry commands): Document acpi, blocklist,
35833         crc, export, insmod, keystatus, ls, set, and unset commands.
35835 2009-09-02  Colin Watson  <cjwatson@ubuntu.com>
35837         * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35838         to avoid implying that only one of --shift, --ctrl, or --alt may be
35839         used.
35841 2009-09-02  Colin Watson  <cjwatson@ubuntu.com>
35843         * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35844         rather than comparing against S_IFREG, which will almost never work.
35846 2009-09-01  Vladimir Serbinenko  <phcoder@gmail.com>
35848         * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35849         (write_blocklists): Likewise.
35851 2009-09-01  Colin Watson  <cjwatson@ubuntu.com>
35853         * script/lua/grub_lua.h (fputs): Supply a format string as the first
35854         argument to grub_printf.
35856 2009-09-01  Felix Zielcke  <fzielcke@z-51.de>
35858         * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35859          non GNU test.
35861 2009-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
35863         * kern/file.c (grub_file_read): Spelling fix
35865 2009-08-30  Vladimir Serbinenko  <phcoder@gmail.com>
35867         * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35868         loading of headers in some cases.
35870 2009-08-30  Robert Millan  <rmh.grub@aybabtu.com>
35872         * configure.ac: Bump version to 1.97~beta1.
35873         * docs/version.texi: Likewise.
35875 2009-08-29  Vladimir Serbinenko  <phcoder@gmail.com>
35877         * include/grub/i386/xnu.h: Add license header.
35878         include grub/err.h explicitly.
35880 2009-08-29  Robert Millan  <rmh.grub@aybabtu.com>
35882         * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35883         to `ufs' in the vfs.root.mountfrom kernel parameter.
35885 2009-08-29  Robert Millan  <rmh.grub@aybabtu.com>
35887         * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35889         [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35890         value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35892         [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35893         `ARRAY_SIZE' macro.
35895 2009-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
35897         * kern/file.c (grub_file_read): Check offset.
35898         * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35899         * fs/jfs.c (grub_jfs_read_file): Likewise.
35900         * fs/ntfs.c (grub_ntfs_read): Likewise.
35901         * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35902         * fs/minix.c (grub_minix_read_file): Correct offset check.
35903         * fs/ufs.c (grub_ufs_read_file): Likewise.
35905 2009-08-28  Colin Watson  <cjwatson@ubuntu.com>
35907         * term/i386/pc/console.c (bios_data_area): Cast
35908         GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35910 2009-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
35912         1-bit optimised blitters.
35914         * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35915         prototype.
35916         (grub_video_fbblit_replace_24bit_1bit): Likewise.
35917         (grub_video_fbblit_replace_16bit_1bit): Likewise.
35918         (grub_video_fbblit_replace_8bit_1bit): Likewise.
35919         (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35920         (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35921         (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35922         * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35923         function.
35924         (grub_video_fbblit_replace_24bit_1bit): Likewise.
35925         (grub_video_fbblit_replace_16bit_1bit): Likewise.
35926         (grub_video_fbblit_replace_8bit_1bit): Likewise.
35927         (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35928         (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35929         (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35930         * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35931         when possible.
35932         * video/video.c (grub_video_get_blit_format): Return
35933         GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35935 2009-08-28  Colin Watson  <cjwatson@ubuntu.com>
35937         * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35938         the first argument to grub_printf.
35940 2009-08-28  Colin Watson  <cjwatson@ubuntu.com>
35941 2009-08-28  Robert Millan  <rmh.grub@aybabtu.com>
35943         Add `getkeystatus' terminal method.  Add a new `keystatus' command
35944         to query it.
35946         * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35947         GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35948         modifier key bitmasks.
35949         (struct grub_term_input): Add `getkeystatus' member.
35950         (grub_getkeystatus): Add prototype.
35951         * kern/term.c (grub_getkeystatus): New function.
35953         * include/grub/i386/pc/memory.h
35954         (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35955         (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35956         Data Area layout.
35957         * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35958         (grub_console_term_input): Set `getkeystatus' member.
35959         * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35960         constants.
35961         (grub_usb_keyboard_getreport): Likewise.
35962         (grub_usb_keyboard_checkkey): Likewise.
35963         (grub_usb_keyboard_getkeystatus): New function.
35964         (grub_usb_keyboard_term): Set `getkeystatus' member.
35966         * commands/keystatus.c: New file.
35967         * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35968         (keystatus_mod_SOURCES): New variable.
35969         (keystatus_mod_CFLAGS): Likewise.
35970         (keystatus_mod_LDFLAGS): Likewise.
35971         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35972         commands/keystatus.c.
35973         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35974         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35975         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35976         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35977         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35978         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35980 2009-08-28  Vladimir Serbinenko  <phcoder@gmail.com>
35982         Split befs.mod and afs.mod into *_be.mod and *.mod
35984         * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35985         (grub_fstest_SOURCES): Likewise.
35986         (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35987         (afs_be_mod_SOURCES): New variable.
35988         (afs_be_mod_CFLAGS): Likewise.
35989         (afs_be_mod_LDFLAGS): Likewise.
35990         (befs_be_mod_SOURCES): Likewise.
35991         (befs_be_mod_CFLAGS): Likewise.
35992         (befs_be_mod_LDFLAGS): Likewise.
35993         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35994         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35995         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35996         * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35997         (grub_emu_SOURCES): Likewise.
35998         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35999         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36000         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36001         * fs/afs_be.c: New file.
36002         * fs/befs_be.c: New file.
36003         * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
36004         (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
36005         (U16): Replaced with ...
36006         (grub_afs_to_cpu16): ...this. All users updated.
36007         (U32): Replaced with ...
36008         (grub_afs_to_cpu32): ...this. All users updated.
36009         (U64): Replaced with ...
36010         (grub_afs_to_cpu64): ...this. All users updated.
36011         (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
36012         (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
36013         (grub_afs_validate_sblock): Check only one endianness.
36014         (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
36015         (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
36016         (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
36017         (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
36018         (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
36019         (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
36020         (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
36021         (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
36023 2009-08-26  Bean  <bean123ch@gmail.com>
36025         * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
36026         64-bit number.
36027         (GRUB_XFS_FSB_TO_BLOCK): Likewise.
36028         (grub_xfs_inode_block): Change return type to grub_uint64_t.
36029         (grub_xfs_read_inode): Change type of block to grub_uint64_t.
36031 2009-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
36033         NetBSD memory map support.
36035         * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
36036         (grub_netbsd_btinfo_mmap_header): New structure.
36037         (grub_netbsd_btinfo_mmap_entry): Likewise.
36038         * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
36040 2009-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
36042         Enable bsd.mod on coreboot.
36044         * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
36045         (bsd_mod_SOURCES): New variable.
36046         (bsd_mod_CFLAGS): Likewise.
36047         (bsd_mod_LDFLAGS): Likewise.
36048         (bsd_mod_ASFLAGS): Likewise.
36049         * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
36050         (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
36052 2009-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
36054         Cleanup NetBSD root support.
36056         * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
36057         grub_bsd_get_device.
36058         Fix typo.
36060 2009-08-25  Felix Zielcke  <fzielcke@z-51.de>
36062         * util/grub.d/00_header.in: Move check for the video backend of
36063         gfxterm from here ...
36064         * util/grub-mkconfig.in: ... to here.  Enable gfxterm if there's
36065         a suitable video backend.
36067 2009-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
36069         Fix breakage in grub-setup.
36071         * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
36072         "msdos_partition_map".
36074 2009-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
36076         Fix breakage in normal/auth.c.
36078         * normal/auth.c (grub_iswordseparator): New function.
36080 2009-08-25  Vladimir Serbinenko  <phcoder@gmail.com>
36082         Authentication support.
36084         * commands/password.c: New file.
36085         * conf/common.rmk (pkglib_MODULES): Add password.mod.
36086         (password_mod_SOURCES): New variable.
36087         (password_mod_CFLAGS): Likewise.
36088         (password_mod_LDFLAGS): Likewise.
36089         (normal_mod_SOURCES): Add normal/auth.c.
36090         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
36091         normal/auth.c.
36092         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36093         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36094         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36095         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36096         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36097         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36098         * include/grub/auth.h: New file.
36099         * include/grub/err.h (grub_err_t): New enum value
36100         GRUB_ERR_ACCESS_DENIED.
36101         * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36102         'users'.
36103         * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36104         * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36105         users updated.
36106         * normal/auth.c: New file.
36107         * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36108         (grub_cmdline_run): Don't allow to go to command line without
36109         authentication.
36110         * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36111         * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36112         menuentry without superuser rights.
36113         * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36114         user isn't a superuser.
36116 2009-08-24  Vladimir Serbinenko  <phcoder@gmail.com>
36118         Save space by inlining misc.c functions.
36120         * kern/misc.c (grub_iswordseparator): Made static.
36121         * kern/misc.c (grub_strcat): Moved from here ...
36122         * include/grub/misc.h (grub_strcat): ... here. Inlined.
36123         * kern/misc.c (grub_strncat): Moved from here ...
36124         * include/grub/misc.h (grub_strncat): ... here. Inlined.
36125         * kern/misc.c (grub_strcasecmp): Moved from here ...
36126         * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36127         * kern/misc.c (grub_strncasecmp): Moved from here ...
36128         * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36129         * kern/misc.c (grub_isalpha): Moved from here ...
36130         * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36131         * kern/misc.c (grub_isdigit): Moved from here ...
36132         * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36133         * kern/misc.c (grub_isgraph): Moved from here ...
36134         * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36135         * kern/misc.c (grub_tolower): Moved from here ...
36136         * include/grub/misc.h (grub_tolower): ... here. Inlined.
36138 2009-08-24  Vladimir Serbinenko  <phcoder@gmail.com>
36140         * script/sh/function.c (grub_script_function_find): Cut error message
36141         not to flood terminal.
36142         * script/sh/lexer.c (grub_script_yylex): Remove command line length
36143         limit.
36144         * script/sh/script.c (grub_script_arg_add): Duplicate string.
36146 2009-08-24  Colin Watson  <cjwatson@ubuntu.com>
36148         * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36149         `report' grub_uint8_t *.
36150         (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36151         Use a 50-millisecond timeout rather than just repeating
36152         grub_usb_keyboard_getreport 50 times.
36153         (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36155 2009-08-24  Vladimir Serbinenko  <phcoder@gmail.com>
36157         Rename *_partition_map to part_*
36159         * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36160         * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36161         * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36162         * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36163         All users updated.
36164         * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36165         All users updated.
36166         * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36167         * util/grub-probe.c (probe_partmap): Don't transform partition name
36168         to get module name.
36170 2009-08-24  Vladimir Serbinenko  <phcoder@gmail.com>
36172         Fix OpenBSD and NetBSD support.
36174         * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36175         memory address conflict.
36176         (OPENBSD_MMAP_ACPI): New definition.
36177         (OPENBSD_MMAP_NVS): Likewise.
36178         * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36179         and OPENBSD_MMAP_NVS.
36180         Add memory map terminator
36181         Explicit cast when calling grub_unix_real_boot.
36182         (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36184 2009-08-24  Vladimir Serbinenko  <phcoder@gmail.com>
36186         Let user specify NetBSD root device.
36188         * loader/i386/bsd.c (netbsd_root): New variable.
36189         (netbsd_opts): New option 'root'.
36190         (NETBSD_ROOT_ARG): New macro.
36191         (grub_netbsd_boot): Use 'netbsd_root'.
36192         (grub_bsd_unload): Free 'netbsd_root'.
36193         (grub_cmd_netbsd): Fill 'netbsd_root'.
36195 2009-08-24  Vladimir Serbinenko  <phcoder@gmail.com>
36197         Support for 64-bit NetBSD.
36199         * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36200         point when booting non-FreeBSD.
36202 2009-08-24  Vladimir Serbinenko  <phcoder@gmail.com>
36204         Support --no-smp and --no-acpi for NetBSD.
36206         * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36207         (NETBSD_AB_NOACPI): Likewise.
36208         * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36209         (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36211 2009-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
36213         * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36214         errors.
36215         (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36216         errors. Call grub_error when needed.
36218 2009-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
36220         * commands/search.c (search_fs): Try searching without autoload first.
36221         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36222         filesystem module explicitly for faster booting.
36224 2009-08-23  Colin Watson  <cjwatson@ubuntu.com>
36226         * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36228 2009-08-23  Colin Watson  <cjwatson@ubuntu.com>
36230         * util/grub.d/30_os-prober.in: Disable os-prober if
36231         `GRUB_DISABLE_OS_PROBER' was set to true.
36233 2009-08-23  Robert Millan  <rmh.grub@aybabtu.com>
36235         * partmap/pc.c: Rename to ...
36236         * partmap/msdos.c: ... this.  Update all users.
36237         (grub_pc_partition_map): Rename to ...
36238         (grub_msdos_partition_map): ... this.  Update all users.
36240         * parttool/pcpart.c: Rename to ...
36241         * parttool/msdospart.c: ... this.  Update all users.
36243         * include/grub/pc_partition.h: Rename to ...
36244         * include/grub/msdos_partition.h: ... this.  Update all users.
36245         (grub_pc_partition_bsd_entry): Rename to ...
36246         (grub_msdos_partition_bsd_entry): ... this.  Update all users.
36247         (grub_pc_partition_disk_label): Rename to ...
36248         (grub_msdos_partition_disk_label): ... this.  Update all users.
36249         (grub_pc_partition_entry): Rename to ...
36250         (grub_msdos_partition_entry): ... this.  Update all users.
36251         (grub_pc_partition_mbr): Rename to ...
36252         (grub_msdos_partition_mbr): ... this.  Update all users.
36253         (grub_pc_partition): Rename to ...
36254         (grub_msdos_partition): ... this.  Update all users.
36255         (grub_pc_partition_is_empty): Rename to ...
36256         (grub_msdos_partition_is_empty): ... this.  Update all users.
36257         (grub_pc_partition_is_extended): Rename to ...
36258         (grub_msdos_partition_is_extended): ... this.  Update all users.
36259         (grub_pc_partition_is_bsd): Rename to ...
36260         (grub_msdos_partition_is_bsd): ... this.  Update all users.
36262         * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36263         (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36264         (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36265         (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36266         (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36267         (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36268         (gpt_mod_LDFLAGS): Rename to ...
36269         (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36270         (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36271         (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36272         (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36273         (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36274         (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36275         (part_gpt_mod_LDFLAGS): ... this.
36276         (pkglib_MODULES): Prefix partition modules with `part_'.  Rename
36277         `pcpart.mod' to `msdospart.mod'.
36278         (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36279         to ...
36280         (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36281         (msdospart_mod_LDFLAGS): ... this.
36283 2009-08-23  Vladimir Serbinenko  <phcoder@gmail.com>
36285         * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36286         (openbsd_opts): Likewise.
36287         (netbsd_opts): Likewise.
36288         (freebsd_flags): Added 0 terminator.
36289         (openbsd_flags): Likewise.
36290         (netbsd_flags): Likewise.
36291         (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36292         (grub_cmd_freebsd): Transformed into extended command.
36293         (grub_cmd_openbsd): Likewise.
36294         (grub_cmd_netbsd): Likewise.
36295         (cmd_freebsd): Changed type to grub_extcmd_t.
36296         (cmd_openbsd): Likewise.
36297         (cmd_netbsd): Likewise.
36298         (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36299         grub_cmd_openbsd as extended commands.
36300         (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36301         cmd_netbsd and cmd_openbsd
36303 2009-08-22  Vladimir Serbinenko  <phcoder@gmail.com>
36305         * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36307 2009-08-21  Pavel Roskin  <proski@gnu.org>
36309         * Makefile.in (install-local): When checking if a file is in the
36310         build directory, use "test -e" to detect symlinks.
36312         * Makefile.in (install-local): Remove all files in
36313         $(DESTDIR)$(pkglibdir) before installing new files there.
36315 2009-08-18  Felix Zielcke  <fzielcke@z-51.de>
36317         * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36318         grub-mkelfimage.
36320 2009-08-18  Felix Zielcke  <fzielcke@z-51.de>
36322         * util/grub-mkconfig.in: Don't use gfxterm by default if not
36323         explicitly specified by the user.
36325 2009-08-18  Pavel Roskin  <proski@gnu.org>
36327         * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36328         grub_uint8_t pointer for data.
36329         * include/grub/fbutil.h (struct grub_video_fbblit_info):
36330         Likewise.
36331         * video/fb/fbutil.c: Remove unnecessary casts.
36333 2009-08-17  Michal Suchanek  <hramrach@centrum.cz>
36335         VBE cleanup.
36337         * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36338         (grub_vbe_set_video_mode): Save active mode info
36339         only after setting the mode.
36340         (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36341         second argument.
36343 2009-08-17  Michal Suchanek  <hramrach@centrum.cz>
36345         Rename variables for clarity.
36347         * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36348         (active_vbe_mode_info): ... this. All users updated.
36349         (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36350         All users updated.
36351         (initial_mode): Rename to ...
36352         (initial_vbe_mode): ... this. All users updated.
36353         (mode_in_use): Rename to ..
36354         (vbe_mode_in_use): ... this. All users updated.
36355         (mode_list): Rename to ..
36356         (vbe_mode_list): ... this. All users updated.
36357         (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36358         'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36359         (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36360         'mode_list_size' to 'vbe_mode_list_size'.
36361         (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36362         'best_mode_info' to 'best_vbe_mode_info' and
36363         'best_mode' to 'best_vbe_mode'
36365 2009-08-17  Michal Suchanek  <hramrach@centrum.cz>
36367         Remove duplicate grub_video_fb_get_video_ptr.
36369         * include/grub/fbutil.h (get_data_ptr): Rename to ...
36370         (grub_video_fb_get_video_ptr): ... this.
36371         * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36372         * video/fb/fbutil.c: Add comment about addressing.
36373         (get_data_ptr): Rename to ...
36374         (grub_video_fb_get_video_ptr): ... this. All users updated.
36375         * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36377 2009-08-17  Robert Millan  <rmh.grub@aybabtu.com>
36379         * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36380         grub_dprintf() that was just added.
36382 2009-08-17  Robert Millan  <rmh.grub@aybabtu.com>
36384         * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36385         (DEFAULT_VIDEO_MODE): Remove macros.
36386         (grub_linux_boot): Remove assumption that Linux has FB support,
36387         and use "text" as default video mode.
36389 2009-08-15  Vladimir Serbinenko  <phcoder@gmail.com>
36391         * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36392         grub_dprintf.
36393         * fs/fat.c (grub_fat_read_data): Likewise.
36395 2009-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
36397         * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36398         payload.
36399         (grub_module): Likewise.
36401 2009-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
36403         * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36404         mbi->cmdline but free playground.
36406 2009-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
36408         Handle group offset on UFS1.
36410         * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36411         (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36413 2009-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
36415         Split ufs.mod into ufs1.mod and ufs2.mod.
36417         * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36418         (grub_fstest_SOURCES): Likewise.
36419         (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36420         (ufs_mod_SOURCES): Remove.
36421         (ufs_mod_CFLAGS): Likewise.
36422         (ufs_mod_LDFLAGS): Likewise.
36423         (ufs1_mod_SOURCES): New variable.
36424         (ufs1_mod_CFLAGS): Likewise.
36425         (ufs1_mod_LDFLAGS): Likewise.
36426         (ufs2_mod_SOURCES): New variable.
36427         (ufs2_mod_CFLAGS): Likewise.
36428         (ufs2_mod_LDFLAGS): Likewise.
36429         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36430         * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36431         Likewise.
36432         (grub_emu_SOURCES): Likewise.
36433         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36434         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36435         (grub_setup_SOURCES): Likewise.
36436         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36437         * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36438         (grub_setup_SOURCES): Likewise.
36439         * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36440         Likewise.
36441         * fs/ufs2.c: New file.
36442         * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36444 2009-08-14  Vladimir Serbinenko  <phcoder@gmail.com>
36446         Framebuffer split.
36448         * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36449         subsystem at the end.
36450         * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36451         (video_fb_mod_SOURCES): New variable.
36452         (video_fb_mod_CFLAGS): Likewise.
36453         (video_fb_mod_LDFLAGS): Likewise.
36454         * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36455         video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36456         * video/i386/pc/vbeblit.c: Moved from here ...
36457         * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36458         * video/i386/pc/vbefill.c: Moved from here ...
36459         * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36460         * video/i386/pc/vbeutil.c: Moved from here ...
36461         * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36462         * include/grub/i386/pc/vbeblit.h: Moved from here ...
36463         * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36464         * include/grub/i386/pc/vbefill.h: Moved from here ...
36465         * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36466         * include/grub/i386/pc/vbeutil.h: Moved from here ...
36467         * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36468         * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36469         * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36470         * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36471         (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36472         (grub_video_adapter): Added 'get_info_and_fini'.
36473         (grub_video_get_info_and_fini): New prototype.
36474         (grub_video_set_mode): make modestring const char *.
36475         * loader/i386/linux.c (grub_linux_setup_video): Use
36476         grub_video_get_info_and_fini.
36477         (grub_linux_boot): Move modesetting just before booting.
36478         * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36479         grub_video_get_info_and_fini.
36480         * video/i386/pc/vbe.c: Moved framebuffer part ...
36481         * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36482         * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36483         grub_video_fbstd_colors and grub_video_fb_set_palette.
36484         (grub_video_vbe_init): Clear 'framebuffer' variable and use
36485         grub_video_fb_init.
36486         (grub_video_vbe_fini): Use grub_video_fb_fini.
36487         (grub_video_vbe_setup): Use framebuffer.render_target instead of
36488         render_target and use grub_video_fb_set_active_render_target and
36489         grub_video_fb_set_palette.
36490         (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36491         (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36492         (grub_video_vbe_adapter): Use framebuffer.
36493         * video/video.c (grub_video_get_info_and_fini): New function.
36494         (grub_video_set_mode): Make modestring const char *.
36495         (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36496         values are already initialised.
36498 2009-08-14  Pavel Roskin  <proski@gnu.org>
36500         * boot/i386/pc/cdboot.S: Use LOCAL for local labels.  Eliminate
36501         ABS and APPLE_CC.
36502         * boot/i386/pc/diskboot.S: Likewise.
36503         * boot/i386/pc/lnxboot.S: Likewise.  Hardcode the number of code
36504         sectors allow compilation on MacOSX.
36505         * conf/i386-pc.rmk: Enable unconditional compilation of
36506         lnxboot.img.
36508 2009-08-13  Colin Watson  <cjwatson@ubuntu.com>
36510         * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36511         * util/grub.d/00_header.in: Enter interruptible sleep if
36512         GRUB_HIDDEN_TIMEOUT is set.
36514 2009-08-13  Yves Blusseau  <blusseau@zetam.org>
36516         * include/grub/symbol.h: Add the LOCAL macro.
36517         * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36518         starting with "L_".
36520 2009-08-13  Pavel Roskin  <proski@gnu.org>
36522         * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36523         any modern compilers we support.
36525         * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36526         Use local labels starting with "L_" so that Apple assembler
36527         knows they are local.
36529 2009-08-10  Robert Millan  <rmh.grub@aybabtu.com>
36531         * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36532         (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36533         (bsd_kernel_types): ... this enum.
36535         * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36536         (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36537         kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36539         (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36540         (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36541         (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36542         messages.
36544 2009-08-08  Robert Millan  <rmh.grub@aybabtu.com>
36546         * util/grub-dumpdevtree: Moved from here ...
36547         * util/i386/efi/grub-dumpdevtree: ... to here.
36548         (hexify): New function.  Converts a string to its hex version.
36549         Generate hex versions of "efi" and "device-properties" by calling
36550         hexify() on the ASCII strings rather than by hardcoding numbers.
36552 2009-08-08  Robert Millan  <rmh.grub@aybabtu.com>
36554         * fs/jfs.c: Update copyright year.
36556 2009-08-08  Felix Zielcke  <fzielcke@z-51.de>
36558         * util/grub.d/00_header.in: Fix a comment.
36559         * util/grub.d/10_linux.in: Likewise.
36560         * util/grub.d/10_windows.in: Likewise.
36561         * util/grub.d/10_hurd.in: Likewise.
36563 2009-08-08  Felix Zielcke  <fzielcke@z-51.de>
36565         * util/grub-mkconfig.in: Allow the user to specify the used font
36566         with GRUB_FONT.
36568 2009-08-08  Pavel Roskin  <proski@gnu.org>
36570         * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36571         available, xfs.mod needs it now.
36573         * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36574         the "g" modifier in sed when the intention is to strip something
36575         once.  This fixes comparison of kernels with multiple dashes.
36577         * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36578         on it.  Add missing space before closing bracket.  Fix
36579         misleading formatting.
36581 2009-08-07  Robert Millan  <rmh.grub@aybabtu.com>
36583         * docs/grub.texi: Major overhaul.  Remove all sections that are
36584         specific to GRUB Legacy, or mostly composed of Legacy-specific
36585         information.
36587 2009-08-07  Robert Millan  <rmh.grub@aybabtu.com>
36589         * docs/version.texi: New file.  Provides version information for
36590         grub.texi.
36592 2009-08-07  Robert Millan  <rmh.grub@aybabtu.com>
36594         * docs/grub.texi: Update CVS information to SVN.
36595         Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36597 2009-08-07  Felix Zielcke  <fzielcke@z-51.de>
36599         * util/grub-mkconfig.in: Remove a wrong `fi'.
36601 2009-08-07  Felix Zielcke  <fzielcke@z-51.de>
36603         * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36604         (grub_jfs_uuid): New function.
36605         (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36607 2009-08-07  Felix Zielcke  <fzielcke@z-51.de>
36609         * util/grub-mkconfig_lib.in (font_path): Move the functionality
36610         of it to ...
36611         * util/grub-mkconfig.in: ... here.  Prefer unicode.pf2 and
36612         unifont.pf2 over ascii.pf2.  Export LANG=C in case ascii.pf2 gets used.
36614 2009-08-07  Robert Millan  <rmh.grub@aybabtu.com>
36616         * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36617         * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36618         Update all users.
36620         * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36621         not just "vmlinu[zx]".
36622         Moved from here ...
36623         * util/grub-mkconfig_lib.in (version_test_gt): ... to here.  Update
36624         all users.
36626         * util/grub.d/10_linux.in (find_latest): Moved from here ...
36627         * util/grub-mkconfig_lib.in (version_find_latest): ... to here.  Update
36628         all users.
36630 2009-08-07  Robert Millan  <rmh.grub@aybabtu.com>
36632         * util/grub.d/10_freebsd.in: Use an absolute device path for
36633         `vfs.root.mountfrom'.  Set `vfs.root.mountfrom.options=rw'.
36635 2009-08-06  Felix Zielcke  <fzielcke@z-51.de>
36637         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36638         handling of multiple abstraction modules.
36640 2009-08-04  Robert Millan  <rmh.grub@aybabtu.com>
36642         Fix a bug resulting in black screen when loading Linux using a
36643         packed video mode.
36645         * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36646         function.
36648         * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36649         (grub_vbe_bios_getset_dac_palette_width): New function.
36650         (grub_vbe_bios_get_dac_palette_width)
36651         (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36652         grub_vbe_bios_getset_dac_palette_width()).
36654         * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36655         check for return status.
36656         (grub_vbe_get_video_mode_info): When getting information for a packed
36657         mode (<= 8 bpp), obtain DAC palette width using
36658         grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36659         {red,green,blue}_mark_size.
36661 2009-08-04  Felix Zielcke  <fzielcke@z-51.de>
36663         * commands/search.c (options): Fix help output to match actual code.
36665 2009-08-02  Vladimir Serbinenko  <phcoder@gmail.com>
36667         * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36668         of homegrown code.
36670 2009-08-01  Vladimir Serbinenko  <phcoder@gmail.com>
36672         * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36673         on XFS or ReiserFS.
36675 2009-08-01  Vladimir Serbinenko  <phcoder@gmail.com>
36677         Support Apple partition map with sector size different from 512 bytes.
36679         * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36680         (apple_partition_map_iterate): Respect 'aheader.blocksize'
36681         and 'apart.partmap_size'.
36683 2009-08-01  Vladimir Serbinenko  <phcoder@gmail.com>
36684 2009-08-01  Robert Millan  <rmh.grub@aybabtu.com>
36686         Fix cpuid command.
36688         * commands/i386/cpuid.c (options): New variable.
36689         (grub_cmd_cpuid): Return real error.
36690         (GRUB_MOD_INIT(cpuid)): Declare options.
36692 2009-07-31  Vladimir Serbinenko  <phcoder@gmail.com>
36694         * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36695         valid.
36697 2009-07-31  Bean  <bean123ch@gmail.com>
36699         * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36700         log2_inode.
36701         (grub_fshelp_node): Move inode field to the end.
36702         (grub_xfs_data): Remove inode field.
36703         (grub_xfs_inode_block): Calculate inode size using sblock.
36704         (grub_xfs_inode_offset): Likewise.
36705         (grub_xfs_read_inode): Calculate inode size using sblock.
36706         (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36707         (grub_xfs_iterate_dir): Calculate inode size using sblock.
36708         (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36709         to match inode size.
36710         (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36711         not accessible when data is null.
36712         (grub_xfs_open): Likewise.
36714 2009-07-31  Bean  <bean123ch@gmail.com>
36716         * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36717         Don't change pv->disk if it's already set.
36719         * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36720         (grub_raid_register): ... here.
36721         (grub_raid_rescan): Removed.
36723         * include/grub/raid.h (grub_raid_rescan): Removed.
36725         * util/grub-fstest.c: Remove include file <grub/raid.h>.
36726         (fstest): Replace grub_raid_rescan with module fini function followed
36727         by init function.
36729         * util/grub-probe.c: Add include file <grub/raid.h>.
36730         (probe_raid_level): New function.
36731         (probe): Detect abstraction by walking the disk device, support two
36732         level of abstraction (LVM on RAID) when detecting partition map.
36734 2009-07-31  Pavel Roskin  <proski@gnu.org>
36736         * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36737         to grub_zalloc(), it was erroneous.
36738         Reported by Bean <bean123ch@gmail.com>
36740 2009-07-30  Vladimir Serbinenko  <phcoder@gmail.com>
36742         * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36743         embedding zone, not only the first one.
36745 2009-07-29  Joe Auricchio  <jauricchio@gmail.com>
36747         * term/gfxterm.c (clear_char): New function.
36748         (grub_virtual_screen_setup): Use clear_char.
36749         (scroll_up): Likewise.
36750         (grub_virtual_screen_cls): Likewise.
36752 2009-07-29  Felix Zielcke  <fzielcke@z-51.de>
36754         * util/deviceiter.c (get_acceleraid_disk_name): New static
36755         function.
36756         (grub_util_iterate_devices): Handle Accelraid devices.
36757         * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36759 2009-07-28  Robert Millan  <rmh.grub@aybabtu.com>
36761         * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36762         separator for the suggested gfxpayload string (';' collides with the
36763         parser and needs escaping).
36765 2009-07-28  Vladimir Serbinenko  <phcoder@gmail.com>
36767         * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36768         Clear direction flag before jumping to OS.
36769         (grub_multiboot2_real_boot): Likewise.
36771 2009-07-28  Felix Zielcke  <fzielcke@z-51.de>
36773         * util/i386/pc/grub-install: Fix parsing of --disk-module
36774         option.
36776 2009-07-28  Felix Zielcke  <fzielcke@z-51.de>
36778         * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36779         when embedding.
36781 2009-07-26  Felix Zielcke  <fzielcke@z-51.de>
36783         * util/grub-mkconfig.in (package_version): New variable.
36784         Use it do display the version.
36786 2009-07-25  Felix Zielcke  <fzielcke@z-51.de>
36788         * kern/file.c (grub_file_open): Revert to previous check with
36789         grub_errno.
36791 2009-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
36793         * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36794         from help line. It's out of sync with code.
36796 2009-07-25  Vladimir Serbinenko  <phcoder@gmail.com>
36798         * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36799         entries on failed boot.
36801 2009-07-25  Felix Zielcke  <fzielcke@z-51.de>
36803         * kern/file.c (grub_file_open): Fix an error check.
36805 2009-07-24  Vladimir Serbinenko  <phcoder@gmail.com>
36807         * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36808         partition map couldn't be identified.
36810 2009-07-23  Pavel Roskin  <proski@gnu.org>
36812         * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36813         instead of WORDS_BIGENDIAN.  Use grub_le_to_cpu32(), so that the
36814         case of little endian words becomes just an optimization.
36815         Respect const modifier.
36816         (md5_final): Use code that doesn't depend on endianness.
36818         * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36819         to avoid loss of upper bits if align is unsigned and shorter
36820         than addr.
36822 2009-07-21  Vladimir Serbinenko  <phcoder@gmail.com>
36824         UUID support for UFS
36826         * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36827         (grub_ufs_uuid): New function.
36828         (grub_ufs_fs): add .uuid
36830 2009-07-21  Pavel Roskin  <proski@gnu.org>
36832         * kern/dl.c (grub_dl_check_header): Make static.
36834 2009-07-21  Felix Zielcke  <fzielcke@z-51.de>
36836         * util/grub.d/30_os-prober.in: Remove unused CHAINROOT.  Don't
36837         add drivemap for Vista.  It breaks Windows 7.
36839 2009-07-21  Vladimir Serbinenko  <phcoder@gmail.com>
36841         * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36842         128 bytes
36844 2009-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
36846         Add BFS support
36848         * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36849         (grub_fstest_SOURCES): Likewise.
36850         (pkglib_MODULES): Add befs.mod.
36851         (befs_mod_SOURCES): New variable.
36852         (befs_mod_CFLAGS): Likewise.
36853         (befs_mod_LDFLAGS): Likewise.
36854         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36855         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36856         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36857         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36858         (grub_setup_SOURCES): Likewise.
36859         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36860         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36861         (grub_setup_SOURCES): Likewise.
36862         * fs/befs.c: New file.
36863         * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36864         (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36865         (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36866         (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36867         (B_KEY_INDEX_ALIGN): New declaration.
36868         (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36869         (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36870         (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36871         (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36872         (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36873         (grub_afs_mount) [MODE_BFS]: Likewise.
36874         (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36875         (grub_afs_fs): Use GRUB_AFS_FSNAME
36876         (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36877         (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36878         (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36879         (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36881 2009-07-19  Yves BLUSSEAU  <yves.grub-devel@zetam.org>
36883         * util/getroot.c (find_root_device): Add support for MacOSX.
36884         * util/hostdisk.c: Likewise.
36886 2009-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
36888         * font/font.c (find_glyph): Check whether a font is present to avoid
36889         segmentation fault.
36891 2009-07-20  Joe Auricchio  <jauricchio@gmail.com>
36893         * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36895 2009-07-20  Pavel Roskin  <proski@gnu.org>
36897         * configure.ac: Trim excessively wordy excuses.
36899 2009-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
36901         Add symlink, mtime and label support to AtheFS.
36903         * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36904         (grub_afs_iterate_dir): Handle symlinks.
36905         (grub_afs_open): Use grub_afs_read_symlink.
36906         (grub_afs_dir): Likewise.
36907         Pass mtime.
36908         (grub_afs_label): New function.
36909         (grub_afs_fs): Add grub_afs_label.
36910         (grub_afs_read_symlink): New function.
36912 2009-07-20  Vladimir Serbinenko  <phcoder@gmail.com>
36914         Fix AtheFS support.
36916         * fs/afs.c: Fix comments style.
36917         (grub_afs_blockrun): Declare as packed.
36918         (grub_afs_datastream): Likewise.
36919         (grub_afs_bnode): Likewise.
36920         (grub_afs_btree): Likewise.
36921         (grub_afs_sblock): Likewise.
36922         Declare `name' as char.
36923         (grub_afs_inode): Declare as packed.
36924         Change void *vnode to grub_uint32_t unused.
36925         (grub_afs_iterate_dir): Check that key_size is positive.
36926         (grub_afs_mount): Don't read superblock twice.
36927         (grub_afs_dir): Don't free node in case of error,
36928         grub_fshelp_find_file already handles this.
36929         (grub_afs_open): Likewise.
36931 2009-07-19  Pavel Roskin  <proski@gnu.org>
36933         * Makefile.in: Remove LIBLZO and enable_lzo.
36934         * conf/i386-pc.rmk: Remove lzo support.
36935         * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36936         * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA.  Remove lzo
36937         support.
36938         * kern/i386/pc/lzo1x.S: Remove.
36939         * kern/i386/pc/startup.S: Remove lzo support.
36940         * util/i386/pc/grub-mkimage.c: Likewise.
36942 2009-07-19  Vladimir Serbinenko  <phcoder@gmail.com>
36944         * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36945         * fs/xfs.c (grub_xfs_dir): Likewise.
36946         * fs/afs.c (grub_afs_dir): Likewise.
36947         * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36948         (grub_iso9660_open): Likewise.
36949         * fs/jfs.c (grub_jfs_open): Likewise.
36950         * fs/ext2.c (grub_ext2_dir): Likewise.
36951         * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36952         * script/sh/lexer.c (grub_script_yylex): Likewise.
36954 2009-07-16  Pavel Roskin  <proski@gnu.org>
36956         * configure.ac: Never add "-c" to CFLAGS.
36958         * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36960         * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36961         grub_cv_cc_efiemu should be used.
36963         * configure.ac: Typo fixes.
36965         * kern/mm.c (grub_zalloc): New function.
36966         (grub_debug_zalloc): Likewise.
36967         * include/grub/mm.h: Declare grub_zalloc() and
36968         grub_debug_zalloc().
36969         * util/misc.c (grub_zalloc): New function.
36970         * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36971         instead of grub_malloc(), remove unneeded initializations.
36972         * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36973         * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36974         * commands/parttool.c (grub_cmd_parttool): Likewise.
36975         * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36976         * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36977         * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36978         * disk/usbms.c (grub_usbms_finddevs): Likewise.
36979         * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36980         * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36981         (grub_cmd_efiemu_pnvram): Likewise.
36982         * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36983         * fs/iso9660.c (grub_iso9660_mount): Likewise.
36984         (grub_iso9660_iterate_dir): Likewise.
36985         * fs/jfs.c (grub_jfs_opendir): Likewise.
36986         * fs/ntfs.c (list_file): Likewise.
36987         (grub_ntfs_mount): Likewise.
36988         * kern/disk.c (grub_disk_open): Likewise.
36989         * kern/dl.c (grub_dl_load_core): Likewise.
36990         * kern/elf.c (grub_elf_file): Likewise.
36991         * kern/env.c (grub_env_context_open): Likewise.
36992         (grub_env_set): Likewise.
36993         (grub_env_set_data_slot): Likewise.
36994         * kern/file.c (grub_file_open): Likewise.
36995         * kern/fs.c (grub_fs_blocklist_open): Likewise.
36996         * loader/i386/multiboot.c (grub_module): Likewise.
36997         * loader/xnu.c (grub_xnu_create_key): Likewise.
36998         (grub_xnu_create_value): Likewise.
36999         * normal/main.c (grub_normal_add_menu_entry): Likewise.
37000         (read_config_file): Likewise.
37001         * normal/menu_entry.c (make_screen): Likewise.
37002         * partmap/sun.c (sun_partition_map_iterate): Likewise.
37003         * script/sh/lexer.c (grub_script_lexer_init): Likewise.
37004         * script/sh/script.c (grub_script_parse): Likewise.
37005         * video/bitmap.c (grub_video_bitmap_create): Likewise.
37006         * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
37007         * video/readers/png.c (grub_png_output_byte): Likewise.
37008         (grub_video_reader_png): Likewise.
37010 2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>
37012         Enable all targets that can be built by default
37014         * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
37015         grub-mkfont and grub-fstest if they can be built
37017 2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>
37019         Fix hang and segmentation fault in grub-emu-usb
37021         * disk/scsi.c (grub_scsi_open): return err and not grub_errno
37022         * util/usb.c (grub_libusb_devices): likewise
37023         (grub_libusb_init): rename to ...
37024         (GRUB_MOD_INIT (libusb)):...this
37025         (grub_libusb_fini): rename to ..
37026         (GRUB_MOD_FINI (libusb)):...this
37027         * disk/usbms.c (grub_usbms_transfer): fix retry logic
37028         * include/grub/disk.h (grub_raid_init): removed, it's useless
37029         (grub_raid_fini): likewise
37030         (grub_lvm_init): likewise
37031         (grub_lvm_fini): likewise
37032         * util/grub-emu.c (main): don't call grub_libusb_init, it's done
37033         by grub_init_all
37035 2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>
37037         Fix libusb
37039         * Makefile.in (LIBUSB): new macro
37040         * genmk.rb (Utility/print_tail): new method
37041         (Utility/rule): use intermediary variable #{prefix}_OBJECTS
37042         (top level): call util.print_tail at the end.
37044 2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>
37046         Make FreeBSD accept zpool.cache
37048         * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
37049         type is /boot/zfs/zpool.cache
37051 2009-07-16  Vladimir Serbinenko  <phcoder@gmail.com>
37053         Fix 64-bit efiemu
37055         * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
37056         correct wrong typedef
37057         * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
37059 2009-07-15  Pavel Roskin  <proski@gnu.org>
37061         * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
37062         * kern/disk.c (struct grub_disk_cache): Likewise.
37064         * commands/probe.c (options): Typo fix.
37066         * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
37067         Increase to 0x5a to accommodate FAT32.  Adjust other offsets
37068         accordingly.
37069         Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
37071         * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
37072         the end of "Error" to make the message more readable.
37074         * boot/i386/pc/boot.S (kernel_segment): Remove.
37075         (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
37076         for destination.
37078         * boot/i386/pc/boot.S (boot_version): Remove.
37079         * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
37080         Remove.
37082         * include/grub/i386/pc/boot.h: Sort all offsets.
37083         (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
37084         (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
37085         * boot/i386/pc/boot.S: Assert location of every offset listed in
37086         include/grub/i386/pc/boot.h.
37088 2009-07-13  Pavel Roskin  <proski@gnu.org>
37090         * include/grub/i386/coreboot/machine.h: Rename
37091         GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
37092         * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
37093         multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
37095         * kern/dl.c: Force native word size to suppress warnings when
37096         compiling grub-emu.
37098         * kern/device.c (grub_device_iterate): Change struct part_ent to
37099         hold the name, not a pointer to it.  Use one grub_malloc() per
37100         partition, not two.  Free partition_name if grub_malloc() fails.
37101         Set ents to NULL only before grub_partition_iterate() is called.
37103 2009-07-11  Bean  <bean123ch@gmail.com>
37105         * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37106         childname.
37108 2009-07-10  Bean  <bean123ch@gmail.com>
37109 2009-07-10  Robert Millan  <rmh.grub@aybabtu.com>
37111         * kern/ieee1275/openfw.c (grub_children_iterate)
37112         (grub_devalias_iterate): Fix size evaluation for property or path
37113         strings, which was broken since r2132.
37115 2009-07-07  Pavel Roskin  <proski@gnu.org>
37117         * commands/search.c (search_file): Merge into ...
37118         (search_fs): ... this.  Accept search type as argument.
37119         (grub_cmd_search): Pass search type to search_fs().
37121         * include/grub/util/console.h: New file.
37122         * util/console.c: Use it instead of grub/machine/console.h.
37123         * util/grub-emu.c: Likewise.
37125         * lib/arg.c (find_long_option): Remove.
37126         (find_long): Add `len' argument, make `s' const char *.
37127         (grub_arg_parse): Parse long options in place, not in a
37128         temporary buffer.
37130 2009-07-06  Pavel Roskin  <proski@gnu.org>
37132         * commands/search.c (search_fs): Fix potential NULL pointer
37133         dereference.
37135         * commands/search.c (search_fs): Replace QUID macro with quid_fn
37136         function pointer.
37138 2009-07-06  Daniel Mierswa  <impulze@impulze.org>
37140         * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37141         comparison.
37143 2009-07-05  Pavel Roskin  <proski@gnu.org>
37145         * include/grub/i386/linux.h (struct linux_kernel_params):
37146         Restore padding3, it's still needed.
37148         * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37149         FreeBSD.
37150         * util/osdetect.lua: Likewise.
37152 2009-07-05  Bean  <bean123ch@gmail.com>
37154         * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37156         * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37157         (grub_lua_getenv): Likewise.
37158         (grub_lua_setenv): Likewise.
37159         (save_errno): New function.
37160         (push_result): Likewise.
37161         (grub_lua_enum_device): Likewise.
37162         (grub_lua_enum_file): Likewise.
37163         (grub_lua_file_open): Likewise.
37164         (grub_lua_file_close): Likewise.
37165         (grub_lua_file_seek): Likewise.
37166         (grub_lua_file_read): Likewise.
37167         (grub_lua_file_getline): Likewise.
37168         (grub_lua_file_getsize): Likewise.
37169         (grub_lua_file_getpos): Likewise.
37170         (grub_lua_file_eof): Likewise.
37171         (grub_lua_file_exist): Likewise.
37172         (grub_lua_add_menu): Likewise.
37174         * script/lua/grub_lua.h (isupper): New inline function.
37175         (islower): Likewise.
37176         (ispunct): Likewise.
37177         (isxdigit): Likewise.
37178         (strcspn): Change to normal function.
37179         (strpbkr): New function declaration.
37180         (memchr): Likewise.
37182         * script/lua/grub_main.c (scan_str): New function.
37183         (strcspn): Likewise.
37184         (strpbrk): Likewise.
37185         (memchr): Likewise.
37187         * script/lua/linit.c (lualibs): Enable the string library.
37189         * util/osdetect.lua: New file.
37191 2009-07-04  Robert Millan  <rmh.grub@aybabtu.com>
37193         * include/grub/i386/linux.h (struct linux_kernel_params): Add
37194         `capabilities' member.
37196 2009-07-02  Pavel Roskin  <proski@gnu.org>
37198         * genparttoollist.sh: Add missing newline at the end.
37200 2009-07-01  Pavel Roskin  <proski@gnu.org>
37202         * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37204         * util/hostdisk.c (open_device): Remove `const' from
37205         `sysctl_size', as sysctlbyname() can change it (in this case it
37206         doesn't actually happen).
37208         * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37209         using signed long int constants.
37211         * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37212         constant to avoid a warning on FreeBSD.
37214         * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37215         where it's needed.
37217         * Makefile.in: Install include/grub/machine symlink.
37219         * Makefile.in: When installing symlinks, use "cp -fR", which
37220         works on FreeBSD and MacOSX.
37221         From Yves Blusseau <cl7m42e02@sneakemail.com>
37223         * kern/dl.c (grub_dl_resolve_symbol): Make static.
37224         * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37226         * util/misc.c: Move grub_reboot() and grub_halt() ...
37227         * util/grub-emu.c: ... here.  Make main_env static.
37228         * include/grub/util/misc.h: Remove main_env.
37230         * kern/mm.c: Use correct format to print size_t.
37232         * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37233         * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37234         * kern/powerpc/dl.c: Likewise.
37235         * kern/sparc64/dl.c: Likewise.
37236         * kern/x86_64/dl.c: Likewise.
37238 2009-07-01  Robert Millan  <rmh.grub@aybabtu.com>
37240         Fix grub-emu build on sparc64-ieee1275.
37242         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37243         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37245 2009-07-01  Robert Millan  <rmh.grub@aybabtu.com>
37247         * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37248         (grub_reboot, grub_halt): New functions.
37250         * util/i386/pc/misc.c: Delete.  Update all users.
37251         * util/sparc64/ieee1275/misc.c: Likewise.
37252         * util/powerpc/ieee1275/misc.c: Likewise.
37254 2009-07-01  Robert Millan  <rmh.grub@aybabtu.com>
37256         * conf/i386.rmk (setjmp_mod_SOURCES)
37257         (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37258         * conf/common.rmk (setjmp_mod_SOURCES)
37259         (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37260         to use $(target_cpu).
37261         * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37262         (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37263         * conf/powerpc-ieee1275.rmk: Likewise.
37264         * conf/sparc64-ieee1275.rmk: Likewise.
37266         * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37267         $(target_cpu) for kern/$(target_cpu)/dl.c.
37268         * conf/i386-efi.rmk: Likewise.
37269         * conf/i386-ieee1275.rmk: Likewise.
37270         * conf/x86_64-efi.rmk: Likewise.
37271         * conf/i386-coreboot.rmk: Likewise.
37272         * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37273         $(target_cpu) for kern/$(target_cpu)/dl.c and for
37274         kern/$(target_cpu)/cache.S.
37275         * conf/sparc64-ieee1275.rmk: Likewise.
37277 2009-07-01  Robert Millan  <rmh.grub@aybabtu.com>
37279         * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37280         type to `grub_uint8_t', and adjust `padding9' accordingly.
37282 2009-06-29  Robert Millan  <rmh.grub@aybabtu.com>
37284         * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37286         * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37287         assembly in final jump, using register constraints.
37289         (grub_linux_boot): For text mode, initialize `have_vga' using
37290         GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37292         Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37293         right before the final jump.
37295         Set `video_mode' to 0x3.
37297         Document initialization of `video_page', `video_mode' and
37298         `video_ega_bx'.
37300 2009-06-29  Robert Millan  <rmh.grub@aybabtu.com>
37302         * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37303         * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37304         and set GRUB_LINUX_FLAG_QUIET appropriately.
37306 2009-06-29  Robert Millan  <rmh.grub@aybabtu.com>
37308         Fix build on Debian / sparc.
37310         * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37312 2009-06-28  Pavel Roskin  <proski@gnu.org>
37314         * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37315         fix a warning.
37317         * util/grub.d/10_linux.in: Match SUSE style initrd names.
37319 2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>
37321         * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37322         `err'.
37324 2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>
37326         Revert r2338.
37328         * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37329         file can't be opened.  grub_file_open() is already supposed to set
37330         grub_errno / grub_errmsg appropriately.
37331         * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37333 2009-06-27  Pavel Roskin  <proski@gnu.org>
37334 2009-06-27  Robert Millan  <rmh.grub@aybabtu.com>
37336         * include/grub/dl.h: Include grub/elf.h.
37337         (struct grub_dl): Add symtab field.
37338         * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37339         GRUB_MODULES_MACHINE_READONLY.
37340         (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37341         of the header for read-only modules.
37342         (grub_dl_unload): Free mod->symtab for read-only modules.
37343         * kern/i386/dl.c: Use mod->symtab.
37344         * kern/powerpc/dl.c: Likewise.
37345         * kern/sparc64/dl.c: Likewise.
37346         * kern/x86_64/dl.c: Likewise.
37348         * conf/i386-qemu.rmk: New file.
37349         * kern/i386/qemu/startup.S: Likewise.
37350         * kern/i386/qemu/mmap.c: Likewise.
37351         * boot/i386/qemu/boot.S: Likewise.
37352         * include/grub/i386/qemu/time.h: Likewise.
37353         * include/grub/i386/qemu/serial.h: Likewise.
37354         * include/grub/i386/qemu/kernel.h: Likewise.
37355         * include/grub/i386/qemu/console.h: Likewise.
37356         * include/grub/i386/qemu/boot.h: Likewise.
37357         * include/grub/i386/qemu/init.h: Likewise.
37358         * include/grub/i386/qemu/machine.h: Likewise.
37359         * include/grub/i386/qemu/loader.h: Likewise.
37360         * include/grub/i386/qemu/memory.h: Likewise.
37362         * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37363         (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37364         [qemu] (pkglib_IMAGES): Add `boot.img'.
37365         [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37366         [qemu] (boot_img_FORMAT): New variables.
37367         [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37368         [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37369         [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37370         [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37371         [qemu] (kernel_img_FORMAT): New variables.
37373         * configure.ac: Recognise `i386-qemu'.
37375         * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37376         (for no compression).
37377         [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37378         a valid i386 ROM image.  Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37379         `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37380         `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37381         ifdefs).
37383 2009-06-27  Pavel Roskin  <proski@gnu.org>
37385         * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37386         read.
37387         * efiemu/prepare32.c: Likewise.
37388         * efiemu/prepare64.c: Likewise.
37390 2009-06-26  Pavel Roskin  <proski@gnu.org>
37392         * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37393         * include/grub/elf.h: Define symbols without "32" or "64" based
37394         on GRUB_TARGET_WORDSIZE.
37395         * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37396         * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37397         ELF definitions.
37398         * efiemu/loadcore64.c: Likewise.
37399         * loader/i386/bsd32.c: Likewise.
37400         * loader/i386/bsd64.c: Likewise.
37401         * kern/dl.c: Remove own ELF definitions.
37402         * util/i386/efi/grub-mkimage.c: Likewise.
37404 2009-06-23  Robert Millan  <rmh.grub@aybabtu.com>
37406         * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37407         segment 0x0 unconditionally, because the reference generated by
37408         GAS is an absolute address.
37410 2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>
37412         * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37413         [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37415 2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>
37417         * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37418         indexes.  Check for -f explicitly.
37419         (search_file): Improve error message.
37420         (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37422 2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>
37424         * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37425         (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this.  Update all users.
37427 2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>
37429         * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37430         * conf/i386-ieee1275.rmk: Likewise.
37431         * conf/i386-coreboot.rmk: Likewise.
37433         * kern/i386/pc/startup.S (grub_stop): Remove function.
37434         * kern/i386/ieee1275/startup.S: Likewise.
37435         * kern/i386/coreboot/startup.S: Likewise.
37436         * kern/i386/misc.S (grub_stop): New function.
37438 2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>
37440         * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37441         * kern/i386/realmode.S (real_to_prot): ... to here.
37443 2009-06-22  Robert Millan  <rmh.grub@aybabtu.com>
37445         * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37446         with `kernel.img'.
37447         (kernel_elf_SOURCES): Rename to ...
37448         (kernel_img_SOURCES): ... this.
37449         (kernel_elf_HEADERS): Rename to ...
37450         (kernel_img_HEADERS): ... this.  Update all users.
37451         (kernel_elf_ASFLAGS): Rename to ...
37452         (kernel_img_ASFLAGS): ... this.
37453         (kernel_elf_CFLAGS): Rename to ...
37454         (kernel_img_CFLAGS): ... this.
37455         (kernel_elf_LDFLAGS): Rename to ...
37456         (kernel_img_LDFLAGS): ... this.
37457         * conf/i386-coreboot.rmk: Likewise.
37458         * conf/powerpc-ieee1275.rmk: Likewise.
37460         * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37461         with "kernel.img".
37463 2009-06-21  Pavel Roskin  <proski@gnu.org>
37465         * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37466         to match nested functions.
37467         * loader/sparc64/ieee1275/linux.c: Likewise.
37469         * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37471 2009-06-21  Robert Millan  <rmh.grub@aybabtu.com>
37473         * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37474         all i386 platforms.
37476 2009-06-21  Robert Millan  <rmh.grub@aybabtu.com>
37478         Fix asm file handling on ELF, and remove workarounds.
37480         * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37481         and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37482         * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37483         * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37485 2009-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
37487         Load BSD ELF modules
37489         * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37490         and loader/i386/bsd64.c
37491         * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37492         (FREEBSD_MODTYPE_ELF_MODULE): New definition
37493         (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37494         (grub_freebsd_load_elfmodule32): New declaration
37495         (grub_freebsd_load_elfmoduleobj64): Likewise
37496         (grub_freebsd_load_elf_meta32): Likewise
37497         (grub_freebsd_load_elf_meta64): Likewise
37498         (grub_freebsd_add_meta): Likewise
37499         (grub_freebsd_add_meta_module): Likewise
37500         * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37501         (grub_freebsd_add_meta_module): Likewise and move module-specific
37502         parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37503         (grub_cmd_freebsd): Add elf-kernel specific parts
37504         based on grub_freebsd_add_meta_module
37505         (grub_cmd_freebsd_module): Add type parsing moved from
37506         grub_freebsd_add_meta_module
37507         (grub_cmd_freebsd_module_elf): New function
37508         (cmd_freebsd_module_elf): New variable
37509         (GRUB_MOD_INIT): Register freebsd_module_elf
37510         * loader/i386/bsd32.c: New file
37511         * loader/i386/bsd64.c: Likewise
37512         * loader/i386/bsdXX.c: Likewise
37513         * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37514         (grub_elf64_load): Likewise
37515         * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37516         All users updated
37517         (grub_elf64_load_hook_t): Likewise
37519 2009-06-21  Colin Watson  <cjwatson@ubuntu.com>
37521         * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37522         variable.
37523         * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37524         don't write a menu entry for recovery mode.
37526 2009-06-20  Robert Millan  <rmh.grub@aybabtu.com>
37528         * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37529         after it's no longer needed.
37531 2009-06-20  Robert Millan  <rmh.grub@aybabtu.com>
37533         * include/grub/i386/loader.h (grub_linux_prot_size)
37534         (grub_linux_tmp_addr, grub_linux_real_addr)
37535         (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37536         GRUB_MACHINE_PCBIOS.
37537         * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37538         common grub_util_info() call to ...
37539         (generate_image): ... here.
37540         Fix use of uninitialized memory, comparison of signed with
37541         unsigned integers and memory leak.
37542         Remove bogus module address message.
37544 2009-06-20  Vladimir Serbinenko  <phcoder@gmail.com>
37546         * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37547         grub_raid_register
37548         * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37550 2009-06-19  Pavel Roskin  <proski@gnu.org>
37552         * configure.ac: Remove stray AC_MSG_CHECKING.
37554 2009-06-19  Vladimir Serbinenko  <phcoder@gmail.com>
37556         * disk/scsi.c (grub_scsi_open): use continue instead of big if
37558 2009-06-18  Pavel Roskin  <proski@gnu.org>
37560         * conf/common.rmk: Add fs_file.mod.
37561         * disk/fs_file.c: New file.
37562         * include/grub/disk.h (enum grub_disk_dev_id): Add
37563         GRUB_DISK_DEVICE_FILE_ID.
37565 2009-06-18  Vladimir Serbinenko  <phcoder@gmail.com>
37567         Fix build with Apple's toolchain. Part 2
37569         * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37570         a fake start
37572 2009-06-18  Vladimir Serbinenko  <phcoder@gmail.com>
37574         Fix build with Apple's toolchain. Part 1
37576         * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37577         for long calls
37578         * configure.ac: remove a leftover AC_MSG_RESULT
37579         (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37580         Apple's toolchain
37582 2009-06-18  Vladimir Serbinenko  <phcoder@gmail.com>
37584         Fix warnings
37586         * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37587         (decomp_block): initialize ch
37588         use grub_memcpy instead of memcpy
37590 2009-06-17  Pavel Roskin  <proski@gnu.org>
37592         * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37593         version, use declarations needed to use vga_text as the startup
37594         console.
37596         * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37597         term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37598         the kernel.
37599         * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37600         and grub_at_keyboard_fini(), it's done on module load and
37601         unload.
37603 2009-06-17  Felix Zielcke  <fzielcke@z-51.de>
37605         * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37606         file can't be found.
37607         * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37609 2009-06-17  Vladimir Serbinenko  <phcoder@gmail.com>
37611         Fix newline handling
37613         * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37614         * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37615         (grub_script_yylex): don't segfault on unterminated script
37616         newline terminates command and variable
37618 2009-06-17  Vladimir Serbinenko  <phcoder@gmail.com>
37620         avoid double grub_adjust_range call. Bug reported by David Simner
37622         * kern/disk.c (grub_disk_write): change to raw disk access before
37623         calling disk_read
37625 2009-06-17  Colin Watson  <cjwatson@ubuntu.com>
37627         * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37628         spaces, for the benefit of help2man.
37629         * util/i386/efi/grub-mkimage.c (usage): Likewise.
37631 2009-06-16  Pavel Roskin  <proski@gnu.org>
37633         * kern/i386/halt.c: Include grub/machine/init.h.
37634         * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37636 2009-06-16  Felix Zielcke  <fzielcke@z-51.de>
37638         * util/grub.d/30_os-prober.in: Use ${root} in the generated
37639         drivemap menuentry.
37641 2009-06-16  James Jarvis  <James.Jarvis@ed.ac.uk>
37643         * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37644         `echo' command.
37646 2009-06-16  Pavel Roskin  <proski@gnu.org>
37648         * boot/i386/pc/boot.S: Remove root_drive.  Assert offset of
37649         boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK.  Don't
37650         save %dx, we only need %dl and we never change it.
37651         * boot/i386/pc/cdboot.S: Don't set the root drive.
37652         * boot/i386/pc/pxeboot.S: Likewise.
37653         * include/grub/i386/pc/boot.h: Remove
37654         GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37655         GRUB_BOOT_MACHINE_DRIVE_CHECK.
37656         * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37657         * kern/i386/pc/init.c (make_install_device): Remove references
37658         to grub_root_drive.
37659         * kern/i386/pc/startup.S: Likewise.
37660         * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37662 2009-06-16  Vladimir Serbinenko  <phcoder@gmail.com>
37664         xnu_uuid command
37666         * commands/xnu_uuid.c: new file
37667         * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37668         (xnu_uuid_mod_SOURCES): new variable
37669         (xnu_uuid_mod_CFLAGS): likewise
37670         (xnu_uuid_mod_LDFLAGS): likewise
37671         * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37672         * conf/i386-ieee1275.rmk: likewise
37673         * conf/i386-pc.rmk: likewise
37674         * conf/powerpc-ieee1275.rmk: likewise
37675         * conf/sparc64-ieee1275.rmk: likewise
37676         * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37678 2009-06-16  Pavel Roskin  <proski@gnu.org>
37680         * configure.ac: Avoid '==' in test command, it's not portable.
37682 2009-06-16  Vladimir Serbinenko  <phcoder@gmail.com>
37684         Probe command
37686         * commands/probe.c: new file
37687         * conf/common.rmk (pkglib_MODULES): add probe.mod
37688         (probe_mod_SOURCES): new variable
37689         (probe_mod_CFLAGS): likewise
37690         (probe_mod_LDFLAGS): likewise
37691         * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37692         * conf/i386-ieee1275.rmk: likewise
37693         * conf/i386-pc.rmk: likewise
37694         * conf/powerpc-ieee1275.rmk: likewise
37695         * conf/sparc64-ieee1275.rmk: likewise
37697 2009-06-15  Vladimir Serbinenko  <phcoder@gmail.com>
37699         Fix handling of string like \"hello\" and "a
37700         b"
37702         * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37703         (grub_script_yylex): fix parsing of quoting, escaping and newline
37705 2009-06-13  Vladimir Serbinenko  <phcoder@gmail.com>
37707         * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37708         handling
37710 2009-06-13  Jun Inoue  <jun.lambda@gmail.com>
37712         * util/grub-mkconfig.in: Fix parsing of --output option.
37714 2009-06-12  Pavel Roskin  <proski@gnu.org>
37716         * Makefile.in (pkgdata_SRCDIR): Remove.  genmodsrc.sh and
37717         genmk.rb don't need to be generated or installed.
37719 2009-06-12  Vladimir Serbinenko  <phcoder@gmail.com>
37721         * commands/i386/pc/drivemap_int13h.S: add more comments
37723 2009-06-11  Pavel Roskin  <proski@gnu.org>
37725         * Makefile.in (uninstall): Uninstall manuals.
37727         * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37728         PKGLIB to SCRIPTS.  This fixes installation of grub-mkconfig_lib
37729         and update-grub_lib in two places.
37730         * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37732         * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37733         a compiler warning.
37735         * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37736         `entry_lo' to fix variable shadowing.
37738 2009-06-11  Christian Franke  <franke@computer.org>
37740         * kern/misc.c (__enable_execute_stack): Add missing return type
37741         to prevent gcc warning.
37743 2009-06-11  Felix Zielcke  <fzielcke@z-51.de>
37745         * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37747 2009-06-11  Pavel Roskin  <proski@gnu.org>
37749         * Makefile.in: Don't rely on any scripts being executable.
37750         Always use $(SHELL) to run shell scripts.
37752         * configure.ac: Always define ___main if using -nostdlib.  This
37753         fixes tests on Cygwin.
37755 2009-06-11  Giuseppe Caizzone  <acaizzo@gmail.com>
37757         UDF fix
37759         * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37760         is in bytes and not in blocks
37762 2009-06-11  Pavel Roskin  <proski@gnu.org>
37764         * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37765         warning.
37767 2009-06-11  Felix Zielcke  <fzielcke@z-51.de>
37769         * util/grub.d/30_os-prober.in: Fix a comment. Source
37770         ${libdir}/grub/grub-mkconfig_lib.  Use prepare_grub_to_access_device
37771         to set the root device.  Place drivemap command in the generated
37772         chain entry.
37774 2009-06-11  Pavel Roskin  <proski@gnu.org>
37776         * configure.ac: Remove host_m32.  Issues with 64-bit utilities
37777         have long been resolved.
37779 2009-06-11  Colin Watson  <cjwatson@ubuntu.com>
37781         * util/grub.d/10_linux.in: Capitalise "Linux".
37783         * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37785 2009-06-11  Pavel Roskin  <proski@gnu.org>
37787         * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37788         fix a gcc warning and ensure that the function won't ever exit.
37790         * kern/i386/ieee1275/init.c: Add missing prototype for
37791         grub_stop_floppy().
37793         * loader/ieee1275/multiboot2.c [__i386__]: Include
37794         grub/cpu/multiboot.h.
37796         * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37797         casts to short - they are not portable and cause warnings.  Fix
37798         use of uninitialized values in input_buf.  Use ARRAY_SIZE.
37800 2009-06-11  Vladimir Serbinenko  <phcoder@gmail.com>
37802         Drivemap fixes
37804         * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37805         new function
37806         (grub_get_root_biosnumber_saved): new variable
37807         (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37808         (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37809         * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37810         %dx after the call if necessary
37811         * conf/common.rmk (pkglib_MODULES): remove boot.mod
37812         (boot_mod_SOURCES): remove
37813         (boot_mod_CFLAGS): remove
37814         (boot_mod_LDFLAGS): remove
37815         * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37816         (boot_mod_SOURCES): new variable
37817         (boot_mod_CFLAGS): likewise
37818         (boot_mod_LDFLAGS): likewise
37819         * conf/i386-efi.rmk: likewise
37820         * conf/i386-ieee1275.rmk: likewise
37821         * conf/i386-pc.rmk: likewise
37822         * conf/powerpc-ieee1275.rmk: likewise
37823         * conf/sparc64-ieee1275.rmk: likewise
37824         * conf/x86_64-efi.rmk: likewise
37825         * include/grub/i386/pc/biosnum.h: new file
37826         * lib/i386/pc/biosnum.c: likewise
37827         * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37828         * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37829         * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37831 2009-06-10  Pavel Roskin  <proski@gnu.org>
37833         * io/gzio.c (test_header): Don't reuse one buffer for all data.
37834         Use separate variables.  Read only the file size at the end, but
37835         not the checksum that we don't use.
37837         * kern/file.c (grub_file_read): Use void pointer for the buffer.
37838         Adjust all callers.
37840         * kern/ieee1275/openfw.c: Remove libc includes.
37841         * kern/ieee1275/cmain.c: Likewise.
37842         * include/grub/ieee1275/ieee1275.h: Likewise.
37844         * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37845         compiler warnings.
37847 2009-06-10  Felix Zielcke  <fzielcke@z-51.de>
37849         * Makefile.in: Remove all trailing whitespace.
37850         * conf/i386-pc.rmk: Likewise.
37851         * conf/powerpc-ieee1275.rmk: Likewise.
37852         * conf/sparc64-ieee1275.rmk: Likewise.
37853         * docs/grub.texi: Likewise.
37854         * docs/texinfo.tex: Likewise.
37855         * disk/fs_uuid.c: Likewise.
37856         * disk/lvm.c: Likewise.
37857         * disk/scsi.c: Likewise.
37858         * disk/ata.c: Likewise.
37859         * disk/ieee1275/ofdisk.c: Likewise.
37860         * disk/i386/pc/biosdisk.c: Likewise.
37861         * disk/host.c: Likewise.
37862         * disk/raid.c: Likewise.
37863         * disk/efi/efidisk.c: Likewise.
37864         * disk/usbms.c: Likewise.
37865         * disk/memdisk.c: Likewise.
37866         * disk/loopback.c: Likewise.
37867         * kern/powerpc/dl.c: Likewise.
37868         * kern/device.c: Likewise.
37869         * kern/dl.c: Likewise.
37870         * kern/sparc64/dl.c: Likewise.
37871         * kern/ieee1275/ieee1275.c: Likewise.
37872         * kern/term.c: Likewise.
37873         * kern/fs.c: Likewise.
37874         * kern/i386/dl.c: Likewise.
37875         * kern/i386/pc/startup.S: Likewise.
37876         * kern/i386/pc/init.c: Likewise.
37877         * kern/i386/pc/mmap.c: Likewise.
37878         * kern/i386/pc/lzo1x.S: Likewise.
37879         * kern/i386/ieee1275/init.c: Likewise.
37880         * kern/i386/realmode.S: Likewise.
37881         * kern/i386/tsc.c: Likewise.
37882         * kern/partition.c: Likewise.
37883         * kern/corecmd.c: Likewise.
37884         * kern/file.c: Likewise.
37885         * kern/efi/efi.c: Likewise.
37886         * kern/efi/init.c: Likewise.
37887         * kern/efi/mm.c: Likewise.
37888         * kern/main.c: Likewise.
37889         * kern/err.c: Likewise.
37890         * kern/env.c: Likewise.
37891         * kern/disk.c: Likewise.
37892         * kern/generic/millisleep.c: Likewise.
37893         * kern/generic/rtc_get_time_ms.c: Likewise.
37894         * kern/misc.c: Likewise.
37895         * kern/parser.c: Likewise.
37896         * genmk.rb: Likewise.
37897         * configure.ac: Likewise.
37898         * boot/i386/pc/diskboot.S: Likewise.
37899         * boot/i386/pc/pxeboot.S: Likewise.
37900         * boot/i386/pc/boot.S: Likewise.
37901         * boot/i386/pc/lnxboot.S: Likewise.
37902         * boot/i386/pc/cdboot.S: Likewise.
37903         * parttool/pcpart.c: Likewise.
37904         * video/readers/tga.c: Likewise.
37905         * video/video.c: Likewise.
37906         * video/bitmap.c: Likewise.
37907         * lib/envblk.c: Likewise.
37908         * lib/i386/setjmp.S: Likewise.
37909         * fs/xfs.c: Likewise.
37910         * fs/afs.c: Likewise.
37911         * fs/fat.c: Likewise.
37912         * fs/ntfs.c: Likewise.
37913         * fs/udf.c: Likewise.
37914         * fs/affs.c: Likewise.
37915         * fs/iso9660.c: Likewise.
37916         * fs/hfs.c: Likewise.
37917         * fs/fshelp.c: Likewise.
37918         * fs/ext2.c: Likewise.
37919         * fs/jfs.c: Likewise.
37920         * fs/reiserfs.c: Likewise.
37921         * fs/hfsplus.c: Likewise.
37922         * fs/minix.c: Likewise.
37923         * fs/cpio.c: Likewise.
37924         * fs/sfs.c: Likewise.
37925         * fs/ufs.c: Likewise.
37926         * efiemu/prepare.c: Likewise.
37927         * efiemu/loadcore_common.c: Likewise.
37928         * efiemu/runtime/efiemu.sh: Likewise.
37929         * efiemu/runtime/efiemu.S: Likewise.
37930         * efiemu/runtime/efiemu.c: Likewise.
37931         * efiemu/pnvram.c: Likewise.
37932         * efiemu/main.c: Likewise.
37933         * efiemu/i386/pc/cfgtables.c: Likewise.
37934         * efiemu/i386/loadcore64.c: Likewise.
37935         * efiemu/i386/loadcore32.c: Likewise.
37936         * efiemu/loadcore.c: Likewise.
37937         * efiemu/symbols.c: Likewise.
37938         * efiemu/mm.c: Likewise.
37939         * include/grub/autoefi.h: Likewise.
37940         * include/grub/datetime.h: Likewise.
37941         * include/grub/term.h: Likewise.
37942         * include/grub/hfs.h: Likewise.
37943         * include/grub/lvm.h: Likewise.
37944         * include/grub/i386/tsc.h: Likewise.
37945         * include/grub/i386/linux.h: Likewise.
37946         * include/grub/i386/xnu.h: Likewise.
37947         * include/grub/i386/efiemu.h: Likewise.
37948         * include/grub/i386/pc/biosdisk.h: Likewise.
37949         * include/grub/i386/pc/memory.h: Likewise.
37950         * include/grub/i386/pc/vbe.h: Likewise.
37951         * include/grub/parttool.h: Likewise.
37952         * include/grub/video.h: Likewise.
37953         * include/grub/memory.h: Likewise.
37954         * include/grub/fs.h: Likewise.
37955         * include/grub/partition.h: Likewise.
37956         * include/grub/xnu.h: Likewise.
37957         * include/grub/efi/api.h: Likewise.
37958         * include/grub/efi/pe32.h: Likewise.
37959         * include/grub/efi/memory.h: Likewise.
37960         * include/grub/multiboot.h: Likewise.
37961         * include/grub/usbdesc.h: Likewise.
37962         * include/grub/multiboot2.h: Likewise.
37963         * include/grub/acpi.h: Likewise.
37964         * include/grub/efiemu/efiemu.h: Likewise.
37965         * include/grub/disk.h: Likewise.
37966         * include/grub/ieee1275/ieee1275.h: Likewise.
37967         * include/grub/net.h: Likewise.
37968         * include/grub/machoload.h: Likewise.
37969         * include/grub/macho.h: Likewise.
37970         * include/multiboot.h: Likewise.
37971         * genmoddep.awk: Likewise.
37972         * normal/main.c: Likewise.
37973         * normal/menu_entry.c: Likewise.
37974         * normal/menu_viewer.c: Likewise.
37975         * normal/completion.c: Likewise.
37976         * normal/cmdline.c: Likewise.
37977         * normal/misc.c: Likewise.
37978         * normal/datetime.c: Likewise.
37979         * bus/usb/usbtrans.c: Likewise.
37980         * bus/usb/ohci.c: Likewise.
37981         * bus/usb/uhci.c: Likewise.
37982         * bus/usb/usb.c: Likewise.
37983         * mmap/efi/mmap.c: Likewise.
37984         * mmap/i386/pc/mmap_helper.S: Likewise.
37985         * mmap/i386/pc/mmap.c: Likewise.
37986         * mmap/i386/mmap.c: Likewise.
37987         * mmap/i386/uppermem.c: Likewise.
37988         * mmap/mmap.c: Likewise.
37989         * commands/acpi.c: Likewise.
37990         * commands/echo.c: Likewise.
37991         * commands/blocklist.c: Likewise.
37992         * commands/loadenv.c: Likewise.
37993         * commands/usbtest.c: Likewise.
37994         * commands/boot.c: Likewise.
37995         * commands/parttool.c: Likewise.
37996         * commands/search.c: Likewise.
37997         * commands/cat.c: Likewise.
37998         * commands/i386/pc/play.c: Likewise.
37999         * commands/i386/pc/drivemap.c: Likewise.
38000         * commands/i386/pc/vbeinfo.c: Likewise.
38001         * commands/i386/pc/acpi.c: Likewise.
38002         * commands/i386/pc/vbetest.c: Likewise.
38003         * commands/ls.c: Likewise.
38004         * commands/cmp.c: Likewise.
38005         * commands/test.c: Likewise.
38006         * commands/efi/acpi.c: Likewise.
38007         * commands/gptsync.c: Likewise.
38008         * commands/help.c: Likewise.
38009         * partmap/amiga.c: Likewise.
38010         * partmap/apple.c: Likewise.
38011         * partmap/acorn.c: Likewise.
38012         * partmap/pc.c: Likewise.
38013         * partmap/sun.c: Likewise.
38014         * partmap/gpt.c: Likewise.
38015         * script/sh/lexer.c: Likewise.
38016         * script/sh/function.c: Likewise.
38017         * font/font.c: Likewise.
38018         * font/font_cmd.c: Likewise.
38019         * loader/powerpc/ieee1275/linux.c: Likewise.
38020         * loader/efi/chainloader.c: Likewise.
38021         * loader/multiboot_loader.c: Likewise.
38022         * loader/macho.c: Likewise.
38023         * loader/i386/multiboot.c: Likewise.
38024         * loader/i386/linux.c: Likewise.
38025         * loader/i386/pc/linux.c: Likewise.
38026         * loader/i386/pc/multiboot2.c: Likewise.
38027         * loader/i386/pc/chainloader.c: Likewise.
38028         * loader/i386/pc/xnu.c: Likewise.
38029         * loader/i386/bsd_trampoline.S: Likewise.
38030         * loader/i386/efi/linux.c: Likewise.
38031         * loader/i386/multiboot_elfxx.c: Likewise.
38032         * loader/i386/bsd_helper.S: Likewise.
38033         * loader/i386/bsd.c: Likewise.
38034         * loader/i386/linux_trampoline.S: Likewise.
38035         * loader/i386/xnu_helper.S: Likewise.
38036         * loader/i386/xnu.c: Likewise.
38037         * loader/i386/bsd_pagetable.c: Likewise.
38038         * loader/i386/multiboot_helper.S: Likewise.
38039         * loader/xnu.c: Likewise.
38040         * loader/xnu_resume.c: Likewise.
38041         * io/gzio.c: Likewise.
38042         * term/efi/console.c: Likewise.
38043         * term/terminfo.c: Likewise.
38044         * term/ieee1275/ofconsole.c: Likewise.
38045         * term/i386/pc/serial.c: Likewise.
38046         * term/i386/pc/vesafb.c: Likewise.
38047         * term/i386/pc/vga.c: Likewise.
38048         * term/usb_keyboard.c: Likewise.
38049         * term/gfxterm.c: Likewise.
38050         * aclocal.m4: Likewise.
38051         * util/lvm.c: Likewise.
38052         * util/grub.d/30_os-prober.in: Likewise.
38053         * util/grub.d/10_hurd.in: Likewise.
38054         * util/console.c: Likewise.
38055         * util/grub-macho2img.c: Likewise.
38056         * util/grub-probe.c: Likewise.
38057         * util/hostfs.c: Likewise.
38058         * util/i386/pc/grub-mkimage.c: Likewise.
38059         * util/i386/pc/grub-setup.c: Likewise.
38060         * util/i386/efi/grub-mkimage.c: Likewise.
38061         * util/grub-mkconfig.in: Likewise.
38062         * util/raid.c: Likewise.
38063         * util/resolve.c: Likewise.
38064         * util/grub-mkdevicemap.c: Likewise.
38065         * util/grub-emu.c: Likewise.
38066         * util/getroot.c: Likewise.
38067         * util/hostdisk.c: Likewise.
38068         * util/usb.c: Likewise.
38069         * util/grub-editenv.c: Likewise.
38070         * util/misc.c: Likewise.
38072 2009-06-10  Felix Zielcke  <fzielcke@z-51.de>
38074         * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
38075         `genparttoollist.sh'.
38076         (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
38077         Add `*.sh' to the list find searches for and change `mdate.sh'
38078         to `mdate-sh'.
38080 2009-06-10  Pavel Roskin  <proski@gnu.org>
38082         * include/grub/multiboot2.h: Provide compatibility defines for
38083         multiboot2.h.
38084         * include/multiboot2.h: Include stdint.h only if needed, using
38085         angle brackets.
38086         * loader/i386/pc/multiboot2.c: Include multiboot2.h after
38087         grub/multiboot2.h.
38088         * loader/ieee1275/multiboot2.c: Likewise.
38089         * loader/multiboot2.c: Likewise.
38090         * loader/multiboot_loader.c: Likewise.
38092         * configure.ac: Use -nostdlib when probing for the target.  It
38093         should not be required to have libc for the target.
38095         * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
38096         they fail without libc headers for the target.
38097         * include/grub/powerpc/libgcc.h: Use weak attribute for all
38098         exports.
38099         * include/grub/sparc64/libgcc.h: Likewise.  Don't use
38100         preprocessor conditionals.
38102         * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c.  The
38103         build system doesn't need to be aware of the tar.c internals.
38105 2009-06-09  Michel Hermier  <michel.hermier@gmail.com>
38107         * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
38109 2009-06-09  Robert Millan  <rmh.grub@aybabtu.com>
38111         * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38112         disk limit to 26 for IDE, Virtio, Xen and SCSI.
38114 2009-06-09  Felix Zielcke  <fzielcke@z-51.de>
38116         * util/i386/pc/grub-install.in: Change the error message if UUIDs
38117         aren't available if ata.mod gets used.
38119 2009-06-09  Oliver Henshaw  <oliver.henshaw@gmail.com>
38121         * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
38122         initialising controller.
38123         * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38125 2009-06-08  Felix Zielcke  <fzielcke@z-51.de>
38127         * util/i386/pc/grub-install.in: Add a parameter --disk-module
38128         to choose between ata and biosdisk module on i386-pc.
38130 2009-06-08  Oliver Henshaw  <oliver.henshaw@gmail.com>
38132         * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38133         Subclass and Programming Interface fields in terms of the 3 byte
38134         Class Code register.
38135         * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38137         * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38138         interface is OHCI.  Add grub_dprintf for symmetry with
38139         bus/usb/uhci.c.
38140         * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38141         interface is UHCI.  Add interf variable for programming
38142         interface.  Print interface with class/subclass.
38144         * bus/usb/ohci.c: Set interf with correct field.
38146         * bus/usb/uhci.c: Remove unneeded doubled lines.
38147         * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38148         Remove whitespace inside comment.
38150 2009-06-08  Robert Millan  <rmh.grub@aybabtu.com>
38152         * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38153         as fallback an equivalent option without depth.
38155 2009-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
38157         Not fail if unable to retrieve C/H/S on LBA disks
38159         * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38160         if unable to retrieve C/H/S on LBA disks
38162 2009-06-08  Pavel Roskin  <proski@gnu.org>
38164         * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38165         about aliasing.
38167 2009-06-08  Felix Zielcke  <fzielcke@z-51.de>
38169         * Makefile.in (uninstall): Remove all $lib_DATA files.
38171 2009-06-08  Vladimir Serbinenko  <phcoder@gmail.com>
38173         Bugfix: install on partitionless device
38175         * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38176         is a whole disk
38178 2009-06-08  Felix Zielcke  <fzielcke@z-51.de>
38180         * Makefile.in (uninstall): Remove all $include_DATA files.
38182 2009-06-08  Felix Zielcke  <fzielcke@z-51.de>
38184         * commands/true.c: New file.  Implement the true and false commands.
38185         * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38186         (true_mod_SOURCES): New variable.
38187         (true_mod_CFLAGS): Likewise.
38188         (true_mod_LDFLAGS): Likewise.
38190 2009-06-05  Colin D Bennett  <colin@gibibit.com>
38192         Optimized font character lookup using binary search instead of linear
38193         search.  Fonts now are required to have the character index ordered by
38194         code point.
38196         * font/font.c (load_font_index): Verify that fonts have ordered
38197         character indices.
38198         (find_glyph): Use binary search instead of linear search to find a
38199         character in a font.
38201 2009-06-05  Michael Scherer  <misc@mandriva.org>
38203         * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38204         uses case sensitive btree.
38205         (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38206         only for case insensitive filesystems.
38208 2009-06-05  Vladimir Serbinenko  <phcoder@gmail.com>
38210         * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38211         * conf/common.rmk (search_mod_CFLAGS): likewise
38213 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38215         * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38216         compensate a compiler bug
38218 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38220         * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38221         instead of '\b'
38223 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38225         Definitions for creating asm symbols with Apple's CC
38227         * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38228         [APPLE_CC] (VARIABLE): likewise
38230 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38232         Disable lnxboot.img when compiled
38233         with Apple's CC
38235         * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38236         pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38237         * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38238         [! APPLE_CC] (CODE_LENG): skip
38239         [! APPLE_CC] (setup_sects): likewise
38240         [! APPLE_CC]: skip filling
38242 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38244         Address in trampolines based on 32-bit registers when compiled
38245         with Apple's CC
38247         * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38248         for addresses
38249         * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38251 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38253         Avoid aliases when compiling with Apple's CC for PCBIOS machine
38255         * kern/misc.c [APPLE_CC] (memcpy): new function
38256         [APPLE_CC] (memmove): likewise
38257         [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38258         (memcpy): define alias conditionally on !APPLE_CC
38259         (memset): likewise
38260         (abort): likewise
38261         * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38262         APPLE_CC are defined
38263         * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38264         (grub_assert_fail): make prototype conditional
38266 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38268         Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38270         * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38271         grub-macho2img
38272         (CLEANFILES): add grub-macho2img
38273         (grub_macho2img_SOURCES): new variable
38274         * kern/i386/pc/startup.S (bss_start): new variable
38275         (bss_end): likewise
38276         * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38277         * util/grub-macho2img.c: new file
38279 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38281         Use objconv when compiling with Apple's CC
38283         * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38284         (efiemu64.o): likewise
38285         (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38286         when compiling with Apple's CC
38287         (efiemu64_s.o): likewise
38288         * configure.ac: check for objconv when compiling with Apple's CC
38289         * genmk.rb: use objconv for modules when compiled with Apple's CC
38291 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38293         Define segment as well as section when compiling with
38294         Apple's CC
38296         * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38297         (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38298         (efiemu_convert_pointer): likewise
38299         (efiemu_set_virtual_address_map): likewise
38300         (efiemu_convert_pointer): likewise
38301         (efiemu_getcrc32): likewise
38302         (init_crc32_table): likewise
38303         (reflect): likewise
38304         * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38305         (GRUB_MOD_DEP): likewise
38307 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38309         Allow a compilation without -mcmodel=large
38311         * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38312         when compiled without -mcmodel=large
38313         (filter_memory_map): remove memory post 4 GiB when compiled
38314         without -mcmodel=large
38315         * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38316         TARGET_CFLAGS when -mcmodel=large isn't supported
38318 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38320         Remove nested functions in efiemu core
38322         * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38324 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38326         Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38328         * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38329         temporary storage
38330         * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38331         using Apple's CC
38332         (grub_cpu_is_tsc_supported): likewise
38333         * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38335 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38337         Absolute addressing through constant with Apple's cc
38339         * kern/i386/pc/startup.S: Define necessary constants
38340         and address through it when using ABS with Apple's CC
38341         * boot/i386/pc/diskboot.S: likewise
38342         * boot/i386/pc/boot.S: likewise
38343         * boot/i386/pc/lnxboot.S: likewise
38344         * boot/i386/pc/cdboot.S: likewise
38345         * mmap/i386/pc/mmap_helper.S: likewise
38346         * commands/i386/pc/drivemap_int13h.S: likewise
38348 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38350         Check if compiler is apple cc
38352         * Makefile.in (ASFLAGS): new variable
38353         (TARGET_ASFLAGS): likewise
38354         (TARGET_MODULE_FORMAT): likewise
38355         (TARGET_APPLE_CC): likewise
38356         (OBJCONV): likewise
38357         (TARGET_IMG_CFLAGS): likewise
38358         (TARGET_CPPFLAGS): add includedir
38359         * configure.ac: call grub_apple_cc and grub_apple_target_cc
38360         (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38361         Check for linker script only if compiler isn't Apple's CC
38362         (TARGET_MODULE_FORMAT): set
38363         (TARGET_APPLE_CC): likewise
38364         (TARGET_ASFLAGS): likewise
38365         (ASFLAGS): likewise
38366         Check for objcopy only if compiler isn't Apple's CC
38367         Check for BSS symbol only if compiler isn't Apple's CC
38368         * genmk.rb: adapt nm options if we use Apple's utils
38369         * aclocal.m4 (grub_apple_cc): new test
38370         (grub_apple_target_cc): likewise
38372 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38374         Simplify sed expressions and improve awk
38376         * Makefile.in (install-local): simplify sed expression
38377         * gencmdlist.sh: likewise
38378         * genmoddep.awk: avoid adding module as a dependency of itself
38380 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38382         Add missing start symbols
38384         * boot/i386/pc/boot.S: add start
38385         * boot/i386/pc/pxeboot.S: likewise
38387 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38389         Fix wrong assumptions with grub-mkimage on EFI
38391         * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38392         (relocate_addresses): consider both r_addend and value at offset
38393         (make_mods_section): zerofill modinfo and header
38394         (convert_elf): write prefix here
38396 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38398         Use .asciz instead of .string
38400         * i386/pc/diskboot.S: use .asciz instead of .string
38401         * i386/pc/boot.S: likewise
38402         * include/grub/dl.h (GRUB_MOD_DEP): likewise
38403         (GRUB_MOD_NAME): likewise
38405 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38407         gfxpayload support
38409         * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38410         * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38411         (grub_video_setup): remove
38412         (grub_video_set_mode): new prototype
38413         * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38414         (vid_mode): remove
38415         (linux_vesafb_res): compile only on PCBIOS
38416         (grub_linux_boot): support gfxpayload
38417         * loader/i386/pc/xnu.c (video_hook): new function
38418         (grub_xnu_set_video): support gfxpayload
38419         * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38420         (DEFAULT_VIDEO_HEIGHT): likewise
38421         (DEFAULT_VIDEO_FLAGS): likewise
38422         (DEFAULT_VIDEO_MODE): new definition
38423         (video_hook): new function
38424         (grub_gfxterm_init): use grub_video_set_mode
38425         * util/grub.d/30_os-prober.in: remove explicit modesetting before
38426         loading xnu
38427         * video/video.c (grub_video_setup): removed
38428         (grub_video_set_mode): new function based on grub_gfxterm_init and
38429         grub_video_setup
38431 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38433         Avoid calling biosdisk in drivemap
38435         * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38436         (revparse_biosdisk): likewise
38437         (list_mappings): derive name from id directly
38438         (grub_cmd_drivemap): use tryparse_diskstring
38440 2009-06-04  Vladimir Serbinenko  <phcoder@gmail.com>
38442         Script fixes
38444         * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38445         (grub_lexer_param): add tokenonhold
38446         (grub_script_create_cmdline): remove cmdline. All callers updated
38447         (grub_script_function_create): make functionname
38448         grub_script_arg. All callers updated
38449         (grub_script_execute_argument_to_string): new prototype
38450         * kern/parser.c (state_transitions): reorder
38451         (grub_parser_cmdline_state): fix a bug and make more compact
38452         * script/sh/execute.c (grub_script_execute_argument_to_string):
38453         make global
38454         (grub_script_execute_cmdline): use new format
38455         * script/sh/function.c (grub_script_function_create): make functionname
38456         grub_script_arg. All callers updated
38457         * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38458         (grub_script_yylex): remove
38459         (grub_script_yylex2): renamed to ...
38460         (grub_script_yylex): ...renamed
38461         parse the expressions like a${b}c
38462         * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38463         (GRUB_PARSER_TOKEN_VAR): remove
38464         (GRUB_PARSER_TOKEN_NAME): likewise
38465         ("if"): declare as typeless
38466         ("while"): likewise
38467         ("function"): likewise
38468         ("else"): likewise
38469         ("then"): likewise
38470         ("fi"): likewise
38471         (text): remove
38472         (argument): likewise
38473         (script): accept empty scripts and make exit on error
38474         (arguments): use GRUB_PARSER_TOKEN_ARG
38475         (function): likewise
38476         (command): move error handling to script
38477         (menuentry): move grub_script_lexer_ref before
38478         * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38479         argument. All callers updated
38481 2009-06-04  Robert Millan  <rmh.grub@aybabtu.com>
38483         Prevent GRUB from probing floppies during boot.
38485         * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38486         * commands/search.c (options): Add --no-floppy.
38487         (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38488         * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38489         --no-floppy when searching for UUIDs.
38491 2009-06-04  Robert Millan  <rmh.grub@aybabtu.com>
38493         Simplify the code duplication in commands/search.c.
38495         * commands/search.c (search_label, search_fs_uuid): Merge into ...
38496         (search_fs): ... this.  Update all users.
38498 2009-06-03  Felix Zielcke  <fzielcke@z-51.de>
38500         * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38502 2009-05-28  Pavel Roskin  <proski@gnu.org>
38504         * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38505         Remove the original symlink explicitly.
38507         * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38508         just one slash.  That's how grub_fshelp_find_file() does it.
38510 2009-05-26  Pavel Roskin  <proski@gnu.org>
38512         * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38513         to `str'.
38515         * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38516         possibly unused.
38518 2009-05-25  Christian Franke  <franke@computer.org>
38520         * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38521         register.
38522         (grub_atapi_identify): Add wait after drive select.
38523         (grub_ata_identify): Do more strict status register check before
38524         calling grub_atapi_identify ().  Suppress error message if status
38525         register is 0x00 after command failure.  Add status register
38526         check after PIO read to avoid bogus identify due to stuck DRQ.
38527         Thanks to Pavel Roskin for testing.
38528         (grub_device_initialize): Remove unsafe status register check.
38529         Thanks to 'phcoder' for problem report and patch.
38530         Prevent sign extension in debug message.
38532 2009-05-23  Colin D Bennett  <colin@gibibit.com>
38534         Cleaned up `include/grub/normal.h'.  Grouped prototypes by
38535         definition file, and functions defined in `normal/menu.c' have had
38536         their prototypes moved to `include/grub/menu.h' for consistency.
38538         * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38539         from normal.h.
38540         (grub_menu_get_entry): Likewise.
38541         (grub_menu_get_timeout): Likewise.
38542         (grub_menu_set_timeout): Likewise.
38543         (grub_menu_execute_entry): Likewise.
38544         (grub_menu_execute_with_fallback): Likewise.
38545         (grub_menu_entry_run): Likewise.
38547         * include/grub/normal.h: Re-ordered and grouped function
38548         prototypes by file that the function is defined in.
38549         (grub_menu_execute_callback): Removed; moved to menu.h.
38550         (grub_menu_get_entry): Likewise.
38551         (grub_menu_get_timeout): Likewise.
38552         (grub_menu_set_timeout): Likewise.
38553         (grub_menu_execute_entry): Likewise.
38554         (grub_menu_execute_with_fallback): Likewise.
38555         (grub_menu_entry_run): Likewise.
38556         (grub_menu_addentry): Renamed from this ...
38557         (grub_normal_add_menu_entry): ... to this.
38559         * normal/main.c (grub_menu_addentry): Renamed from this ...
38560         (grub_normal_add_menu_entry): ... to this.
38562         * script/sh/execute.c (grub_script_execute_menuentry): Update
38563         reference to renamed grub_menu_addentry function.
38565 2009-05-23  Felix Zielcke  <fzielcke@z-51.de>
38567         * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38569 2009-05-22  Pavel Roskin  <proski@gnu.org>
38571         * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38572         * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG.  Define
38573         NESTED_FUNC_ATTR using AH_BOTTOM.  Use regparm(1) only when
38574         compiling for the i386 targets, but not for the utilities.
38576         * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38577         to grub_uint8_t.
38578         (grub_root_drive): Likewise.
38579         * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38580         remove alignment.
38581         (grub_root_drive): Change size to byte.
38582         (grub_start_addr): Remove.
38583         (grub_end_addr): Likewise.
38584         (grub_apm_bios_info): Likewise.
38586 2009-05-21  Felix Zielcke  <fzielcke@z-51.de>
38588         * normal/i386: Remove.
38589         * normal/powerpc: Likewise.
38590         * normal/sparc64: Likewise.
38591         * normal/x86_64: Likewise.
38593 2009-05-19  Vladimir Serbinenko  <phcoder@gmail.com>
38595         * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38596         * loader/i386/linux_trampoline.S: Fix indentation
38597         * loader/i386/xnu_helper.S: Likewise
38599 2009-05-18  Colin D Bennett  <colin@gibibit.com>
38601         Display error messages when parsing a Lua statement fails.
38602         Previously, executing a syntactically invalid statement like
38603         ")foo" or "bar;" would silently fail.
38605         * script/lua/grub_main.c (handle_lua_error): New function.
38606         (grub_lua_parse_line): Improved reporting of Lua parser and
38607         execution errors.
38609 2009-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
38611         Remove -Werror which causes build to fail on some systems
38613         * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38614         * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38615         * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38617 2009-05-17  Vladimir Serbinenko  <phcoder@gmail.com>
38619         trampoline for linux on 64-bit platform
38621         * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38622         loader/i386/efi/linux_trampoline.S
38623         * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38624         declaration
38625         * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38626         here
38627         * loader/i386/linux_trampoline.S: moved here
38628         * loader/i386/efi/linux.c (allocate_pages): reserve space for
38629         trampoline
38630         (jumpvector): removed
38631         (grub_linux_trampoline_start): new declaration
38632         (grub_linux_trampoline_end): likewise
38633         (grub_linux_boot): use trampoline when on 64-bit platform
38634         * loader/i386/linux.c: likewise
38636 2009-05-16  Pavel Roskin  <proski@gnu.org>
38638         * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38639         const to avoid a warning.
38640         (grub_lua_setenv): Likewise.
38641         * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38642         lmsg to fix a warning.
38644 2009-05-16  Felix Zielcke  <fzielcke@z-51.de>
38646         * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38647         (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38648         * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38649         (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38650         * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38651         (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38652         * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38653         (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38655 2009-05-16  Felix Zielcke  <fzielcke@z-51.de>
38657         * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38659 2009-05-16  Bean  <bean123ch@gmail.com>
38661         * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38662         (lua_mod_SOURCES): New variable.
38663         (lua_mod_CFLAGS): Likewise.
38664         (lua_mod_LDFLAGS): Likewise.
38666         * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38667         (setjmp_mod_SOURCES): New variable.
38668         (setjmp_mod_CFLAGS): Likewise.
38669         (setjmp_LDFLAGS): Likewise.
38671         * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38672         (setjmp_mod_SOURCES): New variable.
38673         (setjmp_mod_CFLAGS): Likewise.
38674         (setjmp_LDFLAGS): Likewise.
38676         * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38677         (setjmp_mod_SOURCES): New variable.
38678         (setjmp_mod_CFLAGS): Likewise.
38679         (setjmp_LDFLAGS): Likewise.
38681         * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38682         (setjmp_mod_SOURCES): New variable.
38683         (setjmp_mod_CFLAGS): Likewise.
38684         (setjmp_LDFLAGS): Likewise.
38686         * normal/i386/setjmp.S: Moved from here ...
38687         * lib/i386/setjmp.S: ... Moved here
38688         * normal/x86_64/setjmp.S: Moved from here ...
38689         * lib/x86_64/setjmp.S: ... Moved here
38690         * normal/powerpc/setjmp.S: Moved from here ...
38691         * lib/powerpc/setjmp.S: ... Moved here
38692         * normal/sparc64/setjmp.S: Moved from here ...
38693         * lib/sparc64/setjmp.S: ... Moved here
38695         * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38696         returns_twice in mingw.
38698         * script/lua/grub_lib.c: New file.
38699         * script/lua/grub_lib.h: Likewise.
38700         * script/lua/grub_lua.h: Likewise.
38701         * script/lua/grub_main.c: Likewise.
38702         * script/lua/lapi.c: Likewise.
38703         * script/lua/lapi.h: Likewise.
38704         * script/lua/lauxlib.c: Likewise.
38705         * script/lua/lauxlib.h: Likewise.
38706         * script/lua/lbaselib.c: Likewise.
38707         * script/lua/lcode.c: Likewise.
38708         * script/lua/lcode.h: Likewise.
38709         * script/lua/ldblib.c: Likewise.
38710         * script/lua/ldebug.c: Likewise.
38711         * script/lua/ldebug.h: Likewise.
38712         * script/lua/ldo.c: Likewise.
38713         * script/lua/ldo.h: Likewise.
38714         * script/lua/ldump.c: Likewise.
38715         * script/lua/lfunc.c: Likewise.
38716         * script/lua/lfunc.h: Likewise.
38717         * script/lua/lgc.c: Likewise.
38718         * script/lua/lgc.h: Likewise.
38719         * script/lua/linit.c: Likewise.
38720         * script/lua/liolib.c: Likewise.
38721         * script/lua/llex.c: Likewise.
38722         * script/lua/llex.h: Likewise.
38723         * script/lua/llimits.h: Likewise.
38724         * script/lua/lmathlib.c: Likewise.
38725         * script/lua/lmem.c: Likewise.
38726         * script/lua/lmem.h: Likewise.
38727         * script/lua/loadlib.c: Likewise.
38728         * script/lua/lobject.c: Likewise.
38729         * script/lua/lobject.h: Likewise.
38730         * script/lua/lopcodes.c: Likewise.
38731         * script/lua/lopcodes.h: Likewise.
38732         * script/lua/loslib.c: Likewise.
38733         * script/lua/lparser.c: Likewise.
38734         * script/lua/lparser.h: Likewise.
38735         * script/lua/lstate.c: Likewise.
38736         * script/lua/lstate.h: Likewise.
38737         * script/lua/lstring.c: Likewise.
38738         * script/lua/lstring.h: Likewise.
38739         * script/lua/lstrlib.c: Likewise.
38740         * script/lua/ltable.c: Likewise.
38741         * script/lua/ltable.h: Likewise.
38742         * script/lua/ltablib.c: Likewise.
38743         * script/lua/ltm.c: Likewise.
38744         * script/lua/ltm.h: Likewise.
38745         * script/lua/lua.h: Likewise.
38746         * script/lua/luaconf.h: Likewise.
38747         * script/lua/lualib.h: Likewise.
38748         * script/lua/lundump.c: Likewise.
38749         * script/lua/lundump.h: Likewise.
38750         * script/lua/lvm.c: Likewise.
38751         * script/lua/lvm.h: Likewise.
38752         * script/lua/lzio.c: Likewise.
38753         * script/lua/lzio.h: Likewise.
38755 2009-05-16  Bean  <bean123ch@gmail.com>
38757         * include/grub/kernel.h (grub_module_header_types): Add type
38758         OBJ_TYPE_CONFIG.
38760         * kern/main.c (grub_load_config): New function.
38761         (grub_main): Call grub_load_config to read boot config.
38763         * grub-mkimage (generate_image): New parameter config_path.
38764         (options): New option --config.
38765         (main): Parse --config option, and pass it to generate_image.
38767 2009-05-14  Christian Franke  <franke@computer.org>
38769         * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38770         This fixes build on Cygwin.
38772 2009-05-14  Pavel Roskin  <proski@gnu.org>
38774         * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38775         jump.  This saves two bytes, so the typical case of 2 swapped
38776         drives would fit 32 bytes.
38778 2009-05-13  Pavel Roskin  <proski@gnu.org>
38780         * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38781         grub_uint32_t to avoid a warning.
38783         * loader/i386/linux.c (allocate_pages): When assigning
38784         real_mode_mem, cast through grub_size_t to fix a warning.  The
38785         code already makes sure that the value would fit a pointer.
38786         (grub_linux_setup_video): Cast render_target->data to
38787         grub_size_t to fix a warning.
38789 2009-05-13  Javier Martín  <lordhabbit@gmail.com>
38791         * commands/i386/pc/drivemap.c: New file - implement drivemap
38792         command.
38793         * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38794         * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38796 2009-05-13  Pavel Roskin  <proski@gnu.org>
38798         * util/i386/pc/grub-setup.c (setup): Remove unused variable
38799         embedding_area_exists.
38801 2009-05-13  Robert Millan  <rmh.grub@aybabtu.com>
38803         * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38804         it easier to understand / work with.
38805         Improve warning messages for cases where there's no embedding area,
38806         or when it is too small (or core.img too large).
38808 2009-05-13  Pavel Roskin  <proski@gnu.org>
38810         * loader/i386/pc/multiboot2.c: Add necessary includes for
38811         grub_multiboot2_real_boot().
38813         * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38814         PX record is always little-endian.  We only need the lower 2
38815         bytes of the mode.
38817         * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38818         facilitate code reuse.
38819         (grub_cpio_mount): Use "struct head", not a char buffer.  This
38820         fixes a warning reported by gcc 4.4.
38822         * kernel/disk.c (grub_disk_read): Use void pointer for the
38823         buffer.
38824         (grub_disk_write): Use const void pointer for the buffer.
38825         Adjust all callers.  Remove unnecessary casts.
38827 2009-05-10  Robert Millan  <rmh.grub@aybabtu.com>
38829         * util/i386/pc/grub-install.in: Update copyright year.
38831 2009-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
38833         gptsync
38835         * commands/gptsync.c: new file
38836         * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38837         (gptsync_mod_SOURCES): new variable
38838         (gptsync_mod_CFLAGS): likewise
38839         (gptsync_mod_LDFLAGS): likewise
38840         * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38841         new definition
38842         (GRUB_PC_PARTITION_TYPE_HFS): likewise
38843         * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38844         * conf/i386-ieee1275.rmk: likewise
38845         * conf/i386-pc.rmk: likewise
38846         * conf/powerpc-ieee1275.rmk: likewise
38848 2009-05-09  Vladimir Serbinenko  <phcoder@gmail.com>
38850         Fixed grub-emu
38852         * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38853         (grub_dl_ref): likewise
38855 2009-05-08  Robert Millan  <rmh.grub@aybabtu.com>
38857         * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38858         split in two functions (one for msdos and one for gpt).
38860 2009-05-08  Pavel Roskin  <proski@gnu.org>
38862         * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38863         not modified.
38865         * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38866         uninitialized err[0] and err[1].  Rename them to bad1 and bad2.
38867         Initialize them with -1.  Add sanity check for bad1.  Eliminate
38868         nerr variable.
38870 2009-05-08  David S. Miller  <davem@davemloft.net>
38872         * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38874 2009-05-06  Robert Millan  <rmh.grub@aybabtu.com>
38876         * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38877         existence.
38879 2009-05-05  Felix Zielcke  <fzielcke@z-51.de>
38881         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38882         `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38884 2009-05-05  David S. Miller  <davem@davemloft.net>
38886         * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38888 2009-05-05  Pavel Roskin  <proski@gnu.org>
38890         * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38891         of grub_dl_ref() and grub_dl_unref().
38892         * commands/parttool.c: Remove preprocessor conditionals around
38893         grub_dl_ref() and grub_dl_unref().
38894         * fs/affs.c: Likewise.
38895         * fs/afs.c: Likewise.
38896         * fs/cpio.c: Likewise.
38897         * fs/ext2.c: Likewise.
38898         * fs/fat.c: Likewise.
38899         * fs/hfs.c: Likewise.
38900         * fs/hfsplus.c: Likewise.
38901         * fs/iso9660.c: Likewise.
38902         * fs/jfs.c: Likewise.
38903         * fs/minix.c: Likewise.
38904         * fs/ntfs.c: Likewise.
38905         * fs/reiserfs.c: Likewise.
38906         * fs/sfs.c: Likewise.
38907         * fs/udf.c: Likewise.
38908         * fs/ufs.c: Likewise.
38909         * fs/xfs.c: Likewise.
38910         * include/grub/dl.h: Likewise.
38911         * loader/xnu.c: Likewise.
38913 2009-05-04  Pavel Roskin  <proski@gnu.org>
38915         * commands/acpi.c: Remove unused variable my_mod.
38916         * partmap/amiga.c: Likewise.
38917         * partmap/apple.c: Likewise.
38918         * partmap/gpt.c: Likewise.
38919         * partmap/pc.c: Likewise.
38920         * partmap/sun.c: Likewise.
38921         * term/gfxterm.c: Likewise.
38922         * term/i386/pc/vesafb.c: Likewise.
38923         * term/i386/pc/vga.c: Likewise.
38925 2009-05-04  David S. Miller  <davem@davemloft.net>
38927         * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38928         pointer args to grub_ieee1275_get_property().
38930         * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38932         * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38933         devices, and do not traverse down under controller nodes.
38935         * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38936         (grub_ofdisk_open): Use it to un-escape "," characters.
38937         * kern/disk.c (find_part_sep): New.
38938         (grub_disk_open): Use it to find the first non-escaped ','
38939         character in the disk name.
38940         * util/ieee1275/devicemap.c (escape_of_path): New.
38941         (grub_util_emit_devicemap_entry): Use it.
38942         * util/sparc64/ieee1275/grub-install.in: Update script to
38943         strip partition specifiers properly by not triggering on
38944         '\' escaped ',' characters.
38946 2009-05-04  Robert Millan  <rmh.grub@aybabtu.com>
38948         * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38949         to 0x300.
38950         * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38951         resolutions.
38952         (linux_vesafb_modes): Add a lot of additional modes to the list (based
38953         on documentation from Wikipedia).
38955 2009-05-04  Pavel Roskin  <proski@gnu.org>
38957         * disk/ata.c: Spelling fixes.
38958         * disk/raid.c: Likewise.
38959         * disk/usbms.c: Likewise.
38960         * disk/dmraid_nvidia.c: Likewise.
38961         * kern/ieee1275/openfw.c: Likewise.
38962         * kern/ieee1275/init.c: Likewise.
38963         * kern/ieee1275/cmain.c: Likewise.
38964         * boot/i386/pc/cdboot.S: Likewise.
38965         * video/readers/png.c: Likewise.
38966         * video/i386/pc/vbe.c: Likewise.
38967         * fs/udf.c: Likewise.
38968         * fs/hfs.c: Likewise.
38969         * fs/reiserfs.c: Likewise.
38970         * efiemu/runtime/efiemu.c: Likewise.
38971         * efiemu/main.c: Likewise.
38972         * efiemu/mm.c: Likewise.
38973         * include/grub/elf.h: Likewise.
38974         * include/grub/xnu.h: Likewise.
38975         * include/grub/usbdesc.h: Likewise.
38976         * include/grub/usb.h: Likewise.
38977         * include/grub/script_sh.h: Likewise.
38978         * include/grub/lib/LzmaEnc.h: Likewise.
38979         * include/grub/efiemu/efiemu.h: Likewise.
38980         * include/grub/command.h: Likewise.
38981         * normal/menu.c: Likewise.
38982         * normal/main.c: Likewise.
38983         * normal/datetime.c: Likewise.
38984         * bus/usb/uhci.c: Likewise.
38985         * mmap/i386/uppermem.c: Likewise.
38986         * mmap/mmap.c: Likewise.
38987         * commands/acpi.c: Likewise.
38988         * commands/test.c: Likewise.
38989         * partmap/apple.c: Likewise.
38990         * font/font.c: Likewise.
38991         * loader/sparc64/ieee1275/linux.c: Likewise.
38992         * loader/macho.c: Likewise.
38993         * loader/i386/bsd_trampoline.S: Likewise.
38994         * loader/i386/bsd.c: Likewise.
38995         * loader/xnu.c: Likewise.
38996         * term/i386/pc/vesafb.c: Likewise.
38997         * term/usb_keyboard.c: Likewise.
38998         * util/resolve.c: Likewise.
38999         * util/getroot.c: Likewise.
39001 2009-05-04  Felix Zielcke  <fzielcke@z-51.de>
39003         * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
39005 2009-05-04  Robert Millan  <rmh.grub@aybabtu.com>
39007         * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
39008         build error.
39010 2009-05-04  Robert Millan  <rmh.grub@aybabtu.com>
39012         * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
39013         parameter only available on BIOS.
39015 2009-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
39017         Removed wrong semicolon in declaration
39019         * grub/misc.h (grub_dprintf): remove semicolon
39021 2009-05-04  Robert Millan  <rmh.grub@aybabtu.com>
39023         * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
39024         (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
39025         is done by grub_cmd_linux() now).
39026         [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
39027         restore video to text mode.
39028         (grub_cmd_linux): Default `vid_mode' initialization to 0, which
39029         indicates lack of "vga=" parameter.  "vga=0" is mapped to
39030         `GRUB_LINUX_VID_MODE_NORMAL'.
39032 2009-05-04  Felix Zielcke  <fzielcke@z-51.de>
39034         * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
39035         `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
39036         and `normal/script.c'.  Add `kern/rescue_reader.c',
39037         `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
39038         `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
39039         `grub_script.tab.c'.
39041         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39042         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39043         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39044         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
39045         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39047         * Makefile.in: Remove duplicated 2008 in Copyright line.
39049 2009-05-04  Robert Millan  <rmh.grub@aybabtu.com>
39051         * util/misc.c (grub_util_warn): New function.  Emits a warning
39052         unconditionally.
39053         * include/grub/util/misc.h (grub_util_warn): New declaration.
39055         * util/i386/pc/grub-install.in: Understand --force and pass it down
39056         to grub-setup.
39058         * util/i386/pc/grub-setup.c (main): Understand --force and pass it
39059         down to setup().
39060         (setup): Improve error messages and add warnings when requested to
39061         install in odd layouts.  Refuse to install using blocklists unless
39062         --force was set.
39064 2009-05-04  martin f. krafft  <madduck@madduck.net>
39066         * disk/raid.c (grub_raid_scan_device): Improve debug message.
39068 2009-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
39070         Updated copyright year
39072         * fs/hfsplus.c: updated copyright year
39074 2009-05-04  Vladimir Serbinenko  <phcoder@gmail.com>
39076         HFS+ UUID
39078         * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
39079         in the space previously used by unused3
39080         (grub_hfsplus_uuid): new function
39081         (grub_hfsplus_fs): added uuid field
39083 2009-05-03  Pavel Roskin  <proski@gnu.org>
39085         * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
39086         suppress warnings.  It's no longer needed.
39087         * disk/host.c: Likewise.
39088         * disk/ata_pthru.c: Likewise.
39089         * disk/loopback.c: Likewise.
39090         * hook/datehook.c: Likewise.
39091         * parttool/pcpart.c: Likewise.
39092         * fs/i386/pc/pxe.c: Likewise.
39093         * fs/ntfscomp.c: Likewise.
39094         * efiemu/main.c: Likewise.
39095         * mmap/mmap.c: Likewise.
39096         * commands/crc.c: Likewise.
39097         * commands/hexdump.c: Likewise.
39098         * commands/hdparm.c: Likewise.
39099         * commands/acpi.c: Likewise.
39100         * commands/echo.c: Likewise.
39101         * commands/minicmd.c: Likewise.
39102         * commands/blocklist.c: Likewise.
39103         * commands/memrw.c: Likewise.
39104         * commands/loadenv.c: Likewise.
39105         * commands/usbtest.c: Likewise.
39106         * commands/lsmmap.c: Likewise.
39107         * commands/boot.c: Likewise.
39108         * commands/parttool.c: Likewise.
39109         * commands/configfile.c: Likewise.
39110         * commands/search.c: Likewise.
39111         * commands/ieee1275/suspend.c: Likewise.
39112         * commands/cat.c: Likewise.
39113         * commands/i386/pc/pxecmd.c: Likewise.
39114         * commands/i386/pc/play.c: Likewise.
39115         * commands/i386/pc/halt.c: Likewise.
39116         * commands/i386/pc/vbeinfo.c: Likewise.
39117         * commands/i386/pc/vbetest.c: Likewise.
39118         * commands/lspci.c: Likewise.
39119         * commands/date.c: Likewise.
39120         * commands/handler.c: Likewise.
39121         * commands/ls.c: Likewise.
39122         * commands/test.c: Likewise.
39123         * commands/cmp.c: Likewise.
39124         * commands/efi/loadbios.c: Likewise.
39125         * commands/efi/fixvideo.c: Likewise.
39126         * commands/halt.c: Likewise.
39127         * commands/help.c: Likewise.
39128         * commands/reboot.c: Likewise.
39129         * hello/hello.c: Likewise.
39130         * script/sh/main.c: Likewise.
39131         * loader/xnu.c: Likewise.
39132         * term/terminfo.c: Likewise.
39133         * term/i386/pc/serial.c: Likewise.
39134         * term/usb_keyboard.c: Likewise.
39136 2009-05-03  David S. Miller  <davem@davemloft.net>
39138         * normal/menu.c: Include grub/parser.h
39140 2009-05-03  Pavel Roskin  <proski@gnu.org>
39142         * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39143         not char*.
39144         * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39145         Suggested by Javier Martín <lordhabbit@gmail.com>
39147         * util/i386/pc/grub-mkrescue.in: Allow for the case when
39148         efiemu??.o doesn't exist.
39149         * util/i386/pc/grub-install.in: Likewise.  Use "cp -f" for
39150         copying.
39152 2009-05-03  Bean  <bean123ch@gmail.com> Vladimir Serbinenko  <phcoder@gmail.com>
39154         FreeBSD 64-bit support
39156         * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39157         and loader/i386/bsd_trampoline.S
39158         (bsd_mod_ASFLAGS): new variable
39159         * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39160         (FREEBSD_MODTYPE_KERNEL64): likewise
39161         (grub_bsd64_trampoline_start): likewise
39162         (grub_bsd64_trampoline_end): likewise
39163         (grub_bsd64_trampoline_selfjump): likewise
39164         (grub_bsd64_trampoline_gdt): likewise
39165         * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39166         * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39167         * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39168         * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39169         * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39170         of "attrib" member
39171         * loader/i386/bsd_pagetable.c: new file
39172         * loader/i386/bsd_trampoline.S: likewise
39173         * loader/i386/bsd.c (ALIGN_QWORD): new macro
39174         (ALIGN_VAR): likewise
39175         (entry_hi): new variable
39176         (kern_end_mdofs): likewise
39177         (is_64bit): likewise
39178         (grub_freebsd_add_meta): use ALIGN_VAR
39179         (grub_e820_mmap): new declaration
39180         (grub_freebsd_add_mmap): new function
39181         (grub_freebsd_add_meta_module): support 64 bit kernels
39182         (grub_freebsd_list_modules): use ALIGN_VAR
39183         (gdt_descriptor): new declaration
39184         (grub_freebsd_boot): support 64 bit kernels
39185         (grub_bsd_elf64_hook): new function
39186         (grub_bsd_load_elf): support elf64
39188 2009-05-03  Bean  <bean123ch@gmail.com>
39190         * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39191         after we get the result of if statement.
39193 2009-05-03  Bean  <bean123ch@gmail.com>
39195         * Makefile.in (enable_efiemu): New variable.
39197         * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39198         set.
39199         (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39200         path.
39201         (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39202         path, add -mno-red-zone option.
39203         (efiemu64_s.o): Likewise.
39204         (efiemu64.o): Use macro $^ for source file.
39206         * configure.ac (--enable-efiemu): New option.
39208 2009-05-03  Vladimir Serbinenko  <phcoder@gmail.com>
39210         xnu support
39212         * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39213         (pkglib_MODULES): add xnu.mod
39214         (xnu_mod_SOURCES): new variable
39215         (xnu_mod_CFLAGS): likewise
39216         (xnu_mod_LDFLAGS): likewise
39217         (xnu_mod_ASFLAGS): likewise
39218         * conf/i386-pc.rmk: likewise
39219         * conf/x86_64-efi.rmk: likewise
39220         * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39221         new declaration
39222         * include/grub/i386/macho.h: new file
39223         * include/grub/i386/xnu.h: likewise
39224         * include/grub/macho.h: likewise
39225         * include/grub/machoload.h: likewise
39226         * include/grub/x86_64/macho.h: likewise
39227         * include/grub/x86_64/xnu.h: likewise
39228         * include/grub/xnu.h: likewise
39229         * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39230         * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39231         * loader/i386/efi/xnu.c: new file
39232         * loader/i386/pc/xnu.c: likewise
39233         * loader/i386/xnu.c: likewise
39234         * loader/i386/xnu_helper.S: likewise
39235         * loader/macho.c: likewise
39236         * loader/xnu.c: likewise
39237         * loader/xnu_resume.c: likewise
39238         * util/grub-dumpdevtree: likewise
39239         * include/grub/i386/pit.h: include grub/err.h
39240         (grub_pit_wait): export
39241         * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39243 2009-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
39245         Efiemu
39247         * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39248         _linux_efi, linux_efi.
39249         new files in grub-emu
39250         new targets efiemu32.o and efiemu64.o
39251         * loader/linux_normal_efiemu.c: likewise
39252         * loader/i386/efi/linux.c: added preliminary efiemu support
39253         * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39254         files to copy
39255         * include/grub/autoefi.h: new file
39256         * include/grub/i386/efiemu.h: likewise
39257         * include/grub/i386/pc/efiemu.h: likewise
39258         * include/grub/efi/api.h: add LL suffix when necessary
39259         new definitions relating to tables
39260         * include/grub/efiemu/efiemu.h: new file
39261         * include/grub/efiemu/runtime.h: likewise
39262         * efiemu/prepare.c: likewise
39263         * efiemu/loadcore_common.c: likewise
39264         * efiemu/loadcore64.c: likewise
39265         * efiemu/runtime/efiemu.sh: likewise
39266         * efiemu/runtime/efiemu.S: likewise
39267         * efiemu/runtime/efiemu.c: likewise
39268         * efiemu/runtime/config.h: likewise
39269         * efiemu/prepare32.c: likewise
39270         * efiemu/main.c: likewise
39271         * efiemu/modules/pnvram.c: likewise
39272         * efiemu/modules/i386: likewise
39273         * efiemu/modules/i386/pc: likewise
39274         * efiemu/modules/acpi.c: likewise
39275         * efiemu/i386/pc/cfgtables.c: likewise
39276         * efiemu/i386/loadcore64.c: likewise
39277         * efiemu/i386/loadcore32.c: likewise
39278         * efiemu/prepare64.c: likewise
39279         * efiemu/loadcore.c: likewise
39280         * efiemu/symbols.c: likewise
39281         * efiemu/mm.c: likewise
39282         * efiemu/loadcore32.c: likewise
39284 2009-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
39286         ACPI spoofing
39288         * commands/acpi.c: new file
39289         * commands/i386/pc/acpi.c: likewise
39290         * commands/efi/acpi.c: likewise
39291         * include/grub/acpi.h: likewise
39292         * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39293         (acpi_mod_SOURCES): new variable
39294         (acpi_mod_CFLAGS): likewise
39295         (acpi_mod_LDFLAGS): likewise
39296         * conf/i386-efi.rmk: likewise
39297         * conf/x86_64-efi.rmk: likewise
39299 2009-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
39301         Missing part from mmap patch
39303         * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39304         (grub_mmap_unregister)
39305         (grub_mmap_free_and_unregister): use grub_mmap_register
39307 2009-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
39309         Mmap services
39311         * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39312         * loader/i386/linux.c (find_mmap_size): likewise
39313         (allocate_pages): likewise
39314         * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39315         (grub_fill_multiboot_mmap): likewise
39316         (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39317         * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39318         * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39319         (OPENBSD_MMAP_RESERVED): likewise
39320         * include/grub/i386/pc/memory.h: include grub/memory.h
39321         (grub_lower_mem): removed
39322         (grub_upper_mem): likewise
39323         (GRUB_MACHINE_MEMORY_ACPI): new definition
39324         (GRUB_MACHINE_MEMORY_NVS): likewise
39325         (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39326         (GRUB_MACHINE_MEMORY_HOLE): likewise
39327         (grub_machine_mmap_register): likewise
39328         (grub_machine_mmap_unregister): likewise
39329         (grub_machine_get_upper): likewise
39330         (grub_machine_get_lower): likewise
39331         (grub_machine_get_post64): likewise
39332         * include/grub/i386/efi/memory.h: new file
39333         * include/grub/x86_64/efi/memory.h: likewise
39334         * include/grub/efi/memory.h: likewise
39335         * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39336         (mmap_mod_SOURCES): new variable
39337         (mmap_mod_LDFLAGS): likewise
39338         (mmap_mod_ASFLAGS): likewise
39339         * conf/i386-coreboot.rmk: likewise
39340         * conf/i386-ieee1275.rmk: likewise
39341         * conf/i386-efi.rmk: likewise
39342         * conf/x86_64-efi.rmk: likewise
39343         * include/grub/types.h (UINT_TO_PTR): new macro
39344         (PTR_TO_UINT32): likewise
39345         (PTR_TO_UINT64): likewise
39346         * include/grub/memory.h: new file
39347         * mmap/i386/pc/mmap.c: likewise
39348         * mmap/i386/pc/mmap_helper.S: likewise
39349         * mmap/i386/uppermem.c: likewise
39350         * mmap/mmap.c: likewise
39351         * mmap/efi/mmap.c: likewise
39352         * kern/i386/coreboot/init.c (grub_machine_init): don't use
39353         grub_upper_mem
39354         * kern/i386/pc/init.c (grub_lower_mem): removed variable
39355         (grub_upper_mem): likewise
39356         (grub_machine_init): don't use grub_upper_mem,
39357         make grub_lower_mem local
39358         * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39359         grub_mmap_iterate and grub_mmap_get_upper
39360         (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39362 2009-05-02  Bean  <bean123ch@gmail.com>
39364         * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39365         script/sh/parser.y.
39366         (pkglib_MODULES): Add normal.mod and sh.mod.
39367         (normal_SOURCES): New variable.
39368         (normal_mod_CFLAGS): Likewise.
39369         (normal_mod_LDFLAGS): Likewise.
39370         (sh_mod_SOURCES): Likewise.
39371         (sh_mod_CFLAGS): Likewise.
39372         (sh_mod_LDFLAGS): Likewise.
39374         * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39375         script/sh/lexer.c_DEPENDENCIES.
39376         (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39377         kern/rescue_reader.c and kern/rescue_parser.c.
39378         (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39379         (grub_emu_SOURCES): Change source files.
39380         (pkglib_MODULES): Remove normal.mod.
39381         (normal_SOURCES): Removed.
39382         (normal_mod_CFLAGS): Likewise.
39383         (normal_mod_LDFLAGS): Likewise.
39384         * conf/i386-coreboot.rmk: Likewise.
39385         * conf/i386-efi.rmk: Likewise.
39386         * conf/i386-ieee1276.rmk: Likewise.
39387         * conf/powerpc-ieee1275.rmk: Likewise.
39388         * conf/sparc64-ieee1275.rmk: Likewise.
39389         * conf/x86_64-efi.rmk: Likewise.
39391         * include/grub/command.h (grub_command_execute): New inline function.
39393         * include/grub/menu.h (grub_menu_entry): Removed commands field.
39395         * include/grub/normal.h: Remove <grub/setjmp.h>.
39396         (grub_fs_module_list): Moved to normal/autofs.c.
39397         (grub_exit_env): Removed.
39398         (grub_command_execute): Likewise.
39399         (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39400         parameter script.
39401         (read_command_list): New function declaration.
39402         (read_fs_list): Likewise.
39404         * include/parser.h: Include <grub/reader.h>.
39405         (grub_parser_split_cmdline): Change type of getline parameter.
39406         (grub_parser): New structure.
39407         (grub_parser_class): New variable.
39408         (grub_parser_execute): New function declaration.
39409         (grub_register_rescue_parser): Likewise.
39410         (grub_parser_register): New inline function.
39411         (grub_parser_unregister): Likewise.
39412         (grub_parser_get_current): Likewise.
39413         (grub_parser_set_current): Likewise.
39415         * include/grub/reader.h: New file.
39416         * kern/reader.c: Likewise.
39417         * kern/rescue_parser.c: Likewise.
39418         * kern/rescue_reader.c: Likewise.
39419         * normal/autofs.c: Likewise.
39420         * normal/dyncmd.c: Likewise.
39422         * include/grub/rescue.h: Removed.
39423         * normal/command.h: Likewise.
39425         * include/grub/script.h: Moved to ...
39426         * include/grub/script_sh.h: ... Moved here.
39427         * normal/execute.c: Moved to ...
39428         * script/sh/execute.c: ... Moved here.
39429         * normal/function.c: Moved to ...
39430         * script/sh/function.c: ... Moved here.
39431         * normal/lexer.c: Moved to ...
39432         * script/sh/lexer.c: ... Moved here.
39433         * normal/parser.y: Moved to ...
39434         * script/sh/parser.y: ... Moved here.
39435         * normal/script.c: Moved to ...
39436         * script/sh/script.c: ... Moved here.
39438         * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39439         <grub/reader.h>.
39440         (grub_exit_env): Removed.
39441         (fs_module_list): Moved to normal/autofs.c.
39442         (grub_file_getline): Don't handle comment here.
39443         (free_menu): Skip removed field entry->commands.
39444         (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39445         script parameter.
39446         (read_config_file): Removed nested parameter, change getline function.
39447         (grub_enter_normal_mode): Removed.
39448         (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39449         (read_command_list): Likewise.
39450         (autoload_fs_module): Moved to normal/autofs.c.
39451         (read_fs_list): Likewise.
39452         (reader_nested): New variable.
39453         (grub_normal_execute): Run parser.sh to switch to sh parser.
39454         (grub_cmd_rescue): Removed.
39455         (cmd_normal): Removed.
39456         (grub_cmd_normal): Unregister itself at the beginning. Don't register
39457         rescue command.
39458         (grub_cmdline_run): New function.
39459         (grub_normal_reader_init): Likewise.
39460         (grub_normal_read_line): Likewise.
39461         (grub_env_write_pager): Likewise.
39462         (cmdline): New variable.
39463         (grub_normal_reader): Likewise.
39464         (GRUB_MOD_INIT): Register normal reader and set as current, register
39465         pager hook, register normal command with grub_register_command_prio,
39466         so that it won't show up in command.lst.
39467         (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39468         grub_fs_autoload_hook.
39470         * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39471         (grub_menu_execute_entry): Replace grub_script_execute with
39472         grub_parser_execute, change parameter to grub_command_execute.
39474         * normal/menu_text.c: Remove <grub/script.h>.
39476         * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39477         and <grub/parser.h>.
39478         (run): Change editor_getline to use new parser interface. Change
39479         parameter to grub_command_execute.
39481         * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39482         <grub/reader.h> and <grub/parser.h>.
39483         (grub_load_normal_mode): Execute normal command.
39484         (grub_main): Call grub_register_core_commands,
39485         grub_register_rescue_parser and grub_register_rescue_reader, use
39486         grub_reader_loop to enter input loop.
39488         * kern/parser.c (grub_parser_split_cmdline): Change type of
39489         getline parameter.
39490         (grub_parser_class): New variable.
39491         (grub_parser_execute): New function.
39493         * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39494         * loader/multiboot2.c: Likewise.
39495         * loader/sparc64/ieee1275/linux.c: Likewise.
39497         * util/grub-emu.c (read_command_list): New dummy function.
39499 2009-05-02  Robert Millan  <rmh.grub@aybabtu.com>
39501         * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39502         count to 16 for CCISS and IDA.
39504 2009-05-02  Robert Millan  <rmh.grub@aybabtu.com>
39506         * normal/menu_text.c  (grub_wait_after_message): Print a newline
39507         after waiting for user input.
39509         * loader/i386/linux.c: Include `<grub/normal.h>'.
39510         (grub_cmd_linux): Improve the error message about `ask' mode, by
39511         waiting for user input so it's not missed (we can do this, since
39512         user requested interaction).
39514 2009-05-02  Vladimir Serbinenko  <phcoder@gmail.com>
39516         Added missing lst to grub-mkrescue
39518         * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39519         and ${input_dir}/parttool.lst
39521 2009-04-30  David S. Miller  <davem@davemloft.net>
39523         * util/hostdisk.c (device_is_wholedisk): New function.
39524         (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39525         zero only if device_is_wholedisk() returns true.
39527         * util/hostdisk.c (convert_system_partition_to_system_disk):
39528         Handle virtual disk devices named /dev/vdiskX as found on sparc
39529         and powerpc.
39531         * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39532         lettered partition specifier is found, convert to numbered.
39534 2009-04-29  David S. Miller  <davem@davemloft.net>
39536         * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39537         * include/grub/sparc64/ieee1275/memory.h: Likewise.
39539         * normal/command.c: Add missing newline at end of file.
39541         * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39542         warnings.
39543         * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39544         * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39545         grub_ofdisk_read): Likewise, and deal similarly with the fact that
39546         ihandles have a 32-bit type but need to be stored in a "void *".
39548 2009-04-28  Pavel Roskin  <proski@gnu.org>
39550         * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39551         not disk.  Adjust all dependencies.
39552         (grub_fs_uuid_close): Use grub_device_close(), not
39553         grub_disk_close().
39555         * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39556         parent's partition, don't copy it by reference, as it gets freed
39557         on close.
39559 2009-04-27  Vladimir Serbinenko  <phcoder@gmail.com>
39561         Preboot hooks support
39563         * commands/boot.c (struct grub_preboot_t): new declaration
39564         (preboots_head): new variable
39565         (preboots_tail): likewise
39566         (grub_loader_register_preboot_hook): new function
39567         (grub_loader_unregister_preboot_hook): likewise
39568         (grub_loader_set): launch preboot hooks
39569         * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39570         (grub_loader_register_preboot_hook): new declaration
39571         (grub_loader_unregister_preboot_hook): likewise
39573 2009-04-27  Vladimir Serbinenko  <phcoder@gmail.com>
39575         Warning fix
39577         * disk/scsi.c (grub_scsi_open): added missing cast when
39578         calling grub_dprintf
39580 2009-04-26  Vladimir Serbinenko  <phcoder@gmail.com>
39582         Bug and warning fixes
39584         * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39585         declaration
39586         * commands/test.c (test_parse): fixed bug with file tests and corrected
39587         declaration of find_file
39589 2009-04-26  Pavel Roskin  <proski@gnu.org>
39591         * Makefile.in: Don't install empty manual pages if help2man is
39592         missing.  Use help2man option for output, not shell redirection.
39594 2009-04-26  David S. Miller  <davem@davemloft.net>
39596         * util/grub-mkdevicemap.c (make_device_map): Add missing
39597         NESTED_FUNC_ATTR to process_device().
39599 2009-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
39601         Test command
39603         * commands/test.c: rewritten to use bash-like test
39605 2009-04-25  Vladimir Serbinenko  <phcoder@gmail.com>
39607         Parttool autoloading and improvements
39609         * Makefile.in (pkglib_DATA): add parttool.lst
39610         (parttool.lst): new target
39611         * genmk.rb: generate parttool-*
39612         (CLEANFILES): add #{parttool}
39613         (PARTTOOLFILES): new variable
39614         * genparttoollist.sh: new file
39615         * parttool/pcpart.c (grub_pcpart_boot): more feedback
39616         (grub_pcpart_type): likewise
39617         * commands/parttool.c (helpmsg): new variable
39618         (grub_cmd_parttool): output help if not enough arguments are supplied
39619         autoload modules
39620         (GRUB_MOD_INIT(parttool)): use helpmsg
39622 2009-04-24  David S. Miller  <davem@davemloft.net>
39624         Avoiding opening same device multiple times in device iterator.
39626         * kern/device.c: (grub_device_iterate): Define struct part_ent,
39627         and use it to build a list of partitions in iterate_disk() and
39628         iterate_partition().
39630         * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39631         on disk->data.
39633         * disk/ieee1275/nand.c (grub_nand_iterate): Return
39634         grub_devalias_iterate() result instead of unconditional 0.
39635         * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39636         Also, capture hook return value, either directly or via
39637         grub_children_iterate(), and propagate to caller.
39638         * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39639         grub_children_iterate): Return value is now 'int' instead of
39640         'grub_err_t'.
39641         * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39642         like a proper iterator, stopping when hooks return non-zero.
39643         (grub_devalias_iterate): Likewise.
39645 2009-04-23  David S. Miller  <davem@davemloft.net>
39647         * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39649 2009-04-22  David S. Miller  <davem@davemloft.net>
39651         * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39652         is larger than address_cells, use that value for address_cells too.
39654         * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39655         IEEE1275_MAX_PATH_LEN): Define.
39656         * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39657         allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39658         (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39659         'devtype'.  Explicitly NULL terminate devalias expansion.
39661         * util/sparc64/ieee1275/misc.c: New file.
39662         * util/sparc64/ieee1275/grub-setup.c: New file.
39663         * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39664         * util/sparc64/ieee1275/grub-mkimage.c: New file.
39665         * util/sparc64/ieee1275/grub-install.in: New file.
39666         * util/ieee1275/ofpath.c: New file.
39667         * util/ieee1275/devicemap.c: New file.
39668         * util/devicemap.c: New file.
39669         * util/deviceiter.c: New file.
39670         * kern/sparc64/ieee1275/init.c: New file.
39671         * include/grub/util/ofpath.h: New file.
39672         * include/grub/util/deviceiter.h: New file.
39673         * util/grub-mkdevicemap.c: Include deviceiter.h.
39674         Implement using grub_util_emit_devicemap_entry and
39675         grub_util_iterate_devices.
39676         * conf/i386-corebook.rmk: Build util/deviceiter.c and
39677         util/devicemap.c into grub-mkdevicemap
39678         * conf/i386-efi.rmk: Likewise.
39679         * conf/i386-ieee1275.rmk: Likewise.
39680         * conf/i386-pc.rmk: Likewise.
39681         * conf/powerpc-ieee1275.rmk: Likewise.
39682         * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39683         images and installation utilities.  Build kernel as image
39684         instead of as elf binary.  Use common rules as much as possible.
39686 2009-04-19  Vladimir Serbinenko  <phcoder@gmail.com>
39688         Correct GPT definition
39690         * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39691         of "attrib" member
39693 2009-04-19  Felix Zielcke  <fzielcke@z-51.de>
39695         * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39697 2009-04-19  David S. Miller  <davem@davemloft.net>
39699         * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39700         (grub_rescue_cmd_linux): Rename to...
39701         (grub_cmd_linux): and fix prototype.
39702         (grub_rescue_cmd_initrd): Rename to...
39703         (grub_cmd_initrd): and fix prototype.
39704         (cmd_linux, cmd_initrd): New.
39705         (GRUB_MOD_INIT(linux)): Use grub_register_command().
39706         (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39708 2009-04-17  Pavel Roskin  <proski@gnu.org>
39710         * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39711         format.
39712         (grub_ohci_transfer): Likewise.
39714         * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39716         * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39717         return without a value.  Fix inconsistent indentation.
39719         * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39720         match struct grub_fs.
39722         * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39723         * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39724         * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39725         * commands/lspci.c (grub_lspci_iter): Likewise.
39727 2009-04-16  Bean  <bean123ch@gmail.com>
39729         * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39730         value.
39732 2009-04-15  Pavel Roskin  <proski@gnu.org>
39734         * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39735         LONG_MAX to GRUB_LONG_MAX.  Introduce GRUB_LONG_MIN.  Update all
39736         users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39737         definitions.
39739 2009-04-15  Felix Zielcke  <fzielcke@z-51.de>
39741         * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39742         that no multiple data or metadata areas are supported and `Unknown
39743         metadata header'.
39745 2009-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
39747         Move loader out of the kernel
39749         * kern/loader.c: moved to ...
39750         * commands/boot.c: ... moved here
39751         * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39752         * commands/boot.c (grub_cmd_boot): moved here. All users updated
39753         * include/grub/kernel.h (grub_machine_fini): export
39754         * include/grub/loader.h (grub_loader_is_loaded): update declaration
39755         (grub_loader_set): likewise
39756         (grub_loader_unset): likewise
39757         (grub_loader_boot): likewise
39758         * conf/common.rmk: new module boot.mod
39759         (pkglib_MODULES): add boot.mod
39760         * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39761         (grub_emu_SOURCES): likewise
39762         * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39763         (grub_emu_SOURCES): likewise
39764         * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39765         (grub_emu_SOURCES): likewise
39766         * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39767         (grub_emu_SOURCES): likewise
39768         * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39769         (grub_emu_SOURCES): likewise
39770         * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39771         (grub_emu_SOURCES): likewise
39772         * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39773         (grub_emu_SOURCES): likewise
39775 2009-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
39777         use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39779         * kern/misc.c (grub_itoa): Removed function
39780         (grub_ltoa): likewise
39781         (grub_vsprintf): use grub_lltoa
39783 2009-04-15  Vladimir Serbinenko  <phcoder@gmail.com>
39785         Restore grub-emu
39787         * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39788         * conf/i386-coreboot.rmk: likewise
39789         * conf/i386-ieee1275.rmk: likewise
39790         * conf/powerpc-ieee1275.rmk: likewise
39792 2009-04-15  Felix Zielcke  <fzielcke@z-51.de>
39794         * INSTALL: Add that `./autogen.sh' needs to be run before
39795         `./configure.'.
39797 2009-04-14  Bean  <bean123ch@gmail.com>
39799         * Makefile.in (pkglib_DATA): Add handler.lst.
39800         (handler.lst): New rule.
39802         * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39803         * conf/i386-coreboot.rmk: Likewise.
39804         * conf/i386-ieee1275.rmk: Likewise.
39805         * conf/i386-efi.rmk: Likewise.
39806         * conf/x86_64-efi.rmk: Likewise.
39807         * conf/powerpc-ieee1275.rmk: Likewise.
39808         * conf/sparc64-ieee1275.rmk: Likewise.
39810         * genhandlerlist.sh: New file.
39812         * genmk.rb: Add rules to generate handler.lst.
39814         * include/grub/normal.h (grub_file_getline): New function definition.
39815         (read_handler_list): Likewise.
39816         (free_handler_list): Likewise.
39818         * include/grub/term.h (grub_term_register_input): Add name parameter
39819         for auto generation of handler.lst.
39820         (grub_term_register_output): Likewise.
39822         * normal/handler.c: New file.
39824         * normal/main.c (get_line): Renamed to grub_file_getline.
39825         (read_config_file): Use the newly renamed grub_file_getline.
39826         (read_command_list): Likewise.
39827         (read_fs_list): Likewise.
39828         (grub_normal_execute): Call read_handler_list to parse handler.lst.
39829         (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39831         * term/efi/console.c (grub_console_init): Add name parameter for auto
39832         generation of handler.lst.
39833         * term/gfxterm.c: Likewise.
39834         * term/i386/pc/at_keyboard.c: Likewise.
39835         * term/i386/pc/console.c: Likewise.
39836         * term/i386/pc/serial.c: Likewise.
39837         * term/i386/pc/vesafb.c: Likewise.
39838         * term/i386/pc/vga.c: Likewise.
39839         * term/i386/pc/vga_text.c: Likewise.
39840         * term/ieee1275/ofconsole.c: Likewise.
39841         * term/usb_keyboard.c: Likewise.
39843 2009-04-14  Bean  <bean123ch@gmail.com>
39845         * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39846         properly with null character.
39848 2009-04-14  Felix Zielcke  <fzielcke@z-51.de>
39850         * configure: Remove.
39851         * config.h.in: Likewise.
39852         * stamp-h.in: Likewise.
39853         * DISTLIST: Likewise.
39854         * conf/common.mk: Likewise.
39855         * conf/i386-coreboot.mk: Likewise.
39856         * conf/i386-efi.mk: Likewise.
39857         * conf/i386-ieee1275.mk: Likewise.
39858         * conf/i386.mk: Likewise.
39859         * conf/i386-pc.mk: Likewise.
39860         * conf/powerpc-ieee1275.mk: Likewise.
39861         * conf/sparc64-ieee1275.mk: Likewise.
39862         * conf/x86_64-efi.mk: Likewise.
39864         * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39865         develop on GRUB.
39867 2009-04-14  John Stanley  <jpsinthemix@verizon.net>
39868             David S. Miller  <davem@davemloft.net>
39870         * util/hostdisk.c (make_device_name): Fix buffer length
39871         calculations.
39873 2009-04-14  Felix Zielcke  <fzielcke@z-51.de>
39875         * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39876         <sys/param.h> and <sys/sysctl.h>.
39877         (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39878         to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39879         opening the device and reset them afterwards.
39881 2009-04-13  Pavel Roskin  <proski@gnu.org>
39883         * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39884         Reported by John Stanley <jpsinthemix@verizon.net>
39886 2009-04-13  Robert Millan  <rmh@aybabtu.com>
39888         * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39889         that name for menuentries when appropriate.
39891 2009-04-13  Felix Zielcke  <fzielcke@z-51.de>
39893         * util/grub.d/10_freebsd.in: Add a missing `fi'.
39895 2009-04-13  Robert Millan  <rmh@aybabtu.com>
39897         * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39898         to Linux, simply abort telling the user it's no longer supported.
39900 2009-04-13  Felix Zielcke  <fzielcke@z-51.de>
39902         * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39903         doesn't exist.  Check also for /boot/kernel/kernel.gz.  Print
39904         `freebsd_loadenv' only when devices.hints exist.
39906 2009-04-13  Pavel Roskin  <proski@gnu.org>
39908         * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39910 2009-04-13  Felix Zielcke  <fzielcke@z-51.de>
39912         * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39913         partition number.
39914         (grub_drive): Likewise.
39916 2009-04-13  David S. Miller  <davem@davemloft.net>
39918         * kern/sparc64/ieee1275/ieee1275.c: New file.
39919         * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39920         IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39921         IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39922         IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39923         (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39924         grub_ieee1275_alloc_physmem): Declare new exported functions.
39926         * include/grub/sparc64/ieee1275/loader.h: New file.
39927         * include/grub/sparc64/ieee1275/memory.h: Likewise.
39928         * include/grub/sparc64/kernel.h: Likewise.
39929         * loader/sparc64/ieee1275/linux.c: Likewise.
39931         * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39932         (grub_fstest_SOURCES): Likewise.
39934         * util/hostdisk.c (make_device_name): Do not make any assumptions
39935         about the length of drive names.
39937         * kern/dl.c (grub_dl_load_file): Close file immediately when
39938         we are done using it.
39940 2009-04-12  David S. Miller  <davem@davemloft.net>
39942         * kern/misc.c (grub_ltoa): Fix cast when handling negative
39943         values.  Noticed by Pavel Roskin.
39945         * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39946         target compiler.
39948         * genmk.rb: Add more flexible image type specification, also
39949         pass --strip-unneeded to objcopy.
39950         * conf/i386-pc.rmk: Use *_FORMAT.
39951         * conf/i386-pc.mk: Rebuilt.
39953         * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39954         (OFDISK_HASH_SZ): Define.
39955         (ofdisk_hash): New hash table.
39956         (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39957         (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39958         instead of device phandle which is not unique.
39960         * kern/sparc64/ieee1275/init.c: Delete, replace with...
39961         * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39962         * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39963         (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39964         GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39965         GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39966         GRUB_KERNEL_MACHINE_DATA_END): Define.
39967         (grub_kernel_image_size, grub_total_module_size): Declare.
39969 2009-04-12  Pavel Roskin  <proski@gnu.org>
39971          * configure.ac: Change the logic when we check for target tools.
39972          Do it when the target is specified and it's different from the
39973          specified value of the host.
39975 2009-04-11  Felix Zielcke  <fzielcke@z-51.de>
39977         * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39978         (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39979         GNU/kFreeBSD. Check if a device is a character device. Use
39980         DIOCGMEDIASIZE to get the size.
39981         (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39982         support for GNU/kFreeBSD.
39983         (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39984         is a character device instead of a block device. Add support for
39985         FreeBSD device names.
39987         * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39988         is a character device instead of a block device.
39990         * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39991         is a character device instead of a block device.
39993 2009-04-11  Andrey Shuvikov  <mr_hyro@yahoo.com>
39995         * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39996         (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39997         FreeBSD. Check if a device is a character device. Use
39998         DIOCGMEDIASIZE to get the size.
39999         (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
40000         support for FreeBSD.
40001         (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
40002         is a character device instead of a block device. Add support for
40003         FreeBSD device names.
40005         * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
40006         a character device instead of a block device.
40007         (grub_util_check_char_device): New function.
40009         * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
40010         a character device instead of a block device.
40012         * include/grub/util/getroot.h (grub_util_check_char_device): New
40013         prototype.
40015 2009-04-11  David S. Miller  <davem@davemloft.net>
40017         * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
40018         static libgcc.
40019         * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
40020         * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
40021         function, if present.
40022         (__bswapdi2): Likewise.
40024         * include/grub/sparc64/ieee1275/boot.h: New file.
40025         * boot/sparc64/ieee1275/boot.S: Likewise.
40026         * boot/sparc64/ieee1275/diskboot.S: Likewise.
40028         * kern/misc.c (grub_ltoa): New function.
40029         (grub_vsprintf): Use it to format 'long' integers.
40031 2009-04-10  David S. Miller  <davem@davemloft.net>
40033         * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
40034         slots are of type grub_ieee1275_cell_t.
40035         (grub_nand_read): Likewise.
40036         * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
40037         IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
40038         macros are used to compare values in arg/ret block of the call.
40039         (grub_ieee1275_finddevice, grub_ieee1275_get_property,
40040         grub_ieee1275_next_property, grub_ieee1275_get_property_length,
40041         grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
40042         grub_ieee1275_instance_to_path, grub_ieee1275_write,
40043         grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
40044         grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
40045         grub_ieee1275_close, grub_ieee1275_set_property,
40046         grub_ieee1275_set_color): All ieee1275 call arg slots are of type
40047         grub_ieee1275_cell_t.
40048         * kern/ieee1275/openfw.c (grub_map): Likewise.
40049         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
40050         grub_ieee1275_phandle_t): Define as grub_unit32_t type.
40052         * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
40053         * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
40054         (grub_devalias_iterate): Likewise.
40056 2009-04-10  Vladimir Serbinenko  <phcoder@gmail.com>
40058         UFS improvements
40060         * fs/ufs.c (INODE_NBLOCKS): new definition
40061         (struct grub_ufs_dirent): added fields for non-BSD dirents
40062         (grub_ufs_get_file_block): fixed double indirect handling
40063         (grub_ufs_lookup_symlink): use more robust way to determine whether
40064         symlink is inline
40065         (grub_ufs_find_file): support for non-BSD dirents
40066         (grub_ufs_dir): support for non-BSD dirents
40068 2009-04-10  Bean  <bean123ch@gnail.com>
40070         * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
40071         attribute, otherwise the size would be wrong for i386 platform.
40073         * include/grub/pci.h (grub_pci_read_word): New inline function.
40074         (grub_pci_read_byte): Likewise.
40075         (grub_pci_write): Likewise.
40076         (grub_pci_write_word): Likewise.
40077         (grub_pci_write_byte): Likewise.
40079         * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
40081         * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
40082         (find_framebuf): Scan pci to locate the frame buffer address.
40084         * commands/efi/fixvideo.c: New file.
40086         * commands/efi/loadbios.c: Likewise.
40088         * commands/memrw.c: Likewise.
40090         * util/grub-dumpbios.in: Likewise.
40092         * conf/common.rmk (grub-dumpbios): New utility.
40093         (pkglib_MODULES): New module memrw.mod.
40094         (memrw_mod_SOURCE): New macro.
40095         (memrw_mod_CFLAGS): Likewise.
40096         (memrw_mod_LDFLAGS): Likewise.
40098         * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
40099         fixvideo.mod.
40100         (loadbios_mod_SOURCE): New macro.
40101         (loadbios_mod_CFLAGS): Likewise.
40102         (loadbios_mod_LDFLAGS): Likewise.
40103         (fixvideo_mod_SOURCE): Likewise.
40104         (fixvideo_mod_CFLAGS): Likewise.
40105         (fixvideo_mod_LDFLAGS): Likewise.
40107         * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
40108         fixvideo.mod.
40109         (loadbios_mod_SOURCE): New macro.
40110         (loadbios_mod_CFLAGS): Likewise.
40111         (loadbios_mod_LDFLAGS): Likewise.
40112         (fixvideo_mod_SOURCE): Likewise.
40113         (fixvideo_mod_CFLAGS): Likewise.
40114         (fixvideo_mod_LDFLAGS): Likewise.
40116 2009-04-08  Felix Zielcke  <fzielcke@z-51.de>
40118         * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40120 2009-04-07  David S. Miller  <davem@davemloft.net>
40122         * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40123         support for R_SPARC_OLO10 relocations.  Fix compile warning for
40124         R_SPARC_WDISP30 case.
40125         * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40127 2009-04-06  Pavel Roskin  <proski@gnu.org>
40129         * include/grub/misc.h (ARRAY_SIZE): New macro.
40130         * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40131         New macro.
40132         * loader/i386/linux.c (allocate_pages): Use free_pages().
40133         (grub_linux_unload): Don't use free_pages().
40134         (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40135         wrong index.  Treat all other modes as text modes.
40136         (grub_cmd_linux): Initialize vid_mode unconditionally to
40137         GRUB_LINUX_VID_MODE_NORMAL.  Recognize and support "vga=ask".
40139         * commands/help.c (print_command_help): Use cmd->prio, not
40140         cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40142 2009-04-06  Vladimir Serbinenko  <phcoder@gmail.com>
40144         Parttool
40146         * parttool/pcpart.c: new file
40147         * commands/parttool.c: likewise
40148         * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40149         (parttool_mod_SOURCES): new variable
40150         (parttool_mod_CFLAGS): likewise
40151         (parttool_mod_LDFLAGS): likewise
40152         (pcpart_mod_SOURCES): likewise
40153         (pcpart_mod_CFLAGS): likewise
40154         (pcpart_mod_LDFLAGS): likewise
40155         * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40156         and parttool/pcpart.c
40157         * conf/i386-efi.rmk: likewise
40158         * conf/i386-ieee1275.rmk: likewise
40159         * conf/i386-pc.rmk: likewise
40160         * conf/powerpc-ieee1275.rmk: likewise
40161         * conf/sparc64-ieee1275.rmk: likewise
40162         * conf/x86_64-ieee1275.rmk: likewise
40164 2009-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
40166         Support for mtime and further expandability of dir command
40168         * include/grub/lib/datetime.h: moved to ...
40169         * include/grub/datetime.h: ... moved here and added
40170         declaration of grub_unixtime2datetime. All users updated
40171         * include/grub/fs.h: new syntax for dir and mtime functions in
40172         struct grub_fs
40173         * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40174         and GRUB_FSHELP_FLAGS_MASK
40175         * commands/ls.c (grub_ls_list_files): Write mtime in long format
40176         * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40177         (grub_ext2_mtime): new function
40178         * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40179         (grub_hfsplus_mtime): new function
40180         * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40181         (GRUB_UFS_ATTR_FILE): likewise
40182         (GRUB_UFS_ATTR_LNK): likewise
40183         (struct grub_ufs_sblock): new fields mtime
40184         (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40185         all users updated
40186         (grub_ufs_dir): mtime support
40187         (grub_ufs_mtime): new function
40188         * fs/affs.c (grub_affs_dir): use new dir syntax
40189         * fs/afs.c (grub_afs_dir): likewise
40190         * fs/cpio.c (grub_cpio_dir): likewise
40191         * fs/fat.c (grub_fat_find_dir): likewise
40192         * fs/hfs.c (grub_hfs_dir): likewise
40193         * fs/iso9660.c (grub_iso9660_dir): likewise
40194         * fs/jfs.c (grub_jfs_dir): likewise
40195         * fs/minix.c (grub_minix_dir): likewise
40196         * fs/ntfs.c (grub_ntfs_dir): likewise
40197         * fs/reiserfs.c (grub_reiserfs_dir): likewise
40198         * fs/sfs.c (grub_sfs_dir): likewise
40199         * fs/xfs.c (grub_xfs_dir): likewise
40200         * util/hostfs.c (grub_hostfs_dir): likewise
40201         * lib/datetime.c: moved to ...
40202         * normal/datetime.c: ... moved here
40203         (grub_unixtime2datetime): new function
40204         * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40205         * normal/completion.c (iterate_dir): use new dir syntax
40206         * normal/misc.c (grub_normal_print_device_info): tell the
40207         last modification time of a volume
40208         * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40209         * conf/common.rmk: added lib/datetime.c to ls.mod
40210         * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40211         (normal_mod_SOURCES): likewise
40212         (datetime_mod_SOURCES): Removed lib/datetime.c
40213         * conf/i386-efi.rmk: likewise
40214         * conf/i386-ieee1275.rmk: likewise
40215         * conf/i386-pc.rmk: likewise
40216         * conf/powerpc-ieee1275.rmk: likewise
40217         * conf/sparc64-ieee1275.rmk: likewise
40218         * conf/x86_64-efi.rmk: likewise
40220 2009-04-05  Vladimir Serbinenko  <phcoder@gmail.com>
40222         Trim trailing spaces in FAT label and support mtools-like labels
40224         * fs/fat.c (grub_fat_iterate_dir): New function based
40225         on grub_fat_find_dir
40226         (grub_fat_find_dir): use grub_fat_iterate_dir
40227         (grub_fat_label): likewise
40229 2009-04-04  Vladimir Serbinenko  <phcoder@gmail.com>
40231         * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40232         and command.h
40233         remove extraneous kernel_elf_HEADERS
40235 2009-04-04  Bean  <bean123ch@gnail.com>
40237         * include/grub/util/misc.h: Add dummy function fsync for mingw.
40239         * util/misc.c: Likewise.
40241 2009-04-04  Yoshinori K. Okuji  <okuji@enbug.org>
40243         * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40244         instead of grub_printf.
40246 2009-04-03  Robert Millan  <rmh@aybabtu.com>
40248         * loader/i386/linux.c (grub_linux_setup_video): Fill
40249         `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40250         values from `mode info' structure instead of hardcoded
40251         values.
40253 2009-04-01  Pavel Roskin  <proski@gnu.org>
40255         * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40256         unused now.
40257         * genmk.rb: Likewise.
40258         * configure.ac: Likewise.
40260 2009-04-01  Manoel Abranches  <mrabran@linux.vnet.ibm.com>
40262         * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40263         TARGET_LDFLAGS.  This corrects a problem with grub-mkelfimage.
40265 2009-04-01  David S. Miller  <davem@davemloft.net>
40267         * normal/sparc64/setjmp.S: Fix setjmp implementation.
40268         * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40269         (grub_setjmp): Mark with 'returns_twice' attribute.
40270         * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40271         * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40272         * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40274 2009-04-01  Robert Millan  <rmh@aybabtu.com>
40276         Reapply fix from 2008-07-28 which was accidentally reverted; also
40277         perform the same fix to a similar check in same function.
40279         * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40280         with the same number are found, just use issue a warning with
40281         grub_dprintf(), as this error has been reported to be non-fatal.
40283 2009-03-31  Pavel Roskin  <proski@gnu.org>
40285         * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40286         for cross-compilation.
40288 2009-03-30  Robert Millan  <rmh@aybabtu.com>
40290         Fix i386-ieee1275 build.
40292         * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40293         Remove declaration.
40295 2009-03-30  Pavel Roskin  <proski@gnu.org>
40297         * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40298         (grub_hfs_cmp_catkeys): ... this.  Don't assume strings to be
40299         zero-terminated, rely only on the strlen value.  Fix comparison
40300         of strings differing in length.
40302 2009-03-30  Robert Millan  <rmh@aybabtu.com>
40304         * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40305         checking for abi version.  Improve error messages on BIOS to notify
40306         user about `linux16' command.
40308 2009-03-29  Vladimir Serbinenko  <phcoder@gmail.com>
40310         Leak fixes
40312         * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40313         in case of collision
40314         * disk/scsi.c (grub_scsi_open): free scsi in case of error
40316 2009-03-29  Robert Millan  <rmh@aybabtu.com>
40318         * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40319         set `vid_mode' accordingly.
40320         (grub_linux_boot): Process `vid_mode' and set video mode.
40322 2009-03-29  Robert Millan  <rmh@aybabtu.com>
40324         * util/grub.d/10_linux.in (linux_entry): New function.
40325         Factorize generation of Linux boot entries.
40327 2009-03-29  Yoshinori K. Okuji  <okuji@enbug.org>
40329         Make the format of Environment Block plain text. The boot loader
40330         part is not tested well yet.
40332         * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40333         (buffer): Removed.
40334         (envblk): Likewise.
40335         (usage): Remove "info" and "clear". Add "unset". Update the
40336         description of "set", as this does not delete variables any
40337         longer.
40338         (create_envblk_file): Complete rewrite.
40339         (open_envblk_file): Likewise.
40340         (cmd_info): Removed.
40341         (cmd_list): Likewise.
40342         (cmd_set): Likewise.
40343         (cmd_clear): Likewise.
40344         (list_variables): New function.
40345         (write_envblk): Likewise.
40346         (set_variables): Likewise.
40347         (unset_variables): Likewise.
40348         (main): Complete rewrite.
40350         * commands/loadenv.c (buffer): Removed.
40351         (envblk): Likewise.
40352         (open_envblk_file): New function.
40353         (read_envblk_file): Complete rewrite.
40354         (grub_cmd_load_env): Likewise.
40355         (grub_cmd_list_env): Likewise.
40356         (struct blocklist): New struct.
40357         (free_blocklists): New function.
40358         (check_blocklists): Likewise.
40359         (write_blocklists): Likewise.
40360         (grub_cmd_save_env): Complete rewrite.
40362         * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40363         a plain text signature.
40364         (GRUB_ENVBLK_MAXLEN): Removed.
40365         (struct grub_envblk): Complete rewrite.
40366         (grub_envblk_find): Removed.
40367         (grub_envblk_insert): Likewise.
40368         (grub_envblk_open): New prototype.
40369         (grub_envblk_set): Likewise.
40370         (grub_envblk_delete): Put const to VALUE.
40371         (grub_envblk_iterate): Put const to NAME and VALUE.
40372         (grub_envblk_close): New prototype.
40373         (grub_envblk_buffer): New inline function.
40374         (grub_envblk_size): Likewise.
40376         * lib/envblk.c: Include grub/mm.h.
40377         (grub_env_find): Removed.
40378         (grub_envblk_open): New function.
40379         (grub_envblk_close): Likewise.
40380         (escaped_value_len): Likewise.
40381         (find_next_line): Likewise.
40382         (grub_envblk_insert): Removed.
40383         (grub_envblk_set): New function.
40384         (grub_envblk_delete): Complete rewrite.
40385         (grub_envblk_iterate): Likewise.
40387 2009-03-28  Robert Millan  <rmh@aybabtu.com>
40389         * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40390         (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40391         variables.  Use 16-bit loader.
40392         (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40393         loader.
40394         * kern/i386/loader.S (grub_linux_boot): Rename to ...
40395         (grub_linux16_boot): ... this.  Update all users.
40396         * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40397         (grub_linux_boot): ... this.  Update all users.
40399         * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40400         (GRUB_MOD_INIT(linux16)): ... this.  Rename `linux' and `initrd'
40401         commands to `linux16' and `initrd16'.
40402         (GRUB_MOD_FINI(linux)): Rename to ...
40403         (GRUB_MOD_FINI(linux16)): ... this.
40405 2009-03-24  Pavel Roskin  <proski@gnu.org>
40407         * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40408         not just for compilation.
40410 2009-03-22  Vladimir Serbinenko  <phcoder@gmail.com>
40412         Move multiboot helper out of kernel
40414         * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40415         `loader/i386/multiboot_helper.S'.
40416         * conf/i386-coreboot.rmk: Likewise
40417         * conf/i386-ieee1275.rmk: Likewise
40419         * kern/i386/loader.S: Move multiboot helpers from here...
40420         * loader/i386/multiboot_helper.S: ...moved here
40421         * include/grub/i386/loader.h: Move declarations of multiboot
40422         helpers from here...
40423         * include/grub/i386/multiboot.h: ...moved here
40424         * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40426 2009-03-22  Yoshinori K. Okuji  <okuji@enbug.org>
40428         * kern/env.c (grub_env_context_open): Added an argument to specify
40429         whether a new context inherits exported variables from current
40430         one. This is useful when making a sandbox to interpret a config
40431         file.
40432         All callers updated.
40434         * include/grub/env.h (grub_env_context_open): Updated the prototype.
40436 2009-03-22  Yoshinori K. Okuji  <okuji@enbug.org>
40438         * kern/env.c (grub_env_context_close): Fix memory leaks.
40440 2009-03-22  Yoshinori K. Okuji  <okuji@enbug.org>
40442         * normal/main.c (grub_normal_execute): Added an argument
40443         BATCH to specify if an interactive interface should be provided
40444         after reading a config file.
40445         All callers updated.
40446         (read_command_list): Prevent being executed twice.
40447         (read_fs_list): Likewise.
40449         * include/grub/normal.h (grub_normal_execute): Updated the
40450         prototype.
40452 2009-03-22  Pavel Roskin  <proski@gno.org>
40454         * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40455         _start.
40456         * kern/i386/pc/startup.S: Likewise.
40457         * kern/i386/efi/startup.S: Likewise.
40458         * kern/i386/ieee1275/startup.S: Likewise.
40459         * kern/i386/coreboot/startup.S: Likewise.
40460         * kern/x86_64/efi/startup.S: Likewise.
40462         * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40463         * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40464         * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40466 2009-03-21  Vladimir Serbinenko  <phcoder@gmail.com>
40468         Bugfixes in multiboot for bugs uncovered by solaris kernel.
40470         * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40471         limit detection.
40472         Use vaddr of correct segment for entry_point.
40474 2009-03-21  Bean  <bean123ch@gmail.com>
40476         * commands/blocklist.c: Add include file <grub/command.h>, remove
40477         <grub/normal.h> and <grub/arg.h>.
40478         (grub_cmd_blocklist): Use the new command interface.
40479         (GRUB_MOD_INIT): Likewise.
40480         (GRUB_MOD_FINI): Likewise.
40481         * commands/boot.c: Likewise.
40482         * commands/cat.c: Likewise.
40483         * commands/cmp.c: Likewise.
40484         * commands/configfile.c: Likewise.
40485         * commands/crc.c: Likewise.
40486         * commands/echo.c: Likewise.
40487         * commands/halt.c: Likewise.
40488         * commands/handler.c: Likewise.
40489         * commands/hdparm.c: Likewise.
40490         * commands/help.c: Likewise.
40491         * commands/hexdump.c: Likewise.
40492         * commands/loadenv.c: Likewise.
40493         * commands/ls.c: Likewise.
40494         * commands/lsmmap.c: Likewise.
40495         * commands/lspci.c: Likewise.
40496         * commands/loadenv.c: Likewise.
40497         * commands/read.c: Likewise.
40498         * commands/reboot.c: Likewise.
40499         * commands/search.c: Likewise.
40500         * commands/sleep.c: Likewise.
40501         * commands/test.c: Likewise.
40502         * commands/usbtest.c: Likewise.
40503         * commands/videotest.c: Likewise.
40504         * commands/i386/cpuid.c: Likewise.
40505         * commands/i386/pc/halt.c: Likewise.
40506         * commands/i386/pc/play.c: Likewise.
40507         * commands/i386/pc/pxecmd.c: Likewise.
40508         * commands/i386/pc/vbeinfo.c: Likewise.
40509         * commands/i386/pc/vbetest.c: Likewise.
40510         * commands/ieee1275/suspend.c: Likewise.
40511         * disk/loopback.c: Likewise.
40512         * font/font_cmd.c: Likewise.
40513         * hello/hello.c: Likewise.
40514         * loader/efi/appleloader.c: Likewise.
40515         * loader/efi/chainloader.c: Likewise.
40516         * loader/i386/bsd.c: Likewise.
40517         * loader/i386/efi/linux.c: Likewise.
40518         * loader/i386/ieee1275/linux.c: Likewise.
40519         * loader/i386/linux.c: Likewise.
40520         * loader/i386/pc/chainloader.c: Likewise.
40521         * loader/i386/pc/linux.c: Likewise.
40522         * loader/powerpc/ieee1275/linux.c: Likewise.
40523         * loader/multiboot_loader.c: Likewise.
40524         * term/gfxterm.c: Likewise.
40525         * term/i386/pc/serial.c: Likewise.
40526         * term/terminfo.c: Likewise.
40528         * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40529         * term/i386/pc/vga.c: Likewise.
40530         * video/readers/jpeg.c: Likewise.
40531         * video/readers/png.c: Likewise.
40532         * video/readers/tga.c: Likewise.
40534         * util/grub-fstest (cmd_loopback): Removed.
40535         (cmd_blocklist): Likewise.
40536         (cmd_ls): Likewise.
40537         (grub_register_command): Likewise.
40538         (grub_unregister_command): Likewise.
40539         (execute_command): Use grub_command_find to locate command and execute
40540         it.
40542         * include/grub/efi/chainloader.h: Removed.
40543         * loader/efi/chainloader_normal.c: Likewise.
40544         * loader/i386/bsd_normal.c: Likewise.
40545         * loader/i386/pc/chainloader_normal.c: Likewise.
40546         * loader/i386/pc/multiboot_normal.c: Likewise.
40547         * loader/linux_normal.c: Likewise.
40548         * loader/multiboot_loader_normal.c: Likewise.
40549         * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40551         * gencmdlist.sh: Scan new registration command grub_register_extcmd
40552         and grub_register_command_p1.
40554         * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40555         kern/command.c, lib/arg.c and commands/extcmd.c.
40556         (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40557         (minicmd_mod_SOURCES): New variable.
40558         (minicmd_mod_CFLAGS): Likewise.
40559         (minicmd_mod_LDFLAGS): Likewise.
40560         (extcmd_mod_SOURCES): Likewise.
40561         (extcmd_mod_CFLAGS): Likewise.
40562         (extcmd_mod_LDFLAGS): Likewise.
40563         (boot_mod_SOURCES): Removed.
40564         (boot_mod_CFLAGS): Likewise.
40565         (boot_mod_LDFLAGS): Likewise.
40567         * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40568         kern/corecmd.c.
40569         (kernel_img_HEADERS): Add command.h.
40570         (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40571         commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40572         and lib/arg.c.
40573         (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40574         _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40575         remove the corresponding normal mode command.
40576         (normal_mod_SOURCES): Remove normal/arg.c.
40577         * conf/i386-coreboot.rmk: Likewise.
40578         * conf/i386-efi.rmk: Likewise.
40579         * conf/i386-ieee1275.rmk: Likewise.
40580         * conf/powerpc-ieee1275.rmk: Likewise.
40581         * conf/x86_64-efi.rmk: Likewise.
40583         * include/grub/arg.h: Move from here ...
40584         * include/grub/lib/arg.h: ... to here.
40586         * normal/arg.c: Move from here ...
40587         * lib/arg.c: ... to here.
40589         * commands/extcmd.c: New file.
40590         * commands/minicmd.c: Likewise.
40591         * include/grub/command.h: Likewise.
40592         * include/grub/extcmd.h: Likewise.
40593         * kern/command.c: Likewise.
40594         * kern/corecmd.c: Likewise.
40596         * kern/list.c (grub_list_iterate): Return int instead of void.
40597         (grub_list_insert): New function.
40598         (grub_prio_list_insert): Likewise.
40600         * kern/rescue.c (grub_rescue_command): Removed.
40601         (grub_rescue_command_list): Likewise.
40602         (grub_rescue_register_command): Likewise.
40603         (grub_rescue_unregister_command): Likewise.
40604         (grub_rescue_cmd_boot): Move to minicmd.c
40605         (grub_rescue_cmd_help): Likewise.
40606         (grub_rescue_cmd_info): Likewise.
40607         (grub_rescue_cmd_boot): Likewise.
40608         (grub_rescue_cmd_testload): Likewise.
40609         (grub_rescue_cmd_dump): Likewise.
40610         (grub_rescue_cmd_rmmod): Likewise.
40611         (grub_rescue_cmd_lsmod): Likewise.
40612         (grub_rescue_cmd_exit): Likewise.
40613         (grub_rescue_print_devices): Moved to corecmd.c.
40614         (grub_rescue_print_files): Likewise.
40615         (grub_rescue_cmd_ls): Likewise.
40616         (grub_rescue_cmd_insmod): Likewise.
40617         (grub_rescue_cmd_set): Likewise.
40618         (grub_rescue_cmd_unset): Likewise.
40619         (attempt_normal_mode): Use grub_command_find to get normal module.
40620         (grub_enter_rescue_mode): Use grub_register_core_commands to register
40621         commands, remove grub_rescue_register_command calls.
40623         * normal/command.c (grub_register_command): Removed.
40624         (grub_unregister_command): Likewise.
40625         (grub_command_find): Likewise.
40626         (grub_iterate_commands): Likewise.
40627         (rescue_command): Likewise.
40628         (export_command): Moved to corecmd.c.
40629         (set_command): Removed.
40630         (unset_command): Likewise.
40631         (insmod_command): Likewise.
40632         (rmmod_command): Likewise.
40633         (lsmod_command): Likewise.
40634         (grub_command_init): Likewise.
40636         * normal/completion.c (iterate_command): Use cmd->prio to check for
40637         active command.
40638         (complete_arguments): Use grub_extcmd_t structure to find options.
40639         (grub_normal_do_completion): Change function grub_iterate_commands to
40640         grub_command_iterate.
40642         * normal/execute.c (grub_script_execute_cmd): No need to parse
40643         argument here.
40645         * normal/main.c (grub_dyncmd_dispatcher): New function.
40646         (read_command_list): Register unload commands as dyncmd.
40647         (grub_cmd_normal): Use new command interface, register rescue,
40648         unregister normal at entry, register normal, unregister rescue at exit.
40650         * include/grub/list.h (grub_list_test_t): New type.
40651         (grub_list_iterate): Return int instead of void.
40652         (grub_list_insert): New function.
40653         (GRUB_AS_NAMED_LIST_P): New macro.
40654         (GRUB_AS_PRIO_LIST): Likewise.
40655         (GRUB_AS_PRIO_LIST_P): Likewise.
40656         (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40657         (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40658         (grub_prio_list): New structure.
40659         (grub_prio_list_insert): New function.
40660         (grub_prio_list_remove): New inline function.
40662         * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40663         (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40664         (GRUB_COMMAND_FLAG_MENU): Likewise.
40665         (GRUB_COMMAND_FLAG_BOTH): Likewise.
40666         (GRUB_COMMAND_FLAG_TITLE): Likewise.
40667         (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40668         (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40669         (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40670         (grub_command): Likewise.
40671         (grub_register_command): Likewise.
40672         (grub_command_find): Likewise.
40673         (grub_iterate_commands): Likewise.
40674         (grub_command_init): Likewise.
40675         (grub_arg_parse): Likewise.
40676         (grub_arg_show_help): Likewise.
40678         * include/grub/rescue.h (grub_rescue_register_command): Removed.
40679         (grub_rescue_unregister_command): Likewise.
40681         * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40682         grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40683         grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40685         * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40686         grub_rescue_cmd_initrd.
40687         * include/grub/i386/loader.h: Likewise.
40688         * include/grub/x86_64/loader.h: Likewise.
40690         * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40692 2009-03-21  Bean  <bean123ch@gmail.com>
40694         * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40695         instead of stat in mingw environment.
40697         * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40699         * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40701         * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40702         AC_CONFIG_LINKS.
40704 2009-03-21  Bean  <bean123ch@gmail.com>
40706         * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40707         out of range error.
40709 2009-03-18  Michel Dänzer  <michel@daenzer.net>
40711         * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40712         checking inode flags for EXT4_EXTENTS_FLAG.
40714 2009-03-18  Robert Millan  <rmh@aybabtu.com>
40716         * loader/i386/linux.c: Include `<grub/video.h>' and
40717         `<grub/i386/pc/vbe.h>'..
40718         (grub_linux_setup_video): New function.  Loosely based on the EFI one.
40719         (grub_linux32_boot): Attempt to configure video settings with
40720         grub_linux_setup_video().
40721         (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40722         to avoid grub_console_fini() which would step out of graphical mode
40723         unconditionally.
40725 2009-03-14  Robert Millan  <rmh@aybabtu.com>
40727         Fix build on powerpc.
40728         * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40730 2009-03-12  Vladimir Serbinenko  <phcoder@gmail.com>
40732         * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40733         background image command.
40735 2009-03-12  Colin D Bennett  <colin@gibibit.com>
40737         * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40738         (grub_gfxterm_putchar): Extract pairs of identical calls to
40739         draw_cursor out of conditional blocks.
40741 2009-03-11  Pavel Roskin  <proski@gnu.org>
40743         * fs/hfs.c (grub_hfs_strncasecmp): New function.
40744         (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40746 2009-03-11  Robert Millan  <rmh@aybabtu.com>
40748         * loader/i386/multiboot_elfxx.c
40749         (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40751 2009-03-11  Felix Zielcke  <fzielcke@z-51.de>
40753         * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40754         `kern/handler.c'.
40756 2009-03-11  Robert Millan  <rmh@aybabtu.com>
40758         * loader/i386/multiboot.c (code_size): New variable.
40759         (grub_multiboot): Define offsets by adding to `code_size' rather
40760         than subtracting from `grub_multiboot_payload_size'.  Provide
40761         4-byte alignment to MBI and others by increasing
40762         `boot_loader_name_length' appropriately.
40764         * loader/i386/multiboot_elfxx.c
40765         (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40767 2009-03-09  Felix Zielcke  <fzielcke@z-51.de>
40769         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40770         `fs/ext2.c'.
40772 2009-03-08  Robert Millan  <rmh@aybabtu.com>
40774         Make loader/i386/linux.c usable on i386-pc again.
40776         * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40777         memory to heap.
40778         * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40779         `#error' stanza.
40781 2009-03-07  Bean  <bean123ch@gmail.com>
40783         * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40784         allocation.
40786 2009-03-06  Robert Millan  <rmh@aybabtu.com>
40788         Fix display issue on terminals with screen size other than 80x25
40789         (e.g. gfxterm with resolution higher than 640x480).
40791         * normal/main.c (grub_normal_init_page): Display title text in a
40792         position relative to the center of the terminal instead of relying
40793         on a hardcoded offset.
40795 2009-03-04  Robert Millan  <rmh@aybabtu.com>
40797         Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40798         installed.
40800         * Makefile.in (host_kernel): New variable.
40801         * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40802         scripts instead of just the windows one.
40803         * configure.ac: Initialize and AC_SUBST `host_kernel'.
40805 2009-03-04  Felix Zielcke  <fzielcke@z-51.de>
40807         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40808         `kern/handler.c'.
40809         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40810         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40811         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40812         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40813         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40814         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40816 2009-03-04  Felix Zielcke  <fzielcke@z-51.de>
40818         * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40819         or if there's no space for the disk label and print the partition number on a
40820         invalid magic.
40822 2009-03-04  Felix Zielcke  <fzielcke@z-51.de>
40824         * util/misc.c: Include <time.h>.
40825         (grub_millisleep): New function.
40827 2009-03-04  Bean  <bean123ch@gmail.com>
40829         * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40830         another option -mno-red-zone.
40832         * commands/handler.c: Change module description.
40834         * kern/handler.c: Add missing space at the end of description line.
40836         * kern/list.c: Likewise.
40838 2009-03-03  Robert Millan  <rmh@aybabtu.com>
40840         Move more components to the relocation area, and fix mbi pointer
40841         handling to use the destination rather than the origin (thanks to
40842         Vladimir Serbinenko for spotting).
40844         * loader/i386/multiboot.c (mbi_dest): New variable.
40845         (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40846         (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40847         relocation area.
40849 2009-03-01  Bean  <bean123ch@gmail.com>
40851         * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40852         (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40853         (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40854         (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40856         * loader/i386/efi/linux.c (acpi_guid): New variable.
40857         (acpi_guid): Likewise.
40858         (EBDA_SEG_ADDR): New constant.
40859         (LOW_MEM_ADDR): Likewise.
40860         (FAKE_EBDA_SEG): Likewise.
40861         (fake_bios_data): New function.
40862         (grub_linux_boot): Call fake_bios_data.
40864 2009-03-01  Bean  <bean123ch@gmail.com>
40866         * commands/terminal.c: Removed.
40868         * commands/handler.c: New file.
40870         * include/grub/list.h: Likewise.
40872         * include/grub/handler.h: Likewise.
40874         * kern/list.c: Likewise.
40876         * kern/handler.c: Likewise.
40878         * kern/term.h: Include header file <grub/handler.h>.
40879         (grub_term_input): Move next field to the beginning.
40880         (grub_term_output): Likewise.
40881         (grub_term_input_class): New variable.
40882         (grub_term_output_class): Likewise.
40883         (grub_term_register_input): Changed to inline function.
40884         (grub_term_register_output): Likewise.
40885         (grub_term_unregister_input): Likewise.
40886         (grub_term_unregister_output): Likewise.
40887         (grub_term_set_current_input): Likewise.
40888         (grub_term_set_current_output): Likewise.
40889         (grub_term_get_current_input): Likewise.
40890         (grub_term_get_current_output): Likewise.
40891         (grub_term_iterate_input): Removed.
40892         (grub_term_iterate_output): Likewise.
40894         * kern/term.c (grub_term_list_input): Removed.
40895         (grub_term_list_output): Likewise.
40896         (grub_term_input_class): New variable.
40897         (grub_term_output_class): Likewise.
40898         (grub_cur_term_input): Change variable as macro.
40899         (grub_cur_term_output): Likewise.
40900         (grub_term_register_input): Removed.
40901         (grub_term_register_output): Likewise.
40902         (grub_term_unregister_input): Likewise.
40903         (grub_term_unregister_output): Likewise.
40904         (grub_term_set_current_input): Likewise.
40905         (grub_term_set_current_output): Likewise.
40906         (grub_term_iterate_input): Likewise.
40907         (grub_term_iterate_output): Likewise.
40908         (grub_term_get_current_input): Likewise.
40909         (grub_term_get_current_output): Likewise.
40911         * util/grub-editenv.c: Include header file <grub/handler.h>.
40912         (grub_term_get_current_input): Removed.
40913         (grub_term_get_current_output): Likewise.
40914         (grub_term_input_class): New variable.
40915         (grub_term_output_class): Likewise.
40917         * util/grub-fstest.c (grub_term_get_current_input): Removed.
40918         (grub_term_get_current_output): Likewise.
40919         (grub_term_input_class): New variable.
40920         (grub_term_output_class): Likewise.
40922         * util/grub-probe.c (grub_term_get_current_input): Removed.
40923         (grub_term_get_current_output): Likewise.
40924         (grub_term_input_class): New variable.
40925         (grub_term_output_class): Likewise.
40927         * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40928         (grub_term_get_current_output): Likewise.
40929         (grub_term_input_class): New variable.
40930         (grub_term_output_class): Likewise.
40932         * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40933         (terminal_mod_SOURCES): Likewise.
40934         (terminal_mod_CFLAGS): Likewise.
40935         (terminal_mod_LDFLAGS): Likewise.
40937         * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40938         handler.c.
40939         (kernel_img_SOURCES): Add list.c and handler.c.
40940         (kernel_img_HEADERS): Add list.h and handler.h.
40942         * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40943         handler.c.
40944         (kernel_mod_SOURCES): Add list.c and handler.c.
40945         (kernel_mod_HEADERS): Add list.h and handler.h.
40947         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40948         handler.c.
40949         (kernel_elf_SOURCES): Add list.c and handler.c.
40950         (kernel_elf_HEADERS): Add list.h and handler.h.
40952         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40953         handler.c.
40954         (kernel_elf_SOURCES): Add list.c and handler.c.
40955         (kernel_elf_HEADERS): Add list.h and handler.h.
40957         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40958         handler.c.
40959         (kernel_mod_SOURCES): Add list.c and handler.c.
40960         (kernel_mod_HEADERS): Add list.h and handler.h.
40962         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40963         handler.c.
40964         (kernel_elf_SOURCES): Add list.c and handler.c.
40965         (kernel_elf_HEADERS): Add list.h and handler.h.
40967 2009-02-27  Robert Millan  <rmh@aybabtu.com>
40969         Factorize elf32 / elf64 code in Multiboot loader.  This will
40970         prevent it from getting out of sync again.
40972         * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40973         grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40974         grub_multiboot_load_elf64): Move from here ...
40975         * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40976         grub_multiboot_load_elf): ... to here (new file).
40978 2009-02-27  Robert Millan  <rmh@aybabtu.com>
40980         * util/grub.d/10_linux.in: Rename "single-user mode" to
40981         "recovery mode".
40983 2009-02-27  Vladimir Serbinenko  <phcoder@gmail.com>
40985         Don't leak in SCSI code.
40986         * disk/scsi.c (grub_scsi_close): free `scsi'.
40988 2009-02-27  Robert Millan  <rmh@aybabtu.com>
40990         * loader/i386/pc/multiboot.c: Move from here ...
40991         * loader/i386/multiboot.c: ... to here.  Update all users.
40993 2009-02-27  Robert Millan  <rmh@aybabtu.com>
40995         Patch from Alexandre Bique <bique.alexandre@gmail.com>
40996         * util/i386/pc/grub-setup.c (setup): Fix directory path.
40998 2009-02-27  Krzysztof Smiechowicz  <deadwood@wp.pl>
41000         * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
41001         b-tree.
41003 2009-02-27  Robert Millan  <rmh@aybabtu.com>
41005         * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
41006         `0x' qualifier as 0 when base is specified as parameter).
41008 2009-02-24  Bean  <bean123ch@gmail.com>
41010         * configure.ac: Check for -mcmodel=large in x86_64 target.
41012         * include/grub/efi/api.h (efi_call_10): New macro.
41013         (efi_wrap_10): New function.
41015         * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
41016         (GRUB_PE32_REL_BASED_HIGH): Likewise.
41017         (GRUB_PE32_REL_BASED_LOW): Likewise.
41018         (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
41019         (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
41020         (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
41021         (GRUB_PE32_REL_BASED_SECTION): Likewise.
41022         (GRUB_PE32_REL_BASED_REL): Likewise.
41023         (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
41024         (GRUB_PE32_REL_BASED_DIR64): Likewise.
41025         (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
41027         * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
41028         issue.
41030         * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
41031         (efi_wrap_10): New function.
41033         * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
41035         * loader/efi/appleloader.c (devpath_5): Add support for late 2008
41036         MB/MBP model (NV chipset).
41037         (devdata_devs): Add devpath_5 to the list.
41039         * load/i386/efi/linux.c (video_base): Remove variable.
41040         (RGB_MASK): New macro.
41041         (RGB_MAGIC): Likewise.
41042         (LINE_MIN): Likewise.
41043         (LINE_MAX): Likewise.
41044         (FBTEST_STEP): Likewise.
41045         (FBTEST_COUNT): Likewise.
41046         (fb_list): New variable.
41047         (grub_find_video_card): Remove function.
41048         (find_framebuf): New function.
41049         (grub_linux_setup_video): Use find_framebuf to get frame buffer and
41050         line length.
41052         * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
41053         problem for x86_64.
41055 2009-02-22  Vesa Jääskeläinen  <chaac@nic.fi>
41057         Patch #25624 by Kevin Lacquement <kevin@lacqui>.
41059         * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
41060         coding tool name.
41062 2009-02-22  Robert Millan  <rmh@aybabtu.com>
41064         * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
41065         * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
41066         in our relocation, instead of using it directly from heap.  Also
41067         use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
41069 2009-02-21  Robert Millan  <rmh@aybabtu.com>
41071         Implement USB keyboard support (based on patch by Marco Gerards)
41073         * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
41074         (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
41075         (usb_keyboard_mod_LDFLAGS): New variables.
41077         * term/usb_keyboard.c: New file.
41079 2009-02-14  Vladimir Serbinenko  <phcoder@gmail.com>
41081         Corrected wrong declaration
41083         * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
41085 2009-02-14  Christian Franke  <franke@computer.org>
41087         * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
41088         (grub_lspci_iter): Print class code and programming interface byte.
41090 2009-02-14  Christian Franke  <franke@computer.org>
41092         * gendistlist.sh: Ignore `.svn' directories.
41094 2009-02-14  Felix Zielcke  <fzielcke@z-51.de>
41096         * fs/fat.c: Add 2009 to Copyright line.
41098 2009-02-14  Christian Franke  <franke@computer.org>
41100         * commands/hdparm.c: New file.  Provides `hdparm' command
41101         which sends ATA commands via grub_disk_ata_pass_through ().
41103         * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41105         * disk/ata.c: Include <grub/ata.h>.  Move <grub/misc.h>
41106         and <grub/cpu/io.h> to include/grub/ata.h.
41107         (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41108         (GRUB_CDROM_SECTOR_SIZE): Remove.
41109         (GRUB_ATA_*): Move to include/grub/ata.h.
41110         (GRUB_ATAPI_*): Likewise.
41111         (enum grub_ata_commands): Likewise.
41112         (enum grub_ata_timeout_milliseconds): Likewise.
41113         (struct grub_ata_device): Likewise.
41114         (grub_ata_regset): Likewise.
41115         (grub_ata_regget): Likewise.
41116         (grub_ata_regset2): Likewise.
41117         (grub_ata_regget2): Likewise.
41118         (grub_ata_check_ready): Likewise.
41119         (grub_ata_wait_not_busy): Remove static, exported in
41120         include/grub/ata.h.
41121         (grub_ata_wait_drq): Likewise.
41122         (grub_ata_pio_read): Likewise.
41124         * disk/ata_pthru.c: New file.  Provides grub_ata_pass_through ()
41125         function for hdparm.mod.
41127         * include/grub/ata.h: New file, contains declarations from
41128         disk/ata.c.
41129         (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41131         * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41132         (grub_disk_ata_pass_through): New exported variable.
41134         * kern/disk.c (grub_disk_ata_pass_through): New variable.
41136 2009-02-13  Colin D Bennett  <colin@gibibit.com>
41138         Support multiple fallback entries, and provide an API to support
41139         executing default+fallback menu entries.  Renamed the `terminal' menu
41140         viewer to `text'.
41142         * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41143         variable declaration.
41144         (grub_menu_execute_callback): New structure declaration.
41145         (grub_menu_execute_callback_t): New typedef.
41146         (grub_menu_execute_with_fallback): New function declaration.
41147         (grub_menu_get_entry): Likewise.
41148         (grub_menu_get_timeout): Likewise.
41149         (grub_menu_set_timeout): Likewise.
41151         * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41153         * normal/menu.c (grub_wait_after_message): Moved to
41154         `normal/menu_text.c'.
41155         (draw_border): Likewise.
41156         (print_message): Likewise.
41157         (print_entry): Likewise.
41158         (print_entries): Likewise.
41159         (grub_menu_init_page): Likewise.
41160         (get_entry_number): Likewise.
41161         (print_timeout): Likewise.
41162         (run_menu): Likewise.
41163         (grub_menu_execute_entry): Likewise.
41164         (show_text_menu): Likewise.
41165         (get_and_remove_first_entry_number): New function.
41166         (grub_menu_execute_with_fallback): Likewise.
41167         (get_entry): Renamed to ...
41168         (grub_menu_get_entry): .. this and made it global.
41169         (get_timeout): Renamed to ...
41170         (grub_menu_get_timeout): ... this and made it global.
41171         (set_timeout): Renamed to ...
41172         (grub_menu_set_timeout): ... this and made it global.
41173         (grub_normal_terminal_menu_viewer): Renamed to ...
41174         (grub_normal_text_menu_viewer): ... this.
41176         * normal/menu_text.c: New file.  Extracted text-menu-specific code
41177         from normal/menu.c.
41179         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41180         (normal_mod_SOURCES): Likewise.
41182         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41183         (normal_mod_SOURCES): Likewise.
41185         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41186         (normal_mod_SOURCES): Likewise.
41188         * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41189         (normal_mod_SOURCES): Likewise.
41191         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41192         (normal_mod_SOURCES): Likewise.
41194         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41195         (normal_mod_SOURCES): Likewise.
41197         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41198         (normal_mod_SOURCES): Likewise.
41200 2009-02-11  Robert Millan  <rmh@aybabtu.com>
41202         * util/grub.d/00_header.in: Update old reference to `font' command.
41204 2009-02-10  Felix Zielcke  <fzielcke@z-51.de>
41206         * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41208         Based on patch from Javier Martín.
41210 2009-02-09  Felix Zielcke  <fzielcke@z-51.de>
41212         * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41213         to avoid false positives with FAT.
41214         (grub_fstest_SOURCES): Likewise.
41215         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41216         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41217         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41218         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41219         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41220         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41222 2009-02-09  Felix Zielcke  <fzielcke@z-51.de>
41224         * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41225         bpb.version_specific.fat12_or_fat16.fstype and
41226         bpb.version_specific.fat32.fstype.
41228 2009-02-08  Robert Millan  <rmh@aybabtu.com>
41230         * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41232 2009-02-08  Robert Millan  <rmh@aybabtu.com>
41234         * Makefile.in (host_os, host_cpu): New variables.
41235         (target_os): Remove.  Update all users.
41237 2009-02-08  Marco Gerards  <marco@gnu.org>
41239         * Makefile.in (enable_grub_emu_usb): New variable.
41240         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41241         (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41242         `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41243         (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41244         (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41245         `usbtest.mod' and `usbms.mod'.
41246         (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41247         (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41248         (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41249         (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41250         (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41251         variables.
41253         * disk/usbms.c: New file.
41255         * include/grub/usb.h: Likewise.
41257         * include/grub/usbtrans.h: Likewise.
41259         * include/grub/usbdesc.h: Likewise.
41261         * bus/usb/usbtrans.c: Likewise.
41263         * bus/usb/ohci.c: Likewise.
41265         * bus/usb/uhci.c: Likewise.
41267         * bus/usb/usbhub.c: Likewise.
41269         * bus/usb/usb.c: Likewise.
41271         * commands/usbtest.c: Likewise.
41273         * util/usb.c: Likewise.
41275         * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41277         * configure.ac: Test for libusb presence.
41279         * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41281 2009-02-08  Vesa Jääskeläinen  <chaac@nic.fi>
41283         * kern/mm.c: Add more comments.
41285 2009-02-08  Robert Millan  <rmh@aybabtu.com>
41287         Patch from Javier Martín.
41288         * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41289         `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41291 2009-02-08  Robert Millan  <rmh@aybabtu.com>
41293         * fs/cpio.c: Split tar functionality to ...
41294         * fs/tar.c: ... here (new file).  Update all users.
41296 2009-02-07  Robert Millan  <rmh@aybabtu.com>
41298         * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41299         backward-incompatible features.
41301         Based on patch from Javier Martín, with some adjustments.
41303 2009-02-07  Michael Scherer  <misc@mandriva.org>
41305         * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41307 2009-02-07  Robert Millan  <rmh@aybabtu.com>
41309         * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41310         position of `disk/lvm.c' to ensure grub_init_all() always picks it
41311         after the RAID stuff.
41313 2009-02-05  Vesa Jääskeläinen  <chaac@nic.fi>
41315         Fixes problem when running vbetest command as reported by
41316         Vladimir Serbinenko <phcoder@gmail.com>.
41318         * (grub_vbe_set_video_mode): Fixed problem with text modes.
41320 2009-02-04  Felix Zielcke  <fzielcke@z-51.de>
41322         util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41323         /dev/md/NpN style mdraid devices.
41325 2009-02-03  Felix Zielcke  <fzielcke@z-51.de>
41327         * util/unifont2pff.rb: Remove.
41329 2009-02-03  Felix Zielcke  <fzielcke@z-51.de>
41331         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41332         `#'.
41334 2009-02-03  Felix Zielcke  <fzielcke@z-51.de>
41336         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41337         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41338         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41339         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41340         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41341         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41342         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41344 2009-02-02  Christian Franke  <franke@computer.org>
41346         * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41348 2009-02-01  Felix Zielcke  <fzielcke@z-51.de>
41350         * INSTALL: Note that we now require at least autoconf 2.59 and
41351         that LZO is optional.
41353 2009-02-01  Vesa Jääskeläinen  <chaac@nic.fi>
41355         Base on patch on bug #24154 created by Tomas Tintera
41356         <trosos@seznam.cz>.
41358         * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41360 2009-02-01  Vesa Jääskeläinen  <chaac@nic.fi>
41362         Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41363         <bero@arklinux.org>.
41365         * normal/parser.y (script_init): Add missing semicolon.
41367 2009-01-31  Colin D Bennett  <colin@gibibit.com>
41369         * normal/main.c: Add include to grub/menu_viewer.h.
41370         (free_menu_entry_classes): Added.
41371         (grub_normal_menu_addentry): Added class property handling.
41372         (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41373         (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41375         * normal/menu_viewer.c: New file.
41377         * normal/menu.c (run_menu_entry): Renamed to ...
41378         (grub_menu_execute_entry): ... this and made it as global.
41379         (grub_menu_run): Renamed to ...
41380         (show_text_menu): ... this and made it local.
41381         (show_text_menu): Adapt to new function names.
41382         (grub_normal_terminal_menu_viewer): New global variable.
41384         * include/grub/menu.h: New file.
41386         * include/grub/menu_viewer.h: New file.
41388         * include/grub/normal.h: Added include to grub/menu.h.
41389         (grub_menu_entry): Moved to include/grub/menu.h.
41390         (grub_menu_entry_t): Likewise.
41391         (grub_menu): Likewise.
41392         (grub_menu_t): Likewise.
41393         (grub_normal_terminal_menu_viewer): Added.
41394         (grub_menu_execute_entry): Likewise.
41395         (grub_menu_run): Removed.
41397         * DISTLIST: Added include/grub/menu.h.
41398         Added include/grub/menu_viewer.h.
41399         Added normal/menu_viewer.c.
41401 2009-01-31  Vesa Jääskeläinen  <chaac@nic.fi>
41403         * normal/execute.c (grub_script_execute_menuentry): Changed to use
41404         arglist for menutitle arguments.
41406         * normal/main.c (grub_normal_menu_addentry): Likewise.
41408         * normal/parser.y (menuentry): Likewise.
41410         * normal/script.c (grub_script_create_cmdmenu): Likewise.
41412         * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41413         (grub_script_create_cmdmenu): Likewise.
41415         * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41417         * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41418         changes.
41420         * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41422         * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41424         * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41426         * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41428         * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41430         * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41432 2009-01-30  Christian Franke  <franke@computer.org>
41434         * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41435         in option help text.
41437 2009-01-27  Pavel Roskin  <proski@gnu.org>
41439         * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41441 2009-01-27  Vesa Jääskeläinen  <chaac@nic.fi>
41443         * commands/lsmmap.c: Add include to grub/machine/memory.h.
41445         * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41447         * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41448         unregister function.
41450 2009-01-27  Vesa Jääskeläinen  <chaac@nic.fi>
41452         * disk/scsi.c (grub_scsi_read): Fix sign problem.
41454         * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41456         * util/grub-mkfont.c (usage): Fix typo.
41458         * util/elf/grub-mkimage.c (load_modules): Fix warning.
41460 2009-01-26  Daniel Mierswa  <impulze@impulze.org>
41462         * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41464         * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41466         * kern/misc.c (grub_strcasecmp): New function.
41467         (grub_strcasecmp): Use grub_size_t instead of int for length.
41468         Fix return value.
41469         * include/grub/misc.h: Update function prototypes.
41471 2009-01-26  Robert Millan  <rmh@aybabtu.com>
41473         * configure.ac: Fix cross-compilation check.
41475 2009-01-22  Christian Franke  <franke@computer.org>
41477         * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41478         (precision) digit string.  Allow `.format2' without `format1' (width).
41479         Limit input chars for `%s' output to `format2' if specified.  This is
41480         compatible with standard printf ().
41482 2009-01-22  Christian Franke  <franke@computer.org>
41484         * disk/ata.c (grub_ata_wait_status): Replace by ...
41485         (grub_ata_wait_not_busy): ... this function.  Checks only BSY bit,
41486         other status bits may be invalid while BSY is asserted.
41487         (grub_ata_check_ready): New function.
41488         (grub_ata_cmd): Removed.
41489         (grub_ata_wait_drq): New function.
41490         (grub_ata_strncpy): Remove inline.
41491         (grub_ata_pio_read): Reduce to actual block transfer.  BSY wait
41492         and error check now done by grub_ata_wait_drq ().
41493         (grub_ata_pio_write): Likewise.
41494         (grub_atapi_identify): Set DEV before check for !BSY.  Use
41495         grub_ata_wait_drq () to wait for data.
41496         (grub_ata_device_initialize): Add status register check to
41497         detect missing SATA slave devices.  Add debug messages.
41498         (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41499         (grub_atapi_packet): Set DEV before check for !BSY.  Replace
41500         transfer loop by grub_ata_pio_write ().
41501         (grub_ata_identify): Set DEV before check for !BSY. Use
41502         grub_ata_wait_drq () to wait for data.
41503         (grub_ata_setaddress): Set DEV before check for !BSY.
41504         (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41505         read/write in one loop.  Fix invalid command on write.  Fix incomplete
41506         command on (size % batch) == 0.  Add missing error check after write of
41507         last block.  Add debug messages.
41508         (grub_atapi_read):  Replace transfer loop by grub_ata_pio_read ().
41510 2009-01-19  Christian Franke  <franke@computer.org>
41512         * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41513         (GRUB_ATAPI_IREASON_*): Likewise.
41514         (grub_ata_pio_write): Fix timeout error return.
41515         (grub_atapi_identify): Add grub_ata_wait () after cmd.
41516         (grub_atapi_wait_drq): New function.
41517         (grub_atapi_packet): New parameter `size'.
41518         Use grub_atapi_wait_drq () and direct write instead of
41519         grub_ata_pio_write ().
41520         (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41521         reads the number of bytes requested by the device for each DRQ
41522         assertion.
41523         (grub_atapi_write): Remove old implementation, return not
41524         implemented instead.
41526 2009-01-19  Christian Franke  <franke@computer.org>
41528         * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41529         of 512 to calculate data size.
41530         (grub_scsi_read12): Likewise.
41531         (grub_scsi_write10): Likewise.
41532         (grub_scsi_write12): Likewise.
41533         (grub_scsi_read): Adjust size according to blocksize.
41534         Add checks for invalid blocksize and unaligned transfer.
41536 2009-01-19  Vesa Jääskeläinen  <chaac@nic.fi>
41538         * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41540         * term/gfxterm.c (write_char): Fix background rendering for wide
41541         width glyphs.
41543 2009-01-19  Robert Millan  <rmh@aybabtu.com>
41545         * config.guess: Update to latest version from config git.
41546         * config.sub: Likewise.
41548 2009-01-17  Felix Zielcke  <fzielcke@z-51.de>
41550         * Makefile.in: Change font compilation to use new grub-mkfont instead
41551         of java version.
41553         * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41554         * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41555         * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41556         * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41557         * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41558         * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41559         * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41560         * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41561         * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41563 2009-01-16  Christian Franke  <franke@computer.org>
41565         * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41566         (enum grub_ata_timeout_milliseconds): New enum.
41567         (grub_ata_wait_status): Add parameter milliseconds.
41568         (grub_ata_cmd): Remove variable `err'.  Remove wait for !DRQ to allow
41569         recovery from timed-out commands.
41570         (grub_ata_pio_read): Add parameter milliseconds.  Fix error return,
41571         return grub_errno instead of REG_ERROR.
41572         (grub_ata_pio_write): Add parameter milliseconds.
41573         (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41574         Pass milliseconds to grub_ata_wait_status () and
41575         grub_ata_pio_read ().
41576         (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41577         (grub_ata_identify): Remove variable `ataerr'.  Pass milliseconds to
41578         grub_ata_wait_status ().  Fix IDENTIFY timeout check.
41579         (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41580         It is not suitable for device detection, because DEV bit is ignored,
41581         the command may run too long, and not all devices set the signature
41582         properly.
41583         (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41584         (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41585         Fix device selection, DEV bit must be set first to address the registers
41586         of the correct device.
41587         (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41588         grub_ata_pio_read/write ().
41589         (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41590         (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41592 2009-01-13  Carles Pina i Estany  <carles@pina.cat>
41594         * util/grub-editenv.c (main): Use fseeko(), not fseek().
41596 2009-01-13  Bean  <bean123ch@gmail.com>
41598         * util/grub-mkfont.c (write_font): forget to remove some debug code.
41600 2009-01-13  Bean  <bean123ch@gmail.com>
41602         * Makefile.in: (enable_grub_mkfont): New variable.
41603         (freetype_cflags): Likewise.
41604         (freetype_libs): Likewise.
41606         * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41607         (grub_mkfont_SOURCES): New variable.
41608         (grub_mkfont_CFLAGS): Likewise.
41609         (grub_mkfont_LDFLAGS): Likewise.
41611         * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41612         library if `--enable-grub-mkfont' is requested.
41613         (enable_grub_mkfont): New variable.
41614         (freetype_cflags): Likewise.
41615         (freetype_libs): Likewise.
41617         * util/grub-mkfont.c: New file.
41619 2009-01-12  Christian Franke  <franke@computer.org>
41621         * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41622         mode check.  Fix setting of compat_use[].
41624 2009-01-10  Robert Millan  <rmh@aybabtu.com>
41626         Update a few copyright years which we forgot to do in 2008 (only for
41627         files whose changes made in 2008 were copyright-significant)
41629         * Makefile.in: Add 2008 to Copyright line.
41630         * disk/ieee1275/ofdisk.c: Likewise.
41631         * disk/efi/efidisk.c: Likewise.
41632         * kern/dl.c: Likewise.
41633         * kern/sparc64/ieee1275/init.c: Likewise.
41634         * kern/mm.c: Likewise.
41635         * kern/efi/mm.c: Likewise.
41636         * boot/i386/pc/boot.S: Likewise.
41637         * genfslist.sh: Likewise.
41638         * fs/iso9660.c: Likewise.
41639         * fs/hfs.c: Likewise.
41640         * fs/jfs.c: Likewise.
41641         * fs/minix.c: Likewise.
41642         * fs/ufs.c: Likewise.
41643         * gensymlist.sh.in: Likewise.
41644         * genkernsyms.sh.in: Likewise.
41645         * include/grub/misc.h: Likewise.
41646         * include/grub/types.h: Likewise.
41647         * include/grub/symbol.h: Likewise.
41648         * include/grub/elf.h: Likewise.
41649         * include/grub/kernel.h: Likewise.
41650         * include/grub/disk.h: Likewise.
41651         * include/grub/dl.h: Likewise.
41652         * include/grub/i386/linux.h: Likewise.
41653         * include/grub/i386/pc/biosdisk.h: Likewise.
41654         * include/grub/efi/api.h: Likewise.
41655         * include/grub/efi/pe32.h: Likewise.
41656         * include/grub/util/misc.h: Likewise.
41657         * normal/execute.c: Likewise.
41658         * normal/arg.c: Likewise.
41659         * normal/completion.c: Likewise.
41660         * normal/lexer.c: Likewise.
41661         * normal/parser.y: Likewise.
41662         * normal/misc.c: Likewise.
41663         * commands/i386/pc/vbeinfo.c: Likewise.
41664         * commands/hexdump.c: Likewise.
41665         * commands/terminal.c: Likewise.
41666         * commands/ls.c: Likewise.
41667         * commands/help.c: Likewise.
41668         * partmap/pc.c: Likewise.
41669         * loader/efi/chainloader.c: Likewise.
41670         * loader/multiboot_loader.c: Likewise.
41671         * loader/i386/pc/multiboot2.c: Likewise.
41672         * term/efi/console.c: Likewise.
41673         * term/i386/pc/serial.c: Likewise.
41674         * util/lvm.c: Likewise.
41675         * util/console.c: Likewise.
41676         * util/i386/efi/grub-mkimage.c: Likewise.
41677         * util/raid.c: Likewise.
41679 2009-01-06  Vesa Jääskeläinen  <chaac@nic.fi>
41681         * commands/videotest.c: Removed include to grub/machine/memory.h.
41683         * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41684         videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41685         (video_mod_SOURCES): Removed.
41686         (video_mod_CFLAGS): Likewise.
41687         (video_mod_LDFLAGS): Likewise.
41688         (gfxterm_mod_SOURCES): Likewise.
41689         (gfxterm_mod_CFLAGS): Likewise.
41690         (gfxterm_mod_LDFLAGS): Likewise.
41691         (videotest_mod_SOURCES): Likewise.
41692         (videotest_mod_CFLAGS): Likewise.
41693         (videotest_mod_LDFLAGS): Likewise.
41694         (bitmap_mod_SOURCES): Likewise.
41695         (bitmap_mod_CFLAGS): Likewise.
41696         (bitmap_mod_LDFLAGS): Likewise.
41697         (tga_mod_SOURCES): Likewise.
41698         (tga_mod_CFLAGS): Likewise.
41699         (tga_mod_LDFLAGS): Likewise.
41700         (jpeg_mod_SOURCES): Likewise.
41701         (jpeg_mod_CFLAGS): Likewise.
41702         (jpeg_mod_LDFLAGS): Likewise.
41703         (png_mod_SOURCES): Likewise.
41704         (png_mod_CFLAGS): Likewise.
41705         (png_mod_LDFLAGS): Likewise.
41707         * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41708         bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41709         (video_mod_SOURCES): Added.
41710         (video_mod_CFLAGS): Likewise.
41711         (video_mod_LDFLAGS): Likewise.
41712         (videotest_mod_SOURCES): Likewise.
41713         (videotest_mod_CFLAGS): Likewise.
41714         (videotest_mod_LDFLAGS): Likewise.
41715         (bitmap_mod_SOURCES): Likewise.
41716         (bitmap_mod_CFLAGS): Likewise.
41717         (bitmap_mod_LDFLAGS): Likewise.
41718         (tga_mod_SOURCES): Likewise.
41719         (tga_mod_CFLAGS): Likewise.
41720         (tga_mod_LDFLAGS): Likewise.
41721         (jpeg_mod_SOURCES): Likewise.
41722         (jpeg_mod_CFLAGS): Likewise.
41723         (jpeg_mod_LDFLAGS): Likewise.
41724         (png_mod_SOURCES): Likewise.
41725         (png_mod_CFLAGS): Likewise.
41726         (png_mod_LDFLAGS): Likewise.
41727         (gfxterm_mod_SOURCES): Likewise.
41728         (gfxterm_mod_CFLAGS): Likewise.
41729         (gfxterm_mod_LDFLAGS): Likewise.
41731         * term/gfxterm.c: Removed include to grub/machine/memory.h,
41732         grub/machine/console.h.
41734 2009-01-04  Jerone Young  <jerone@gmail.com>
41736         Make on screen instructions clearer
41738         Based on patch created by Jidanni <jidanni@jidanni.org>
41740         * normal/menu.c: print clearer instructions on the screen
41742 2009-01-02  Colin D Bennett  <colin@gibibit.com>
41744         New font engine.
41746         Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41747         build system and fixed gfxterm.c to work with different sized fonts.
41749         * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41751         * configure: Re-generated.
41753         * DISTLIST: Removed font/manager.c.
41754         Added font/font.c.
41755         Added font/font_cmd.c.
41757         * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF.  Added Font tool
41758         compilation.
41760         * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype.  Changed users.
41762         * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41764         * kern/term.c: Changed users of grub_utf8_to_ucs4.
41766         * normal/menu.c: Likewise.
41768         * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41769         (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41771         * include/grub/font.h: Replaced with new file.
41773         * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41774         (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41775         (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41776         (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41777         (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41778         (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41779         fg_red, fg_green, fg_blue, fg_alpha.
41780         (grub_video_adapter): Removed blit_glyph.
41781         (grub_video_blit_glyph): Removed.
41783         * font/manager.c: Removed file.
41785         * font/font.c: New file.
41787         * font/font_cmd.c: Likewise.
41789         * video/video.c (grub_video_blit_glyph): Removed.
41791         * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41792         (grub_video_vbe_map_rgba): Likewise.
41793         (grub_video_vbe_unmap_color_int): Likewise.
41794         (grub_video_vbe_blit_glyph): Removed.
41795         (grub_video_vbe_adapter): Removed blit_glyph.
41797         * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41798         (get_pixel): Likewise.
41799         (set_pixel): Likewise.
41801         * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41803         * term/gfxterm.c: Adapted to new font engine.
41805         * term/i386/pc/vesafb.c: Marked as deprecated.  Made it compile.
41807         * term/i386/pc/vga.c: Likewise.
41809         * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41811         * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41813         * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41815         * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41817         * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41819         * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41821         * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41823         * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41825         * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41827         * util/grub.d/00_header.in: Changed to use new loadfont command.
41829         * util/grub-mkconfig_lib.in: Changed font extension.
41831 2008-12-28  Felix Zielcke  <fzielcke@z-51.de>
41833         * util/getroot.c (grub_util_get_grub_dev): Add support for
41834         /dev/md/dNNpNN style partitionable mdraid devices.
41836 2008-12-12  Alex Smith  <alex@alex-smith.me.uk>
41838         * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41839         at a time limit of the PXE TFTP API correctly.
41840         (grub_pxefs_close): Likewise.
41842 2008-11-29  Robert Millan  <rmh@aybabtu.com>
41844         * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41845         grub_ata_device_initialize() calls.
41847 2008-11-28  Krzysztof Smiechowicz  <deadwood@wp.pl>
41849         * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41850         iteration failed.
41851         * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41853 2008-11-28  Robert Millan  <rmh@aybabtu.com>
41855         Fix build on powerpc-ieee1275.  Based on patch created by
41856         Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41857         * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41858         `kern/ieee1275/mmap.c'.
41859         * include/grub/powerpc/ieee1275/memory.h: New file.
41861         Provide grub-install on coreboot.
41862         * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41863         (grub_install_SOURCES): New variable.
41864         * util/i386/pc/grub-install.in: Add a few condition checks to make it
41865         usable on coreboot.
41867 2008-11-25  Felix Zielcke  <fzielcke@z-51.de>
41869         * util/grub-fstest.c (grub_term_get_current_input): Change return type
41870         to `grub_term_input_t'.
41871         (grub_term_get_current_output): Change return type to
41872         `grub_term_output_t'.
41874 2008-11-22  Robert Millan  <rmh@aybabtu.com>
41876         Fix breakage on coreboot due to declaration mismatch.
41877         * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41878         (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41879         grub_vga_text_cls().
41881         * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41882         comments.  Avoid copying one more byte than necessary (just in case).
41884         * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41885         to 0x200000 (avoids trouble with some OFW implementations, and matches
41886         with the one in Yaboot).
41887         Reported by Manoel Abranches
41889 2008-11-20  Robert Millan  <rmh@aybabtu.com>
41891         * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41892         (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41894         * util/grub-mkconfig_lib.in (grub_warn): New function.
41895         (convert_system_path_to_grub_path): Use grub_warn() when issuing
41896         warnings, to obtain consistent formatting.
41897         * util/grub.d/00_header.in: Likewise.
41898         * util/update-grub_lib.in: Likewise.
41900         * loader/i386/linux.c (allocate_pages): Fix a warning.
41901         Move comment text to `#error' stanza.
41903         Harmonize ieee1275's grub_available_iterate() with the generic
41904         grub_machine_mmap_iterate() interface (fixes a recently-introduced
41905         build problem on i386-ieee1275):
41906         * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41907         * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here.  Add third
41908         parameter `type'.  Update all users of this function.
41909         * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41910         `kern/ieee1275/mmap.c'.
41911         * kern/ieee1275/init.c
41912         * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41913         with ...
41914         (grub_machine_mmap_iterate): ... this.
41915         * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41916         return type to `grub_err_t'.  Update all implementations of this
41917         function prototype.
41918         * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41919         Likewise.
41921         Add `lsmmap' command (lists firmware-provided memory map):
41922         * commands/lsmmap.c: New file.
41923         * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41924         (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41925         variables.
41926         * conf/powerpc-ieee1275.rmk: Likewise.
41927         * conf/i386-coreboot.rmk: Likewise.
41928         * conf/i386-ieee1275.rmk: Likewise.
41930 2008-11-19  Robert Millan  <rmh@aybabtu.com>
41932         * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41933         * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41934         constraints to initrd allocation (based on code from
41935         loader/i386/pc/linux.c).  Without them, initrd was allocated too high
41936         for Linux to find it.
41938 2008-11-14  Robert Millan  <rmh@aybabtu.com>
41940         * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41941         order to cope with duplicate slashes.
41943 2008-11-14  Robert Millan  <rmh@aybabtu.com>
41945         * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41946         Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000).  We
41947         don't want to mess with lower memory, because it is used in the Linux
41948         loader.
41950         * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41951         an appropriate place in lower memory, between 0x10000 and 0x90000,
41952         like loader/i386/efi/linux.c does.  Linux often panics if real_mode_mem
41953         is in our heap (probably as a result of it being corrupted during
41954         decompression).  Add #error instance with comment to explain why this
41955         loader isn't currently usable on PC/BIOS.
41957 2008-11-14  Robert Millan  <rmh@aybabtu.com>
41959         * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41960         (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41962 2008-11-12  Robert Millan  <rmh@aybabtu.com>
41964         Make loader/i386/linux.c buildable on i386-pc (although disabled).
41966         * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41967         (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41968         from here ...
41969         * include/grub/i386/pc/memory.h: ... to here.
41971 2008-11-12  Robert Millan  <rmh@aybabtu.com>
41973         Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41974         split).
41976         * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41977         (grub_console_cur_color, grub_console_real_putchar)
41978         (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41979         (grub_console_setcolorstate, grub_console_setcolor)
41980         (grub_console_getcolor): Move from here ...
41981         * include/grub/i386/vga_common.h: ... to here (new file).
41983         * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41984         `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41985         `<grub/i386/io.h>'.
41986         * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41987         `<grub/i386/vga_common.h>'.
41989 2008-11-12  Robert Millan  <rmh@aybabtu.com>
41991         * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41992         * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41993         (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41994         variables.
41995         * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41996         `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41998         * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41999         grub_console_init() with call to grub_vga_text_init().
42000         (grub_machine_fini): Replace call to
42001         grub_console_fini() with call to grub_vga_text_fini() and
42002         grub_at_keyboard_fini().
42004         * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
42005         (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
42006         (grub_console_setcolorstate, grub_console_setcolor)
42007         (grub_console_getcolor): New function prototypes.
42009         * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
42010         (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
42011         (grub_vga_text_setcursor): Static-ize.
42012         (grub_vga_text_term): New structure.
42013         (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
42015         * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
42016         (grub_console_cur_color, grub_console_standard_color)
42017         (grub_console_normal_color, grub_console_highlight_color)
42018         (map_char, grub_console_putchar, grub_console_getcharwidth)
42019         (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
42020         (grub_console_getcolor): Move from here ...
42021         * term/i386/vga_common.c: ... to here (same function names).
42023 2008-11-12  Robert Millan  <rmh@aybabtu.com>
42025         Use newly-added Multiboot support in coreboot.
42027         * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
42028         `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
42030         * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
42031         alignment, set `MULTIBOOT_MEMORY_INFO' flag.
42032         (codestart): Store the MBI in `startup_multiboot_info' when we're
42033         being loaded using Multiboot.
42035         * kern/i386/coreboot/init.c (grub_machine_init): Move
42036         grub_at_keyboard_init() call to beginning of function (useful for
42037         debugging).  Call grub_machine_mmap_init() before attempting to use
42038         grub_machine_mmap_iterate().
42039         (grub_lower_mem, grub_upper_mem): Move from here ...
42040         * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
42041         here (new file).
42043         * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
42044         function prototype.
42046 2008-11-12  Robert Millan  <rmh@aybabtu.com>
42048         Fix a regression introduced by the at_keyboard.mod split.  Because
42049         some terminals are default on some platforms and non-default on
42050         others, the first terminal being registered determines which is
42051         going to be default.
42053         * kern/term.c (grub_term_register_input): If this is the first
42054         terminal being registered, set it as the current one.
42055         (grub_term_register_output): Likewise.
42057         * term/efi/console.c (grub_console_init): Do not call
42058         grub_term_set_current_output() or grub_term_set_current_input().
42059         * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
42060         * term/i386/pc/console.c (grub_console_init): Likewise.
42061         (grub_console_fini): Do not call grub_term_set_current_input()
42062         (but leave grub_term_set_current_output() to restore text mode).
42064 2008-11-10  Robert Millan  <rmh@aybabtu.com>
42066         * util/grub.d/00_header.in: Add backward compatibility check for
42067         versions of terminal.mod that don't understand `terminal_input' or
42068         `terminal_output'.
42070 2008-11-09  Robert Millan  <rmh@aybabtu.com>
42072         * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
42073         `terminal_input' / `terminal_output', not `terminal'.
42075 2008-11-08  Robert Millan  <rmh@aybabtu.com>
42077         * Makefile.in (include_DATA): Fix srcdir=. assumption.
42078         (DISTCLEANFILES): Add `build_env.mk'.
42080 2008-11-08  Robert Millan  <rmh@aybabtu.com>
42082         * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
42083         `struct grub_term_output'.  Remove `.checkkey' and `.getkey'
42084         members.  Update all users.
42085         * util/console.c (grub_ncurses_term): Split in ...
42086         (grub_ncurses_term_input): ... this, and ...
42087         (grub_ncurses_term_output): ... this.  Update all users.
42088         * term/ieee1275/ofconsole.c: Remove stale `#endif'.
42090 2008-11-08  Robert Millan  <rmh@aybabtu.com>
42092         * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
42093         (PKGDATA): Add $(pkgdata_SRCDIR).
42094         (pkglib_BUILDDIR): New variable.
42095         (pkgdata_SRCDIR): New variable.
42096         (build_env.mk): New target.
42097         (include_DATA): New variable.
42098         (install-local): Install $(include_DATA) files in $(includedir).
42100 2008-11-07  Pavel Roskin  <proski@gnu.org>
42102         * gendistlist.sh: Use C locale for sorting to ensure consistent
42103         output on all systems.
42105         * util/grub.d/00_header.in: Remove incorrect space before
42106         "serial".
42108 2008-11-07  Robert Millan  <rmh@aybabtu.com>
42110         * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42111         per specification.
42112         * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42113         * loader/multiboot_loader.c (find_multi_boot2_header): New function
42114         (based on find_multi_boot1_header).
42115         (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42116         using find_multi_boot2_header(), and abort if neither Multiboot or
42117         Multiboot headers were found.
42119 2008-11-07  Robert Millan  <rmh@aybabtu.com>
42121         Modularize at_keyboard.mod:
42123         * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42124         (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42125         (at_keyboard_mod_LDFLAGS): New variables.
42127         Actual terminal split:
42129         * include/grub/term.h (struct grub_term): Split in ...
42130         (struct grub_term_input): ... this, and ...
42131         (struct grub_term_output): ... this.  Update all users.
42132         (grub_term_set_current): Split in ...
42133         (grub_term_set_current_input): ... this, and ...
42134         (grub_term_set_current_output): ... this.
42135         (grub_term_get_current): Split in ...
42136         (grub_term_get_current_input): ... this, and ...
42137         (grub_term_get_current_output): ... this.
42138         (grub_term_register): Split in ...
42139         (grub_term_register_input): ... this, and ...
42140         (grub_term_register_output): ... this.
42141         (grub_term_unregister): Split in ...
42142         (grub_term_unregister_input): ... this, and ...
42143         (grub_term_unregister_output): ... this.
42144         (grub_term_iterate): Split in ...
42145         (grub_term_iterate_input): ... this, and ...
42146         (grub_term_iterate_output): ... this.
42148         * kern/term.c (grub_term_list): Split in ...
42149         (grub_term_list_input): ... this, and ...
42150         (grub_term_list_output): ... this.  Update all users.
42151         (grub_cur_term): Split in ...
42152         (grub_cur_term_input): ... this, and ...
42153         (grub_cur_term_output): ... this.  Update all users.
42154         (grub_term_set_current): Split in ...
42155         (grub_term_set_current_input): ... this, and ...
42156         (grub_term_set_current_output): ... this.
42157         (grub_term_get_current): Split in ...
42158         (grub_term_get_current_input): ... this, and ...
42159         (grub_term_get_current_output): ... this.
42160         (grub_term_register): Split in ...
42161         (grub_term_register_input): ... this, and ...
42162         (grub_term_register_output): ... this.
42163         (grub_term_unregister): Split in ...
42164         (grub_term_unregister_input): ... this, and ...
42165         (grub_term_unregister_output): ... this.
42166         (grub_term_iterate): Split in ...
42167         (grub_term_iterate_input): ... this, and ...
42168         (grub_term_iterate_output): ... this.
42170         * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42171         a check for input and one for output (and only attempt to get keys
42172         from user when input works).
42174         * util/grub-probe.c (grub_term_get_current): Split in ...
42175         (grub_term_get_current_input): ... this, and ...
42176         (grub_term_get_current_output): ... this.
42177         * util/grub-fstest.c: Likewise.
42178         * util/i386/pc/grub-setup.c: Likewise.
42179         * util/grub-editenv.c: Likewise.
42181         Portability adjustments:
42183         * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42184         `term/i386/pc/at_keyboard.c'.
42185         * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42186         grub_keyboard_controller_init() (now handled by terminal .init).
42187         * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42188         grub_at_keyboard_init().
42189         * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42190         (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42191         at_keyboard.mod via input terminal interface).
42192         * include/grub/i386/coreboot/console.h: Convert into a stub for
42193         `<grub/i386/pc/console.h>'.
42195         Migrate full terminals to new API:
42197         * term/efi/console.c (grub_console_term): Split into ...
42198         (grub_console_term_input): ... this, and ...
42199         (grub_console_term_output): ... this.  Update all users.
42200         * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42201         (grub_ofconsole_init): Split into ...
42202         (grub_ofconsole_init_input): ... this, and ...
42203         (grub_ofconsole_init_output): ... this.
42204         (grub_ofconsole_term): Split into ...
42205         (grub_ofconsole_term_input): ... this, and ...
42206         (grub_ofconsole_term_output): ... this.  Update all users.
42207         * term/i386/pc/serial.c (grub_serial_term): Split into ...
42208         (grub_serial_term_input): ... this, and ...
42209         (grub_serial_term_output): ... this.  Update all users.
42210         * term/i386/pc/console.c (grub_console_term): Split into ...
42211         (grub_console_term_input): ... this, and ...
42212         (grub_console_term_output): ... this.  Update all users.
42213         (grub_console_term_input): Only enable it on PC/BIOS platform.
42214         (grub_console_init): Remove grub_keyboard_controller_init() call.
42216         Migrate input terminals to new API:
42218         * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42219         `i386' and `i386/pc' to enable build on x86_64 (this driver is
42220         i386-specific anyway).
42221         (grub_console_checkkey): Rename to ...
42222         (grub_at_keyboard_checkkey): ... this.  Static-ize.  Update all
42223         users.
42224         (grub_keyboard_controller_orig): New variable.
42225         (grub_console_getkey): Rename to ...
42226         (grub_at_keyboard_getkey): ... this.  Static-ize.  Update all
42227         users.
42228         (grub_keyboard_controller_init): Static-ize.  Save original
42229         controller value so that it can be restored ...
42230         (grub_keyboard_controller_fini): ... here (new function).
42231         (grub_at_keyboard_term): New structure.
42232         (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42233         functions.
42235         Migrate output terminals to new API:
42237         * term/i386/pc/vga.c (grub_vga_term): Change type to
42238         `struct  grub_term_output'.  Remove `.checkkey' and `.getkey'
42239         members.  Update all users.
42240         * term/gfxterm.c (grub_video_term): Change type to
42241         `struct  grub_term_output'.  Remove `.checkkey' and `.getkey'
42242         members.  Update all users.
42243         * include/grub/i386/pc/console.h (grub_console_checkkey)
42244         (grub_console_getkey): Do not export (no longer needed by gfxterm,
42245         etc).
42247         Migrate `terminal' command and userland tools to new API:
42249         * commands/terminal.c (grub_cmd_terminal): Split into ...
42250         (grub_cmd_terminal_input): ... this, and ...
42251         (grub_cmd_terminal_output): ... this.
42252         (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42253         `terminal_input' and `terminal_output'.
42254         * util/grub.d/00_header.in: Adjust `terminal' calls to new
42255         `terminal_input' / `terminal_output' API.
42256         * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42257         ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42258         provided ${GRUB_TERMINAL}, convert it).
42260 2008-11-04  Robert Millan  <rmh@aybabtu.com>
42262         * util/grub.d/10_freebsd.in: New file.  Generate grub configuration
42263         for FreeBSD.
42264         * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42266 2008-11-03  Bean  <bean123ch@gmail.com>
42268         * kern/elf.c (grub_elf32_load): Revert to previous code.
42269         (grub_elf64_load): Likewise.
42271         * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42273 2008-11-01  Robert Millan  <rmh@aybabtu.com>
42275         * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42276         (TARGET_CPPFLAGS): Likewise.
42277         * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42279 2008-11-01  Carles Pina i Estany  <carles@pina.cat>
42281         * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42283 2008-10-29  Guillem Jover  <guillem.jover@nokia.com>
42285         * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42286         addition of objects until the code is not going to be able to fail.
42288 2008-10-29  Guillem Jover  <guillem.jover@nokia.com>
42290         * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42291         (add a missing NULL check, and correct them by moving the pointer
42292         operations after the actual check).
42294 2008-10-29  Robert Millan  <rmh@aybabtu.com>
42296         * util/i386/pc/grub-install.in: Handle empty string as output from
42297         make_system_path_relative_to_its_root().
42299 2008-10-05  Hans Lambermont  <hans@lambermont.dyndns.org>
42301         * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42302         circular metadata worst case scenario. If the metadata is circular
42303         then copy the wrap in place.
42304         * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42305         project lib/format_text/layout.h
42306         Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42308 2008-10-03  Felix Zielcke  <fzielcke@z-51.de>
42310         * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42312 2008-10-03  Felix Zielcke  <fzielcke@z-51.de>
42314         * util/update-grub_lib.in: Mention filename in warning message.
42316 2008-09-29  Felix Zielcke  <fzielcke@z-51.de>
42318         * NEWS: Update for rename of update-grub to grub-mkconfig.
42320 2008-09-29  Felix Zielcke  <fzielcke@z-51.de>
42322         * util/update-grub_lib.in: Copy to ...
42323         * util/grub-mkconfig_lib.in: ... this.  Update all users.
42324         * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42325         * util/update-grub.in: Rename to ...
42326         * util/grub-mkconfig.in: ... this.  Update all users.  Remove `-y'
42327         option. Add `--output' option to allow users to specify the generated
42328         configuration file.  Default to stdout.
42329         (update_grub_dir): Rename to ...
42330         (grub_mkconfig_dir): ... this.
42331         (grub_cfg): Default to an empty string.
42332         * conf/common.rmk (update-grub): Rename to ...
42333         (grub-mkconfig): ... this.
42334         (update-grub_lib): Copy to ...
42335         (grub-mkconfig_lib): ... this.
42336         (update-grub_SCRIPTS): Copy to ...
42337         (grub-mkconfig_SCRIPTS): ... this. Update all users.
42338         (update-grub_DATA): Rename to ...
42339         (grub-mkconfig_DATA): ... this.
42341 2008-09-28  Robert Millan  <rmh@aybabtu.com>
42343         * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42344         to `modified'.  Add the real `created' field.
42345         (grub_iso9660_uuid): Use `modified' rather than `created' for
42346         constructing the UUID.
42348 2008-09-28  Felix Zielcke  <fzielcke@z-51.de>
42350         fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42351         Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42353 2008-09-28  Bean  <bean123ch@gmail.com>
42355         * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42356         Thanks to Christian Franke for finding this bug.
42358 2008-09-25  Robert Millan  <rmh@aybabtu.com>
42360         * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42361         instances of grub_util_get_disk_name() (see previous commit).
42363 2008-09-25  Robert Millan  <rmh@aybabtu.com>
42365         * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42366         `util/i386/get_disk_name.c'.
42367         * conf/i386-efi.rmk: Likewise.
42368         * conf/x86_64-efi.rmk: Likewise.
42369         * conf/i386-coreboot.rmk: Likewise.
42370         * conf/i386-ieee1275.rmk: Likewise.
42371         * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42372         `util/ieee1275/get_disk_name.c'.
42373         * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42374         * util/ieee1275/get_disk_name.c: Remove file.
42375         * util/i386/get_disk_name.c: Remove file.
42376         * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42377         "hd%d" for device.map entries, rather than using
42378         grub_util_get_disk_name().
42380 2008-09-24  Carles Pina i Estany  <carles@pina.cat>
42382         * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42383         warning.
42384         * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42386 2008-09-24  Carles Pina i Estany  <carles@pina.cat>
42388         * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42389         Changed to 0x5100.
42390         (GRUB_TERM_PPAGE): Changed to 0x4900.
42392 2008-09-24  Robert Millan  <rmh@aybabtu.com>
42394         * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42395         macros (they were i386-pc specific).
42396         * include/grub/sparc64/ieee1275/console.h: Likewise.
42397         * include/grub/efi/console.h: Likewise.
42399 2008-09-22  Bean  <bean123ch@gmail.com>
42401         * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42402         resident and in attribute list.
42404         * include/grub/ntfs.h (BMP_LEN): Removed.
42406 2008-09-22  Bean  <bean123ch@gmail.com>
42408         * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42409         scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42411         * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42412         error occurs, as grub_disk_open will call grub_disk_close, which will
42413         call p->close (scsi).
42415 2008-09-21  Felix Zielcke  <fzielcke@z-51.de>
42417         * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42418         (AC_PREREQ): Bumped to 2.59.
42419         (AC_TRY_COMPILE): Replace obsolete macro with ...
42420         (AC_COMPILE_IFELSE): ... this.
42421         * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42422         (AC_LINK_IFELSE): ... this.
42424 2008-09-21  Felix Zielcke  <fzielcke@z-51.de>
42426         * autogen.sh: Add a call to `gendistlist.sh'.
42428 2008-09-19  Christian Franke  <franke@computer.org>
42430         * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42431         * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42432         * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42433         Export __enable_execute_stack() to modules.
42434         * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42435         New function.
42437 2008-09-09  Felix Zielcke  <fzielcke@z-51.de>
42439         * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42440         Sort the list.
42442 2008-09-09  Felix Zielcke  <fzielcke@z-51.de>
42444         * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42445         #include <grub/util/hostdisk.h>.
42447 2008-09-08  Robert Millan  <rmh@aybabtu.com>
42449         * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42450         segments when their filesz is zero (grub_file_read() interprets
42451         zero-size as "read until EOF", which results in memory corruption).
42452         Use `lowest_segment' rather than 0 for calculating the current
42453         segment load address.
42455 2008-09-08  Robert Millan  <rmh@aybabtu.com>
42457         * util/hostdisk.c (open_device): Replace a grub_util_info() call
42458         with grub_dprintf("hostdisk", ...), as it was so verbose that it
42459         clobbered useful information.
42461 2008-09-08  Robert Millan  <rmh@aybabtu.com>
42463         * include/grub/util/biosdisk.h: Move to ...
42464         * include/grub/util/hostdisk.h: ... here.  Update all users.
42465         * util/biosdisk.c: Move to ...
42466         * util/hostdisk.c: ... here.  Update all users.
42468 2008-09-07  Robert Millan  <rmh@aybabtu.com>
42470         * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42471         variables.
42472         (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42473         and length can be stored directly in the `mbi->mmap_addr' and
42474         `mbi->mmap_length' struct fields.
42476 2008-09-07  Robert Millan  <rmh@aybabtu.com>
42478         * conf/i386.rmk: New file.  Provides declaration for building
42479         `cpuid.mod'.
42480         * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42481         (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42482         variables.
42483         Include `conf/i386.mk'.
42484         * conf/i386-efi.rmk: Likewise.
42485         * conf/x86_64-efi.rmk: Likewise.
42486         * conf/i386-coreboot.rmk: Likewise.
42487         * conf/i386-ieee1275.rmk: Likewise.
42489 2008-09-07  Vesa Jääskeläinen  <chaac@nic.fi>
42491         Based on patch created by Colin D Bennett <colin@gibibit.com>.
42492         Adds optimization support for BGR based modes.
42494         * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42495         (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42496         (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42497         (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42498         (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42499         (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42500         (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42501         (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42502         (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42503         (grub_video_i386_vbeblit_index_index): Likewise.
42504         (grub_video_i386_vbeblit_replace_directN): Added.
42505         (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42506         (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42507         (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42508         (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42509         (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42510         (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42511         (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42512         (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42513         (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42514         (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42515         (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42516         (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42517         (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42519         * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42520         (grub_video_i386_vbefill_R8G8B8): Likewise.
42521         (grub_video_i386_vbefill_index): Likewise.
42522         (grub_video_i386_vbefill_direct32): Added.
42523         (grub_video_i386_vbefill_direct24): Likewise.
42524         (grub_video_i386_vbefill_direct16): Likewise.
42525         (grub_video_i386_vbefill_direct8): Likewise.
42527         * include/grub/video.h (grub_video_blit_format): Removed
42528         GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42529         (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42530         GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42531         GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42532         GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42534         * video/video.c (grub_video_get_blit_format): Updated to use new
42535         blit formats.  Added handling for 16 bit color modes.
42537         * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42538         fillers.
42539         (common_blitter): Updated to use new blitters.
42541         * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42542         Removed.
42543         (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42544         (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42545         (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42546         (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42547         (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42548         (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42549         (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42550         (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42551         (grub_video_i386_vbeblit_index_index): Likewise.
42552         (grub_video_i386_vbeblit_replace_directN): Added.
42553         (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42554         (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42555         (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42556         (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42557         (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42558         (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42559         (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42560         (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42561         (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42562         (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42563         (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42564         (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42565         (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42567         * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42568         (grub_video_i386_vbefill_R8G8B8): Likewise.
42569         (grub_video_i386_vbefill_index): Likewise.
42570         (grub_video_i386_vbefill_direct32): Added.
42571         (grub_video_i386_vbefill_direct24): Likewise.
42572         (grub_video_i386_vbefill_direct16): Likewise.
42573         (grub_video_i386_vbefill_direct8): Likewise.
42575         * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42576         types.
42578         * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42579         types.
42581         * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42582         blitter types.
42584         * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42585         types.
42587 2008-09-06  Felix Zielcke  <fzielcke@z-51.de>
42589         * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42590         RAID level 1.
42592 2008-09-06  Felix Zielcke  <fzielcke@z-51.de>
42594         * fs/iso9660.c (grub_iso9660_date): New structure.
42595         (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42596         (grub_iso9660_uuid): New function.
42598 2008-09-05  Bean  <bean123ch@gmail.com>
42600         * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42602         * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42603         insensitive bit for names in Win32 and Win32 & DOS namespace.
42605         * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42607         * include/grub/types.h (LONG_MAX): Likewise.
42609 2008-09-04  Felix Zielcke  <fzielcke@z-51.de>
42611         * util/getroot.c: Include <config.h>.
42612         (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42613         add support for /dev/md/N devices and handle LVM double dash escaping.
42615 2008-09-04  Felix Zielcke  <fzielcke@z-51.de>
42617         * config.guess: Update to latest version from config git.
42618         * config.sub: Likewise.
42620 2008-09-03  Robert Millan  <rmh@aybabtu.com>
42622         * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42623         `disk->total_sectors'.
42625 2008-09-01  Colin D Bennett  <colin@gibibit.com>
42627         * include/grub/normal.h: Fixed incorrect comment for
42628         GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42630 2008-09-01  Colin D Bennett  <colin@gibibit.com>
42632         * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42633         values with defines.
42635         * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42636         (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42637         (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42638         (GRUB_VBE_MODEATTR_COLOR): Likewise.
42639         (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42640         (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42641         (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42642         (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42643         (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42644         (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42645         (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42646         (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42647         (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42648         (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42649         (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42650         (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42651         (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42652         (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42653         (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42655 2008-08-31  Robert Millan  <rmh@aybabtu.com>
42657         * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42658         declaration.
42659         (grub_multiboot): Fix a few warnings.
42661 2008-08-31  Robert Millan  <rmh@aybabtu.com>
42663         * loader/i386/pc/multiboot.c: Update comment not to say that
42664         boot_device support is unimplemented.
42666 2008-08-31  Robert Millan  <rmh@aybabtu.com>
42668         * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42669         or memory map support are unimplemented.
42671 2008-08-31  Colin D Bennett  <colin@gibibit.com>
42673         * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42675 2008-08-31  Colin D Bennett  <colin@gibibit.com>
42677         * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42678         total video memory in 'vbeinfo' output; show color format details for
42679         each video mode.
42681 2008-08-30  Pavel Roskin  <proski@gnu.org>
42683         * util/genmoddep.c: Remove for real this time.
42684         * DISTLIST: Remove util/genmoddep.c.
42686 2008-08-30  Robert Millan  <rmh@aybabtu.com>
42688         * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42689         as required by Multiboot spec (it was already 4-byte aligned, but
42690         only by chance).
42692 2008-08-29  Pavel Roskin  <proski@gnu.org>
42694         * kern/powerpc/ieee1275/crt0.S: Rename to ...
42695         * kern/powerpc/ieee1275/startup.S: ... this.
42696         * conf/powerpc-ieee1275.rmk: Adjust for the above.
42697         * DISTLIST: Likewise.
42699         * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42700         grub/cpu/kernel.h.  Add start label for consistency with other
42701         platforms.  Add grub_prefix immediately after start.  Add jump
42702         to the code after grub_prefix.
42703         * include/grub/powerpc/kernel.h: Provide valid values for
42704         GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42706 2008-08-29  Bean  <bean123ch@gmail.com>
42708         * configure.ac: Change host_os to cygwin for mingw.
42709         (asprintf): New check for function.
42711         * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42712         #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42714         * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42715         declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42716         sync, sleep and grub_util_get_disk_size for mingw.
42718         * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42719         to get size in mingw.
42720         (open_device): Use flag O_BINARY if it's defined.
42721         (find_root_device): Add dummy code for mingw.
42723         * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42724         (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42725         (get_scsi_disk_name): Return 0 for mingw.
42727         * util/hostfs.c: #include <grub/util/misc.h>.
42728         (grub_hostfs_open): Use "rb" flag to open file, use
42729         grub_util_get_disk_size to get disk size for mingw.
42731         * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42732         (asprintf): New function if HAVE_ASPRINTF is not set.
42733         (sync): New function for mingw.
42734         (sleep): Likewise.
42735         (grub_util_get_disk_size): Likewise.
42737 2008-08-28  Pavel Roskin  <proski@gnu.org>
42739         * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42740         kern/time.c.
42742 2008-08-28  Robert Millan  <rmh@aybabtu.com>
42744         * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42746 2008-08-28  Robert Millan  <rmh@aybabtu.com>
42748         Change find_grub_drive() syntax so it doesn't prevent it from
42749         detecting NULL names as errors.
42751         * util/biosdisk.c (find_grub_drive): Move free slot search code
42752         from here ...
42753         (find_free_slot): ... to here.
42754         (read_device_map): Use find_free_slot() to search for free slots.
42756 2008-08-27  Marco Gerards  <marco@gnu.org>
42758         * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42759         (scsi_mod_SOURCES): New variable.
42760         (scsi_mod_CFLAGS): Likewise
42761         (scsi_mod_LDFLAGS): Likewise.
42763         * disk/scsi.c: New file.
42765         * include/grub/scsi.h: Likewise.
42767         * include/grub/scsicmd.h: Likewise.
42769         * disk/ata.c: Include <grub/scsi.h>.
42770         (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42771         instead.
42772         (grub_ata_iterate): Skip ATAPI devices.
42773         (grub_ata_open): Only handle ATAPI devices.
42774         (struct grub_atapi_read): Removed.
42775         (grub_atapi_readsector): Likewise.
42776         (grub_ata_read): No longer handle ATAPI devices.
42777         (grub_ata_write): Likewise.
42778         (grub_atapi_iterate): New function.
42779         (grub_atapi_read): Likewise.
42780         (grub_atapi_write): Likewise.
42781         (grub_atapi_open): Likewise.
42782         (grub_atapi_close): Likewise.
42783         (grub_atapi_dev): New variable.
42784         (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42785         (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42787         * include/grub/disk.h (enum grub_disk_dev_id): Add
42788         `GRUB_DISK_DEVICE_SCSI_ID'.
42790 2008-08-26  Robert Millan  <rmh@aybabtu.com>
42792         * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42793         (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42794         descriptive.
42796 2008-08-23  Bean  <bean123ch@gmail.com>
42798         * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42799         (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42800         disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42801         (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42802         dm_nv.mod.
42803         (raid5rec_mod_SOURCES): New macro.
42804         (raid5rec_mod_CFLAGS): Likewise.
42805         (raid5rec_mod_LDFLAGS): Likewise.
42806         (raid6rec_mod_SOURCES): Likewise.
42807         (raid6rec_mod_CFLAGS): Likewise.
42808         (raid6rec_mod_LDFLAGS): Likewise.
42809         (mdraid_mod_SOURCES): Likewise.
42810         (mdraid_mod_CFLAGS): Likewise.
42811         (mdraid_mod_LDFLAGS): Likewise.
42812         (dm_nv_mod_SOURCES): Likewise.
42813         (dm_nv_mod_CFLAGS): Likewise.
42814         (dm_nv_mod_LDFLAGS): Likewise.
42816         * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42817         (grub_emu_SOURCES):  Add disk/raid5_recover.c, disk/raid6_recover.c,
42818         disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42820         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42821         disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42823         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42825         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42827         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42829         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42831         * disk/raid5_recover.c: New file.
42833         * disk/raid6_recover.c: Likewise.
42835         * disk/mdraid_linux.c: Likewise.
42837         * disk/dmraid_nvidia.c: Likewise.
42839         * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42840         ULONG_MAX.
42842         * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42843         calculate the size of raid device.
42844         (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42845         different layout of raid5.
42846         (grub_raid_scan_device): Remove code specific to mdraid.
42847         (grub_raid_list): New variable.
42848         (free_array): New function.
42849         (grub_raid_register): Likewise.
42850         (grub_raid_unregister): Likewise.
42851         (grub_raid_rescan): Likewise.
42852         (GRUB_MOD_INIT): Don't iterate device here.
42853         (GRUB_MOD_FINI): Use free_array to release resource.
42855         * include/grub/raid.h: Remove macro and structure specific to mdraid.
42856         (grub_raid5_recover_func_t): New function variable type.
42857         (grub_raid6_recover_func_t): Likewise.
42858         (grub_raid5_recover_func): New variable.
42859         (grub_raid6_recover_func): Likewise.
42860         (grub_raid_register): New function.
42861         (grub_raid_unregister): Likewise.
42862         (grub_raid_rescan): Likewise.
42863         (grub_raid_block_xor): Likewise.
42865         * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42866         (CMD_CRC): New macro.
42867         (part): Removed.
42868         (read_file): Handle device as well as file.
42869         (cmd_crc): New function.
42870         (fstest): Handle multiple disks.
42871         (options): Remove part, raw and long, add root and diskcount.
42872         (usage): Add crc, remove -p, -r, -l, add -r and -c.
42873         (main): Find the first non option entry and ignore subsequent options,
42874         add handling for the new options, support multiple disks.
42876         * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42878 2008-08-23  Bean  <bean123ch@gmail.com>
42880         * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42882         * genfslist.sh: Ignore kernel.mod.
42884         * genpartmaplist.sh: Likewise.
42886 2008-08-23  Robert Millan  <rmh@aybabtu.com>
42888         * util/getroot.c (find_root_device): Skip anything that starts with
42889         a dot, not just directories.  This avoids things like /dev/.tmp.md0.
42891 2008-08-22  Felix Zielcke  <fzielcke@z-51.de>
42893         * util/update-grub.in (GRUB_GFXMODE): Export variable.
42894         * util/grub.d/00_header.in: Allow the administrator to change default
42895         gfxmode via ${GRUB_GFXMODE}.
42897 2008-08-21  Felix Zielcke  <fzielcke@z-51.de>
42899         * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42901 2008-08-21  Robert Millan  <rmh@aybabtu.com>
42903         * loader/i386/linux.c: New file.  Implements generic 32-bit Linux
42904         loader.
42905         * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42906         `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42908 2008-08-20  Carles Pina i Estany  <carles@pina.cat>
42910         * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42911         (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42913 2008-08-19  Robert Millan  <rmh@aybabtu.com>
42915         * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42916         (struct grub_virtual_screen): Remove `cursor_color'.
42917         (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42918         initialization.
42919         (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42921 2008-08-18  Robert Millan  <rmh@aybabtu.com>
42923         Unify (identical) linux_normal.c files.
42924         * loader/i386/efi/linux_normal.c: Move from here ...
42925         * loader/linux_normal.c: ... to here.  Update all users.
42926         * loader/i386/pc/linux_normal.c: Delete.  Update all users.
42927         * loader/i386/ieee1275/linux_normal.c: Likewise.
42929 2008-08-18  Robert Millan  <rmh@aybabtu.com>
42931         * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42932         (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42933         (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42934         (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42935         (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42936         New macros.
42937         (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42938         * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42939         (GRUB_LINUX_CL_END_OFFSET): ... to here.
42940         * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42941         (GRUB_LINUX_CL_OFFSET): ... this.  Update all users.
42942         (GRUB_EFI_CL_END_OFFSET): Rename to ...
42943         (GRUB_LINUX_CL_END_OFFSET): ... this.  Update all users.
42944         (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42945         Initialize `params->video_cursor_x' and `params->video_cursor_y'
42946         portably using grub_getxy().
42947         Replace `-EFI' with `-bzImage' in boot message.
42949 2008-08-17  Robert Millan  <rmh@aybabtu.com>
42951         * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42953 2008-08-17  Robert Millan  <rmh@aybabtu.com>
42955         * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42957         * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42958         (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42959         (grub_machine_mmap_iterate): New function declaration.
42960         * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42961         structure.
42962         (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42963         macros.
42965         * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42966         type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42967         Move e820 parsing from here ...
42968         * kern/i386/pc/mmap.c: New file.
42969         (grub_machine_mmap_iterate): ... to here.
42971         * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42972         (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42973         (GRUB_MACHINE_MEMORY_AVAILABLE): ... this.  Update all users.
42974         (grub_available_iterate): Redeclare to return `void', and redeclare
42975         its hook to use grub_uint64_t as addr and size parameters, and rename
42976         to ...
42977         (grub_machine_mmap_iterate): ... this.  Update all users.
42979         * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42980         to make it more readable.  Rename to ...
42981         (grub_machine_mmap_iterate): ... this.
42983         * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42984         (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42985         (grub_multiboot): Allocate an extra region after the payload, and fill
42986         it with a Multiboot memory map.  Adjust a.out loader to calculate size
42987         with the extra space.
42988         (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42989         with the extra space.
42991 2008-08-17  Carles Pina i Estany  <carles@pina.cat>
42993         * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42995 2008-08-17  Felix Zielcke  <fzielcke@z-51.de>
42997         * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42998         mdate-sh to the list `find' searches for.
42999         * DISTLIST: Regenerated.
43001 2008-08-16  Felix Zielcke  <fzielcke@z-51.de>
43003         * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
43004         genkernsyms.sh.  Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
43005         genmoddep.awk, gensymlist.sh.in.
43006         (DISTDIRS): Add bus, docs, hook, lib.
43007         * DISTLIST: Regenerated.
43008         * NEWS: Add cygwin support and change the `os-prober' entry a bit.
43010 2008-08-16  Robert Millan  <rmh@aybabtu.com>
43012         * disk/raid.c (grub_raid_init): Handle/report errors set by
43013         grub_device_iterate().
43014         * disk/lvm.c (grub_lvm_init): Likewise.
43016 2008-08-15  Bean  <bean123ch@gmail.com>
43018         * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43019         and datehook.mod.
43020         (datetime_mod_SOURCES): New macro.
43021         (datetime_mod_CFLAGS): Likewise.
43022         (datetime_mod_LDFLAGS): Likewise.
43023         (date_mod_SOURCES): Likewise.
43024         (date_mod_CFLAGS): Likewise.
43025         (date_mod_LDFLAGS): Likewise.
43026         (datehook_mod_SOURCES): Likewise.
43027         (datehook_mod_CFLAGS): Likewise.
43028         (datehook_mod_LDFLAGS): Likewise.
43030         * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43031         and datehook.mod.
43032         (datetime_mod_SOURCES): New macro.
43033         (datetime_mod_CFLAGS): Likewise.
43034         (datetime_mod_LDFLAGS): Likewise.
43035         (date_mod_SOURCES): Likewise.
43036         (date_mod_CFLAGS): Likewise.
43037         (date_mod_LDFLAGS): Likewise.
43038         (datehook_mod_SOURCES): Likewise.
43039         (datehook_mod_CFLAGS): Likewise.
43040         (datehook_mod_LDFLAGS): Likewise.
43042         * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43043         and datehook.mod.
43044         (datetime_mod_SOURCES): New macro.
43045         (datetime_mod_CFLAGS): Likewise.
43046         (datetime_mod_LDFLAGS): Likewise.
43047         (date_mod_SOURCES): Likewise.
43048         (date_mod_CFLAGS): Likewise.
43049         (date_mod_LDFLAGS): Likewise.
43050         (datehook_mod_SOURCES): Likewise.
43051         (datehook_mod_CFLAGS): Likewise.
43052         (datehook_mod_LDFLAGS): Likewise.
43054         * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43055         and datehook.mod.
43056         (datetime_mod_SOURCES): New macro.
43057         (datetime_mod_CFLAGS): Likewise.
43058         (datetime_mod_LDFLAGS): Likewise.
43059         (date_mod_SOURCES): Likewise.
43060         (date_mod_CFLAGS): Likewise.
43061         (date_mod_LDFLAGS): Likewise.
43062         (datehook_mod_SOURCES): Likewise.
43063         (datehook_mod_CFLAGS): Likewise.
43064         (datehook_mod_LDFLAGS): Likewise.
43066         * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
43067         and datehook.mod.
43068         (datetime_mod_SOURCES): New macro.
43069         (datetime_mod_CFLAGS): Likewise.
43070         (datetime_mod_LDFLAGS): Likewise.
43071         (date_mod_SOURCES): Likewise.
43072         (date_mod_CFLAGS): Likewise.
43073         (date_mod_LDFLAGS): Likewise.
43074         (datehook_mod_SOURCES): Likewise.
43075         (datehook_mod_CFLAGS): Likewise.
43076         (datehook_mod_LDFLAGS): Likewise.
43078         * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
43080         * commands/date.c: New file.
43082         * hook/datehook.c: Likewise.
43084         * include/grub/lib/datetime.h: Likewise.
43086         * include/grub/i386/cmos.h: Likewise.
43088         * lib/datetime.c: Likewise.
43090         * lib/i386/datetime.c: Likewise.
43092         * lib/efi/datetime.c: Likewise.
43094 2008-08-14  Robert Millan  <rmh@aybabtu.com>
43096         * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
43097         (grub_mkelfimage_SOURCES): New variable.
43098         (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
43100         * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43101         (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43102         * conf/powerpc-ieee1275.rmk: Likewise.
43103         * conf/i386-ieee1275.rmk: Likewise.
43105         * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43106         * kern/i386/coreboot/init.c: Likewise.
43108         * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43109         with `<grub/cpu/kernel.h>'.
43110         (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43111         to ...
43112         (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43113         * kern/i386/coreboot/startup.S: Likewise.
43115         * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43116         (GRUB_MOD_GAP): Remove.
43117         * include/grub/powerpc/kernel.h: New file.
43118         * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43119         (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43120         * include/grub/i386/kernel.h: New file.
43121         * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43122         (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43123         (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43125         * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43126         `grub-mkelfimage'.
43127         Use --directory when invoking grub_mkimage.
43129         * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43130         (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43131         GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43132         and GRUB_KERNEL_CPU_PREFIX.
43134 2008-08-14  Felix Zielcke  <fzielcke@z-51.de>
43136         * include/grub/err.h (grub_err_printf): New function prototype.
43137         * util/misc.c (grub_err_printf): New function.
43138         * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43139         grub_printf.
43140         * kern/err.c (grub_print_error): Use grub_err_printf.
43142 2008-08-13  Robert Millan  <rmh@aybabtu.com>
43144         * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43146 2008-08-13  Robert Millan  <rmh@aybabtu.com>
43148         * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43149         boot entry.
43151 2008-08-12  Robert Millan  <rmh@aybabtu.com>
43153         * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43154         of the relocation code from here ...
43155         (grub_multiboot): ... to here.
43156         (forward_relocator, backward_relocator): Move from here ...
43157         * kern/i386/loader.S (grub_multiboot_forward_relocator)
43158         (grub_multiboot_backward_relocator): ... to here.
43159         (grub_multiboot_real_boot): Use %edx for entry offset.  Put Multiboot
43160         magic in %eax.  Use %ebp for jumping (so %edx is not trashed).
43161         * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43162         (grub_multiboot_forward_relocator_end)
43163         (grub_multiboot_backward_relocator)
43164         (grub_multiboot_backward_relocator_end): New variables.
43166 2008-08-12  Bean  <bean123ch@gmail.com>
43168         * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43170 2008-08-11  Robert Millan  <rmh@aybabtu.com>
43172         * kern/i386/linuxbios/startup.S: Move from here ...
43173         * kern/i386/coreboot/startup.S: ... to here.
43175         * kern/i386/linuxbios/init.c: Move from here ...
43176         * kern/i386/coreboot/init.c: ... to here.
43178         * kern/i386/linuxbios/table.c: Move from here ...
43179         * kern/i386/coreboot/mmap.c: ... to here.
43181         * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43183 2008-08-11  Robert Millan  <rmh@aybabtu.com>
43185         * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43186         errors.  Leave it to the upper layer to handle them.
43188 2008-08-09  Christian Franke  <franke@computer.org>
43190         * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43191         * conf/common.rmk: Install `grub-pe2elf' only if requested.
43192         Install `grub.d/10_windows' only on Cygwin.
43193         * configure.ac: Add subst of `target_os'.
43194         Check `target_os' also before setting TARGET_OBJ2ELF.
43195         Add `--enable-grub-pe2elf'.
43197 2008-08-08  Robert Millan  <rmh@aybabtu.com>
43199         * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43200         (grub_last_time): Change type to grub_uint64_t.
43201         (grub_disk_open): Migrate code from to using grub_get_time_ms().
43202         (grub_disk_close): Likewise.
43204         * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43205         (run_menu): Migrate code from to using grub_get_time_ms().
43207         * util/misc.c (grub_get_time_ms): New function.
43209 2008-08-08  Marco Gerards  <marco@gnu.org>
43211         * disk/ata.c (grub_ata_regget): Change return type to
43212         `grub_uint8_t'.
43213         (grub_ata_regget2): Likewise.
43214         (grub_ata_wait_status): New function.
43215         (grub_ata_wait_busy): Removed function, updated all users to use
43216         `grub_ata_wait_status'.
43217         (grub_ata_wait_drq): Likewise.
43218         (grub_ata_cmd): New function.
43219         (grub_ata_pio_read): Change return type to `grub_uint8_t'.  Add
43220         error handling.
43221         (grub_ata_pio_write): Add error handling.
43222         (grub_atapi_identify): Likewise.
43223         (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43224         handling.
43225         (grub_ata_identify): Use `grub_ata_cmd' and improve error
43226         handling.  Actually use the detected registers.  Reorder the
43227         detection logic such that it is easier to read.
43228         (grub_ata_pciinit): Do not assign the same ID to each controller.
43229         (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43230         handling.
43231         (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43233         * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43235 2008-08-08  Marco Gerards  <marco@gnu.org>
43237         * NEWS: Update.
43239 2008-08-07  Bean  <bean123ch@gmail.com>
43241         * include/grub/x86_64/pci.h: New file.
43243 2008-08-07  Christian Franke  <franke@computer.org>
43245         * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43246         (TIMER2_GATE): Likewise.
43247         (grub_pit_wait): Add enable/disable of the timer2 gate
43248         bit of port 0x61.  This fixes a possible infinite loop.
43250 2008-08-07  Bean  <bean123ch@gmail.com>
43252         * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43253         kern/i386/tsc.c and kern/i386/pit.c.
43255         * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43256         x86_64 platform.
43258         * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43259         <grub/i386/tsc.h>.
43261         * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43263 2008-08-07  Bean  <bean123ch@gmail.com>
43265         * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43267         * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43269         * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43270         multiple inclusion. Add #include <grub/types.h>.
43272 2008-08-06  Christian Franke  <franke@computer.org>
43274         * conf/common.rmk: Build and install `10_windows'.
43275         * util/grub.d/10_windows.in: New script.
43277 2008-08-06  Pavel Roskin  <proski@gnu.org>
43279         * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43281 2008-08-06  Robert Millan  <rmh@aybabtu.com>
43283         * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43284         * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43286 2008-08-06  Bean  <bean123ch@gmail.com>
43288         * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43289         (grub_pxefs_fs_int): Remove dummy definition.
43290         (grub_pxefs_open): Use data->block_size to store the current block
43291         size setting.
43292         (grub_pxefs_read): Use block size stored in data->block_size. As the
43293         value of grub_pxe_blksize can be changed after the file is opened.
43295 2008-08-06  Bean  <bean123ch@gmail.com>
43297         * fs/i386/pc/pxe.c (curr_file): new variable.
43298         (grub_pxefs_open): Simply the handling of pxe file system. Don't
43299         require the dummy internal file system anymore.
43300         (grub_pxefs_read): Removed.
43301         (grub_pxefs_close): Likewise.
43302         (grub_pxefs_fs_int): Likewise.
43303         (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43304         connection when we switch file.
43305         (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43307 2008-08-06  Robert Millan  <rmh@aybabtu.com>
43309         * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43310         `halt.mod'.
43311         (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43312         (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43314         * kern/i386/halt.c: New file.
43315         * kern/i386/reboot.c: Likewise.
43316         * include/grub/i386/reboot.h: Likewise.
43317         * include/grub/i386/halt.h: Likewise.
43319         * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43320         Include `<grub/cpu/halt.h>'.
43321         * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43322         [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43324         * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43325         (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43326         (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43327         (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43328         (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43329         (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43330         from here ...
43331         * include/grub/i386/at_keyboard.h: ... to here.
43333 2008-08-05  Robert Millan  <rmh@aybabtu.com>
43335         * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43336         * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43337         * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43338         `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43339         `kern/generic/millisleep.c'.
43341         * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43342         instead of grub_get_rtc().
43343         (grub_tsc_init): Initialize `tsc_boot_time'.
43345         * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43346         (grub_machine_init): Use grub_tsc_init() rather than
43347         installing an RTC-based handler via grub_install_get_time_ms().
43349         * kern/i386/pit.c: New file.
43350         * include/grub/i386/pit.h: Likewise.
43352 2008-08-05  Bean  <bean123ch@gmail.com>
43354         * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43356         * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43357         (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43358         (pxe_mod_SOURCES): New macro.
43359         (pxe_mod_CFLAGS): Likewise.
43360         (pxe_mod_LDFLAGS): Likewise.
43361         (pxecmd_mod_SOURCES): Likewise.
43362         (pxecmd_mod_CFLAGS): Likewise.
43363         (pxecmd_mod_LDFLAGS): Likewise.
43365         * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43366         (grub_pxe_call): Likewise.
43368         * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43370         * commands/i386/pc/pxecmd.c: New file.
43372         * fs/i386/pc/pxe.c: Likewise.
43374         * include/grub/i386/pc/pxe.h: Likewise.
43376 2008-08-05  Bean  <bean123ch@gmail.com>
43378         * util/console.c (grub_console_cur_color): New variable.
43379         (grub_console_standard_color): Likewise.
43380         (grub_console_normal_color): Likewise.
43381         (grub_console_highlight_color): Likewise.
43382         (color_map): Likewise.
43383         (use_color): Likewise.
43384         (NUM_COLORS): New macro.
43385         (grub_ncurses_setcolorstate): Handle color properly.
43386         (grub_ncurses_setcolor): Don't change color here, just remember the
43387         settings, color will be set in grub_ncurses_setcolorstate.
43388         (grub_ncurses_getcolor): New function.
43389         (grub_ncurses_init): Initialize color pairs.
43390         (grub_ncurses_term): New member grub_ncurses_getcolor.
43392 2008-08-05  Colin D Bennett  <colin@gibibit.com>
43394         High resolution timer support.  Implemented for x86 CPUs using TSC.
43395         Extracted generic grub_millisleep() so it's linked in only as needed.
43396         This requires a Pentium compatible CPU; if the RDTSC instruction is
43397         not supported, then it falls back on the generic grub_get_time_ms()
43398         implementation that uses the machine's RTC.
43400         * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43401         `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43402         `kern/generic/millisleep.c'.
43404         * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43405         `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43407         * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43408         `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43410         * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43412         * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43413         `kern/generic/millisleep.c'.
43415         * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43417         * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43419         * kern/generic/rtc_get_time_ms.c: New file.
43421         * kern/generic/millisleep.c: New file.
43423         * kern/misc.c: Don't include
43424         <kern/time.h> anymore.
43425         (grub_millisleep_generic): Removed.
43427         * commands/sleep.c (grub_interruptible_millisleep): Uses
43428         grub_get_time_ms() instead of grub_get_rtc().
43430         * include/grub/i386/tsc.h (grub_get_tsc): New file.  New inline
43431         function.
43432         (grub_cpu_is_cpuid_supported): New inline function.
43433         (grub_cpu_is_tsc_supported): New inline function.
43434         (grub_tsc_init): New function prototype.
43435         (grub_tsc_get_time_ms): New function prototype.
43437         * kern/i386/tsc.c (grub_get_time_ms): New file.
43439         * include/grub/time.h: Include <grub/types.h.
43440         (grub_millisleep_generic): Removed.
43441         (grub_get_time_ms): New prototype.
43442         (grub_install_get_time_ms): New prototype.
43443         (grub_rtc_get_time_ms): New prototype.
43445         * kern/time.c (grub_get_time_ms): New function.
43446         (grub_install_get_time_ms): New function.
43448         * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>.  Don't include
43449         <grub/time.h> anymore.
43450         (grub_millisleep): Removed.
43451         (grub_machine_init): Call grub_tsc_init.
43453         * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43454         get_time_ms() implementation.
43456         * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43457         (ieee1275_get_time_ms): New function.
43458         (grub_machine_init): Install get_time_ms() implementation.
43460         * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43461         (grub_machine_init): Call grub_tsc_init().
43462         (grub_millisleep): Removed.
43464         * kern/ieee1275/init.c (grub_millisleep): Removed.
43465         (grub_machine_init): Install ieee1275_get_time_ms()
43466         implementation.
43467         (ieee1275_get_time_ms): New function.
43468         (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43469         real work.
43471 2008-08-05  Marco Gerards  <marco@gnu.org>
43473         * disk/ata.c: Include <grub/pci.h>.
43474         (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43475         (grub_ata_initialize): Rewritten.
43476         (grub_ata_device_initialize): New function.
43478 2008-08-04  Pavel Roskin  <proski@gnu.org>
43480         * kern/main.c: Include grub/mm.h.
43482 2008-08-04  Robert Millan  <rmh@aybabtu.com>
43484         * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43485         (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43486         corruption problem).
43488 2008-08-04  Robert Millan  <rmh@aybabtu.com>
43490         * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43491         warnings introduced in my last commit.
43493 2008-08-03  Robert Millan  <rmh@aybabtu.com>
43495         Make PCI available on all i386 architectures.
43497         * include/grub/i386/pc/pci.h: Move from here ...
43498         * include/grub/i386/pci.h: ... to here.
43500         * include/grub/i386/pc/pci.h: Remove.
43501         * include/grub/i386/efi/pci.h: Remove.
43502         * include/grub/x86_64/efi/pci.h: Remove.
43504         * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43505         `<grub/cpu/pci.h>'.
43507         * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43508         (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43509         (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43511         * conf/i386-ieee1275.rmk: Likewise.
43513 2008-08-03  Robert Millan  <rmh@aybabtu.com>
43515         * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43516         (grub_console_setcursor): Make it possible to set cursor off.
43518 2008-08-03  Robert Millan  <rmh@aybabtu.com>
43520         * util/grub.d/00_header.in: Be platform-agnostic.  Probe for existence
43521         of modules instead of assuming which platform provides what.
43522         * util/update-grub.in: Likewise.
43524 2008-08-03  Robert Millan  <rmh@aybabtu.com>
43526         * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43527         instead of `grub_install_dos_part' to determine whether a drive needs
43528         to be prepended to prefix (`grub_install_dos_part' is not reliable,
43529         because it can be overridden when loading GRUB via Multiboot).
43531 2008-08-02  Robert Millan  <rmh@aybabtu.com>
43533         * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43535 2008-08-02  Robert Millan  <rmh@aybabtu.com>
43537         * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43538         of informational grub_dprintf() calls.
43540 2008-08-02  Robert Millan  <rmh@aybabtu.com>
43542         * disk/memdisk.c (memdisk_size): Don't initialize.
43543         (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43545         * include/grub/i386/pc/kernel.h
43546         (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43547         (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43548         (grub_memdisk_image_size, grub_arch_memdisk_addr)
43549         (grub_arch_memdisk_size): Remove.
43551         * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43552         field (was only used to transfer a constant).  Add `type' field to
43553         support multiple module types.
43554         (grub_module_iterate): New function.
43556         * kern/device.c (grub_device_open): Do not hide error messages
43557         when grub_disk_open() fails.  Use grub_print_error() instead.
43559         * kern/i386/pc/init.c (grub_arch_modules_addr)
43560         (grub_arch_memdisk_size): Remove functions.
43561         (grub_arch_modules_addr): Return the module address in high memory
43562         (now that it isn't copied anymore).
43564         * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43565         (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43566         decompression routine (grub_total_module_size already includes that
43567         now).  Don't copy modules back to low memory.
43569         * kern/main.c: Include `<grub/mm.h>'.
43570         (grub_load_modules): Split out (and use) ...
43571         (grub_module_iterate): ... this function, which iterates through
43572         module objects and runs a hook.
43573         Comment out grub_mm_init_region() call, as it would cause non-ELF
43574         modules to be overwritten.
43576         * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43577         the memdisk image in its own region, make it part of the module list.
43578         * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43579         (main): Parse --memdisk|-m option, and pass user-provided path as
43580         parameter to generate_image().
43581         (add_segments): Pass `memdisk_path' down to load_modules().
43582         (load_modules): Embed memdisk image in module section when requested.
43583         * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43584         `header.type' instead of `header.offset'.
43586         * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43587         (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43588         (memdisk_mod_LDFLAGS): New variables.
43589         * conf/i386-coreboot.rmk: Likewise.
43590         * conf/i386-ieee1275.rmk: Likewise.
43592 2008-08-02  Robert Millan  <rmh@aybabtu.com>
43594         * loader/i386/pc/multiboot.c (playground, forward_relocator)
43595         (backward_relocator): New variables.  Used to allocate and relocate
43596         the payload, respectively.
43597         (grub_multiboot_load_elf32): Load into heap instead of requested
43598         address, install the appropriate relocator code in each bound of
43599         the payload, and set the entry point such that
43600         grub_multiboot_real_boot() will jump to one of them.
43602         * kern/i386/loader.S (grub_multiboot_payload_size)
43603         (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43604         (grub_multiboot_payload_entry_offset): New variables.
43605         (grub_multiboot_real_boot): Set cpu context to what the relocator
43606         expects, and jump to the relocator instead of the payload.
43608         * include/grub/i386/loader.h (grub_multiboot_payload_size)
43609         (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43610         (grub_multiboot_payload_entry_offset): Export.
43612 2008-08-01  Bean  <bean123ch@gmail.com>
43614         * normal/menu_entry.c (editor_getline): Don't return the original
43615         string as result, as it will be released by lexer once it has done
43616         using it.
43618 2008-08-01  Robert Millan  <rmh@aybabtu.com>
43620         * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43621         within menuentries, not before them.
43622         util/grub.d/10_hurd.in: Likewise.
43624 2008-08-01  Bean  <bean123ch@gmail.com>
43626         * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43627         (bufio_mod_SOURCES): New macro.
43628         (bufio_mod_CFLAGS): Likewise.
43629         (bufio_mod_LDFLAGS): Likewise.
43631         * include/grub/bufio.h: New file.
43633         * io/bufio.c: Likewise.
43635         * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43636         (grub_video_reader_png): Use grub_buffile_open to open file.
43638         * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43639         (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43641         * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43642         (grub_video_reader_tga): Use grub_buffile_open to open file.
43644         * font/manager.c: Include <grub/bufio.h>.
43645         (add_font): Use grub_buffile_open to open file.
43647 2008-07-31  Robert Millan  <rmh@aybabtu.com>
43649         * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43650         ELF segments, use a macro for arbitrarily accessing any of them instead
43651         of preparing a pointer that allows access to one at a time.
43652         (grub_multiboot_load_elf64): Likewise.
43654 2008-07-31  Bean  <bean123ch@gmail.com>
43656         * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43657         GRUB_KERNEL_MACHINE_DATA_END.
43659 2008-07-30  Robert Millan  <rmh@aybabtu.com>
43661         * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43662         Increase from 0x50 to 0x60.
43663         * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43664         use UUIDs to identify the root drive for them.  If that's not
43665         possible, abort.
43666         * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43667         check, for cross-disk installs.
43669 2008-07-30  Robert Millan  <rmh@aybabtu.com>
43671         * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43672         is non-empty, use it to set the `prefix' environment variable instead
43673         of the usual approach.
43674         * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43675         (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43676         environment variable instead of dummy make_install_device().
43678         * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43679         (start): Insert a data section, with `grub_prefix' variable.
43680         * kern/i386/linuxbios/startup.S: Likewise.
43682         * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43683         New variable reference.
43684         * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43685         New macro.  Defines offset of `grub_prefix' within startup.S (relative
43686         to `start').
43687         (GRUB_KERNEL_MACHINE_DATA_END): New macro.  Defines the end of data
43688         section within startup.S (relative to `start').
43689         * include/grub/i386/coreboot/kernel.h: Likewise.
43691         * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43692         Overwrite grub_prefix with its contents, at the beginning of the
43693         first segment.
43694         (main): Understand -p|--prefix.
43696 2008-07-30  Robert Millan  <rmh@aybabtu.com>
43698         * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43700 2008-07-30  Robert Millan  <rmh@aybabtu.com>
43702         * term/i386/pc/vga_text.c (grub_console_cls): Use
43703         grub_console_gotoxy() to go back to beginning of the screen.
43704         Found by Patrick Georgi <patrick.georgi@coresystems.de>
43706 2008-07-29  Christian Franke  <franke@computer.org>
43708         * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43709         Add conversion of emulated mount points on Cygwin.
43711 2008-07-29  Christian Franke  <franke@computer.org>
43713         * util/update-grub.in: Add a check for admin
43714         group on Cygwin.
43715         Remove old `grub.cfg.new' before creation.
43716         Add `-f' to `mv' to handle the different filesystem
43717         semantics of Windows.
43719 2008-07-29  Bean  <bean123ch@gmail.com>
43721         * normal/main.c (get_line): Fix buffer overflow bug.
43723 2008-07-28  Robert Millan  <rmh@aybabtu.com>
43725         * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43726         (struct grub_apple_header): New struct.  Describes the layout of
43727         the partmap header.
43728         (apple_partition_map_iterate): Check the header magic as well as the
43729         partition magic (which was already being checked).
43731 2008-07-28  Pavel Roskin  <proski@gnu.org>
43733         * genmk.rb: Add a warning to the beginning of the output that
43734         it's a generated file and should not be edited.
43736 2008-07-28  Robert Millan  <rmh@aybabtu.com>
43738         * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43739         with the same number are found, just use issue a warning with
43740         grub_dprintf(), as this error has been reported to be non-fatal.
43742 2008-07-27  Robert Millan  <rmh@aybabtu.com>
43744         * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43745         information.
43747 2008-07-27  Bean  <bean123ch@gmail.com>
43749         * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43750         (grub_fat_find_dir): Ignore case when comparing filename.
43752 2008-07-27  Bean  <bean123ch@gmail.com>
43754         * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43755         smallino, as it's more descriptive, and i8count can be confused with
43756         the other field count.
43757         (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43758         inode type.
43760 2008-07-27  Bean  <bean123ch@gmail.com>
43762         * commands/crc.c: New file.
43764         * lib/crc.c: Likewise.
43766         * include/grub/lib/crc.h: Likewise.
43768         * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43770         * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43771         (hexdump): Move this function to ...
43773         * lib/hexdump.c: ... here.
43775         * include/grub/hexdump.h: Renamed to ...
43777         * include/grub/lib/hexdump.h: ... this.
43779         * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43781         * util/grub-editenv.c: Likewise.
43783         * include/envblk.h: Renamed to ...
43785         * include/lib/envblk.h: ... this.
43787         * util/envblk.c: Renamed to ...
43789         * lib/envblk.c: ... this.
43791         * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43792         lib/hexdump.c.
43793         (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43794         (pkglib_MODULES): Add crc.mod.
43795         (hexdump_mod_SOURCES): Add lib/hexdump.c.
43796         (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43797         (crc_mod_SOURCES): New macro.
43798         (crc_mod_CFLAGS): Likewise.
43799         (crc_mod_LDFLAGS): Likewise.
43801         * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43803         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43805         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43807         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43809         * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43811 2008-07-27  Felix Zielcke  <fzielcke@z-51.de>
43813         * commands/help.c: Include <grub/term.h>.
43814         (TERM_WIDTH): Removed.  Updated all users.
43816 2008-07-27  Pavel Roskin  <proski@gnu.org>
43818         * util/getroot.c (find_root_device): Rephrase a comment to avoid
43819         spurious warnings about a comment within a comment.
43821 2008-07-25  Robert Millan  <rmh@aybabtu.com>
43823         * util/getroot.c (find_root_device): Skip devices that match
43824         /dev/dm-[0-9].  This lets the real device be found for any type of
43825         abstraction (LVM, EVMS, RAID..).
43826         (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43827         and /dev/evms (for EVMS) before traversing /dev.  If a /dev/dm-[0-9]
43828         device is found first, find_root_device() will now skip it.
43830 2008-07-24  Pavel Roskin  <proski@gnu.org>
43832         * include/grub/types.h: Use __builtin_bswap32() and
43833         __builtin_bswap64() with gcc 4.3 and newer.
43835 2008-07-24  Christian Franke  <franke@computer.org>
43837         * util/i386/pc/grub-install.in: If `--debug' is specified,
43838         pass `--verbose' to grub-setup.
43839         Abort script if make_system_path_relative_to_its_root() fails.
43841 2008-07-24  Bean  <bean123ch@gmail.com>
43843         * configure.ac: Fixed a bug caused by the previous cygwin patch,
43844         variable `target_platform' should be `platform'.
43846 2008-07-24  Bean  <bean123ch@gmail.com>
43848         * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43849         (grub_png_init_fixed_block): New function.
43850         (grub_png_decode_image_data): Handle fixed huffman code compression.
43852 2008-07-24  Bean  <bean123ch@gmail.com>
43854         * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43855         (grub_pe2elf_SOURCES): New macro.
43856         (CLEANFILES): Add grub-pe2elf.
43858         * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43859         (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43860         (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43861         (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43862         (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43863         (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43864         (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43865         (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43866         (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43867         (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43868         (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43869         (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43870         (GRUB_PE32_DT_FUNCTION): Likewise.
43871         (GRUB_PE32_REL_I386_DIR32): Likewise.
43872         (GRUB_PE32_REL_I386_REL32): Likewise.
43873         (grub_pe32_symbol): New structure.
43874         (grub_pe32_reloc): Likewise.
43876         * util/grub-pe2elf.c: New file.
43878         * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43879         start symbol in non pc platform.
43881         * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43883         The following patches are from Christian Franke.
43885         * include/grub/dl.h: Remove .previous, gas supports this only
43886         for ELF format.
43888         * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43889         Remove .type, gas supports this only for ELF format.
43891         * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43892         nullbytes in symbol table. This fixes an infinite loop if table is
43893         zero filled.
43895         * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43896         TARGET_IMG_LDFLAGS and EXEEXT.
43898         * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43899         TARGET_IMG_LDFLAGS_AC.
43900         (grub_CHECK_STACK_ARG_PROBE): New function.
43902         * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43904         * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43906         * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43907         to set TARGET_IMG_LD* accordingly.
43908         Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43909         Add call to grub_CHECK_STACK_ARG_PROBE.
43910         Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43912         * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43914         * genmk.rb: Add EXEEXT to CLEANFILES.
43916 2008-07-23  Robert Millan  <rmh@aybabtu.com>
43918         * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43919         define the codes for arrows and lines used for the menu).
43920         (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43921         as well.
43923         * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43924         fonts, because the latter are too slow.
43926 2008-07-21  Bean  <bean123ch@gmail.com>
43928         * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43929         a20. Run keyboard test last, as it will cause macbook to halt.
43931 2008-07-18  Pavel Roskin  <proski@gnu.org>
43933         * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P.  We cannot
43934         load foreign architecture modules correctly anyway.  Keep
43935         support for loading host architecture modules, whether we
43936         compile them or not.
43938 2008-07-17  Pavel Roskin  <proski@gnu.org>
43940         * configure.ac: Use -m32 or -m64 regardless of whether we had to
43941         change target_cpu.  The compiler default can mismatch target_cpu
43942         in any case.
43944         * disk/efi/efidisk.c: Fix format warnings on x86_64.
43945         * kern/efi/efi.c: Likewise.
43947         * aclocal.m4 (grub_PROG_TARGET_CC): New macro.  Check if the
43948         target compiler is functional.
43949         * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43950         are set up.
43952         * configure.ac: Default to efi platform for x86_64-apple.  Allow
43953         powerpc64 CPU, default to ieee1275 platform for it.  Split CPU
43954         adjustments from the rest, only do them if target is not
43955         explicitly given.  Merge other adjustments with the final sanity
43956         check.  Remove an extraneous check for supported CPU.  Be
43957         specific which CPU and which platform is not supported.
43959         * configure.ac: Default to pc platform for x86_64.
43961 2008-07-17  Robert Millan  <rmh@aybabtu.com>
43963         Partial LinuxBIOS -> Coreboot rename.
43965         * conf/i386-linuxbios.rmk: Renamed to ...
43966         * conf/i386-coreboot.rmk: ... this.
43967         * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43968         * configure.ac: Accept "coreboot" as input platform (but maintain
43969         compatibility with "linuxbios").
43970         * include/grub/i386/linuxbios: Renamed to ...
43971         * include/grub/i386/coreboot: ... this.
43973 2008-07-17  Bean  <bean123ch@gmail.com>
43975         * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43976         (appleldr_mod_SOURCE): New variable.
43977         (appleldr_mod_CFLAGS): Likewise.
43978         (appleldr_mod_LDFLAGS): Likewise.
43979         (pci_mod_SOURCES): Likewise.
43980         (pci_mod_CFLAGS): Likewise.
43981         (pci_mod_LDFLAGS): Likewise.
43982         (lspci_mod_SOURCES): Likewise.
43983         (lspci_mod_CFLAGS): Likewise.
43984         (lspci_mod_LDFLAGS): Likewise.
43986         * conf/x86_64-efi.rmk: New file.
43988         * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43989         macro.
43990         (grub_efidisk_write): Likewise.
43992         * include/efi/api.h (efi_call_0): New macro.
43993         (efi_call_1): Likewise.
43994         (efi_call_2): Likewise.
43995         (efi_call_3): Likewise.
43996         (efi_call_4): Likewise.
43997         (efi_call_5): Likewise.
43998         (efi_call_6): Likewise.
44000         * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
44001         grub_rescue_cmd_chainloader.
44003         * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
44004         (grub_pe32_optional_header): Change some fields based on i386 or
44005         x86_64 platform.
44006         (GRUB_PE32_PE32_MAGIC): Likewise.
44008         * include/grub/efi/uga_draw.h: New file.
44010         * include/grub/elf.h (STN_ABS): New constant.
44011         (R_X86_64_NONE): Relocation constant for x86_64.
44012         (R_X86_64_64): Likewise.
44013         (R_X86_64_PC32): Likewise.
44014         (R_X86_64_GOT32): Likewise.
44015         (R_X86_64_PLT32): Likewise.
44016         (R_X86_64_COPY): Likewise.
44017         (R_X86_64_GLOB_DAT): Likewise.
44018         (R_X86_64_JUMP_SLOT): Likewise.
44019         (R_X86_64_RELATIVE): Likewise.
44020         (R_X86_64_GOTPCREL): Likewise.
44021         (R_X86_64_32): Likewise.
44022         (R_X86_64_32S): Likewise.
44023         (R_X86_64_16): Likewise.
44024         (R_X86_64_PC16): Likewise.
44025         (R_X86_64_8): Likewise.
44026         (R_X86_64_PC8): Likewise.
44028         * include/grub/i386/efi/pci.h: New file.
44030         * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
44031         Change it value based on platform.
44032         (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
44033         (GRUB_E820_RAM): Likewise.
44034         (GRUB_E820_RESERVED): Likewise.
44035         (GRUB_E820_ACPI): Likewise.
44036         (GRUB_E820_NVS): Likewise.
44037         (GRUB_E820_EXEC_CODE): Likewise.
44038         (GRUB_E820_MAX_ENTRY): Likewise.
44039         (grub_e820_mmap): New structure.
44040         (linux_kernel_header): Change the efi field according to different
44041         kernel version, also field from linux_kernel_header.
44043         * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
44045         * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
44046         (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
44047         (GRUB_PCI_ADDR_SPACE_IO): Likewise.
44048         (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
44049         (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
44050         (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
44051         (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
44052         (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
44053         (GRUB_PCI_ADDR_MEM_MASK): Likewise.
44054         (GRUB_PCI_ADDR_IO_MASK): Likewise.
44056         * include/grub/x86_64/efi/kernel.h: New file.
44058         * include/grub/x86_64/efi/loader.h: Likewise.
44060         * include/grub/x86_64/efi/machine.h: Likewise.
44062         * include/grub/x86_64/efi/pci.h: Likewise.
44064         * include/grub/x86_64/efi/time.h: Likewise.
44066         * include/grub/x86_64/linux.h: Likewise.
44068         * include/grub/x86_64/setjmp.h: Likewise.
44070         * include/grub/x86_64/time.h: Likewise.
44072         * include/grub/x86_64/types.h: Likewise.
44074         * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
44075          GRUB_TARGET_SIZEOF_VOID_P.
44077         * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
44078         (grub_efi_locate_handle): Likewise.
44079         (grub_efi_open_protocol): Likewise.
44080         (grub_efi_set_text_mode): Likewise.
44081         (grub_efi_stall): Likewise.
44082         (grub_exit): Likewise.
44083         (grub_reboot): Likewise.
44084         (grub_halt): Likewise.
44085         (grub_efi_exit_boot_services): Likewise.
44086         (grub_get_rtc): Likewise.
44088         * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
44089         (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
44090         (grub_efi_allocate_pages): Wrap efi calls.
44091         (grub_efi_free_pages): Wrap efi calls.
44092         (grub_efi_get_memory_map): Wrap efi calls.
44094         * kern/x86_64/dl.c: New file.
44096         * kern/x86_64/efi/callwrap.S: Likewise.
44098         * kern/x86_64/efi/startup.S: Likewise.
44100         * loader/efi/appleloader.c: Likewise.
44102         * loader/efi/chainloader.c (cmdline): New variable.
44103         (grub_chainloader_unload): Wrap efi calls.
44104         (grub_chainloader_boot): Likewise.
44105         (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44106         command line.
44108         * loader/efi/chainloader_normal.c (chainloader_command):
44109         Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44110         command line.
44112         * loader/i386/efi/linux.c (allocate_pages): Change allocation
44113         method.
44114         (grub_e820_add_region): New function.
44115         (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44116         booting.
44117         (grub_find_video_card): New function.
44118         (grub_linux_setup_video): New function.
44119         (grub_rescue_cmd_linux): Probe for video information.
44121         * normal/x86_64/setjmp.S: New file.
44123         * term/efi/console.c (map_char): New function.
44124         (grub_console_putchar): Map unicode char.
44125         (grub_console_checkkey): Wrap efi calls.
44126         (grub_console_getkey): Likewise.
44127         (grub_console_getwh): Likewise.
44128         (grub_console_gotoxy): Likewise.
44129         (grub_console_cls): Likewise.
44130         (grub_console_setcolorstate): Likewise.
44131         (grub_console_setcursor): Likewise.
44133         * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44135 2008-07-16  Pavel Roskin  <proski@gnu.org>
44137         * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44138         format strings.
44140         * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44141         pointer, not an integer.  This fixes a warning and prevents
44142         precision loss on 64-bit systems.
44143         (relocate_addresses): Remove unneeded cast.
44145 2008-07-15  Pavel Roskin  <proski@gnu.org>
44147         * kern/i386/ieee1275/init.c: Include grub/cache.h.
44149         * term/ieee1275/ofconsole.c: Disable code unused on i386.
44151         * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44152         Fix comparison between signed and unsigned.
44154         * include/grub/i386/ieee1275/console.h: Declare
44155         grub_console_init() and grub_console_fini().
44157         * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44158         It's empty and unused.
44160         * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44161         beginning to avoid warnings with some compilers.
44163         * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44164         [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44166 2008-07-14  Pavel Roskin  <proski@gnu.org>
44168         * kern/env.c (grub_register_variable_hook): Don't copy empty
44169         string, it leaks memory.  Pass "" to grub_env_set(), it should
44170         handle constant strings.
44172         * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44173         * commands/cmp.c (grub_cmd_cmp): Likewise.
44174         * kern/dl.c (grub_dl_flush_cache): Likewise.
44175         (grub_dl_load_core): Likewise.
44176         * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44177         (grub_elf64_load_phdrs): Likewise.
44179 2008-07-13  Pavel Roskin  <proski@gnu.org>
44181         * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44182         between signed and unsigned.
44183         (LzmaEnc_Finish): Fix warning about an unused parameter.
44185 2008-07-13  Bean  <bean123ch@gmail.com>
44187         * Makefile.in (enable_lzo): New rule.
44189         * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44191         * configure.ac (ENABLE_LZO): New option --enable-lzo.
44193         * boot/i386/pc/lnxboot.S: #include <config.h>.
44195         * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44196         its value according to the compression algorithm used, lzo or lzma.
44198         * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44199         compression algorithm according to configure macro.
44201         * kern/i386/pc/startup.S (codestart): Likewise.
44203         * kern/i386/pc/lzma_decode.S: New file.
44205         * include/grub/lib/LzFind.h: Likewise.
44207         * include/grub/lib/LzHash.h: Likewise.
44209         * include/grub/lib/LzmaDec.h: Likewise.
44211         * include/grub/lib/LzmaEnc.h: Likewise.
44213         * include/grub/lib/LzmaTypes.h: Likewise.
44215         * lib/LzFind.c: Likewise.
44217         * lib/LzmaDec.c: Likewise.
44219         * lib/LzmaEnc.c: Likewise.
44221 2008-07-13  Bean  <bean123ch@gmail.com>
44223         * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44224         (grub_ext4_extent_header): New structure.
44225         (grub_ext4_extent): Likewise.
44226         (grub_ext4_extent_idx): Likewise.
44227         (grub_ext4_find_leaf): New function.
44228         (grub_ext2_read_block): Handle extents.
44230 2008-07-12  Robert Millan  <rmh@aybabtu.com>
44232         * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44234 2008-07-11  Robert Millan  <rmh@aybabtu.com>
44236         * util/grub.d/40_custom.in: New file. Example on how to add custom
44237         entries to /etc/grub.d.
44238         * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44239         40_custom (implicitly, by merging all the grub.d rules).
44241 2008-07-11  Pavel Roskin  <proski@gnu.org>
44243         * commands/read.c (grub_getline): Fix invalid memory access.
44244         Don't add newline to the variable value.
44246         * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44247         [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44248         (serial_hw_get_port): Check validity of the port number.
44249         (grub_cmd_serial): Check return value of serial_hw_get_port().
44251 2008-07-07  Pavel Roskin  <proski@gnu.org>
44253         * boot/i386/pc/diskboot.S (notification_string): Replace
44254         "Loading kernel" with just "loading".  This is shorter, less
44255         confusing and saves a few bytes for possible future changes.
44257 2008-07-05  Pavel Roskin  <proski@gnu.org>
44259         * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44260         size for ATAPI devices, they are undefined.  Output sector
44261         number in decimal form.
44263         * disk/ata.c: Use named constants for status bits.
44265 2008-07-04  Pavel Roskin  <proski@gnu.org>
44267         * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44268         grub_addr_t before casting it to the void pointer to fix a
44269         warning.  Non-addressable regions are discarded earlier.
44270         (grub_arch_modules_addr): Cast _end to grub_addr_t.
44271         * kern/i386/linuxbios/table.c: Include grub/misc.h.
44272         (check_signature): Don't shadow table_header.
44273         (grub_linuxbios_table_iterate): Cast numeric constants to
44274         grub_linuxbios_table_header_t.
44275         * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44276         grub_stop().
44278         * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44279         prevent warnings.
44281         * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44282         pointer, which can cause warnings.  Support 64-bit addresses.
44284         * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44285         of sizeof(long).  This fixes PowerPC image generation on x86_64.
44287 2008-07-04  Robert Millan  <rmh@aybabtu.com>
44289         This fixes a performance issue when pc & gpt partmap iterators
44290         didn't abort iteration even after our hook found what it was
44291         looking for (often causing expensive probes of non-existent drives).
44293         Some callers relied on previous buggy behaviour, since they would
44294         raise an error when their own hooks caused early abortion of its
44295         iteration.
44297         * kern/device.c (grub_device_open): Improve error message.
44298         * disk/lvm.c (grub_lvm_open): Likewise.
44299         * disk/raid.c (grub_raid_open): Likewise.
44301         * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44302         when hook requests it, independently of grub_errno.
44303         (pc_partition_map_probe): Do not fail when find_func() caused
44304         early abortion of pc_partition_map_iterate().
44306         * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44307         when hook requests it, independently of grub_errno.
44308         (gpt_partition_map_probe): Do not fail when find_func() caused
44309         early abortion of gpt_partition_map_iterate().
44311         * kern/partition.c (grub_partition_iterate): Abort parent iteration
44312         when hook requests it, independently of grub_errno.  Do not fail when
44313         part_map_iterate_hook() caused early abortion of p->iterate().
44315         * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44316         when grub_partition_iterate() returned with non-zero.
44318 2008-07-03  Pavel Roskin  <proski@gnu.org>
44320         * disk/ata.c (grub_ata_pio_write): Check status before writing,
44321         like we do in grub_ata_pio_read().
44322         (grub_ata_readwrite): Always write individual sectors.  Fix the
44323         sector count for the remainder.
44324         (grub_ata_write): Enable writing to ATA devices.  Correctly
44325         report error for ATAPI devices.
44327 2008-07-02  Pavel Roskin  <proski@gnu.org>
44329         * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44330         warning.
44332         * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44333         for every read sector, we already increment it for the whole
44334         batch.  This fixes reading more than 256 sectors at once.
44336         * util/grub-editenv.c (cmd_info): Cast argument to long
44337         explicitly.  ptrdiff_t reduces to int on i386.
44339         * util/grub-editenv.c (main): Be specific which parameter is
44340         missing.
44342         * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44343         (memdisk): Make memdisk_orig_addr a pointer.
44345         * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44346         for file offsets, use grub_off_t instead.  Fix printf format
44347         warnings.
44349         * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44350         there.  Real unexpected warnings should not drown in the noise
44351         about known problems.
44353         * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44354         grub_disk_addr_t for memory addresses.
44356         * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44357         explicitly to fix a warning.
44359         * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44361         * Makefile.in (MODULE_LDFLAGS): New variable.
44362         * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro.  Check if
44363         the linker accepts --build-id=none.
44364         * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE.  Substitute
44365         MODULE_LDFLAGS.
44366         * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44368         * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44369         those in Linux XFS code.  Provide a way to access 64-bit parent
44370         inode.
44371         (grub_xfs_iterate_dir): Use the new names.  Avoid reading past
44372         the end of struct grub_xfs_dir_header.
44374 2008-07-02  Bean  <bean123ch@gmail.com>
44376         * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44377         GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44378         and GRUB_IEEE1275_FLAG_NO_ANSI.
44380         * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44381         GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44382         and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44384         * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44385         immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44387         * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44388         GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44390         * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44391         esc sequence on non ANSI terminal.
44392         (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44394         * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44395         beginning of file.
44397 2008-07-02  Bean  <bean123ch@gmail.com>
44399         * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44400         (grub_editenv_SOURCES): New variable.
44401         (pkglib_MODULES): Add loadenv.mod.
44402         (loadenv_mod_SOURCES): New variable.
44403         (loadenv_mod_CFLAGS): Likewise.
44404         (loadenv_mod_LDFLAGS): Likewise.
44406         * include/grub/envblk.h: New file.
44408         * util/envblk.c: New file.
44410         * util/grub-editenv.c: New file.
44412         * commands/loadenv.c: New file.
44414 2008-07-01  Pavel Roskin  <proski@gnu.org>
44416         * include/multiboot2.h (struct multiboot_tag_module): Use char,
44417         not unsigned char.  This fixes warnings and is consistent with
44418         other tags.
44420         * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44422         * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44424         * term/tparm.c (analyze): Always set *popcount.
44426         * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44427         cast to fix a warning.
44429         * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44430         cast to suppress a warning.
44432         * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44433         grub_fshelp_read_file() expects.
44435         * fs/fat.c: Fix UUID calculation on big-endian systems.  We
44436         write uuid as a 32-bit value in CPU byte order, so declare and
44437         use it as such.
44439         * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44440         long if the format specifier expects it.
44441         * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44442         * partmap/pc.c (pc_partition_map_iterate): Likewise.
44443         * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44444         long to fix a warning.
44445         * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44446         grub_dprintf() arguments to fix warnings.
44448 2008-06-30  Pavel Roskin  <proski@gnu.org>
44450         * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44451         install_bsd_part immediately before core.img is embedded or
44452         modified on disk.  This fixes core.img verification if core.img
44453         cannot be embedded.
44455         * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44456         core_path to calculate the blocklist.
44457         Patch from Javier Martín <lordhabbit@gmail.com>
44459 2008-06-29  Robert Millan  <rmh@aybabtu.com>
44461         * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro.  Maps filesystem
44462         block to disk block.
44463         (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44464         Patch from Niels Böhm <bitbucket@arcor.de>
44466 2008-06-29  Robert Millan  <rmh@aybabtu.com>
44468         * util/update-grub_lib.in (font_path): Search for fonts in
44469         /boot/grub first, which is more likely to be readable (we aren't
44470         deciding where fonts live, just looking for them).
44472 2008-06-26  Pavel Roskin  <proski@gnu.org>
44474         * util/biosdisk.c (read_device_map): Don't leave dead map
44475         entries for devices failing stat() check.
44477         * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44478         core_path_dev for the core.img path on the target device.
44480 2008-06-26  Robert Millan  <rmh@aybabtu.com>
44482         * disk/fs_uuid.c: New file.
44483         * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44484         (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44485         (fs_uuid_mod_LDFLAGS): New variables.
44486         * include/grub/disk.h (grub_disk_dev_id): Add
44487         `GRUB_DISK_DEVICE_UUID_ID'.
44488         * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44489         implement iterate().
44491 2008-06-26  Robert Millan  <rmh@aybabtu.com>
44493         * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44494         "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44495         Linux image includes no initrd.
44497 2008-06-21  Javier Martín  <lordhabbit@gmail.com>
44499         * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44500         call to resolve the core image location that effectively appended the
44501         name twice.
44503 2008-06-21  Robert Millan  <rmh@aybabtu.com>
44505         * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44506         call from here ...
44508         * util/grub.d/10_hurd.in: ... to here ...
44509         * util/grub.d/10_linux.in: ... and here.
44511 2008-06-19  Robert Millan  <rmh@aybabtu.com>
44513         * kern/main.c (grub_main): Export `prefix' variable immediately
44514         after it has been set by grub_machine_set_prefix().
44516 2008-06-19  Robert Millan  <rmh@aybabtu.com>
44518         * commands/search.c (search_label, search_fs_uuid, search_file): Print
44519         search result when not saving to variable, not the other way around.
44520         When saving to variable, abort iteration as soon as a match is found.
44522 2008-06-19  Robert Millan  <rmh@aybabtu.com>
44524         * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44525         check for partition that provides /boot/grub.  Its logic is flawed,
44526         as it prevents prepare_grub_to_access_device() from being called
44527         multiple times.
44529 2008-06-19  Robert Millan  <rmh@aybabtu.com>
44531         * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44532         "insmod" command directly when abstraction modules are needed,
44533         instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44534         since it had already been processed).
44536 2008-06-19  Pavel Roskin  <proski@gnu.org>
44538         * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44539         changed.  This is needed in case GRUB_LIBDIR changes.
44540         * conf/i386-ieee1275.rmk: Likewise.
44541         * conf/i386-linuxbios.rmk: Likewise.
44542         * conf/i386-pc.rmk: Likewise.
44543         * conf/powerpc-ieee1275.rmk: Likewise.
44545 2008-06-18  Pavel Roskin  <proski@gnu.org>
44547         * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44548         kernel_elf_symlist.c to symlist.c for consistency with other
44549         architectures.  Update all users.
44550         * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44552 2008-06-18  Robert Millan  <rmh@aybabtu.com>
44554         * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44555         it in prefix.
44557         * util/i386/pc/grub-setup.c (main): Don't handle prefix at all.  Set
44558         `must_embed' to 1 when root_dev is a RAID device.  When dest_dev is
44559         a RAID device, run setup() for all members independently on whether
44560         LVM abstraction is being used.
44561         (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44562         If grub-mkimage has set `*install_dos_part == -2', don't override this
44563         value.
44564         Perform *install_dos_part adjustments independently on whether
44565         we're embedding or not.
44566         Clarify error message when image is too big for embedding.
44567         Remove duplicate *install_dos_part stanza.
44569 2008-06-17  Robert Millan  <rmh@aybabtu.com>
44571         * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44572         (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44573         variables.
44574         (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44575         values in grub_ofconsole_normal_color and
44576         grub_ofconsole_highlight_color (they're not directly related to
44577         background and foreground).
44578         (grub_ofconsole_setcolorstate): Extract background and foreground
44579         from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44581 2008-06-17  Robert Millan  <rmh@aybabtu.com>
44583         * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44584         /boot/grub for the check in last commit, not /boot (they could be
44585         different partitions).
44587 2008-06-16  Robert Millan  <rmh@aybabtu.com>
44589         * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44590         asked to setup access for the same partition that provides /boot,
44591         don't bother using UUIDs since our root already has the value we
44592         want.
44594 2008-06-16  Robert Millan  <rmh@aybabtu.com>
44596         * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44597         I2O devices.
44598         Patch from Sven Mueller <sven@debian.org>.
44600 2008-06-16  Robert Millan  <rmh@aybabtu.com>
44602         * util/update-grub.in: Check for $EUID instead of $UID.
44603         Reported by Vincent Zweije.
44605 2008-06-16  Bean  <bean123ch@gmail.com>
44607         * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44608         (grub_ext2_read_block): Likewise.
44609         (grub_ext2_read_inode): Likewise.
44610         (grub_ext2_mount): Likewise.
44611         (grub_ext2_close): Likewise.
44612         (grub_ext3_get_journal): Removed.
44614         * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44615         (grub_reiserfs_read_symlink): Likewise.
44616         (grub_reiserfs_mount): Likewise.
44617         (grub_reiserfs_open): Likewise.
44618         (grub_reiserfs_read): Likewise.
44619         (grub_reiserfs_close): Likewise.
44620         (grub_reiserfs_get_journal): Removed.
44622         * fs/fshelp.c (grub_fshelp_read): Removed.
44623         (grub_fshelp_map_block): Likewise.
44625         * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44626         (grub_fshelp_journal): Likewise.
44627         (grub_fshelp_read): Likewise.
44628         (grub_fshelp_map_block): Likewise.
44630 2008-06-16  Pavel Roskin  <proski@gnu.org>
44632         * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44633         floating point anymore.
44634         * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44636 2008-06-15  Pavel Roskin  <proski@gnu.org>
44638         * commands/ls.c (grub_ls_list_files): Use integer calculations
44639         for human readable format, avoid floating point use.
44640         * kern/misc.c (grub_ftoa): Remove.
44641         (grub_vsprintf): Remove floating point support.
44643 2008-06-15  Robert Millan  <rmh@aybabtu.com>
44645         * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44646         devices.
44647         Reported by Max Vozeler.
44649 2008-06-15  Robert Millan  <rmh@aybabtu.com>
44651         * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44652         in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44653         skipped later.
44654         (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44655         the beginning of the prefix.
44657         * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44658         It is assumed that if we have a memdisk, grub-mkimage has set
44659         grub_prefix to include the "(memdisk)" drive in it.
44661 2008-06-15  Robert Millan  <rmh@aybabtu.com>
44663         * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44664         Initialize keyboard controller after registering the terminal, so that
44665         grub_printf() can be called from grub_keyboard_controller_init().
44667 2008-06-15  Robert Millan  <rmh@aybabtu.com>
44669         * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44670         extent-btree which is written as big endian on disk.
44671         Reported by Alain Greppin  <al@chilibi.org>.
44673 2008-06-14  Robert Millan  <rmh@aybabtu.com>
44675         * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44676         * util/i386/pc/grub-install.in (modules): Likewise.
44678 2008-06-13  Pavel Roskin  <proski@gnu.org>
44680         * commands/ls.c (grub_ls_list_files): Fix format warnings.
44682 2008-06-13  Bean  <bean123ch@gmail.com>
44684         * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44686         * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44688         * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44689         to indicate sparse block.
44691 2008-06-12  Pavel Roskin  <proski@gnu.org>
44693         * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44694         number, grub_fshelp_read() does it for us.
44696         * fs/fshelp.c (grub_fshelp_read): New function.  Implement
44697         linear disk read with journal translation.
44698         * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44699         * include/grub/fshelp.h: Declare grub_fshelp_read().
44701 2008-06-09  Pavel Roskin  <proski@gnu.org>
44703         * fs/minix.c (grub_minix_mount): Handle error reading
44704         superblock.
44706 2008-06-08  Robert Millan  <rmh@aybabtu.com>
44708         * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44709         don't append the RAID prefix afterwards.
44710         Reported by Clint Adams.
44712 2008-06-08  Robert Millan  <rmh@aybabtu.com>
44714         Based on description from Pavel:
44715         * kern/disk.c (grub_disk_check_range): Rename to ...
44716         (grub_disk_adjust_range): ... this.  Add a comment explaining the
44717         tasks performed by this function.
44719 2008-06-08  Robert Millan  <rmh@aybabtu.com>
44721         * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44722         `num_serial' (for consistency with other variables).
44723         (struct grub_ntfs_data): Add `uuid' member.
44724         * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44725         (grub_ntfs_uuid): New function.
44726         (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44728 2008-06-07  Pavel Roskin  <proski@gnu.org>
44730         * util/biosdisk.c (open_device): Revert last change to the
44731         function, it broke installation.  The sector needs to be
44732         different dependent on which device is opened.
44734 2008-06-06  Robert Millan  <rmh@aybabtu.com>
44736         Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44737         rest of GRUB, and breakage doesn't happen if its value were modified.
44739         * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44740         Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44741         a constant (same value).
44742         * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44743         `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44745 2008-06-06  Robert Millan  <rmh@aybabtu.com>
44747         * util/biosdisk.c (open_device): Do not modify sector offset when
44748         accessing a partition.  kern/disk.c already handles this for us.
44750 2008-06-06  Robert Millan  <rmh@aybabtu.com>
44752         * util/grub-emu.c (grub_machine_init): Move code in this function from
44753         here ...
44754         (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44755         segfault in case grub_printf() is called).
44757         * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44758         grub_probe.  Update all users not to explicitly add it again.
44759         (grub_device): New variable; contains corresponding device for grubdir.
44760         (fs_module, partmap_module, devabstraction_module): Pass
44761         `--device ${grub_device}' to grub_probe to avoid traversing /dev
44762         every time.
44764 2008-06-05  Robert Millan  <rmh@aybabtu.com>
44766         * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44767         is found, print it (same layout as with labels).
44769 2008-06-04  Robert Millan  <rmh@aybabtu.com>
44771         * util/biosdisk.c (get_drive): Rename to ...
44772         (find_grub_drive): ... this.  Update all users.
44774         (get_os_disk): Rename to ...
44775         (convert_system_partition_to_system_disk): ... this.  Update all users.
44777         (find_drive): Rename to ...
44778         (find_system_device): ... this.  Update all users.
44780 2008-06-04  Robert Millan  <rmh@aybabtu.com>
44782         * util/biosdisk.c (get_os_disk): Handle IDA devices.
44783         * util/grub-mkdevicemap.c (get_mmc_disk_name)
44784         (make_device_map): Likewise.
44786 2008-06-01  Robert Millan  <rmh@aybabtu.com>
44788         *  util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44789         before dereferencing it.
44791         * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44792         union with fat12/fat16-specific ones.  Add some new fields, including
44793         `num_serial' for both versions.
44794         (struct grub_fat_data): Add `uuid' member.
44795         (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44796         names.  Initialize `data->uuid' using `num_serial'.
44797         (grub_fat_uuid): New function.
44798         (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44800         * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44801         (grub_reiserfs_uuid): New function.
44802         (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44803         member.
44805         * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44806         (grub_xfs_uuid): New function.
44807         (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44809 2008-06-01  Robert Millan  <rmh@aybabtu.com>
44811         * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44812         code that is backward compatible with pre-uuid search command.
44814 2008-05-31  Robert Millan  <rmh@aybabtu.com>
44816         * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44817         floppies after everything else, to ensure floppy drive isn't accessed
44818         unnecessarily (patch from Bean).
44820 2008-05-31  Robert Millan  <rmh@aybabtu.com>
44822         * commands/search.c (search_label, search_fs_uuid, search_file): Do
44823         not print device names when we were asked to set a variable.
44825 2008-05-31  Robert Millan  <rmh@aybabtu.com>
44827         * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44828         using "cursor-on" and "cursor-off" commands (understood at least by
44829         the Open Firmware flavour on OLPC).
44831 2008-05-31  Michael Gorven  <michael@gorven.za.net>
44833         * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44834         on and off sequences.
44836 2008-05-31  Robert Millan  <rmh@aybabtu.com>
44838         * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44839         * util/update-grub.in: Likewise.
44841 2008-05-30  Pavel Roskin  <proski@gnu.org>
44843         * util/biosdisk.c (linux_find_partition): Simplify logic and
44844         make the code more universal.  Keep special processing for
44845         devfs, but use a simple rule for all other devices.  If the
44846         device ends with a number, append 'p' and the partition number.
44847         Otherwise, append only the partition number.
44849 2008-05-30  Robert Millan  <rmh@aybabtu.com>
44851         * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44852         * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44853         GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44854         the `root' parameter to Linux.
44856 2008-05-30  Robert Millan  <rmh@aybabtu.com>
44858         * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44859         * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44860         --fs_uuid with --fs-uuid.
44861         * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44862         all filesystems support them).
44864 2008-05-30  Robert Millan  <rmh@aybabtu.com>
44866         * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44867         grub_printf() flags, since we're printing in units of 2 bytes.
44869 2008-05-30  Robert Millan  <rmh@aybabtu.com>
44871         * util/grub.d/00_header.in: Remove obsolete comment referencing
44872         convert_system_path_to_grub_path().
44873         * util/update-grub.in: Likewise.
44874         * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44875         (convert_system_path_to_grub_path): Add a warning message explaining
44876         that this function is deprecated.  Rely on is_path_readable_by_grub()
44877         for the readability checks.
44878         (font_path): Use is_path_readable_by_grub() for the readability
44879         check rather than convert_system_path_to_grub_path().
44881 2008-05-30  Robert Millan  <rmh@aybabtu.com>
44883         * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44884         * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44885         converting it first.
44886         * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44887         grub.cfg for access to font file, and afterwards call it again to set
44888         the root device.
44890 2008-05-30  Robert Millan  <rmh@aybabtu.com>
44892         * commands/search.c (options): Add --fs_uuid option.
44893         (search_fs_uuid): New function.
44894         (grub_cmd_search): Fix --set argument passing.
44895         Use search_fs_uuid() when requested via --fs_uuid.
44896         (grub_search_init): Update help message.
44897         * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44898         and redeclare it as an array of 16-bit words.
44899         (grub_ext2_uuid): New function.
44900         (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44901         * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44902         * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44903         (GRUB_DEVICE_BOOT_UUID): New variables.
44904         (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44905         * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44906         whenever possible.
44907         * util/grub.d/10_hurd.in: Avoid explicit use of root drive.  Instead,
44908         just assume `root' variable has the right value.
44909         * util/grub.d/10_linux.in: Likewise.
44910         * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44911         via PRINT_FS_UUID.
44912         (main): Recognise `-t fs_uuid' argument.
44914 2008-05-30  Robert Millan  <rmh@aybabtu.com>
44916         * util/biosdisk.c (map): Redefine structure to hold information
44917         about GRUB drive name.
44918         (get_drive): Reimplement without assuming (and verifying) BIOS-like
44919         drive names.
44920         (call_hook): Remove.
44921         (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44922         member.  Assume drive has partitions.
44923         (grub_util_biosdisk_open): Access device names via `.device' struct
44924         member.
44925         (open_device): Likewise.
44926         (find_drive): Likewise.
44927         (read_device_map): Adjust map[] usage to match the new struct
44928         definition.  Don't check for duplicates (still possible, but not cheap
44929         anymore).
44930         (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44931         (make_device_name): Remove assumption of BIOS-like drive names.
44933 2008-05-30  Pavel Roskin  <proski@gnu.org>
44935         * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44936         compiling execute.c doesn't need grub_script.tab.h anymore.
44937         (normal/command.c_DEPENDENCIES): Likewise.
44938         (normal/function.c_DEPENDENCIES): Likewise.
44939         * conf/i386-ieee1275.rmk: Likewise.
44940         * conf/i386-linuxbios.rmk: Likewise.
44941         * conf/i386-pc.rmk: Likewise.
44942         * conf/powerpc-ieee1275.rmk: Likewise.
44943         * conf/sparc64-ieee1275.rmk: Likewise.
44945 2008-05-29  Pavel Roskin  <proski@gnu.org>
44947         * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44948         when scanning metadata for volume group name.
44950         * include/grub/script.h: Don't include grub_script.tab.h.  It's
44951         a generated file, which may only be included from the files with
44952         DEPENDENCIES rules in the makefile.  Don't use typedef YYSTYPE,
44953         use union YYSTYPE, as the later allows forward declaration.
44954         * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44956 2008-05-29  Robert Millan  <rmh@aybabtu.com>
44958         * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44959         (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44960         [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44961         (grub_console_checkkey): Add grub_dprintf() call to report unknown
44962         scan codes.
44964 2008-05-29  Robert Millan  <rmh@aybabtu.com>
44966         * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44967         control key combinations.
44969 2008-05-29  Robert Millan  <rmh@aybabtu.com>
44971         * util/powerpc/ieee1275/grub-install.in: Move from here ...
44972         * util/ieee1275/grub-install.in: ... to here.
44973         * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44974         * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44975         (grub_install_SOURCES): Likewise.
44977 2008-05-29  Robert Millan  <rmh@aybabtu.com>
44979         * fs/affs.c: Update copyright year.
44980         * fs/ext2.c: Likewise.
44981         * fs/fshelp.c: Likewise.
44982         * fs/hfsplus.c: Likewise.
44983         * fs/ntfs.c: Likewise.
44984         * fs/xfs.c: Likewise.
44985         * include/grub/fshelp.h: Likewise.
44986         * util/grub-mkdevicemap.c: Likewise.
44988 2008-05-28  Robert Millan  <rmh@aybabtu.com>
44990         * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44991         might need to be fatfs to support some firmware implementations
44992         (e.g. OFW or EFI).
44994 2008-05-28  Robert Millan  <rmh@aybabtu.com>
44996         * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44997         devices.
44998         * util/grub-mkdevicemap.c (get_mmc_disk_name)
44999         (make_device_map): Likewise.
45001 2008-05-20  Bean  <bean123ch@gmail.com>
45003         * fs/fshelp.c (grub_fshelp_map_block): New function.
45004         (grub_fshelp_find_file): Use 64-bit type for pos and block address.
45005         Use `>>' and `&' operator to avoid 64-bit divide and modulo.
45007         * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
45008         (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
45009         (grub_fshelp_journal): New structure.
45010         (grub_fshelp_map_block): New function prototype.
45011         (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
45012         (grub_fshelp_map_block): Likewise.
45014         * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
45015         (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
45016         (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
45017         (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
45018         (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
45019         (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
45020         (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
45021         (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
45022         (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
45023         (EXT3_JOURNAL_FLAG_DELETED): Likewise.
45024         (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
45025         (grub_ext2_sblock): New members for journal support.
45026         (grub_ext3_journal_header): New structure.
45027         (grub_ext3_journal_revoke_header): Likewise.
45028         (grub_ext3_journal_block_tag): Likewise.
45029         (grub_ext3_journal_sblock): Likewise.
45030         (grub_fshelp_node): New members logfile and journal.
45031         (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
45032         grub_fshelp_map_block to get real block number.
45033         (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
45034         number.
45035         (grub_ext2_read_inode): Likewise.
45036         (grub_ext3_get_journal): New function.
45037         (grub_read_inode): Initialize journal using grub_ext3_get_journal.
45038         (grub_ext2_close): Release memory used by journal.
45040         * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
45041         (REISERFS_MAGIC_DESC_BLOCK): New macro.
45042         (grub_reiserfs_transaction_header): Renamed to
45043         grub_reiserfs_description_block, replace field data with real_blocks.
45044         (grub_reiserfs_commit_block): New structure.
45045         (grub_reiserfs_data): New member journal.
45046         (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
45047         number.
45048         (grub_reiserfs_read_symlink): Likewise.
45049         (grub_reiserfs_iterate_dir): Likewise.
45050         (grub_reiserfs_open): Likewise.
45051         (grub_reiserfs_read): Likewise.
45052         (grub_reiserfs_get_journal): New function.
45053         (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
45054         three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
45055         using grub_reiserfs_get_journal.
45056         (grub_reiserfs_close): Release memory used by journal.
45058         * fs/affs.c (grub_affs_read_block): Change block type to
45059         grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
45061         * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
45063         * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
45065         * fs/ntfs.c (grub_ntfs_read_block): Likewise.
45067         * fs/udf.c (grub_udf_read_block): Change block type to
45068         grub_disk_addr_t. Use type cast to avoid warning.
45070         * fs/xfs.c (grub_xfs_read_block): Likewise.
45072 2008-05-16  Christian Franke  <franke@computer.org>
45074         * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
45075         to ensure that break with ESC will always work.
45076         * commands/sleep.c (grub_interruptible_millisleep): Likewise.
45077         Remove ESC from keyboard queue.
45079 2008-05-16  Christian Franke  <franke@computer.org>
45081         * util/biosdisk.c: [__CYGWIN__] Add includes.
45082         (grub_util_biosdisk_open): Use Linux code also for Cygwin.
45083         (get_os_disk): Move variable declarations to OS specific
45084         parts to avoid warning.
45085         [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
45086         [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
45087         (grub_util_biosdisk_get_grub_dev): Use Linux code also for
45088         Cygwin.
45089         * util/getroot.c: [__CYGWIN__] Add includes.
45090         (strip_extra_slashes): Fix "/" case.
45091         [__CYGWIN__] (get_win32_path): New function.
45092         [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
45093         [__CYGWIN__] (find_root_device): Disable.
45094         [__CYGWIN__] (get_bootsec_serial): New function.
45095         [__CYGWIN__] (find_cygwin_root_device): Likewise.
45096         [__linux__] (grub_guess_root_device): Add early returns to simplify
45097         structure.
45098         [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
45099         [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
45100         check for Linux only.
45102 2008-05-15  Bean  <bean123ch@gmail.com>
45104         * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45105         keyboard hang problem in apple's intel mac.
45107 2008-05-09  Robert Millan  <rmh@aybabtu.com>
45109         * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45110         devices.
45111         * util/grub-mkdevicemap.c (get_virtio_disk_name)
45112         (make_device_map): Likewise.
45113         Reported by Aurelien Jarno <aurel32@debian.org>
45115 2008-05-07  Ian Campbell  <ijc@hellion.org.uk>
45117         * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45118         * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45119         (make_device_map): Output entries for xvd type disks.
45121 2008-05-07  Robert Millan  <rmh@aybabtu.com>
45123         * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45124         devices.
45125         * util/grub-mkdevicemap.c (get_cciss_disk_name)
45126         (make_device_map): Likewise.
45127         Reported by Roland Dreier <rdreier@cisco.com>
45129 2008-05-07  Robert Millan  <rmh@aybabtu.com>
45131         * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45132         grub_strstr() call.  Correct a few mistakes in failure path handling.
45134 2008-05-06  Robert Millan  <rmh@aybabtu.com>
45136         * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45137         Do not print a trailing slash (therefore, the root directory is an
45138         empty string).
45139         (convert_system_path_to_grub_path): Do not remove trailing slash
45140         from make_system_path_relative_to_its_root() output.
45142         * util/i386/pc/grub-install.in: Add trailing slash to output from
45143         make_system_path_relative_to_its_root().
45145 2008-05-06  Robert Millan  <rmh@aybabtu.com>
45147         * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'.  This
45148         ensures that output lines aren't intermangled with those sent to
45149         stderr (via grub_util_info()).
45150         * util/grub-probe.c (grub_refresh): Likewise.
45151         * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45153 2008-05-05  Christian Franke  <franke@computer.org>
45155         * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45156         Add Cygwin device names.
45157         (get_ide_disk_name) [__CYGWIN__]: Likewise.
45158         (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45159         (check_device): Return error instead of success on empty name.
45160         (make_device_map): Move label inside linux specific code to
45161         prevent compiler warning.
45163 2008-04-30  Robert Millan  <rmh@aybabtu.com>
45165         Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45166         * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45167         first boot option.
45168         * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45170 2008-04-29  Robert Millan  <rmh@aybabtu.com>
45172         * docs/grub.cfg: New file (example GRUB configuration).
45174 2008-04-26  Robert Millan  <rmh@aybabtu.com>
45176         * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST).  Add
45177         `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45178         and `disk/ieee1275/nand.c'.
45180 2008-04-25  Bean  <bean123ch@gmail.com>
45182         * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45183         i386-linuxbios.
45185         * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45186         change the buffer size to 4096 for cdrom device.
45188         * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45189         and nand.mod.
45190         (_linux_mod_SOURCES): New variable.
45191         (_linux_mod_CFLAGS): Likewise.
45192         (_linux_mod_LDFLAGS): Likewise.
45193         (linux_mod_SOURCES): Likewise.
45194         (linux_mod_CFLAGS): Likewise.
45195         (linux_mod_LDFLAGS): Likewise.
45196         (nand_mod_SOURCES): Likewise.
45197         (nand_mod_CFLAGS): Likewise.
45198         (nand_mod_LDFLAGS): Likewise.
45200         * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45201         GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45202         type property. (nand device in olpc don't have this property)
45204         * include/grub/disk.h (grub_disk_dev_id): New macro
45205         GRUB_DISK_DEVICE_NAND_ID.
45207         * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45208         function prototype.
45209         (grub_rescue_cmd_initrd): Likewise.
45211         * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45212         (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45213         ofw_cif_handler and ofw_idt, adjust padding number.
45215         * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45216         GRUB_MACHINE_IEEE1275 is defined.
45218         * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45219         Use NESTED_FUNC_ATTR attribute on the hook parameter.
45221         * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45222         on nested function heap_init.
45223         (grub_upper_mem): New variable for i386-ieee1275.
45224         (grub_get_extended_memory): New function for i386-ieee1275.
45225         (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45227         * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45228         NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45229         property.
45231         * loader/i386/ieee1275/linux.c: New file.
45233         * loader/i386/ieee1275/linux_normal.c: New file.
45235         * disk/ieee1275/nand.c: New file.
45237 2008-04-18  Thomas Schwinge  <tschwinge@gnu.org>
45239         * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45240         value.
45241         * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45243 2008-04-18  Robert Millan  <rmh@aybabtu.com>
45245         Restructures early code path on ieee1275 to unify grub_main() as
45246         the first C function that is executed in every platform.
45248         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45249         * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45250         cmain().
45251         * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45252         * kern/ieee1275/cmain.c (cmain): Rename to ...
45253         * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45254         * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45255         at the beginning.
45257 2008-04-18  Robert Millan  <rmh@aybabtu.com>
45259         * util/update-grub.in: Fix syntax error when setting
45260         `GRUB_PRELOAD_MODULES'.
45261         Reported by Stephane Chazelas <stephane@artesyncp.com>
45263 2008-04-17  Lubomir Kundrak  <lkundrak@redhat.com>
45265         * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45266         section into account, newer toolchains generate unique build ids
45267         * configure.ac: remove the test for --build-id=none acceptance,
45268         we want build ids to be preserved
45269         * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45270         far from other sections don't cause the raw binary images grow
45271         size
45273 2008-04-15  Robert Millan  <rmh@aybabtu.com>
45275         * disk/lvm.c: Update copyright year.
45276         * kern/misc.c: Likewise.
45278 2008-04-14  Vesa Jaaskelainen  <chaac@nic.fi>
45280         * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45281         there is no memory left for physical volume name.
45283 2008-04-14  Vesa Jaaskelainen  <chaac@nic.fi>
45285         * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45286         volume name mapping to support bigger than 9 character names properly.
45288 2008-04-13  Robert Millan  <rmh@aybabtu.com>
45290         * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45291         as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45293 2008-04-13  Christian Franke  <franke@computer.org>
45295         * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45296         to create a floppy emulation boot CD when non emulation mode
45297         does not work.
45298         Enable Joliet CD filesystem extension.
45300 2008-04-13  Robert Millan  <rmh@aybabtu.com>
45302         * kern/misc.c (grub_strncat): Fix off-by-one error.
45303         Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45305         * kern/env.c (grub_env_context_close): Clear current context, not
45306         previous one.
45307         Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45309         * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45311 2008-04-13  Robert Millan  <rmh@aybabtu.com>
45313         Improve robustness when handling LVM.
45315         * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45316         (and leave `*p' unmodified).
45317         (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45318         through it.
45319         (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45320         iterating through it.
45321         (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45322         through it.
45323         (grub_lvm_scan_device): Check the return value (and fail gracefully
45324         when due) on each grub_lvm_getvalue() or grub_strstr() call.
45325         Don't assume `vg->pvs != NULL' when iterating through it.
45327 2008-04-13  Robert Millan  <rmh@aybabtu.com>
45329         * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45330         * genmk.rb (partmap): New variable.
45331         (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45332         (#{partmap}): New target rule.
45333         * genpartmaplist.sh: New file.
45334         * Makefile.in (pkglib_DATA): Add partmap.lst.
45335         (partmap.lst): New target rule.
45336         * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45337         modules (including all partition maps), instead of preloading them.
45339 2007-04-13  Fabian Greffrath  <fabian.greffrath@web.de>
45341         * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45342         `linux-boot-prober' (if installed) to detect other operating
45343         systems which are installed on the computer and add them to
45344         the boot menu.
45345         * conf/common.rmk: Build and install 30_os-prober.
45347 2008-04-12  Robert Millan  <rmh@aybabtu.com>
45349         * kern/powerpc/ieee1275/init.c: Move from here ...
45350         * kern/ieee1275/init.c: ... to here.  Update all users.
45352         * kern/powerpc/ieee1275/cmain.c: Move from here ...
45353         * kern/ieee1275/cmain.c: ... to here.  Update all users.
45355         * kern/powerpc/ieee1275/openfw.c: Move from here ...
45356         * kern/ieee1275/openfw.c: ... to here.  Update all users.
45358         * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45359         * loader/ieee1275/multiboot2.c: ... to here.  Update all users.
45361 2008-04-10  Pavel Roskin  <proski@gnu.org>
45363         * configure.ac: Always use "_cv_" in cache variables for
45364         compatibility with Autoconf 2.62.
45366 2008-04-07  Robert Millan  <rmh@aybabtu.com>
45368         Revert grub/machine/init.h addition by Pavel (since it breaks on
45369         i386-ieee1275 and others):
45370         * util/i386/pc/misc.c: Remove grub/machine/init.h.
45371         * util/powerpc/ieee1275/misc.c: Likewise.
45373 2008-04-07  Robert Millan  <rmh@aybabtu.com>
45375         * util/grub-probe.c (probe): Improve error message.
45377 2008-04-07  Robert Millan  <rmh@aybabtu.com>
45379         * util/biosdisk.c (read_device_map): Skip devices that don't exist
45380         (this prevents the presence of a bogus entry from ruining the whole
45381         thing).
45383 2008-04-06  Pavel Roskin  <proski@gnu.org>
45385         * util/biosdisk.c: Include grub/util/biosdisk.h.
45386         * util/grub-fstest.c (execute_command): Make static.
45387         * util/grub-mkdevicemap.c (check_device): Likewise.
45388         * util/i386/pc/misc.c: Include grub/machine/init.h.
45389         * util/powerpc/ieee1275/misc.c: Likewise.
45390         * util/lvm.c: Include grub/util/lvm.h.
45391         * util/misc.c: Include grub/kernel.h, grub/misc.h and
45392         grub/cache.h.
45393         * util/raid.c: Include grub/util/raid.h.
45394         (grub_util_getdiskname): Make static.
45396         * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45397         grub_hostfs_fini(), as they are called from grub_init_all() and
45398         grub_fini_all() respectively.  This fixes an infinite loop in
45399         grub-fstest due to double registration of hostfs.
45400         Reported by Christian Franke <Christian.Franke@t-online.de>
45402 2008-04-05  Pavel Roskin  <proski@gnu.org>
45404         * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45405         all 8 functions.  Otherwise, probe function 0 only.
45407 2008-04-04  Pavel Roskin  <proski@gnu.org>
45409         * commands/lspci.c (grub_lspci_iter): Print the bus number
45410         correctly.
45412         * commands/lspci.c (grub_pci_classes): Fix typos.
45413         (grub_lspci_iter): Don't print func twice.  Print vendor ID
45414         before device ID, as it's normally done.
45416         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45417         Fix signedness warnings.
45418         * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45419         Likewise.
45420         * util/ieee1275/get_disk_name.c: Include config.h so that
45421         _GNU_SOURCE is defined and getline() is declared.  Mark an
45422         unused argument as such.  Fix a signedness warning.
45424 2008-04-02  Pavel Roskin  <proski@gnu.org>
45426         * genkernsyms.sh.in: Use more robust assignments for CC and
45427         srcdir.  Quote srcdir.
45428         * gensymlist.sh.in: Likewise.  Assert at the compile time that
45429         the symbol table is not empty.
45431         * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45432         * fs/cpio.c (grub_cpio_read): Likewise.
45434 2008-04-01  Pavel Roskin  <proski@gnu.org>
45436         * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45437         * disk/host.c (grub_host_open): Likewise.
45438         * disk/loopback.c (grub_loopback_open): Likewise.
45439         * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45440         disk->id as in disk/host.c, not a multi-character constant.
45442         * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek().  The
45443         later is obsolete, potentially dangerous and sets a bad example.
45444         * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45445         * util/misc.c (grub_util_get_image_size): Likewise.
45447         * disk/loopback.c (options): Improve help for "--partitions".
45449         * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45450         options to align them with the short options, e.g. "echo -e".
45452 2008-03-31  Bean  <bean123ch@gmail.com>
45454         * video/reader/png.c (grub_png_data): New member is_16bit and
45455         image_data.
45456         (grub_png_decode_image_header): Detect 16 bit png image.
45457         (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45458         (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45459         (grub_video_reader_png): Release memory occupied by image_data.
45461         * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45462         4096 bytes.
45463         (grub_nfs_mount): Skip the test for sector per cluster.
45465         * include/grub/ntfs.h (MAX_SPC): Removed.
45467 2008-03-31  Bean  <bean123ch@gmail.com>
45469         * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45470         (grub_probe_SOURCES): Add fs/afs.c.
45471         (grub_fstest_SOURCES): Likewise.
45472         (afs_mod_SOURCES): New variable.
45473         (afs_mod_CFLAGS): Likewise.
45474         (afs_mod_LDFLAGS): Likewise.
45476         * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45477         (grub_emu_SOURCES): Likewise.
45479         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45481         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45483         * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45485         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45487         * fs/afs.c: New file.
45489 2008-03-30  Pavel Roskin  <proski@gnu.org>
45491         * disk/host.c: Include grub/misc.h to fix a warning.
45492         * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45493         warnings about implicit declarations.
45495         * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45496         variable.
45497         * include/grub/i386/loader.h: Change declaration of
45498         grub_linux_boot() to match what grub_loader_set() expects.
45499         * util/getroot.c (grub_guess_root_device): Return const char* to
45500         fix a warning.
45501         * util/grub-probe.c (probe): Fix a warning about uninitialized
45502         abstraction_name variable.
45503         * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45504         second argument as unused to fix a warning.
45506         * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45507         missing grub_error() call.
45509         * util/update-grub_lib.in: Define datarootdir, since Autoconf
45510         2.60 and newer uses it to define datadir.
45512         * commands/sleep.c: Fix warning about implicit declaration.
45513         * disk/memdisk.c: Likewise.
45514         * loader/aout.c: Likewise.
45515         * loader/i386/bsd_normal.c: Likewise.
45516         * util/grub-probe.c: Likewise.
45518         * commands/i386/cpuid.c (has_longmode): Make static.
45519         * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45520         * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45522         * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45523         GDT.  This is more robust, as %ds can change.
45524         (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45525         calling real_to_prot().
45526         (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45528 2008-03-28  Pavel Roskin  <proski@gnu.org>
45530         * kern/i386/pc/startup.S: Assert that uncompressed functions
45531         don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45532         * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45533         code, as they push parts of the code (error handlers) beyond
45534         GRUB_KERNEL_MACHINE_RAW_SIZE.  Speed is not as important in this
45535         code as correctness and size.
45537 2008-03-28  Pavel Roskin  <proski@gnu.org>
45539         * kern/i386/pc/startup.S
45540         (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45541         data block address to the real mode, keep offset minimal.  This
45542         works around a bug in AWARD BIOS on old Athlon systems, which
45543         makes CD detection hang.
45545 2008-03-26  Pavel Roskin  <proski@gnu.org>
45547         * normal/color.c (grub_parse_color_name_pair): Make `name' a
45548         const.
45549         * include/grub/normal.h: Add grub_parse_color_name_pair()
45550         declaration.
45552 2008-03-24  Bean  <bean123ch@gmail.com>
45554         * disk/i386/pc/biosdisk.c (cd_start): Removed.
45555         (cd_count): Removed.
45556         (cd_drive): New variable.
45557         (grub_biosdisk_get_drive): Don't check for (cdN) device.
45558         (grub_biosdisk_call_hook): Likewise.
45559         (grub_biosdisk_iterate): Change cdrom detection method.
45560         (grub_biosdisk_open): Replace cd_start with cd_drive.
45561         (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45562         detect cdrom device.
45564         * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45565         Removed.
45566         (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45567         (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45568         (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45569         (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45570         (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45571         (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45572         (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45573         (grub_biosdisk_cdrp): New structure.
45574         (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45576         * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45578         * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45579         device.
45581         * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45582         New function.
45584 2008-03-20  Robert Millan  <rmh@aybabtu.com>
45586         Remove 2 TiB limit in ata.mod.
45587         * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45588         (grub_ata_dumpinfo): Print sector count with 0x%llx.
45589         (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45590         grub_uint64_t instead of grub_uint32_t.
45592 2008-03-05  Bean  <bean123ch@gmail.com>
45594         * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45595         (grub_multiboot): Set boot device.
45597         * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45599 2008-03-02  Bean  <bean123ch@gmail.com>
45601         * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45602         symlink_buffer.
45604 2008-03-01  Yoshinori K. Okuji  <okuji@enbug.org>
45606         * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45607         texinfo.tex.
45609         * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45610         modified.
45612         * docs/fdl.texi: New file.
45614         * docs/mdate-sh: New file. Copied from gnulib.
45615         * docs/texinfo.tex: Likewise.
45617         * config.guess: Updated from gnulib.
45618         * install-sh: Likewise.
45620 2008-02-28  Robert Millan  <rmh@aybabtu.com>
45622         * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45623         (aout_mod_SOURCES): New variable.
45624         (aout_mod_CFLAGS): Likewise.
45625         (aout_mod_LDFLAGS): Likewise.
45627         * conf/i386-ieee1275.rmk: Likewise.
45629 2008-02-28  Robert Millan  <rmh@aybabtu.com>
45631         * util/update-grub.in: Reorganise terminal validity check.  Accept
45632         `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45633         Based on suggestion by Franklin PIAT.
45635 2008-02-28  Fabian Greffrath  <greffrath@leat.rub.de>
45637         * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45638         function.
45639         * util/getroot.c (grub_util_check_block_device): New function that
45640         returns the given argument if it is a block device and returns NULL else.
45641         * util/grub-probe.c (argument_is_device): New variable.
45642         (probe): Promote device_name from a variable to an argument. Receive
45643         device_name from grub_util_check_block_device() if path is NULL and from
45644         grub_guess_root_device() else. Do not free() device_name anymore.
45645         (options): Introduce new parameter '-d, --device'.
45646         (main): Add description of the new parameter to the help screen.
45647         Rename path variable to argument. Set argument_is_device if the '-d'
45648         option is given. Pass argument to probe() depending on
45649         argument_is_device.
45651 2008-02-24  Bean  <bean123ch@gmail.com>
45653         * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45654         (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45655         (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45656         (GRUB_ISO9660_VOLDESC_PART): Likewise.
45657         (GRUB_ISO9660_VOLDESC_END): Likewise.
45658         (grub_iso9660_primary_voldesc): New member escape.
45659         (grub_iso9660_data): New member joliet.
45660         (grub_iso9660_convert_string): New function.
45661         (grub_iso9660_mount): Detect joliet extension.
45662         (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45663         (grub_iso9660_iso9660_label): Likewise.
45665         * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45666         (grub_setup_SOURCES): Add fs/udf.c.
45667         (grub_fstest_SOURCES): Likewise.
45668         (udf_mod_SOURCES): New variable.
45669         (udf_mod_CFLAGS): Likewise.
45670         (udf_mod_LDFLAGS): Likewise.
45672         * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45673         (grub_emu_SOURCES): Likewise.
45675         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45677         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45679         * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45681         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45683         * fs/udf.c: New file.
45685 2008-02-24  Robert Millan  <rmh@aybabtu.com>
45687         * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45688         (normal/lexer.c_DEPENDENCIES): New variables.
45689         * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45690         (normal/lexer.c_DEPENDENCIES): Likewise.
45691         * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45692         (normal/lexer.c_DEPENDENCIES): Likewise.
45693         * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45694         (normal/lexer.c_DEPENDENCIES): Likewise.
45695         * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45696         (normal/lexer.c_DEPENDENCIES): Likewise.
45697         * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45698         (normal/lexer.c_DEPENDENCIES): Likewise.
45700 2008-02-23  Robert Millan  <rmh@aybabtu.com>
45702         * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45703         since they were intended to be in hex.  This didn't break previously
45704         because of a bug in gpt_partition_map_iterate() (see below).
45706         (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45707         when checking the validity of GPT header.
45708         Remove `partno', since it always provides the same information as `i'.
45710 2008-02-21  Yoshinori K. Okuji  <okuji@enbug.org>
45712         * include/grub/efi/time.h: Fix a wrong comment.
45714 2008-02-19  Pavel Roskin  <proski@gnu.org>
45716         * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45717         message.
45719 2008-02-19  Bean  <bean123ch@gmail.com>
45721         * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45722         (aout_mod_SOURCES): New variable.
45723         (aout_mod_CFLAGS): Likewise.
45724         (aout_mod_LDFLAGS): Likewise.
45725         (_bsd_mod_SOURCES): New variable.
45726         (_bsd_mod_CFLAGS): Likewise.
45727         (_bsd_mod_LDFLAGS): Likewise.
45728         (bsd_mod_SOURCES): New variable.
45729         (bsd_mod_CFLAGS): Likewise.
45730         (bsd_mod_LDFLAGS): Likewise.
45732         * include/grub/aout.h: New file.
45734         * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45736         * include/grub/i386/bsd.h: New file.
45738         * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45739         to make it public.
45741         * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45742         function is called, so that it's possible to change it inside the hook.
45743         (grub_elf64_load): Likewise.
45744         (grub_elf_file): Don't close the file if elf header is not found.
45745         (grub_elf_close): Close the file if grub_elf_file fails (The new
45746         grub_elf_file won't close it).
45747         (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45748         (grub_elf64_size): Likewise.
45750         * kern/i386/loader.S (grub_unix_real_boot): New function.
45752         * loader/aout.c: New file.
45754         * loader/i386/bsd.c: New file.
45756         * loader/i386/bsd_normal.c: New file.
45758         * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45760         * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45761         can test other formats.
45763 2008-02-19  Robert Millan  <rmh@aybabtu.com>
45765         * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45766         (grub_gpt_partition_type_empty): Redefine with macro from
45767         `<grub/gpt_partition.h>'.
45768         (gpt_partition_map_iterate): Adjust partition type comparison.
45770         Export `entry' as partmap-specific `part.data' struct.
45771         (grub_gpt_header, grub_gpt_partentry): Move from here ...
45773         * include/grub/gpt_partition.h (grub_gpt_header)
45774         (grub_gpt_partentry): ... to here (new file).
45776         * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45778         (grub_gpt_partition_type_bios_boot): New const variable, defined
45779         with macro from `<grub/gpt_partition.h>'.
45781         (setup): Replace `first_start' with `embed_region', which keeps
45782         track of the embed region (and is partmap-agnostic).
45784         Replace find_first_partition_start() with find_usable_region(),
45785         which finds a usable region for embedding using partmap-specific
45786         knowledge (supports PC/MSDOS and GPT).
45788         Fix all assumptions that the embed region start at sector 1, using
45789         `embed_region.start' from now on.  Similarly, use `embed_region.end'
45790         rather than `first_start' to calculate available size.
45792         In grub_util_info() message, replace "into after the MBR" with an
45793         indication of the specific sector our embed region starts at.
45795 2008-02-19  Robert Millan  <rmh@aybabtu.com>
45797         * DISTLIST: Replace `commands/ieee1275/halt.c' and
45798         `commands/ieee1275/reboot.c' with `commands/halt.c' and
45799         `commands/reboot.c'.
45800         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45801         (halt_mod_SOURCES): Likewise.
45802         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45803         (halt_mod_SOURCES): Likewise.
45805 2008-02-17  Christian Franke  <franke@computer.org>
45807         * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45809 2008-02-17  Robert Millan  <rmh@aybabtu.com>
45811         * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45812         set `first_start' to 0 for non-PC/MSDOS partition maps.
45814 2008-02-16  Robert Millan  <rmh@aybabtu.com>
45816         * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45817         do not assume partition map is PC/MSDOS before performing checks that
45818         are specific to that layout.
45820 2008-02-13  Robert Millan  <rmh@aybabtu.com>
45822         * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45823         `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45824         * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45826 2008-02-13  Yoshinori K. Okuji  <okuji@enbug.org>
45828         * configure.ac: Only a cosmetic change on the handling of
45829         -fno-stack-protector.
45831 2008-02-12  Alexandre Boeglin  <alex@boeglin.org>
45833         * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45834         commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45835         reboot.c.
45836         (grub_install_SOURCES): Add halt.mod and reboot.mod.
45837         (halt_mod_SOURCES): New variable.
45838         (halt_mod_CFLAGS): Likewise.
45839         (halt_mod_LDFLAGS): Likewise.
45840         (reboot_mod_SOURCES): Likewise.
45841         (reboot_mod_CFLAGS): Likewise.
45842         (reboot_mod_LDFLAGS): Likewise.
45844         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45845         commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45846         reboot.c.
45847         (halt_mod_SOURCES): Likewise.
45848         (reboot_mod_SOURCES): Likewise.
45850         * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45851         commands/i386/pc/reboot.c by commands/reboot.c.
45852         (reboot_mod_SOURCES): Likewise.
45854         * commands/i386/pc/reboot.c: merge this file ...
45856         * commands/ieee1275/reboot.c: ... and this file ...
45858         * commands/reboot.c: ... to this file.
45859         Add some precompiler directive to include the correct header for
45860         each machine.
45862         * commands/ieee1275/halt.c: move this file ...
45864         * commands/halt.c: ... to here.
45865         Add some precompiler directive to include the correct header for
45866         each machine.
45868         * include/grub/efi/efi.h (grub_reboot): New function declaration.
45869         (grub_halt): Likewise.
45871         * kern/efi/efi.c (grub_reboot): New function.
45872         (grub_halt): Likewise.
45874 2008-02-12  Robert Millan  <rmh@aybabtu.com>
45876         * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45877         /dev (like it is done for /dev/mapper).  This doesn't provide support
45878         for EVMS, but at least it is now easy to identify the problem when it
45879         arises.
45881 2008-02-11  Robert Millan  <rmh@aybabtu.com>
45883         * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45884         (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45885         comparing it with -1, not 0.
45887 2008-02-10  Robert Millan  <rmh@aybabtu.com>
45889         * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45890         `disk/lvm.c'.
45891         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45892         * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45894         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45895         `disk/lvm.c' to the end of the list.
45896         * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45897         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45899 2008-02-10  Robert Millan  <rmh@aybabtu.com>
45901         * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'.  Call
45902         grub_print_error() instead.  This will let user know why we're entering
45903         rescue mode.
45904         Based on suggestions from Sam Morris.
45906 2008-02-10  Alexandre Boeglin  <alex@boeglin.org>
45908         * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45909         on remaining N args, instead of "--" arg N times.
45911 2008-02-09  Vesa Jaaskelainen  <chaac@nic.fi>
45913         * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45914         (fill_with_default_glyph): Changed to use unknown_glyph for fill
45915         pattern for unknown glyphs.
45917 2008-02-09  Robert Millan  <rmh@aybabtu.com>
45919         * configure.ac: Probe for `help2man'.
45920         * Makefile.in (builddir): New variable.
45921         (HELP2MAN): Likewise.  Set to `true' when @HELP2MAN@ doesn't provide it,
45922         or otherwise add a few flags/options to it.
45923         (install-local): For every executable utility or script that is
45924         installed, invoke $(HELP2MAN) to install a manpage based on --help
45925         output.
45927         * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45928         that it doesn't prevent --help from working in build tree.
45930         * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45931         with `bug-grub@gnu.org'.
45932         * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45933         * util/update-grub.in (usage): New function.
45934         Implement proper argument check, with support for --help and --version
45935         (as well as existing -y).
45937 2008-02-09  Christian Franke  <franke@computer.org>
45939         * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45940         avoid overwriting previous output.
45941         * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45943 2008-02-09  Robert Millan  <rmh@aybabtu.com>
45945         * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45946         drawing the menu.
45948 2008-02-09  Robert Millan  <rmh@aybabtu.com>
45950         * commands/sleep.c: New file.
45951         * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45952         (sleep_mod_SOURCES): New variable.
45953         (sleep_mod_CFLAGS): Likewise.
45954         (sleep_mod_LDFLAGS): Likewise.
45956 2008-02-09  Robert Millan  <rmh@aybabtu.com>
45958         * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45959         situations in which we can deduce the RAID size and the superblock
45960         doesn't match it.
45962 2008-02-09  Robert Millan  <rmh@aybabtu.com>
45964         * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function.  Construct
45965         and return a grub_diskmemberlist_t composed of LVM physical volumes.
45966         [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45968         * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function.  Construct
45969         and return a grub_diskmemberlist_t composed of physical array members.
45970         [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45972         * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45973         prototype.
45974         [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45975         [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45976         [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45978         * util/grub-probe.c (probe): Move partmap probing code from here ...
45979         (probe_partmap): ... to here.
45980         (probe): Use probe_partmap() once for the disk we're probing, and
45981         additionally, when such disk contains a memberlist() struct member,
45982         once for each disk that is contained in the structure returned by
45983         memberlist().
45985 2008-02-09  Robert Millan  <rmh@aybabtu.com>
45987         * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45988         environment variable to 'all' in order to obtain debug output from
45989         non-util/ code.
45990         * util/i386/pc/grub-setup.c (main): Likewise.
45992 2008-02-08  Robert Millan  <rmh@aybabtu.com>
45994         * disk/raid.c (grub_raid_scan_device): Check for
45995         `array->device[sb.this_disk.number]' rather than for
45996         `array->device[sb.this_disk.number]->name', since the latter is not
45997         guaranteed to be accessible.
45999 2008-02-08  Robert Millan  <rmh@aybabtu.com>
46001         * disk/raid.c: Update copyright.
46002         * fs/cpio.c: Likewise.
46003         * include/grub/raid.h: Likewise.
46004         * loader/i386/pc/multiboot.c: Likewise.
46005         * util/hostfs.c: Likewise.
46007 2008-02-08  Robert Millan  <rmh@aybabtu.com>
46009         * include/grub/raid.h (struct grub_raid_array): Change type of `device'
46010         to a grub_disk_t array.
46011         * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
46012         `device[x]'.
46013         (grub_raid_scan_device): Replace `device[x].name' accesses with
46014         `device[x]->name'.  Simplify initialization of `array->device[x]'.
46016 2008-02-08  Robert Millan  <rmh@aybabtu.com>
46018         * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
46019         grub_dprintf() calls.
46020         * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
46021         error message.
46023 2008-02-07  Christian Franke  <franke@computer.org>
46025         * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
46026         instead of fseek and ftell to support large files.
46027         (grub_hostfs_read): Likewise.
46029 2008-02-07  Robert Millan  <rmh@aybabtu.com>
46031         Patch from Jeroen Dekkers.
46032         * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
46033         failure, since successfully reading all array members might not be
46034         required.
46036 2008-02-06  Robert Millan  <rmh@aybabtu.com>
46038         * util/grub-probe.c (probe): Simplify partmap probing (with the
46039         assumption that the first word up to the underscore equals to
46040         the module name).
46042 2008-02-06  Christian Franke  <franke@computer.org>
46044         * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
46045         (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
46046         last block of a cpio or tar stream.
46047         Check for "TRAILER!!!" instead of any empty data
46048         block to detect last block of a cpio stream.
46049         (grub_cpio_dir): Fix constness of variable np.
46050         (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
46051         cpio or tar trailer is detected.  This fixes a crash
46052         on open of a non existing file.
46054 2008-02-05  Bean  <bean123ch@gmail.com>
46056         * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
46057         address of entry.
46058         (grub_multiboot_load_elf64): Likewise.
46059         (grub_multiboot): Initialize mbi structure.
46061         * util/grub-fstest.c: Don't include unused header file script.h.
46063         * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
46064         of file.
46065         (grub_fstest_SOURCES): Likewise.
46067 2008-02-05  Robert Millan  <rmh@aybabtu.com>
46069         * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
46070         (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
46071         (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
46072         (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
46074         * kern/i386/pc/startup.S: Include `<grub/term.h>'.
46075         (translation_table): Replace hardcoded values with macros
46076         provided by `<grub/term.h>'.
46078         * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
46079         (keyboard_map): Correct/add a few values, with macros provided
46080         by `<grub/term.h>'.
46081         (keyboard_map_shift): Zero values that don't differ from their
46082         `keyboard_map' equivalents.
46083         (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
46084         Discard the second scan code that is always sent by Caps lock.
46085         Only use `keyboard_map_shift' when it provides a non-zero value,
46086         otherwise fallback to `keyboard_map'.
46088 2008-02-04  Bean  <bean123ch@gmail.com>
46090         * Makefile.in (enable_grub_fstest): New variable.
46092         * conf/common.rmk (grub_fstest_init.lst): New rule.
46093         (grub_fstest_init.h): Likewise.
46094         (grub_fstest_init.c): Likewise.
46095         (util/grub-fstest.c_DEPENDENCIES): New variable.
46096         (grub_fstest_SOURCES): Likewise.
46098         * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
46100         * util/grub-fstest.c: New file.
46102 2008-02-03  Yoshinori K. Okuji  <okuji@enbug.org>
46104         Make grub-setup handle a separate root device.
46106         * util/i386/pc/grub-setup.c (setup): Always open the root device,
46107         so that the root device can be compared with the destination
46108         device.
46109         When embedding the core image, if the root and destination devices
46110         are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46111         0xFF.
46112         When not embedding, set ROOT_DRIVE to 0xFF.
46114 2008-02-03  Yoshinori K. Okuji  <okuji@enbug.org>
46116         Add support for having a grub directory in a different drive. This
46117         is still only the data handling part.
46119         * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46120         (codestart): Save %dh in GRUB_ROOT_DRIVE.
46121         (grub_root_drive): New variable.
46123         * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46124         instead of GRUB_BOOT_DRIVE to construct a device name. Set
46125         GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46126         as it was.
46128         * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46130         * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46131         macro.
46132         (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46134         * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46135         is bogus, because PXE booting does not specify any drive
46136         correctly.
46138         * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46139         am not sure if this is really correct.
46141         * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46142         is always identical to the boot drive when booting from a CD.
46144         * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46145         longer.
46146         (root_drive): New variable.
46147         (real_start): Unconditionally set %dh to ROOT_DRIVE.
46148         (setup_sectors): Push %dx right after popping it, because %dh will
46149         be modified later.
46150         (copy_buffer): Restore %dx.
46152 2008-02-03  Robert Millan  <rmh@aybabtu.com>
46154         * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46155         use `cdboot.img' for cdrom images.
46157 2008-02-03  Robert Millan  <rmh@aybabtu.com>
46159         * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46160         only setup gfxterm when `font' command has succeeded.
46162 2008-02-03  Robert Millan  <rmh@aybabtu.com>
46164         * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46165         (grub_rescue_cmd_multiboot_loader)
46166         (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46168 2008-02-03  Pavel Roskin  <proski@gnu.org>
46170         * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46171         %edx and %esi from stack only after grub_gate_a20() is called.
46172         grub_gate_a20() clobbers %edx.
46174 2008-02-03  Yoshinori K. Okuji  <okuji@enbug.org>
46176         * configure.ac (AC_INIT): Bumped to 1.96.
46178         * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46179         commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46180         include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46181         video/readers/png.c.
46183 2008-02-03  Bean  <bean123ch@gmail.com>
46185         * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46186         (cdboot_img_SOURCES): New variable.
46187         (cdboot_img_ASFLAGS): New variable.
46188         (cdboot_img_LDFLAGS): New variable.
46190         * boot/i386/pc/cdboot.S: New file.
46192         * disk/i386/pc/biosdisk.c (cd_start): New variable.
46193         (cd_count): Likewise.
46194         (grub_biosdisk_get_drive): Add support for cd device.
46195         (grub_biosdisk_call_hook): Likewise.
46196         (grub_biosdisk_iterate): Likewise.
46197         (grub_biosdisk_open): Likewise.
46198         (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46199         (grub_biosdisk_rw): Support reading from cd device.
46200         (GRUB_MOD_INIT): Iterate cd devices.
46202         * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46203         (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46204         (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46206         * kern/i386/pc/init.c (make_install_device): Check for cd device.
46208 2008-02-02  Robert Millan  <rmh@aybabtu.com>
46210         * commands/read.c: New file.
46211         * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46212         (read_mod_SOURCES): New variable.
46213         (read_mod_CFLAGS): Likewise.
46214         (read_mod_LDFLAGS): Likewise.
46216 2008-02-02  Robert Millan  <rmh@aybabtu.com>
46218         * normal/main.c (grub_normal_execute): Check for `menu->size' when
46219         determining whether menu has to be displayed.
46221 2008-02-02  Marco Gerards  <marco@gnu.org>
46223         * bus/pci.c: New file.
46225         * include/grub/pci.h: Likewise.
46227         * include/grub/i386/pc/pci.h: Likewise.
46229         * commands/lspci.c: Likewise.
46231         * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46232         `lspci.mod'.
46233         (pci_mod_SOURCES): New variable.
46234         (pci_mod_CFLAGS): Likewise.
46235         (pci_mod_LDFLAGS): Likewise.
46236         (lspci_mod_SOURCES): Likewise.
46237         (lspci_mod_CFLAGS): Likewise.
46238         (lspci_mod_LDFLAGS): Likewise.
46240 2008-02-02  Bean  <bean123ch@gmail.com>
46242         * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46243         (grub_ufs_get_file_block): Fix indirect block calculation problem.
46245         * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46246         (grub_xfs_btree_node): New structure.
46247         (grub_xfs_btree_root): New structure.
46248         (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46249         (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46250         (GRUB_XFS_EXTENT_BLOCK): Likewise.
46251         (GRUB_XFS_EXTENT_SIZE): Likewise.
46252         (grub_xfs_read_block): Support btree format type.
46253         (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46254         Use directory block as basic unit.
46256         * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46258         * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46259         __attribute__ ((__regparm__ (1))).
46261 2008-02-01  Robert Millan  <rmh@aybabtu.com>
46263         Correct a mistake in previous commit.
46265         * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46266         top.
46267         (normal/command.c_DEPENDENCIES): New variable.
46269 2008-02-01  Robert Millan  <rmh@aybabtu.com>
46271         * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46272         top.
46273         (normal/command.c_DEPENDENCIES): New variable.
46274         (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46275         * conf/i386-ieee1275.rmk: Likewise.
46276         * conf/i386-linuxbios.rmk: Likewise.
46277         * conf/i386-pc.rmk: Likewise.
46278         * conf/sparc64-ieee1275.rmk: Likewise.
46279         * conf/powerpc-ieee1275.rmk: Likewise.
46280         (grub_emu_SOURCES): Add `fs/fshelp.c'.
46282         * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46284 2008-02-01  Robert Millan  <rmh@aybabtu.com>
46286         * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46287         call at beginning of function.
46289 2008-01-31  Pavel Roskin  <proski@gnu.org>
46291         * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46292         * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46293         (grub_mkrescue_SOURCES): Likewise.
46294         * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46296 2008-01-30  Robert Millan  <rmh@aybabtu.com>
46298         * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46299         (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46300         * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46301         (grub_probe_SOURCES): ... to here.
46303         * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46304         (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46305         * conf/i386-ieee1275.rmk: Likewise.
46306         * conf/i386-linuxbios.rmk: Likewise.
46307         * conf/powerpc-ieee1275.rmk: Likewise.
46309 2008-01-30  Tristan Gingold  <gingold@free.fr>
46311         * kern/rescue.c: Silently accept empty lines.
46313 2008-01-29  Bean  <bean123ch@gmail.com>
46315         * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46316         (real_code_2): Code cleanup and change comment style.
46317         (move_memory): Avoid using 32-bit address mode.
46319 2008-01-29  Bean  <bean123ch@gmail.com>
46321         * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46322         (png_mod_SOURCES): New variable.
46323         (png_mod_CFLAGS): Likewise.
46324         (png_mod_LDFLAGS): Likewise.
46326         * video/readers/png.c: New file.
46328 2008-01-28  Robert Millan  <rmh@aybabtu.com>
46330         * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46331         * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46332         `ifndef GRUB_MOD_GAP' hack.
46333         * util/elf/grub-mkimage.c (add_segments): Likewise.
46335 2008-01-27  Robert Millan  <rmh@aybabtu.com>
46337         * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46338         `GRUB_MOD_GAP' for platforms in which it's not defined.
46339         * util/elf/grub-mkimage.c (add_segments): Likewise.
46341 2008-01-27  Robert Millan  <rmh@aybabtu.com>
46343         Get grub-emu to build again (including parallel builds).
46345         * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46346         Split into ...
46347         (util/grub-emu.c_DEPENDENCIES): ... this, ...
46348         (normal/execute.c_DEPENDENCIES): ... this, ...
46349         (grub-emu_DEPENDENCIES): ... and this.
46351         * conf/i386-efi.rmk: Likewise.
46352         * conf/i386-linuxbios.rmk: Likewise.
46353         * conf/i386-ieee1275.rmk: Likewise.
46354         * conf/powerpc-ieee1275.rmk: Likewise.
46355         (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46357 2008-01-27  Robert Millan  <rmh@aybabtu.com>
46359         * NEWS: Add a few items.
46361 2008-01-27  Robert Millan  <rmh@aybabtu.com>
46363         Fix parallel builds with grub-emu.  Based on earlier commit for
46364         grub-probe and grub-setup.
46366         * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46367         (util/grub-emu.c_DEPENDENCIES): ... this.
46368         * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46369         (util/grub-emu.c_DEPENDENCIES): ... this.
46370         * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46371         (util/grub-emu.c_DEPENDENCIES): ... this.
46372         * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46373         (util/grub-emu.c_DEPENDENCIES): ... this.
46374         * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46375         (util/grub-emu.c_DEPENDENCIES): ... this.
46377 2008-01-27  Pavel Roskin  <proski@gnu.org>
46379         * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46380         to create a gap between _end and the modules added to the image
46381         with grub-mkrescue.  That fixes "CLAIM failed" on PowerMAC.
46382         * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46383         * util/elf/grub-mkimage.c (add_segments): Likewise.
46385 2008-01-26  Pavel Roskin  <proski@gnu.org>
46387         * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46388         just return an error.
46390 2008-01-26  Bean  <bean123ch@gmail.com>
46392         * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46393         (grub_reiserfs_get_item): Save offset of the next item.
46394         (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46396 2008-01-25  Robert Millan  <rmh@aybabtu.com>
46398         * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46399         make all filesystem sources appear together (possibly fixing omissions
46400         while at it).
46401         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46402         * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46403         * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46404         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46406         * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.  Additionally,
46407         add `kern/file.c'.
46408         * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46409         * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46410         * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46411         * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46413         * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46414         (probe): Add a sanity check to make sure of our ability to read
46415         requested files when probing for filesystem type.
46417         * genmk.rb: Update copyright year (2007).
46419         * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46420         (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46421         (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46422         (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46423         (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46424         : Remove function prototypes.
46426 2008-01-25  Robert Millan  <rmh@aybabtu.com>
46428         Revert my previous commits (based on wrong assumption of how grub_errno
46429         works).
46431         * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46432         * kern/file.c (grub_file_open): Likewise.
46434 2008-01-24  Pavel Roskin  <proski@gnu.org>
46436         * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46437         that hang if GRUB tries to setup colors.
46438         * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46439         colors for firmwares that don't support it.
46440         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46441         Recognize Open Hack'Ware, set flags to work around its
46442         limitations.
46444 2008-01-24  Robert Millan  <rmh@aybabtu.com>
46446         * kern/file.c (grub_file_open): Do not account previous failures of
46447         unrelated functions when grub_errno is checked for.
46448         Reported by Oleg Strikov.
46450 2008-01-24  Bean  <bean123ch@gmail.com>
46452         * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46453         (grub_ufs_sblock): New member volume name.
46454         (grub_ufs_find_file): Fix string copy bug.
46455         (grub_ufs_label): Implement this function properly.
46457         * fs/hfs.c (grub_hfs_cnid_type): New enum.
46458         (grub_hfs_iterate_records): Use the correct file number for extents
46459         and catalog file. Fix problem in next index calculation.
46460         (grub_hfs_find_node): Replace recursive function call with loop.
46461         (grub_hfs_iterate_dir): Replace recursive function call with loop.
46463 2008-01-23  Robert Millan  <rmh@aybabtu.com>
46465         * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46466         `<grub/symbol.h>' and `<grub/multiboot.h>'.
46467         (grub_multiboot2_real_boot): New function prototype.
46469         * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46470         [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46472         * kern/i386/ieee1275/init.c (grub_os_area_addr)
46473         (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46475 2008-01-23  Robert Millan  <rmh@aybabtu.com>
46477         * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46478         #ifdef'ed out grub_printf().
46480 2008-01-23  Robert Millan  <rmh@aybabtu.com>
46482         * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46483         grub_dprintf calls, since they make "debug=all" mode unusable.
46484         (grub_console_checkkey): Likewise.
46486 2008-01-23  Robert Millan  <rmh@aybabtu.com>
46488         * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46489         `term/i386/pc/at_keyboard.c'.
46490         (pkglib_MODULES): Add `serial.mod'.
46491         (serial_mod_SOURCES): New variable.
46492         (serial_mod_CFLAGS): Likewise.
46493         (serial_mod_LDFLAGS): Likewise.
46495         * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'.  Remove
46496         `<grub/powerpc/ieee1275/console.h>'.
46497         (grub_keyboard_controller_init): New function prototype.
46498         (grub_console_checkkey): Likewise.
46499         (grub_console_getkey): Likewise.
46501         * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46502         keyboard on i386.
46504         * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46505         grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46507 2008-01-23  Robert Millan  <rmh@aybabtu.com>
46509         * kern/i386/pc/init.c (make_install_device): When memdisk image is
46510         present, "(memdisk)/boot/grub" becomes the default prefix.
46512         * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46513         a memdisk tarball with all the modules.  Add --overlay=DIR option that
46514         allows users to overlay additional files into the image.
46516 2008-01-23  Robert Millan  <rmh@aybabtu.com>
46518         * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46519         and `machine/memory.h'.
46520         (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46521         (_multiboot_mod_SOURCES): New variable.
46522         (_multiboot_mod_CFLAGS): Likewise.
46523         (_multiboot_mod_LDFLAGS): Likewise.
46524         (multiboot_mod_SOURCES): Likewise.
46525         (multiboot_mod_CFLAGS): Likewise.
46526         (multiboot_mod_LDFLAGS): Likewise.
46528         * include/grub/i386/ieee1275/loader.h: New file.
46530         * include/grub/i386/ieee1275/machine.h: Likewise.
46532         * include/grub/i386/ieee1275/memory.h: Likewise.
46534         * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46535         variable declaration.
46536         (grub_os_area_size): Likewise.
46538         * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46539         (grub_lower_mem, grub_upper_mem): New variables.
46540         (grub_stop_floppy): New function (just to make
46541         grub_multiboot2_real_boot() happy).
46543         * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46544         `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46545         (grub_stop): New function.
46546         Include `"../realmode.S"' and `"../loader.S"'.
46548         * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46549         Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46551         * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46552         rely on grub_multiboot2_real_boot() for final boot.
46554 2008-01-22  Robert Millan  <rmh@aybabtu.com>
46556         * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46557         `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46558         device that doesn't look like an SD card.
46559         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46560         `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46561         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46562         OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46563         found.
46565 2008-01-22  Robert Millan  <rmh@aybabtu.com>
46567         * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46568         avoid claiming over our own code.
46570 2008-01-22  Bean  <bean123ch@gmail.com>
46572         * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46573         (jpeg_mod_SOURCES): New variable.
46574         (jpeg_mod_CFLAGS): Likewise.
46575         (jpeg_mod_LDFLAGS): Likewise.
46577         * video/readers/jpeg.c : New file.
46579 2008-01-22  Bean  <bean123ch@gmail.com>
46581         * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46582         there are no more items.
46584 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46586         * kern/mm.c (grub_mm_init_region): Improve debug message.
46588 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46590         * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46591         (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46592         address.
46593         (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46594         a C macro.
46595         * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46596         Indicates start of upper memory.
46597         * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46598         (generate_image): Abort when image size is big enough to corrupt
46599         upper memory.
46601         * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46602         (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46603         * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46604         instead of hardcoding 0xA0000.
46605         * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46606         (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46607         instead of hardcoding 0xA0000.
46609 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46611         * disk/memdisk.c (memdisk_size): New variable.
46612         (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46613         `memdisk_size'.
46614         (grub_memdisk_init): Initialize `memdisk_size'.  Reallocate memdisk
46615         image to dynamic memory.
46616         (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46617         `memdisk_size'.  Free memdisk block.
46619 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46621         Fix detection of very small filesystems (like tar).
46623         * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46624         contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46625         GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46626         a problem with this disk).
46628 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46630         * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46631         on grub_biosdisk_rw_standard() error.
46633 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46635         * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46636         recent changes.
46637         * kern/elf.c: Likewise.
46638         * kern/ieee1275/ieee1275.c: Likewise.
46639         * kern/powerpc/ieee1275/openfw.c: Likewise.
46640         * term/ieee1275/ofconsole.c: Likewise.
46642 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46644         * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46646         * include/grub/kernel.h (grub_arch_memdisk_addr)
46647         (grub_arch_memdisk_size): Moved from here ...
46649         * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46650         (grub_arch_memdisk_size): ... to here.
46652 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46654         Mostly based on bugfix from Bean.
46656         * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46657         attribute with hook() parameter.
46658         (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46659         declaration.
46660         (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46661         attribute with hook() parameter.
46662         (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46663         declaration.
46665 2008-01-21  Robert Millan  <rmh@aybabtu.com>
46667         * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46668         (pkglib_MODULES): Add `memdisk.mod'.
46669         (memdisk_mod_SOURCES): New variable.
46670         (memdisk_mod_CFLAGS): Likewise.
46671         (memdisk_mod_LDFLAGS): Likewise.
46673         * disk/memdisk.c: New file.
46675         * include/grub/disk.h (grub_disk_dev_id): Add
46676         `GRUB_DISK_DEVICE_MEMDISK_ID'.
46678         * include/grub/i386/pc/kernel.h
46679         (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46680         (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46681         (grub_kernel_image_size): New variable declaration.
46682         (grub_total_module_size): Likewise.
46683         (grub_memdisk_image_size): Likewise.
46685         * include/grub/i386/pc/memory.h
46686         (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46688         * include/grub/kernel.h: Include `<grub/symbol.h>'.
46689         (grub_arch_memdisk_addr): New variable declaration.
46690         (grub_arch_memdisk_size): Likewise.
46692         * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46693         (grub_arch_memdisk_size): Likewise.
46695         * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46696         (codestart): Replace hardcoded `0x100000' with
46697         `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46699         * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46700         (generate_image): Add `memdisk_path' parameter.  When `memdisk_path' is
46701         not NULL, append the contents of the file it refers to, at the end of
46702         the compressed kernel image.  Initialize `grub_memdisk_image_size'
46703         variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46704         (options): Add "memdisk"|'m' option.
46705         (main): Parse --memdisk|-m option, and pass user-provided path as
46706         parameter to generate_image().
46708 2008-01-20  Robert Millan  <rmh@aybabtu.com>
46710         * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46711         grub_dprintf() calls from here ...
46712         * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46714 2008-01-20  Robert Millan  <rmh@aybabtu.com>
46716         Fix detection of "real mode" when /options/real-mode? doesn't exist.
46718         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46719         declaration.
46720         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46721         (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46722         `GRUB_IEEE1275_FLAG_REAL_MODE'.
46723         (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46724         property).
46725         * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46726         `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46728 2008-01-19  Robert Millan  <rmh@aybabtu.com>
46730         Get rid of confusing function (superseded by
46731         `grub_ieee1275_get_integer_property')
46732         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46733         prototype.
46734         * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46735         function.
46736         * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46737         grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46738         in native endianness from grub_ieee1275_get_integer_property().
46740 2008-01-19  Robert Millan  <rmh@aybabtu.com>
46742         * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46743         command after "shut-down", since implementations differ on which
46744         the command for halt is.
46746 2008-01-19  Robert Millan  <rmh@aybabtu.com>
46748         * include/grub/i386/linuxbios/console.h: Add header protection.
46749         (grub_keyboard_controller_init): New function prototype.
46750         * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46751         (KEYBOARD_COMMAND_READ): Likewise.
46752         (KEYBOARD_COMMAND_WRITE): Likewise.
46753         (KEYBOARD_SCANCODE_SET1): Likewise.
46754         (grub_keyboard_controller_write): New function.
46755         (grub_keyboard_controller_read): Likewise.
46756         (grub_keyboard_controller_init): Likewise.
46758         * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46759         (grub_console_init): On coreboot/LinuxBIOS, call
46760         grub_keyboard_controller_init().
46762 2008-01-19  Robert Millan  <rmh@aybabtu.com>
46764         PowerPC changes provided by Pavel Roskin.
46766         * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46767         * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46768         don't rely on cmain() doing it.
46769         * kern/i386/ieee1275/startup.S (_start): Store %eax in
46770         grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46772 2008-01-16  Robert Millan  <rmh@aybabtu.com>
46774         * include/grub/i386/linuxbios/memory.h
46775         (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46776         * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46777         receive `table_header' as argument.  Instead, probe for it in the
46778         known memory ranges where it can be present.
46779         (grub_available_iterate): Do not pass a fixed `table_header' address
46780         to grub_linuxbios_table_iterate().
46782 2008-01-15  Robert Millan  <rmh@aybabtu.com>
46784         * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46785         * conf/i386-ieee1275.rmk: New file.
46786         * include/grub/i386/ieee1275/console.h: Likewise.
46787         * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46788         * include/grub/i386/ieee1275/kernel.h: Likewise.
46789         * include/grub/i386/ieee1275/time.h: Likewise.
46790         * kern/i386/ieee1275/init.c: Likewise.
46791         * kern/i386/ieee1275/startup.S: Likewise.
46793 2008-01-15  Robert Millan  <rmh@aybabtu.com>
46795         * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46796         when pointers are 32-bit (but still do set it to one when they are
46797         64-bit).
46799 2008-01-15  Robert Millan  <rmh@aybabtu.com>
46801         * include/grub/ieee1275/ieee1275.h
46802         (grub_ieee1275_get_integer_property): New function prototype.
46804         * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46805         (grub_ieee1275_get_integer_property): New function.  Wraps around
46806         grub_ieee1275_get_property() to handle endianness.
46808         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46809         grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46810         where appropriate.
46811         * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46812         (grub_map): Likewise.
46813         * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46815 2008-01-15  Bean  <bean123ch@gmail.com>
46817         * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46818         (grub_script_execute_cmdline): Reset grub_errno.
46820         * normal/main.c (read_config_file): Reset grub_errno.
46822         * normal/parse.y (script_init): New.
46823         (script): Move function and menuentry here.
46824         (delimiter): New.
46825         (command): Add delimiter at the end of command.
46826         (commands): Adjust to match the new command.
46827         (commandblock): Remove grub_script_lexer_record_start.
46828         (menuentry): Add grub_script_lexer_record_start, use the new commands.
46829         (if): Use the new commands.
46831         * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46833 2008-01-15  Robert Millan  <rmh@aybabtu.com>
46835         * normal/menu.c (run_menu): Move timeout message from here ...
46836         (print_timeout): ... to here.
46837         (run_menu): Use print_timeout() once during initial draw to print
46838         the whole message, and again in every clock tick to update only
46839         the number of seconds.
46841 2008-01-15  Robert Millan  <rmh@aybabtu.com>
46843         * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46844         actual size of `available' from grub_ieee1275_get_property(), and
46845         restrict parsing to that bound.
46847 2008-01-15  Christian Franke  <franke@computer.org>
46849         * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46850         (argp_program_version): Remove variable.
46851         (argp_program_bug_address): Likewise.
46852         (options): Convert from struct argp_option to struct option.
46853         (struct arguments): Remove.
46854         (parse_opt): Remove.
46855         (usage): New function.
46856         (main): Replace struct args members by simple variables.
46857         Replace argp_parse() by getopt_long().
46858         Add switch to evaluate options.
46859         Add missing "(...)" around root_dev in prefix string.
46861 2008-01-14  Robert Millan  <rmh@aybabtu.com>
46863         * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46864         for grub_ieee1275_exit(), in order to improve portability.
46866 2008-01-14  Robert Millan  <rmh@aybabtu.com>
46868         * util/grub.d/10_linux.in (prefix): Define.
46869         (exec_prefix): Likewise.  Both definitions are later used by `libdir'.
46871 2008-01-13  Pavel Roskin  <proski@gnu.org>
46873         * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46874         grub_errno if no errors have been detected.
46876 2008-01-12  Robert Millan  <rmh@aybabtu.com>
46878         * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46879         (grub_util_get_dev_abstraction): New function prototype.
46881         * util/getroot.c: Include `<grub/util/getroot.h>'
46882         (grub_util_get_grub_dev): Move detection of abstraction type to ...
46883         (grub_util_get_dev_abstraction): ... here (new function).
46885         * util/grub-probe.c: Convert PRINT_* to an enum.  Add
46886         `PRINT_ABSTRACTION'.
46887         (probe): Probe for abstraction type when requested.
46888         (main): Understand `--target=abstraction'.
46890         * util/i386/efi/grub-install.in: Add abstraction module to core
46891         image when it is found to be necessary.
46892         * util/i386/pc/grub-install.in: Likewise.
46893         * util/powerpc/ieee1275/grub-install.in: Likewise.
46895         * util/update-grub_lib.in (font_path): Return system path without
46896         converting to GRUB path.
46897         * util/update-grub.in: Convert system path returned by font_path()
46898         to a GRUB path.  Use `grub-probe -t abstraction' to determine what
46899         abstraction module is needed for loading fonts (if any).  Export
46900         that as `GRUB_PRELOAD_MODULES'.
46901         * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46902         insmod commands).
46904 2008-01-12  Yoshinori K. Okuji  <okuji@enbug.org>
46906         Remove some unused code from reiserfs.
46908         * fs/reiserfs.c (struct grub_reiserfs_key)
46909         [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46910         (struct grub_reiserfs_node_body): Removed.
46911         (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46912         Likewise.
46913         (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46914         Likewise.
46915         (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46916         Likewise.
46917         (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46918         Likewise.
46919         (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46920         Likewise.
46921         (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46922         Likewise.
46923         (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46924         (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46925         (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46927 2008-01-10  Robert Millan  <rmh@aybabtu.com>
46929         * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46930         Determines if a file is garbage left by packaging systems, etc.
46931         * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46932         for processing /etc/grub.d scripts.
46933         * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46934         * util/grub.d/10_linux.in: Likewise.  Use grub_file_is_not_garbage()
46935         as a condition for processing Linux images.
46937 2008-01-10  Pavel Roskin  <proski@gnu.org>
46939         * include/grub/powerpc/libgcc.h (__ucmpdi2): New export.  Needed
46940         to compile reiserfs.c on PowerPC.
46942 2008-01-10  Robert Millan  <rmh@aybabtu.com>
46944         * kern/device.c (grub_device_iterate): Do not abort device iteration
46945         when one of the devices cannot be opened.
46946         * kern/disk.c (grub_disk_open): Do not account previous failures of
46947         unrelated functions when grub_errno is checked for.
46949 2008-01-08  Robert Millan  <rmh@aybabtu.com>
46951         * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46952         `! grub_linux_is_bzimage', change order of address comparison to make
46953         it more intuitive, and improve "too big zImage" error message.
46955 2008-01-08  Robert Millan  <rmh@aybabtu.com>
46957         * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46958         `$(update-grub_DATA)'.
46959         (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46960         targets.
46962 2008-01-07  Robert Millan  <rmh@aybabtu.com>
46964         * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46965         which instruction is modified by grub-setup during installation
46966         (since it wasn't obvious by only looking at this file).
46968 2008-01-07  Robert Millan  <rmh@aybabtu.com>
46970         * TODO: Rewrite.  Just refer to the wiki and the BTS instead of
46971         listing actual TODO items.
46973 2008-01-06  Yoshinori K. Okuji  <okuji@enbug.org>
46975         * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46976         correctly.
46977         (grub_reiserfs_get_key_offset): Likewise.
46978         (grub_reiserfs_set_key_offset): Likewise.
46979         (grub_reiserfs_set_key_type): Likewise.
46980         (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46982         (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46983         better to remove the bitfield version completely.
46985 2008-01-06  Yoshinori K. Okuji  <okuji@enbug.org>
46987         * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46988         allocated from the heap, due to the fshelp implementation.
46989         (grub_reiserfs_dir): Free NODE, due to the same reason.
46991 2008-01-06  Yoshinori K. Okuji  <okuji@enbug.org>
46993         Mostly from Vincent Pelletier:
46995         * fs/reiserfs.c: New file.
46997         * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46998         (reiserfs_mod_SOURCES): New variable.
46999         (reiserfs_mod_CFLAGS): Likewise.
47000         (reiserfs_mod_LDFLAGS): Likewise.
47002         * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
47003         disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
47004         include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
47005         normal/color.c.
47007 2008-01-06  Robert Millan  <rmh@aybabtu.com>
47009         * normal/color.c: Remove `<grub/env.h>'.
47011 2008-01-05  Jeroen Dekkers  <jeroen@dekkers.cx>
47013         * include/grub/normal.h: Include <grub/env.h>.
47015 2008-01-05  Robert Millan  <rmh@aybabtu.com>
47017         * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
47018         usage example with `(hd0,1)'.
47019         Reported by Samuel Thibault.
47021 2008-01-05  Robert Millan  <rmh@aybabtu.com>
47023         * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
47024         (grub_linux_boot_zimage): Rename to ...
47025         (grub_linux_boot): ... this.
47026         (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
47027         (grub_linux_boot_zimage): Conditionalize zImage copy.
47029         * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
47030         (grub_linux_boot_bzimage): Remove prototype.
47031         (grub_linux_boot_zimage): Rename to ...
47032         (grub_linux_boot): ... this.
47034         * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
47035         (grub_linux_boot): Remove function.
47037 2008-01-05  Robert Millan  <rmh@aybabtu.com>
47039         * include/grub/normal.h (grub_env_write_color_normal): New prototype.
47040         (grub_env_write_color_highlight): Likewise.
47041         (grub_wait_after_message): Likewise.
47043         * normal/color.c: New file.
47045         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47046         (normal_mod_DEPENDENCIES): Likewise.
47048         * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47049         (normal_mod_DEPENDENCIES): Likewise.
47051         * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47052         (normal_mod_DEPENDENCIES): Likewise.
47054         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
47055         (normal_mod_DEPENDENCIES): Likewise.
47057         * normal/menu_entry.c (run): Rely on grub_wait_after_message()
47058         for waiting after a message is printed.
47059         * normal/main.c (read_config_file): Likewise.
47060         (grub_normal_init): Register grub_env_write_color_normal() and
47061         grub_env_write_color_highlight() hooks.  Mark `color_normal' and
47062         `color_highlight' variables as global.
47064         * normal/menu.c (grub_wait_after_message): New function.
47065         (grub_color_menu_normal): New variable.  Replaces ...
47066         (GRUB_COLOR_MENU_NORMAL): ... this macro.
47067         (grub_color_menu_highlight): New variable.  Replaces ...
47068         (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
47069         (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
47070         `GRUB_TERM_COLOR_STANDARD'.
47071         (print_message): Use `grub_setcolorstate' to reload colors.  Rename
47072         `normal_code' and `highlight_code' to `old_color_normal' and
47073         `old_color_highlight', respectively.
47074         (grub_menu_init_page): Update colors when drawing the menu, based on
47075         `menu_color_normal' and `menu_color_highlight' variables.
47076         (grub_menu_run): Rely on grub_wait_after_message() for waiting after
47077         a message is printed.
47079 2008-01-05  Robert Millan  <rmh@aybabtu.com>
47081         * kern/env.c (grub_env_context_open): Propagate hooks for global
47082         variables to new context.
47084         * kern/main.c (grub_set_root_dev): Export `root' variable.
47086 2008-01-05  Robert Millan  <rmh@aybabtu.com>
47088         * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
47089         discs unconditionally, since udev and others have options to provide
47090         them.
47092 2008-01-05  Robert Millan  <rmh@aybabtu.com>
47094         * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
47096 2008-01-04  Christian Franke  <franke@computer.org>
47098         * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47099         of eisa_mmap.
47101 2008-01-03  Pavel Roskin  <proski@gnu.org>
47103         * kern/i386/linuxbios/init.c: Put "void" to all function
47104         declarations with no arguments.
47105         * kern/powerpc/ieee1275/init.c: Likewise.
47106         * term/i386/pc/at_keyboard.c: Likewise.
47107         * term/i386/pc/vga_text.c: Likewise.
47108         * util/grub-mkdevicemap.c: Likewise.
47110 2008-01-02  Robert Millan  <rmh@aybabtu.com>
47112         * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47113         message when loaded image is out of bounds.
47114         (grub_multiboot_load_elf64): Likewise.
47116 2008-01-02  Pavel Roskin  <proski@gnu.org>
47118         * util/grub.d/10_linux.in: Try version without ".old" when
47119         looking for initrd.  It's better to use initrd from the newer
47120         kernel of the same version than no initrd at all.
47122 2008-01-01  Robert Millan  <rmh@aybabtu.com>
47124         * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47126 2008-01-01  Vesa Jaaskelainen  <chaac@nic.fi>
47128         * include/grub/video.h: Added grub_video_unmap_color and
47129         grub_video_get_active_render_target.
47130         (grub_video_adapter): Added unmap_color and get_active_render_target.
47132         * video/video.c: Added grub_video_unmap_color and
47133         grub_video_get_active_render_target.
47134         (grub_video_get_info): Changed method to accept NULL pointer as an
47135         argument to allow detection of active video adapter.
47137         * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47138         grub_video_vbe_unmap_color_int.
47139         Added grub_video_vbe_unmap_color and
47140         grub_video_vbe_get_active_render_target.
47141         (grub_video_vbe_adapter): Added unmap_color and
47142         get_active_render_target.
47144         * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47145         with grub_video_vbe_unmap_color_int.
47147         * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47148         (DEFAULT_NORMAL_COLOR): Likewise.
47149         (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47150         (DEFAULT_FG_COLOR): Removed.
47151         (DEFAULT_BG_COLOR): Likewise.
47152         (DEFAULT_CURSOR_COLOR): Changed value.
47153         (grub_virtual_screen): Added standard_color_setting,
47154         normal_color_setting, highlight_color_setting and term_color.
47155         (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47156         (bitmap_width): Added.
47157         (bitmap_height): Likewise.
47158         (bitmap): Likewise.
47159         (set_term_color): Likewise.
47160         (grub_virtual_screen_setup): Changed to use new terminal coloring
47161         settings.
47162         (grub_gfxterm_init): Added init for bitmap.
47163         (grub_gfxterm_fini): Added destroy for bitmap.
47164         (redraw_screen_rect): Updated to use background bitmap and new
47165         terminal coloring.
47166         (scroll_up): Added optimization for case when there is no bitmap.
47167         (grub_gfxterm_cls): Fixed to use correct background color.
47168         (grub_virtual_screen_setcolorstate): Changed to use new terminal
47169         coloring.
47170         (grub_virtual_screen_setcolor): Likewise.
47171         (grub_virtual_screen_getcolor): Added.
47172         (grub_gfxterm_background_image_cmd): Likewise.
47173         (grub_video_term): Added setcolor and getcolor.
47174         (MOD_INIT): Added registration of background_image command.
47175         (MOD_TERM): Added unregistration for background_image command.
47177 2007-12-30  Pavel Roskin  <proski@gnu.org>
47179         * loader/multiboot_loader.c: Fix multiboot command
47180         unregistration.  Fix all typos in the word "multiboot".
47182 2007-12-29  Pavel Roskin  <proski@gnu.org>
47184         * util/grub.d/10_linux.in: Refactor search for initrd.  Add
47185         support for initrd names used in Fedora.
47187 2007-12-26  Bean  <bean123ch@gmail.com>
47189         * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47190         (cpio_mod_SOURCES): New variable.
47191         (cpio_mod_CFLAGS): Likewise.
47192         (cpio_mod_LDFLAGS): Likewise.
47194         * fs/cpio.c: New file.
47196         * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47198         * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47200         * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47202         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47204 2007-12-25  Robert Millan  <rmh@aybabtu.com>
47206         * include/grub/term.h (struct grub_term): Add `getcolor' function.
47207         (grub_getcolor): New function.
47209         * kern/term.c (grub_getcolor): New function.
47210         * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47211         (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47212         (print_entry): Set normal and highlight colors to
47213         `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47214         respectively, before printing and restore them to old
47215         values afterwards.
47216         (grub_menu_init_page): Likewise.  Fill an additional colored space
47217         that would otherwise be left blank.
47219         * term/efi/console.c (grub_console_getcolor): New function.
47220         (struct grub_console_term.getcolor): New variable.
47221         * term/i386/pc/console.c (grub_console_getcolor): New function.
47222         (struct grub_console_term.getcolor): New variable.
47223         * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47224         (struct grub_console_term.getcolor): New variable.
47226         * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47227         (struct grub_console_term.setcolor): Remove variable.
47228         * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47229         (struct grub_console_term.setcolor): Remove variable.
47230         * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47231         (struct grub_console_term.setcolor): Remove variable.
47232         * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47233         (struct grub_console_term.setcolor): Remove variable.
47235 2007-12-25  Robert Millan  <rmh@aybabtu.com>
47237         * configure.ac: Search for possible unifont.hex locations, and
47238         define UNIFONT_HEX if found.
47240         * Makefile.in (UNIFONT_HEX): Define variable.
47241         (DATA): Rename to ...
47242         (PKGLIB): ... this.  Update all users.
47243         (PKGDATA): New variable.
47244         (pkgdata_IMAGES): Rename to ...
47245         (pkglib_IMAGES): ... this. Update all users.
47246         (pkgdata_MODULES): Rename to ...
47247         (pkglib_MODULES): ... this. Update all users.
47248         (pkgdata_PROGRAMS): Rename to ...
47249         (pkglib_PROGRAMS): ... this. Update all users.
47250         (pkgdata_DATA): Rename to ...
47251         (pkglib_DATA): ... this. Update all users.
47252         (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47253         (unicode.pff, ascii.pff): New rules.
47254         (all-local): Add `$(PKGDATA)' dependency.
47255         (install-local): Process `$(PKGDATA)'.
47257         * util/update-grub_lib.in (font_path): Search for *.pff files in
47258         a few more locations, including `${pkgdata}'.
47260 2007-12-23  Robert Millan  <rmh@aybabtu.com>
47262         Patch from Bean  <bean123ch@gmail.com>:
47263         * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47264         `size'.
47266 2007-12-21  Bean  <bean123ch@gmail.com>
47268         * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47269         (ntfscomp_mod_SOURCES): New variable.
47270         (ntfscomp_mod_CFLAGS): Likewise.
47271         (ntfscomp_mod_LDFLAGS): Likewise.
47273         * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47274         (grub_probe_SOURCES): Likewise.
47275         (grub_emu_SOURCES): Likewise.
47277         * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47278         (grub_emu_SOURCES): Likewise.
47280         * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47281         (grub_emu_SOURCES): Likewise.
47283         * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47284         (grub_emu_SOURCES): Likewise.
47286         * fs/ntfs.c (grub_ntfscomp_func): New variable.
47287         (read_run_list): Renamed to grub_ntfs_read_run_list.
47288         (decomp_nextvcn): Moved to ntfscomp.c.
47289         (decomp_getch): Likewise.
47290         (decomp_get16): Likewise.
47291         (decomp_block): Likewise.
47292         (read_block): Likewise.
47293         (read_data): Partially moved to ntfscomp.c.
47294         (fixup): Change unsigned to grub_uint16_t.
47295         (read_mft): Change unsigned long to grub_uint32_t.
47296         (read_attr): Likewise.
47297         (read_data): Likewise.
47298         (read_run_data): Likewise.
47299         (read_run_list): Likewise.
47300         (read_mft): Likewise.
47302         * fs/ntfscomp.c: New file.
47304         * include/grub/ntfs.h: New file.
47306 2007-12-16  Robert Millan  <rmh@aybabtu.com>
47308         * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47309         IDE disk check, since Linux is known to support 20 IDE disks.
47310         Reported by Colin Watson.
47312 2007-12-15  Bean  <bean123ch@gmail.com>
47314         * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47315         (lnxboot_img_SOURCES): New variable.
47316         (lnxboot_img_ASFLAGS): Likewise.
47317         (lnxboot_img_LDFLAGS): Likewise.
47319         * boot/i386/pc/lnxboot.S: New file.
47321 2007-11-24  Pavel Roskin  <proski@gnu.org>
47323         * configure.ac: Test if '--build-id=none' is supported by the
47324         linker.  If yes, add it to TARGET_LDFLAGS.  Build ID causes
47325         objcopy to generate incorrect binary files (binutils
47326         2.17.50.0.18-1 as shipped by Fedora 8).
47327         * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47328         linking, so that build ID doesn't break the test.
47330 2007-11-24  Pavel Roskin  <proski@gnu.org>
47332         * include/grub/i386/time.h: use "void" in the argument list
47333         of grub_cpu_idle().
47334         * include/grub/powerpc/time.h: Likewise.
47335         * include/grub/sparc64/time.h: Likewise.
47337 2007-11-18  Christian Franke  <franke@computer.org>
47339         * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47340         now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47341         This fixes the problem that function keys did not work in grub-emu.
47343 2007-11-18  Christian Franke  <franke@computer.org>
47345         * disk/host.c (grub_host_open): Remove attribute unused from
47346         name parameter. Add check for "host". This fixes the problem
47347         that grub-emu does not find partitions.
47349 2007-11-18  Christian Franke  <franke@computer.org>
47351         * util/hostfs.c (is_dir): New function.
47352         (grub_hostfs_dir):  Handle missing dirent.d_type case.
47353         (grub_hostfs_read): Add missing fseek().
47354         (grub_hostfs_label): Clear label pointer.  This fixes a crash
47355         of grub-emu on "ls (host)".
47357 2007-11-18  Christian Franke  <franke@computer.org>
47359         * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47360         Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47361         to 64 bit boundary by default.
47363 2007-11-18  Bean  <bean123ch@gmail.com>
47365         * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47366         (hexdump_mod_SOURCES): New variable.
47367         (hexdump_mod_CFLAGS): Likewise.
47368         (hexdump_mod_LDFLAGS): Likewise.
47370         * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47372         * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47374         * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47376         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47378         * include/grub/hexdump.h: New file.
47380         * commands/hexdump.c: New file.
47382 2007-11-10  Robert Millan  <rmh@aybabtu.com>
47384         * commands/i386/pc/play.c (beep_off): Switch order of arguments
47385         in grub_outb() calls.
47386         (beep_on): Likewise.
47388 2007-11-10  Christian Franke  <franke@computer.org>
47390         * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47391         (grub_menu_run): Likewise.
47393 2007-11-10  Robert Millan  <rmh@aybabtu.com>
47395         * include/grub/i386/efi/machine.h: New file.
47396         * include/grub/i386/linuxbios/machine.h: Likewise.
47397         * include/grub/i386/pc/machine.h: Likewise.
47398         * include/grub/powerpc/ieee1275/machine.h: Likewise.
47399         * include/grub/sparc64/ieee1275/machine.h: Likewise.
47401         * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47402         (serial_hw_io_addr): New variable.
47403         (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47404         instead of `(unsigned short *) 0x400'.
47406 2007-11-10  Bean  <bean123ch@gmail.com>
47408         * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47410 2007-11-10  Vesa Jaaskelainen  <chaac@nic.fi>
47412         * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47413         (vga_mod_SOURCES): Added.
47414         (vga_mod_CFLAGS): Likewise.
47415         (vga_mod_LDFLAGS): Likewise.
47417         * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47418         grub_outb() calls.
47419         (set_map_mask): Likewise.
47420         (set_read_map): Likewise.
47421         (set_read_address): Likewise.
47422         (vga_font): Removed variable.
47423         (get_vga_glyph): Removed function.
47424         (invalidate_char): Likewise.
47425         (write_char): Changed to use grub_font_get_glyph() for font
47426         information.
47427         (grub_vga_putchar): Likewise.
47428         (grub_vga_getcharwidth): Likewise.
47430 2007-11-10  Vesa Jaaskelainen  <chaac@nic.fi>
47432         * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47433         flags.
47434         (pxeboot_img_LDFLAGS): Likewise.
47435         (diskboot_img_LDFLAGS): Likewise.
47436         (kernel_img_LDFLAGS): Likewise.
47438 2007-11-06  Robert Millan  <rmh@aybabtu.com>
47440         * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47441         in grub_outb() calls.
47442         (serial_hw_init): Likewise.
47444 2007-11-05  Robert Millan  <rmh@aybabtu.com>
47446         * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47447         spaces.  Skip non-regular files.
47449 2007-11-05  Robert Millan  <rmh@aybabtu.com>
47451         * kern/disk.c (grub_disk_firmware_fini)
47452         (grub_disk_firmware_is_tainted): New variables.
47454         * include/grub/disk.h (grub_disk_firmware_fini)
47455         (grub_disk_firmware_is_tainted): Likewise.
47457         * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47458         (grub_disk_biosdisk_fini): ... to here.
47459         (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47460         (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47461         is set.  Register grub_disk_biosdisk_fini() in
47462         `grub_disk_firmware_fini'.
47464         * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47465         (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47466         Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47467         to finish existing firmware disk interface.
47469         * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47470         (ata_mod_SOURCES): New variable.
47471         (ata_mod_CFLAGS): Likewise.
47472         (ata_mod_LDFLAGS): Likewise.
47474 2007-11-05  Robert Millan  <rmh@aybabtu.com>
47476         * disk/ata.c: Remove `<grub/machine/time.h>'.  Include `<grub/time.h>'.
47477         (grub_ata_wait): Reimplement using grub_millisleep().
47479         * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47480         * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47482 2007-11-03  Marco Gerards  <marco@gnu.org>
47484         * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47485         (CRTC_ADDR_PORT): New macro.
47486         (CRTC_DATA_PORT): Likewise.
47487         (CRTC_CURSOR): Likewise.
47488         (CRTC_CURSOR_ADDR_HIGH): Likewise.
47489         (CRTC_CURSOR_ADDR_LOW): Likewise.
47490         (update_cursor): New function.
47491         (grub_console_real_putchar): Call `update_cursor'.
47492         (grub_console_gotoxy): Likewise.
47493         (grub_console_cls): Set the default color when clearing the
47494         screen.
47495         (grub_console_setcursor): Implemented.
47497 2007-11-03  Marco Gerards  <marco@gnu.org>
47499         * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47500         become activate.
47501         (grub_ata_pio_write): Likewise.
47503         (grub_atapi_identify): Wait after issuing an ATA command.
47504         (grub_atapi_packet): Likewise.
47505         (grub_ata_identify): Likewise.
47506         (grub_ata_readwrite): Likewise.
47508 2007-11-03  Marco Gerards  <marco@gnu.org>
47510         * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47511         (grub_ata_pio_write): Likewise.
47512         (grub_ata_readwrite): Use `grub_error', instead of
47513         returning `grub_errno'.
47515 2007-11-03  Marco Gerards  <marco@gnu.org>
47517         * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47518         grub_ata_pio_write once for every single sector, instead of for
47519         multiple sectors.
47521 2007-10-31  Robert Millan  <rmh@aybabtu.com>
47523         * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47525         * conf/i386-linuxbios.rmk: New file.
47527         * kern/i386/pc/hardware.c: Likewise.
47528         * term/i386/pc/at_keyboard.c: Likewise.
47529         * term/i386/pc/vga_text.c: Likewise.
47531         * include/grub/i386/linuxbios/boot.h: Likewise.
47532         * include/grub/i386/linuxbios/console.h: Likewise.
47533         * include/grub/i386/linuxbios/init.h: Likewise.
47534         * include/grub/i386/linuxbios/kernel.h: Likewise.
47535         * include/grub/i386/linuxbios/loader.h: Likewise.
47536         * include/grub/i386/linuxbios/memory.h: Likewise.
47537         * include/grub/i386/linuxbios/serial.h: Likewise.
47538         * include/grub/i386/linuxbios/time.h: Likewise.
47540         * kern/i386/linuxbios/init.c: Likewise.
47541         * kern/i386/linuxbios/startup.S: Likewise.
47542         * kern/i386/linuxbios/table.c: Likewise.
47544 2007-10-31  Marco Gerards  <marco@gnu.org>
47546         * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47547         (ata_mod_SOURCES): New variable.
47548         (ata_mod_CFLAGS): Likewise.
47549         (ata_mod_LDFLAGS): Likewise.
47551         * disk/ata.c: New file.
47553         * include/grub/disk.h (grub_disk_dev_id): Add
47554         `GRUB_DISK_DEV_ATA_ID'.
47556 2007-10-31  Robert Millan  <rmh@aybabtu.com>
47558         * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47559         * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47561         * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47562         * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47564         * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47565         `<grub/types.h>'.
47567         * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47569 2007-10-27  Robert Millan  <rmh@aybabtu.com>
47571         * include/grub/types.h (ULONG_MAX): Define macro.
47573 2007-10-22  Robert Millan  <rmh@aybabtu.com>
47575         * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'.  Include
47576         `"../realmode.S"'.
47577         Remove `"kern/i386/loader.S"'.  Include `"../loader.S"'.
47579 2007-10-22  Robert Millan  <rmh@aybabtu.com>
47581         * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47582         (pkgdata_MODULES): Add `biosdisk.mod'.
47583         (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47584         variables.
47586         * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47587         (grub_biosdisk_init): Replace with ...
47588         (GRUB_MOD_INIT(biosdisk)): ... this.
47589         (grub_biosdisk_fini): Replace with ...
47590         (GRUB_MOD_FINI(biosdisk)): ... this.
47592         * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47593         (grub_machine_init): Remove call to grub_biosdisk_init().
47594         (grub_machine_fini): Remove call to grub_machine_fini().
47596         * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47598 2007-10-22  Robert Millan  <rmh@aybabtu.com>
47600         * include/grub/time.h: New file.
47601         * include/grub/i386/time.h: Likewise.
47602         * include/grub/powerpc/time.h: Likewise.
47603         * include/grub/sparc64/time.h: Likewise.
47605         * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47606         instances to ...
47607         (KERNEL_MACHINE_TIME_HEADER): ... this.
47608         * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47609         instances to ...
47610         (KERNEL_MACHINE_TIME_HEADER): ... this.
47611         * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47612         instances to ...
47613         (KERNEL_MACHINE_TIME_HEADER): ... this.
47615         * kern/i386/efi/init.c: Include `<grub/time.h>'.
47616         (grub_millisleep): New function.
47617         * kern/i386/pc/init.c: Include `<grub/time.h>'.
47618         (grub_millisleep): New function.
47619         * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47620         Remove `grub/machine/time.h' include.
47621         (grub_millisleep): New function.
47622         * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47623         Remove `grub/machine/time.h' include.
47624         (grub_millisleep): New function.
47626         * include/grub/misc.h (grub_div_roundup): New function.
47628         * kern/misc.c: Include `<grub/time.h>'.
47629         (grub_millisleep_generic): New function.
47631         * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47632         Add `time.h'.
47633         * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47634         Add `time.h'.
47635         * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47636         `machine/time.h'.  Add `time.h'.
47637         * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47639 2007-10-21  Robert Millan  <rmh@aybabtu.com>
47641         * include/grub/misc.h (grub_max): New function.
47643 2007-10-21  Robert Millan  <rmh@aybabtu.com>
47645         * util/misc.c (grub_util_info): Call fflush() before returning.
47647 2007-10-20  Robert Millan  <rmh@aybabtu.com>
47649         * genmk.rb (Image): Copy `extra_flags' from here ...
47650         (PModule): ... to here.  Use it in `#{obj}: #{src}' rule.
47652         * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47653         to `argc' and `args' arguments.
47655 2007-10-17  Robert Millan  <rmh@aybabtu.com>
47657         * kern/i386/loader.S: New file.
47659         * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47660         * kern/i386/loader.S (grub_linux_prot_size)... to here.
47661         * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47662         * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47663         * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47664         * kern/i386/loader.S (grub_linux_real_addr)... to here.
47665         * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47666         * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47667         * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47668         * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47669         * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47670         * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47671         * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47672         * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47674         * kern/i386/realmode.S: New file.
47676         * kern/i386/pc/startup.S (protstack): Moved from here ...
47677         * kern/i386/realmode.S (protstack)... to here.
47678         * kern/i386/pc/startup.S (gdt): Moved from here ...
47679         * kern/i386/realmode.S (gdt)... to here.
47680         * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47681         * kern/i386/realmode.S (prot_to_real)... to here.
47683         * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47684         `kern/i386/realmode.S'.
47686 2007-10-17  Robert Millan  <rmh@aybabtu.com>
47688         * include/grub/i386/loader.h: New file.
47690         * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47691         (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47692         (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47693         (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47694         (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47695         * include/grub/i386/loader.h (grub_linux_prot_size)
47696         (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47697         (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47698         (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47699         (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47701         * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47703 2007-10-15  Robert Millan  <rmh@aybabtu.com>
47705         * normal/misc.c (grub_normal_print_device_info): Do not probe for
47706         filesystem when dev->disk is unset.
47707         Do probe for filesystem even when dev->disk->has_partitions is set.
47708         In case a filesystem is found, always report it.
47709         In case it isn't, if dev->disk->has_partitions is set, report that
47710         a partition table was found instead of reporting that no filesystem
47711         could be identified.
47713 2007-10-12  Robert Millan  <rmh@aybabtu.com>
47715         * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47716         to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47718         * include/grub/types.h (grub_host_to_target16): New macro.
47719         (grub_host_to_target32): Likewise.
47720         (grub_host_to_target64): Likewise.
47721         (grub_target_to_host16): Likewise.
47722         (grub_target_to_host32): Likewise.
47723         (grub_target_to_host64): Likewise.
47725         * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47726         Renamed from to ...
47727         (GRUB_MOD_ALIGN): ...this.  Update all users.
47729         * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47730         grub_host_to_target32.
47731         Replace grub_be_to_cpu32 with grub_target_to_host32.
47732         (load_modules): Likewise.
47733         (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47734         Replace grub_be_to_cpu32 with grub_target_to_host32.
47735         Replace grub_cpu_to_be16 with grub_host_to_target16.
47736         Replace grub_cpu_to_be32 grub_host_to_target32.
47738 2007-10-12  Robert Millan  <rmh@aybabtu.com>
47740         * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47741         * util/elf/grub-mkimage.c: ... here.
47743         * DISTLIST: Add `util/elf/grub-mkimage.c'.  Remove
47744         `util/powerpc/ieee1275/grub-mkimage.c'.
47746 2007-10-07  Robert Millan  <rmh@aybabtu.com>
47748         * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47749         and make it easier to figure out.
47750         Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47751         (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47752         Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47753         leave us with less than HEAP_MIN_SIZE total heap.
47754         Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47756 2007-10-03  Robert Millan  <rmh@aybabtu.com>
47758         * include/grub/i386/io.h: New file.
47759         * commands/i386/pc/play.c (inb): Removed.
47760         (outb): Removed.
47761         Include grub/cpu/io.h.  Replace inb() with grub_inb() and outb()
47762         with grub_outb().
47763         * term/i386/pc/serial.c  (inb): Removed.
47764         (outb): Removed.
47765         Include grub/cpu/io.h.  Replace inb() with grub_inb() and outb()
47766         with grub_outb().
47767         * term/i386/pc/vga.c  (inb): Removed.
47768         (outb): Removed.
47769         Include grub/cpu/io.h.  Replace inb() with grub_inb() and outb()
47770         with grub_outb().
47772 2007-10-02  Robert Millan  <rmh@aybabtu.com>
47774         * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47775         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47776         Reported by Marcin Kurek.
47778 2007-09-07  Robert Millan  <rmh@aybabtu.com>
47780         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47781         SmartFirmware version updates (as released by Sven Luther), and avoid
47782         setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47783         GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47784         known broken.
47786 2007-09-03  Yoshinori K. Okuji  <okuji@enbug.org>
47788         From Hitoshi Ozeki:
47789         * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47790         when merging two regions.
47792 2007-09-03  Yoshinori K. Okuji  <okuji@enbug.org>
47794         * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47795         * normal/completion.c (grub_normal_do_completion): Likewise.
47796         Reported by Hitoshi Ozeki.
47798 2007-09-03  Yoshinori K. Okuji  <okuji@enbug.org>
47800         Do not use devices at boot in chainloading.
47802         * loader/i386/pc/chainloader.c (boot_drive): New variable.
47803         (boot_part_addr): Likewise.
47804         (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47805         with BOOT_DRIVE and BOOT_PART_ADDR.
47806         (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47807         Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47809 2007-08-29  Robert Millan  <rmh@aybabtu.com>
47811         Patch from Simon Peter <dn.tlp@gmx.net>:
47812         * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47813         * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47814         util/grub-probe.c_DEPENDENCIES.  Replace grub-setup_DEPENDENCIES with
47815         util/i386/pc/grub-setup.c_DEPENDENCIES.
47816         * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47817         util/grub-probe.c_DEPENDENCIES.
47818         * conf/powerpc-ieee1275.rmk: Likewise.
47820 2007-08-28  Robert Millan  <rmh@aybabtu.com>
47822         * util/i386/get_disk_name.c: New.  Implement grub_util_get_disk_name()
47823         to tell grub-mkdevicemap how to name devices.
47824         * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47825         feature).
47827         * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47828         util/i386/get_disk_name.c.
47829         * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47830         * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47831         util/ieee1275/get_disk_name.c.
47833         * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47835         * DISTLIST: Add util/i386/get_disk_name.c and
47836         util/ieee1275/get_disk_name.c.
47838         * util/grub-mkdevicemap.c: Replace device naming logic with
47839         grub_util_get_disk_name() calls.
47841 2007-08-20  Robert Millan  <rmh@aybabtu.com>
47843         * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47844         (so that it works for both plural and singular quantities).
47846 2007-08-05  Robert Millan  <rmh@aybabtu.com>
47848         * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47849         so that [xz] isn't taken into account when determining order.
47851 2007-08-02  Marco Gerards  <marco@gnu.org>
47853         * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47854         `include/multiboot2.h', `include/grub/elfload.h',
47855         `include/multiboot.h', `include/grub/multiboot.h',
47856         `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47857         `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47858         `kern/elf.c', `loader/multiboot_loader.c',
47859         `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47860         `loader/i386/pc/multiboot2.c',
47861         `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47862         `util/i386/pc/grub-mkrescue.in'.  Remove
47863         `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47864         `include/grub/i386/pc/util/biosdisk.h' and
47865         `include/grub/powerpc/ieee1275/multiboot.h'.
47867 2007-08-02  Bean  <bean123ch@gmail.com>
47869         * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47870         (ntfs_mod_SOURCES): New variable.
47871         (ntfs_mod_CFLAGS): Likewise.
47872         (ntfs_mod_LDFLAGS): Likewise.
47874         * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47875         (grub_probe_SOURCES): Likewise.
47876         (grub_emu_SOURCES): Likewise.
47878         * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47879         (grub_emu_SOURCES): Likewise.
47881         * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47882         (grub_emu_SOURCES): Likewise.
47884         * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47886         * fs/ntfs.c: New file.
47888 2007-08-02  Bean  <bean123ch@gmail.com>
47890         * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47892         * file.h (grub_file): Likewise.
47894         * fshelp.h (grub_fshelp_read_file): Likewise.
47896         * util/i386/pc/grub-setup.c (setup): Likewise.
47897         (save_first_sector): Likewise.
47898         (save_blocklists): Likewise.
47900         * fs/affs.c (grub_affs_read_file): Likewise.
47902         * fs/ext2.c (grub_ext2_read_file): Likewise.
47904         * fs/fat.c (grub_fat_read_data): Likewise.
47906         * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47908         * fs/hfs.c (grub_hfs_read_file): Likewise.
47910         * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47912         * fs/jfs.c (grub_jfs_read_file): Likewise.
47914         * fs/minix.c (grub_minix_read_file): Likewise.
47916         * fs/sfs.c (grub_sfs_read_file): Likewise.
47918         * fs/ufs.c (grub_ufs_read_file): Likewise.
47920         * fs/xfs.c (grub_xfs_read_file): Likewise.
47922         * command/blocklist.c (read_blocklist): Likewise.
47923         (print_blocklist): Likewise.
47925 2007-08-02  Marco Gerards  <marco@gnu.org>
47927         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47928         `util/hostfs.c'.
47930         * disk/host.c: New file.
47932         * util/hostfs.c: Likewise.
47934         * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47935         return `GRUB_ERR_BAD_FS'.
47936         * fs/sfs.c (grub_sfs_mount): Likewise.
47937         * fs/xfs.c (grub_xfs_mount): Likewise.
47939         * include/grub/disk.h (enum grub_disk_dev_id): Add
47940         `GRUB_DISK_DEVICE_HOST_ID'.
47942         * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47944 2007-07-24  Jerone Young  <jerone@gmail.com>
47946         * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47947         modules for compilation.
47948         * conf/powerpc-ieee1275.rmk: Likewise.
47950         * include/multiboot.h: Move multiboot definitions to one file. Rename
47951         many definitions to not get grub specific.
47952         * include/multiboot2.h: Create header with multiboot 2 definitions.
47953         * include/grub/multiboot.h: Header for grub specific function
47954         prototypes and definitions.
47955         * include/grub/multiboot2.h: Likewise.
47956         * include/grub/multiboot_loader.h: Likewise.
47957         * include/grub/i386/pc/multiboot.h: Removed.
47958         * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47960         * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47961         and 2 to allow for one multiboot and module commands.
47962         * loader/multiboot2.c: Add multiboot2 functionality.
47963         * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47964         and definition names.
47965         * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47966         2 functions.
47967         * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47968         ieee1275 specific multiboot2 code.
47970         * kern/i386/pc/startup.S: Change headers and definition names for
47971         multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47973 2007-07-22  Robert Millan  <rmh@aybabtu.com>
47975         * geninitheader.sh: Process file specified in first parameter rather
47976         than hardcoding grub_modules_init.lst.
47977         * geninit.sh: Likewise.  Also, construct header name dynamically rather
47978         than hardcoding grub_modules_init.h.
47980         * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47981         grub-emu to grub_emu_init.[ch].  Add rules to build analogous
47982         grub_probe_init.[ch] and grub_setup_init.[ch].
47984         * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47985         grub_modules_init.h with grub_emu_init.h.
47986         (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47987         grub_probe_init.[ch] files.
47988         * conf/i386-efi.rmk: Likewise.
47989         * conf/i386-pc.rmk: Likewise.
47990         (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47991         grub_setup_init.[ch] files.
47993         * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47994         * util/grub-probe.c: Include grub_probe_init.h.  Use grub_init_all()
47995         to initialize modules rather than a list of hardcoded functions.
47996         * util/i386/pc/grub-setup.c: Include grub_setup_init.h.  Use
47997         grub_init_all() to initialize modules rather than a list of hardcoded
47998         functions.
48000 2007-07-22  Robert Millan  <rmh@aybabtu.com>
48002         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
48003         GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
48005 2007-07-22  Robert Millan  <rmh@aybabtu.com>
48007         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
48008         GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
48009         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
48010         flag when running on SmartFirmware.
48011         * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
48012         "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
48013         was set.
48015         * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48016         Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
48017         rather than decreasing it.
48019         * util/i386/pc/grub-setup.c (setup): When embedding is required, but
48020         there's not enough space to do it, fail in the same way as when it
48021         can't be done because there are no partitions.
48023         * util/powerpc/ieee1275/grub-install.in: Improve error message shown
48024         when nvsetenv failed.
48026 2007-07-22  Yoshinori K. Okuji  <okuji@enbug.org>
48028         * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
48029         because this rule is automatically generated.
48030         (grub-mkrescue): Removed for the same reason as above.
48032 2007-07-22  Yoshinori K. Okuji  <okuji@enbug.org>
48034         Migrate to GNU General Public License Version 3.
48036         * COPYING: Replaced with the plain text version of GPLv3.
48038         * config.guess: Updated from gnulib.
48039         * config.sub: Likewise.
48041         * geninit.sh: Output a GPLv3 copyright notice.
48042         * geninitheader.sh: Likewise.
48043         * genmodsrc.sh: Likewise.
48044         * gensymlist.sh.in: Likewise.
48046         * boot/i386/pc/boot.S: Upgraded to GPLv3.
48047         * boot/i386/pc/diskboot.S: Likewise.
48048         * boot/i386/pc/pxeboot.S: Likewise.
48049         * commands/blocklist.c: Likewise.
48050         * commands/boot.c: Likewise.
48051         * commands/cat.c: Likewise.
48052         * commands/cmp.c: Likewise.
48053         * commands/configfile.c: Likewise.
48054         * commands/echo.c: Likewise.
48055         * commands/help.c: Likewise.
48056         * commands/ls.c: Likewise.
48057         * commands/search.c: Likewise.
48058         * commands/terminal.c: Likewise.
48059         * commands/test.c: Likewise.
48060         * commands/videotest.c: Likewise.
48061         * commands/i386/cpuid.c: Likewise.
48062         * commands/i386/pc/halt.c: Likewise.
48063         * commands/i386/pc/play.c: Likewise.
48064         * commands/i386/pc/reboot.c: Likewise.
48065         * commands/i386/pc/vbeinfo.c: Likewise.
48066         * commands/i386/pc/vbetest.c: Likewise.
48067         * commands/ieee1275/halt.c: Likewise.
48068         * commands/ieee1275/reboot.c: Likewise.
48069         * commands/ieee1275/suspend.c: Likewise.
48070         * disk/loopback.c: Likewise.
48071         * disk/lvm.c: Likewise.
48072         * disk/raid.c: Likewise.
48073         * disk/efi/efidisk.c: Likewise.
48074         * disk/i386/pc/biosdisk.c: Likewise.
48075         * disk/ieee1275/ofdisk.c: Likewise.
48076         * font/manager.c: Likewise.
48077         * fs/affs.c: Likewise.
48078         * fs/ext2.c: Likewise.
48079         * fs/fat.c: Likewise.
48080         * fs/fshelp.c: Likewise.
48081         * fs/hfs.c: Likewise.
48082         * fs/hfsplus.c: Likewise.
48083         * fs/iso9660.c: Likewise.
48084         * fs/jfs.c: Likewise.
48085         * fs/minix.c: Likewise.
48086         * fs/sfs.c: Likewise.
48087         * fs/ufs.c: Likewise.
48088         * fs/xfs.c: Likewise.
48089         * hello/hello.c: Likewise.
48090         * include/grub/acorn_filecore.h: Likewise.
48091         * include/grub/arg.h: Likewise.
48092         * include/grub/bitmap.h: Likewise.
48093         * include/grub/boot.h: Likewise.
48094         * include/grub/cache.h: Likewise.
48095         * include/grub/device.h: Likewise.
48096         * include/grub/disk.h: Likewise.
48097         * include/grub/dl.h: Likewise.
48098         * include/grub/elfload.h: Likewise.
48099         * include/grub/env.h: Likewise.
48100         * include/grub/err.h: Likewise.
48101         * include/grub/file.h: Likewise.
48102         * include/grub/font.h: Likewise.
48103         * include/grub/fs.h: Likewise.
48104         * include/grub/fshelp.h: Likewise.
48105         * include/grub/gzio.h: Likewise.
48106         * include/grub/hfs.h: Likewise.
48107         * include/grub/kernel.h: Likewise.
48108         * include/grub/loader.h: Likewise.
48109         * include/grub/lvm.h: Likewise.
48110         * include/grub/misc.h: Likewise.
48111         * include/grub/mm.h: Likewise.
48112         * include/grub/net.h: Likewise.
48113         * include/grub/normal.h: Likewise.
48114         * include/grub/parser.h: Likewise.
48115         * include/grub/partition.h: Likewise.
48116         * include/grub/pc_partition.h: Likewise.
48117         * include/grub/raid.h: Likewise.
48118         * include/grub/rescue.h: Likewise.
48119         * include/grub/script.h: Likewise.
48120         * include/grub/setjmp.h: Likewise.
48121         * include/grub/symbol.h: Likewise.
48122         * include/grub/term.h: Likewise.
48123         * include/grub/terminfo.h: Likewise.
48124         * include/grub/tparm.h: Likewise.
48125         * include/grub/types.h: Likewise.
48126         * include/grub/video.h: Likewise.
48127         * include/grub/efi/api.h: Likewise.
48128         * include/grub/efi/chainloader.h: Likewise.
48129         * include/grub/efi/console.h: Likewise.
48130         * include/grub/efi/console_control.h: Likewise.
48131         * include/grub/efi/disk.h: Likewise.
48132         * include/grub/efi/efi.h: Likewise.
48133         * include/grub/efi/pe32.h: Likewise.
48134         * include/grub/efi/time.h: Likewise.
48135         * include/grub/i386/linux.h: Likewise.
48136         * include/grub/i386/setjmp.h: Likewise.
48137         * include/grub/i386/types.h: Likewise.
48138         * include/grub/i386/efi/kernel.h: Likewise.
48139         * include/grub/i386/efi/loader.h: Likewise.
48140         * include/grub/i386/efi/time.h: Likewise.
48141         * include/grub/i386/pc/biosdisk.h: Likewise.
48142         * include/grub/i386/pc/boot.h: Likewise.
48143         * include/grub/i386/pc/chainloader.h: Likewise.
48144         * include/grub/i386/pc/console.h: Likewise.
48145         * include/grub/i386/pc/init.h: Likewise.
48146         * include/grub/i386/pc/kernel.h: Likewise.
48147         * include/grub/i386/pc/loader.h: Likewise.
48148         * include/grub/i386/pc/memory.h: Likewise.
48149         * include/grub/i386/pc/multiboot.h: Likewise.
48150         * include/grub/i386/pc/serial.h: Likewise.
48151         * include/grub/i386/pc/time.h: Likewise.
48152         * include/grub/i386/pc/vbe.h: Likewise.
48153         * include/grub/i386/pc/vbeblit.h: Likewise.
48154         * include/grub/i386/pc/vbefill.h: Likewise.
48155         * include/grub/i386/pc/vbeutil.h: Likewise.
48156         * include/grub/i386/pc/vga.h: Likewise.
48157         * include/grub/ieee1275/ieee1275.h: Likewise.
48158         * include/grub/ieee1275/ofdisk.h: Likewise.
48159         * include/grub/powerpc/libgcc.h: Likewise.
48160         * include/grub/powerpc/setjmp.h: Likewise.
48161         * include/grub/powerpc/types.h: Likewise.
48162         * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48163         * include/grub/powerpc/ieee1275/console.h: Likewise.
48164         * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48165         * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48166         * include/grub/powerpc/ieee1275/loader.h: Likewise.
48167         * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48168         * include/grub/powerpc/ieee1275/time.h: Likewise.
48169         * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48170         * include/grub/sparc64/libgcc.h: Likewise.
48171         * include/grub/sparc64/setjmp.h: Likewise.
48172         * include/grub/sparc64/types.h: Likewise.
48173         * include/grub/sparc64/ieee1275/console.h: Likewise.
48174         * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48175         * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48176         * include/grub/sparc64/ieee1275/time.h: Likewise.
48177         * include/grub/util/biosdisk.h: Likewise.
48178         * include/grub/util/getroot.h: Likewise.
48179         * include/grub/util/lvm.h: Likewise.
48180         * include/grub/util/misc.h: Likewise.
48181         * include/grub/util/raid.h: Likewise.
48182         * include/grub/util/resolve.h: Likewise.
48183         * io/gzio.c: Likewise.
48184         * kern/device.c: Likewise.
48185         * kern/disk.c: Likewise.
48186         * kern/dl.c: Likewise.
48187         * kern/elf.c: Likewise.
48188         * kern/env.c: Likewise.
48189         * kern/err.c: Likewise.
48190         * kern/file.c: Likewise.
48191         * kern/fs.c: Likewise.
48192         * kern/loader.c: Likewise.
48193         * kern/main.c: Likewise.
48194         * kern/misc.c: Likewise.
48195         * kern/mm.c: Likewise.
48196         * kern/parser.c: Likewise.
48197         * kern/partition.c: Likewise.
48198         * kern/rescue.c: Likewise.
48199         * kern/term.c: Likewise.
48200         * kern/efi/efi.c: Likewise.
48201         * kern/efi/init.c: Likewise.
48202         * kern/efi/mm.c: Likewise.
48203         * kern/i386/dl.c: Likewise.
48204         * kern/i386/efi/init.c: Likewise.
48205         * kern/i386/efi/startup.S: Likewise.
48206         * kern/i386/pc/init.c: Likewise.
48207         * kern/i386/pc/lzo1x.S: Likewise.
48208         * kern/i386/pc/startup.S: Likewise.
48209         * kern/ieee1275/ieee1275.c: Likewise.
48210         * kern/powerpc/cache.S: Likewise.
48211         * kern/powerpc/dl.c: Likewise.
48212         * kern/powerpc/ieee1275/cmain.c: Likewise.
48213         * kern/powerpc/ieee1275/crt0.S: Likewise.
48214         * kern/powerpc/ieee1275/init.c: Likewise.
48215         * kern/powerpc/ieee1275/openfw.c: Likewise.
48216         * kern/sparc64/cache.S: Likewise.
48217         * kern/sparc64/dl.c: Likewise.
48218         * kern/sparc64/ieee1275/init.c: Likewise.
48219         * kern/sparc64/ieee1275/openfw.c: Likewise.
48220         * loader/efi/chainloader.c: Likewise.
48221         * loader/efi/chainloader_normal.c: Likewise.
48222         * loader/i386/efi/linux.c: Likewise.
48223         * loader/i386/efi/linux_normal.c: Likewise.
48224         * loader/i386/pc/chainloader.c: Likewise.
48225         * loader/i386/pc/chainloader_normal.c: Likewise.
48226         * loader/i386/pc/linux.c: Likewise.
48227         * loader/i386/pc/linux_normal.c: Likewise.
48228         * loader/i386/pc/multiboot.c: Likewise.
48229         * loader/i386/pc/multiboot_normal.c: Likewise.
48230         * loader/powerpc/ieee1275/linux.c: Likewise.
48231         * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48232         * normal/arg.c: Likewise.
48233         * normal/cmdline.c: Likewise.
48234         * normal/command.c: Likewise.
48235         * normal/completion.c: Likewise.
48236         * normal/execute.c: Likewise.
48237         * normal/function.c: Likewise.
48238         * normal/lexer.c: Likewise.
48239         * normal/main.c: Likewise.
48240         * normal/menu.c: Likewise.
48241         * normal/menu_entry.c: Likewise.
48242         * normal/misc.c: Likewise.
48243         * normal/parser.y: Likewise.
48244         * normal/script.c: Likewise.
48245         * normal/i386/setjmp.S: Likewise.
48246         * normal/powerpc/setjmp.S: Likewise.
48247         * normal/sparc64/setjmp.S: Likewise.
48248         * partmap/acorn.c: Likewise.
48249         * partmap/amiga.c: Likewise.
48250         * partmap/apple.c: Likewise.
48251         * partmap/gpt.c: Likewise.
48252         * partmap/pc.c: Likewise.
48253         * partmap/sun.c: Likewise.
48254         * term/gfxterm.c: Likewise.
48255         * term/terminfo.c: Likewise.
48256         * term/efi/console.c: Likewise.
48257         * term/i386/pc/console.c: Likewise.
48258         * term/i386/pc/serial.c: Likewise.
48259         * term/i386/pc/vesafb.c: Likewise.
48260         * term/i386/pc/vga.c: Likewise.
48261         * term/ieee1275/ofconsole.c: Likewise.
48262         * util/biosdisk.c: Likewise.
48263         * util/console.c: Likewise.
48264         * util/genmoddep.c: Likewise.
48265         * util/getroot.c: Likewise.
48266         * util/grub-emu.c: Likewise.
48267         * util/grub-mkdevicemap.c: Likewise.
48268         * util/grub-probe.c: Likewise.
48269         * util/lvm.c: Likewise.
48270         * util/misc.c: Likewise.
48271         * util/raid.c: Likewise.
48272         * util/resolve.c: Likewise.
48273         * util/update-grub.in: Likewise.
48274         * util/update-grub_lib.in: Likewise.
48275         * util/grub.d/00_header.in: Likewise.
48276         * util/grub.d/10_hurd.in: Likewise.
48277         * util/grub.d/10_linux.in: Likewise.
48278         * util/i386/efi/grub-install.in: Likewise.
48279         * util/i386/efi/grub-mkimage.c: Likewise.
48280         * util/i386/pc/grub-install.in: Likewise.
48281         * util/i386/pc/grub-mkimage.c: Likewise.
48282         * util/i386/pc/grub-mkrescue.in: Likewise.
48283         * util/i386/pc/grub-setup.c: Likewise.
48284         * util/i386/pc/misc.c: Likewise.
48285         * util/powerpc/ieee1275/grub-install.in: Likewise.
48286         * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48287         * util/powerpc/ieee1275/misc.c: Likewise.
48288         * video/bitmap.c: Likewise.
48289         * video/video.c: Likewise.
48290         * video/i386/pc/vbe.c: Likewise.
48291         * video/i386/pc/vbeblit.c: Likewise.
48292         * video/i386/pc/vbefill.c: Likewise.
48293         * video/i386/pc/vbeutil.c: Likewise.
48294         * video/readers/tga.c: Likewise.
48296 2007-07-02  Robert Millan  <rmh@aybabtu.com>
48298         * conf/i386-efi.rmk: Replace obsolete reference to
48299         util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48300         with util/getroot.c.
48301         * conf/powerpc-ieee1275.rmk: Likewise.
48302         * conf/sparc64-ieee1275.rmk: Likewise.
48304         * util/grub-emu.c (main): Fix unchecked pointer handling.
48306 2007-07-02  Robert Millan  <rmh@aybabtu.com>
48308         * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48309         invocation to fail, in order to support partition-less media.
48311         * util/i386/pc/grub-install.in: Likewise.
48313         * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48314         which fs or partmap modules are needed (akin to its sister scripts).
48316         Also use grub-probe to get rid of unportable /proc/mounts check.
48318         Print the same informational message that the other scripts do, before
48319         exiting.
48321 2007-06-23  Robert Millan  <rmh@aybabtu.com>
48323         * util/update-grub_lib.in (font_path): New function.  Determine whether
48324         a font file can be found and, if so, echo the GRUB path to it.
48326         * util/update-grub.in: Handle multiple terminals depending on user
48327         input, platform availability and font file presence.  Propagate
48328         variables of our findings to /etc/grub.d/ children.
48330         * util/grub.d/00_header.in: Handle multiple terminals, based on
48331         environment setup by update-grub.
48333 2007-06-23  Robert Millan  <rmh@aybabtu.com>
48335         * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48337 2007-06-21  Robert Millan  <rmh@aybabtu.com>
48339         * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48340         indicate end of data section in kernel image.
48341         * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48342         GRUB_KERNEL_MACHINE_DATA_END.
48344         * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48345         space for it.
48346         * kern/i386/efi/startup.S: Likewise.
48348         * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48349         during image generation.  Implement --prefix option to override this
48350         patch.
48351         * util/i386/efi/grub-mkimage.c: Likewise.
48353         * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48354         code to make path relative to its root into a separate function.
48356         * util/i386/pc/grub-install.in: Use newly provided
48357         make_system_path_relative_to_its_root() to convert ${grubdir}, then
48358         pass the result to grub-install --prefix.
48360 2007-06-13  Robert Millan  <rmh@aybabtu.com>
48362         * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48363         DEFAULT_DEVICE_MAP.
48364         * util/grub-emu.c: Use above definitions from misc.h instead of
48365         defining them.
48366         * util/grub-mkdevicemap.c: Likewise.
48367         * util/i386/pc/grub-setup.c: Likewise.
48368         * util/grub-probe.c: Likewise.
48369         (probe): Abort with grub_util_error() when either
48370         grub_guess_root_device or grub_util_get_grub_dev fails.
48372 2007-06-12  Robert Millan  <rmh@aybabtu.com>
48374         * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48375         "pager" assignment.
48376         * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48377         "pcdata".
48378         * util/grub-probe.c (probe): Likewise for "drive_name".
48380 2007-06-11  Robert Millan  <rmh@aybabtu.com>
48382         * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48383         not just the cdrom one.
48385 2007-06-11  Robert Millan  <rmh@aybabtu.com>
48387         * util/i386/pc/grub-mkrescue.in: Add "set -e".
48388         Add --pkglibdir=DIR option to override pkglibdir.
48389         Mention --image-type=TYPE in help output.
48390         Fix --grub-mkimage (it was a no-op).
48391         Abort gracefully when no parameter is given.
48393 2007-06-11  Robert Millan  <rmh@aybabtu.com>
48395         * util/i386/pc/grub-mkrescue.in: New file.
48396         * conf/i386-pc.rmk: Add its build declarations.  Put it in bin_SCRIPTS.
48397         * Makefile.in: Handle bin_SCRIPTS.
48399 2007-06-10  Vesa Jaaskelainen  <chaac@nic.fi>
48401         * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48402         list of video modes.
48404 2007-06-06  Robert Millan  <rmh@aybabtu.com>
48406         * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48407         file doesn't exist, or if it is in a filesystem grub can't read.
48409         * util/update-grub.in: Set fallback for GRUB_FS check to "unknown".  Do
48410         not abort if GRUB_DRIVE could not be defined.  Rearrange generated
48411         header comment to fit in 80 columns when the variables are resolved.
48413         * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48414         could be identified by update-grub.  Remove redundant check for
48415         unifont.pff existence (since convert_system_path_to_grub_path now
48416         handles that).
48418 2007-06-04  Robert Millan  <rmh@aybabtu.com>
48420         * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48422         * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48424         * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48426 2007-06-04  Robert Millan  <rmh@aybabtu.com>
48428         * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48430         * include/grub/partition.h: Declare grub_apple_partition_map_init and
48431         grub_apple_partition_map_fini.
48433         * util/biosdisk.c
48434         (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48435         to access >2 TiB disks).
48437         Print disk->total_sectors with %llu instead of %lu, since this
48438         variable is always 64-bit (prevents wrong disk size from being displayed
48439         on either >2 TiB disk or big-endian CPU).
48441         (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48442         into a generic case that supports all (sane) partition maps.
48444         Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48445         breaks big-endian.
48447         * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48448         and grub_apple_partition_map_fini() after that.
48450 2007-06-01  Robert Millan  <rmh@aybabtu.com>
48452         * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48454         * util/grub.d/00_header.in: Only enable gfxterm when
48455         convert_system_path_to_grub_path() succeeds.
48457 2007-05-20  Robert Millan  <rmh@aybabtu.com>
48459         * util/update-grub_lib.in: New file.
48460         * DISTLIST: Add update-grub_lib.in.
48461         * conf/common.rmk: Generate update-grub_lib and install it in
48462         $(lib_DATA).
48463         * Makefile.in: Add install routine for $(lib_DATA).
48465         * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48466         function provided by update-grub_lib to support arbitrary paths of
48467         unifont.pff.
48468         * util/update-grub.in: Use convert_system_path_to_grub_path() to
48469         initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48471 2007-05-19  Robert Millan  <rmh@aybabtu.com>
48473         * commands/i386/cpuid.c: New module.
48474         * DISTLIST: Add it.
48475         * conf/i386-efi.rmk: Enable cpuid.mod.
48476         * conf/i386-pc.rmk: Likewise.
48478 2007-05-18  Jeroen Dekkers  <jeroen@dekkers.cx>
48480         * kern/disk.c (grub_disk_read): Check return value of
48481         grub_realloc().
48483 2007-05-18  Jeroen Dekkers  <jeroen@dekkers.cx>
48485         * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48486         arrays.
48487         * disk/raid.c (grub_raid_open): Likewise.
48489 2007-05-17  Jeroen Dekkers  <jeroen@dekkers.cx>
48491         * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48492         stack instead of on the heap.
48494         * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48495         before doing a read on it.
48497         * configure.ac: Only use -fno-stack-protector for the target
48498         environment.
48500 2007-05-17  Jeroen Dekkers  <jeroen@dekkers.cx>
48502         * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48503         __attribute_ ((unused)) to mode_type argument.
48505         * util/getroot.c (grub_guess_root_device): Fix #endif.
48507         * kern/misc.c (memcmp): Fix prototype.
48509         * include/grub/partition.h [GRUB_UTIL]
48510         (grub_gpt_partition_map_init): Add prototype.
48511         (grub_gpt_partition_map_fini): Likewise.
48513         * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48514         at the right place.
48516         * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48517         (grub_fat_read_data): Likewise.
48518         (grub_fat_find_dir): Likewise.
48520         * font/manager.c (find_glyph): Make table a const.
48521         (grub_font_get_glyph): Remove bitmap from if statement.
48523 2007-05-16  Jeroen Dekkers  <jeroen@dekkers.cx>
48525         * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48526         code, first search for device in /dev/mapper, then in /dev.
48527         (grub_util_get_grub_dev): New function.
48528         * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48529         prototype.
48530         * util/grub-probe.c (probe): Remove check for RAID, call
48531         grub_util_get_grub_dev() instead of
48532         grub_util_biosdisk_get_grub_dev().
48533         * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48534         grub_util_biosdisk_get_grub_dev().
48535         * util/i386/pc/grub-setup.c (main): Likewise.
48537 2007-05-16  Robert Millan  <rmh@aybabtu.com>
48539         * DISTLIST: Update for the latest changes.
48540         * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48541         util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48542         * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48543         grub/util/biosdisk.h.
48544         * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48545         grub/util/biosdisk.h.
48547 2007-05-16  Robert Millan  <rmh@aybabtu.com>
48549         * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48551 2007-05-16  Robert Millan  <rmh@aybabtu.com>
48553         * util/i386/efi/grub-install.in: New.
48554         * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48555         newly added grub-install.
48556         * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48557         include.
48558         * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48559         grub/util/biosdisk.h.
48560         * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48561         grub/util/biosdisk.h.
48563 2007-05-16  Robert Millan  <rmh@aybabtu.com>
48565         * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48566         * include/grub/util/biosdisk.h: ... here.
48567         * util/i386/pc/biosdisk.c: Moved to ...
48568         * util/biosdisk.c: ... here.
48569         * util/i386/pc/getroot.c: Moved to ...
48570         * util/getroot.c: ... here.
48571         * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48572         * util/grub-mkdevicemap.c: ... here.
48573         * util/i386/pc/grub-probe.c: Moved to ...
48574         * util/grub-probe.c: ... here.
48576 2007-05-15  Robert Millan  <rmh@aybabtu.com>
48578         * util/update-grub.in: Remove duplicated line in grub.cfg header
48579         message.
48581 2007-05-13  Robert Millan  <rmh@aybabtu.com>
48583         * util/update-grub.in: Fix a few assumptions about the devices holding
48584         /, /boot and /boot/grub being the same.
48585         * util/grub.d/00_header.in: Likewise.
48586         * util/grub.d/10_hurd.in: Likewise.
48587         * util/grub.d/10_linux.in: Likewise.
48589         * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48590         patterns.  Use that to define the `.old' suffix as older than `'.
48592         * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48594         * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48595         the grub.cfg header message.
48597 2007-05-11  Robert Millan  <rmh@aybabtu.com>
48599         * util/update-grub.in: Create device.map if it doesn't already exist,
48600         before attempting to run grub-probe.
48601         Check for grub-probe and grub-mkdevicemap with the same code
48602         grub-install is using.
48603         Remove test mode.
48605 2007-05-09  Jeroen Dekkers  <jeroen@dekkers.cx>
48607         * Makefile.in: Add the datarootdir autoconf variable.
48609 2007-05-09  Robert Millan  <rmh@aybabtu.com>
48611         * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48612         fail gracefully if dev->disk->partition == NULL.
48614 2007-05-07  Robert Millan  <rmh@aybabtu.com>
48616         * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48617         determine partition map module.
48618         * util/i386/pc/grub-install.in: Use this feature to decide which
48619         partition module to load, instead of hardcoding pc and gpt.
48621 2007-05-07  Robert Millan  <rmh@aybabtu.com>
48623         * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48624         source directory differs from build directory.
48626 2007-05-05  Robert Millan  <rmh@aybabtu.com>
48628         * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48629         initialisation.
48631 2007-05-05  Robert Millan  <rmh@aybabtu.com>
48633         * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48635 2007-05-05  Robert Millan  <rmh@aybabtu.com>
48637         * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48638         command-line arguments via ${GRUB_CMDLINE_LINUX}.
48640 2007-05-05  Robert Millan  <rmh@aybabtu.com>
48642         * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48643         (grub_probe_SOURCES): Likewise.
48644         * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48645         GPT and initialize dos_part and bsd_part accordingly.
48646         * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48647         install_bsd_part.
48648         (main): Activate gpt module for use during partition identification,
48649         and deactivate it afterwards.
48650         * util/i386/pc/grub-install.in: Add gpt module to core.img.
48651         * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48652         partition identification, and deactivate it afterwards.
48654 2007-05-05  Robert Millan  <rmh@aybabtu.com>
48656         * term/i386/pc/console.c (grub_console_fini): Call
48657         grub_term_set_current() before grub_term_unregister().
48659 2007-05-04  Robert Millan  <rmh@aybabtu.com>
48661         * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48662         util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48663         * Makefile.in: Build update-grub_SCRIPTS.  Install update-grub_SCRIPTS
48664         and update-grub_DATA.
48665         * conf/common.rmk: Build and install update-grub components.
48666         * conf/common.mk: Regenerate.
48667         * util/update-grub.in: New.  Core of update-grub.
48668         * util/grub.d/00_header.in: New.  Generates grub.cfg header.
48669         * util/grub.d/10_hurd.in: New.  Generates boot entries for the Hurd.
48670         * util/grub.d/10_linux.in: New.  Generates boot entries for Linux.
48671         * util/grub.d/README: New.  Document grub.d directory layout.
48673 2007-05-01  Robert Millan  <rmh@aybabtu.com>
48675         * util/grub-emu.c: Move initialization functions
48676         grub_util_biosdisk_init() and grub_init_all() before
48677         grub_util_biosdisk_get_grub_dev(), which relies on them.
48679 2007-04-19  Robert Millan  <rmh@aybabtu.com>
48681         * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48682         it is used later.
48684 2007-04-18  Jerone Young  <jerone@gmail.com>
48686         * kernel/elf.c: Add missing parenthesis for conditional statement
48687         stanza.
48689 2007-04-10  Jerone Young  <jerone@gmail.com>
48691         * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48692         continue on and look for device node with real device name.
48694 2007-04-10  Jerone Young  <jerone@gmail.com>
48696         * configure.ac: Add argument for autoconf to use transformation
48697         ability.
48698         * Makefile.in: Add autoconf package transformation code.
48699         * util/i386/pc/grub-install.in: Likewise.
48700         * util/powerpc/ieee1275/grub-install.in: Likewise.
48702 2007-03-19  Yoshinori K. Okuji  <okuji@enbug.org>
48704         * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48705         (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48706         (EXT2_REVISION): Likewise.
48707         (EXT2_INODE_SIZE): Likewise.
48708         (struct grub_ext2_block_group): Added a missing member
48709         "used_dirs".
48710         (grub_ext2_read_inode): Divide by the inode size in a superblock
48711         instead of 128 to obtain INODES_PER_BLOCK.
48712         Use the macro EXT2_INODE_SIZE instead of directly using
48713         SBLOCK->INODE_SIZE.
48715 2007-03-18  Yoshinori K. Okuji  <okuji@enbug.org>
48717         * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48718         superblock instead of the structure size to compute an
48719         offset. This fixes the problem that GRUB could not read a
48720         filesystem when inode size is different from 128-byte.
48722 2007-03-05  Marco Gerards  <marco@gnu.org>
48724         * normal/main.c (read_config_file): When "menu" is not set, create
48725         an initial context.
48727 2007-02-21  Hollis Blanchard  <hollis@penguinppc.org>
48729         * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48730         (HEAP_LIMIT): New macro.
48731         (grub_claim_heap): Claim memory up to `heaplimit'.
48733 2007-02-21  Hollis Blanchard  <hollis@penguinppc.org>
48735         * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48736         * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48737         (_start): Likewise.
48738         (grub_arch_modules_addr): Return address after `_end'.
48739         * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48740         (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48741         (add_segments): Calculate `_end' from phdr size and location.
48742         (ALIGN_UP): Moved to ...
48743         * include/grub/misc.h: here.
48744         * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48745         New macro.
48746         (GRUB_IEEE1275_MODULE_BASE): Removed.
48748 2007-02-20  Hollis Blanchard  <hollis@penguinppc.org>
48750         * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48751         loop boundary.
48753 2007-02-20  Hollis Blanchard  <hollis@penguinppc.org>
48755         * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48756         All users updated.
48757         (grub_elf64_load_hook_t): Likewise.
48758         * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48759         debug output.
48761 2007-02-20  Hollis Blanchard  <hollis@penguinppc.org>
48763         * kern/mm.c: Update copyright.
48764         (grub_mm_debug): Correct syntax error.
48765         (grub_mm_dump_free): New function.
48766         (grub_debug_free): Call `grub_free'.
48767         * include/grub/mm.h: Update copyright.
48768         (grub_mm_dump_free): Add declaration.
48770 2007-02-12  Hollis Blanchard  <hollis@penguinppc.org>
48772         * include/grub/ieee1275/ieee1275.h: Update copyright.
48773         * kern/powerpc/ieee1275/init.c: Likewise.
48774         * kern/powerpc/ieee1275/openfw.c: Likewise.
48776         * loader/powerpc/ieee1275/linux.c: Likewise.
48777         * include/grub/elfload.h: Likewise.
48778         * kern/elf.c: Likewise.
48779         (grub_elf32_load): Pass `base' and `size' parameters.  Update all
48780         callers.
48781         (grub_elf64_load): Likewise.
48782         (grub_elf32_load_segment): Move to a nested function.
48783         (grub_elf64_load_segment): Likewise.
48785 2007-02-12  Hollis Blanchard  <hollis@penguinppc.org>
48787         * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48788         prototype.
48789         * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48790         (grub_heap_len): Likewise.
48791         (HEAP_SIZE): New macro.
48792         (grub_claim_heap): New function.
48793         (grub_machine_init): Don't claim heap directly.  Call
48794         `grub_claim_heap'.
48795         * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48796         (grub_available_iterate): New function.
48798 2007-02-03  Thomas Schwinge  <tschwinge@gnu.org>
48800         * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48801         * configure.ac: Use it for testing the HOST and TARGET compilers.
48803 2006-12-13  Thomas Schwinge  <tschwinge@gnu.org>
48805         * Makefile.in (enable_grub_emu): New variable.
48806         * configure.ac (--enable-grub-emu): New option.
48807         Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48808         * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48809         * conf/i386-pc.rmk: Likewise.
48810         * conf/powerpc-ieee1275.rmk: Likewise.
48811         * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48813 2006-12-12  Marco Gerards  <marco@gnu.org>
48815         * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48817         * kern/env.c (grub_env_unset): Don't free the member `value' when
48818         the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48819         pointer.
48821         * normal/main.c (current_menu): Removed.
48822         (free_menu): Unset the `menu' environment variable.
48823         (grub_normal_menu_addentry): Make use of the environment variable
48824         `menu', instead of using the global `current_menu'.  Allocate
48825         memory for the sourcecode of this entry.
48826         (read_config_file): New argument `nested', changed all callers.
48827         Only in the case of a new context, initialize a new menu.  Set the
48828         `menu' environment variable.
48829         (grub_normal_execute): Don't set and unset the environment
48830         variable `menu' here anymore.  Only free the menu when leaving the
48831         context.
48833         * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48834         leak.
48836 2006-12-11  Marco Gerards  <marco@gnu.org>
48838         * normal/menu_entry.c (run): Fix off by one bug so the last line
48839         is executed.  Move the loader check to outside the loop.
48841 2006-12-08  Hollis Blanchard  <hollis@penguinppc.org>
48843         * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48845 2006-11-25  Yoshinori K. Okuji  <okuji@enbug.org>
48847         * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48848         the number of sectors.  Reported by Andrey Shuvikov
48849         <mr_hyro@yahoo.com>.
48851 2006-11-11  Jeroen Dekkers  <jeroen@dekkers.cx>
48853         * kern/disk.c (grub_disk_read): When there is a read error, always
48854         try to read only the necessary data.
48856         * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48857         disk/raid.c.
48858         * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48859         prototype.
48860         [GRUB_UTIL] (grub_raid_fini): Likewise.
48861         [GRUB_UTIL] (grub_lvm_init): Likewise.
48862         [GRUB_UTIL] (grub_lvm_fini): Likewise.
48863         * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48864         RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48865         (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48866         and grub_raid_fini().
48868 2006-11-09  Jeroen Dekkers  <jeroen@dekkers.cx>
48870         * include/grub/types.h (__unused): Rename to UNUSED.
48871         * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48872         (grub_elf64_size): Likewise.
48874 2006-11-03  Hollis Blanchard  <hollis@penguinppc.org>
48876         * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48877         grub_error_push and grub_error_pop in the error-handling path.
48878         (grub_elf32_load_segment): Only call grub_file_read with non-zero
48879         length.
48881 2006-11-03  Hollis Blanchard  <hollis@penguinppc.org>
48883         * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48884         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48885         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48886         (kernel_elf_SOURCES): Likewise.
48887         * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48888         * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48889         * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48890         * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48891         * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48892         (elf_mod_SOURCES): New variable.
48893         (elf_mod_CFLAGS): Likewise.
48894         (elf_mod_LDFLAGS): Likewise.
48895         * include/grub/types.h (__unused): New macro.
48896         * include/grub/elfload.h: New file.
48897         * kern/elf.c: Likewise.
48898         * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48899         (ELF32_LOADMASK): New macro.
48900         (ELF64_LOADMASK): Likewise.
48901         (vmlinux): Removed.
48902         (grub_linux_load32): New function.
48903         (grub_linux_load64): Likewise.
48904         (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48905         Use grub_elf_t instead of grub_file_t.
48907 2006-11-02  Hollis Blanchard  <hollis@penguinppc.org>
48909         * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48910         `catch_result' to struct set_color_args.
48912 2006-10-28  Yoshinori K. Okuji  <okuji@enbug.org>
48914         * normal/menu.c: Include grub/script.h.
48915         * normal/menu_entry.c: Likewise.
48916         * include/grub/normal.h: Do not include grub/script.h.
48918 2006-10-27  Hollis Blanchard  <hollis@penguinppc.org>
48920         * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48922 2006-10-27  Hollis Blanchard  <hollis@penguinppc.org>
48924         * kern/disk.c (grub_disk_open): Print debug messages when opening a
48925         disk.
48926         (grub_disk_close): Print debug messages when closing a disk.
48927         (grub_disk_read): Print debug messages when disk read fails.
48928         * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48929         filesystem type.
48930         * kern/partition.c: Include misc.h.
48931         (grub_partition_iterate): Print debug messages when detecting
48932         partition type.
48934 2006-10-27  Hollis Blanchard  <hollis@penguinppc.org>
48936         * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48937         is negative.
48938         * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48940 2006-10-26  Hollis Blanchard  <hollis@penguinppc.org>
48942         * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48943         Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48945 2006-10-25  Jeroen Dekkers  <jeroen@dekkers.cx>
48947         * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48948         instead of sizeof(lv). Patch by Michael Guntsche.
48950 2006-10-18  Jeroen Dekkers  <jeroen@dekkers.cx>
48952         * disk/lvm.c: Rename VGS to VG_LIST.
48953         (grub_lvm_iterate): Change VGS->LV to VG-LV.
48954         (grub_lvm_open): Likewise.
48955         Thanks to Michael Guntsche for finding this bug.
48957 2006-10-15  Yoshinori K. Okuji  <okuji@enbug.org>
48959         * configure.ac (AC_INIT): Bumped to 1.95.
48961 2006-10-14  Robert Millan  <rmh@aybabtu.com>
48963         * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48964         with "/dev/.static/dev/md".
48966 2006-10-14  Yoshinori K. Okuji  <okuji@enbug.org>
48968         * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48969         DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48970         DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48971         DRIVE_NAME are always freed.
48973         * util/i386/pc/biosdisk.c (make_device_name): Add one into
48974         DOS_PART, as a DOS partition is counted from one instead of zero
48975         now. Reported by Robert Millan.
48977 2006-10-14  Robert Millan  <rmh@aybabtu.com>
48979         * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48980         grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48981         * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48982         string returned by grub_guess_root_device.
48983         * util/i386/pc/grub-setup.c: Likewise.
48984         * util/i386/pc/grub-probefs.c: Likewise.
48986         * util/i386/pc/grub-probefs.c: Rename to ...
48987         * util/i386/pc/grub-probe.c: ... this.
48988         * DISTLIST: Remove grub-probefs, add grub-probe.
48989         * conf/i386-efi.rmk: Likewise.
48990         * conf/i386-pc.rmk: Likewise.
48991         * util/i386/pc/grub-install.in: Likewise.
48993         * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48994         choose which information we want to print.
48996 2006-10-14  Yoshinori K. Okuji  <okuji@enbug.org>
48998         * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48999         include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
49000         include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
49001         include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
49002         video/readers/tga.c and video/i386/pc/vbeutil.c.
49004 2006-10-14  Jeroen Dekkers  <jeroen@dekkers.cx>
49006         Added support for RAID and LVM.
49008         * disk/lvm.c: New file.
49009         * disk/raid.c: Likewise.
49010         * include/grub/lvm.h: Likewise.
49011         * include/grub/raid.h: Likewise.
49012         * include/grub/util/lvm.h: Likewise.
49013         * include/grub/util/raid.h: Likewise.
49014         * util/lvm.c: Likewise.
49015         * util/raid.c: Likewise.
49017         * include/grub/disk.h (grub_disk_dev_id): Add
49018         GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
49019         (grub_disk_get_size): New prototype.
49020         * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
49021         returns a partition.
49022         (grub_disk_get_size): New function.
49024         * kern/i386/pc/init.c (make_install_device): Copy the prefix
49025         verbatim if grub_install_dos_part is -2.
49027         * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
49028         and LVM devices.
49030         * util/i386/pc/grub-setup.c (setup): New argument
49031         MUST_EMBED. Force embedding of GRUB when the argument is
49032         true. Close FILE before returning.
49033         (main): Add support for RAID and LVM.
49035         * conf/common.rmk: Add RAID and LVM modules.
49036         * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
49037         util/lvm.c.
49038         (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
49040         * kern/misc.c (grub_strstr): New function.
49041         * include/grub/misc.h (grub_strstr): New prototype.
49043 2006-10-10  Tristan Gingold  <tristan.gingold@bull.net>
49045         * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
49047 2006-10-05  Tristan Gingold  <tristan.gingold@bull.net>
49049         * kern/misc.c (grub_strtoull): Guess the base only if not
49050         specified.
49052 2006-10-01  Hollis Blanchard  <hollis@penguinppc.org>
49054         * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
49055         PowerMac support.
49057 2006-10-01  Hollis Blanchard  <hollis@penguinppc.org>
49059         * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
49061         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
49062         Remove `flags' argument.  All callers changed.
49063         * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
49064         (IEEE1275_IHANDLE_INVALID): New variable.
49065         (IEEE1275_CELL_INVALID): New variable.
49066         (grub_ieee1275_finddevice, grub_ieee1275_get_property,
49067         grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
49068         grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
49069         grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
49070         grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
49071         codes from Open Firmware.  All callers updated.
49072         (grub_ieee1275_next_property): Directly return Open Firmware return
49073         code.
49074         * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
49075         Standardize error checking from `grub_ieee1275_get_property'.
49076         * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
49077         `devalias' to `aliases'.  Correct comments.  Consolidate error paths.
49079 2006-10-01  Hollis Blanchard  <hollis@penguinppc.org>
49081         * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
49082         `instance_to_package_args' to `instance_to_path_args'.
49084         * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
49085         `grub_ieee1275_chosen'.
49087         * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
49088         `grub_ieee1275_interpret'.
49090 2006-09-25  Hollis Blanchard  <hollis@penguinppc.org>
49092         * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
49094 2006-09-25  Hollis Blanchard  <hollis@penguinppc.org>
49096         * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
49097         (__cmpdi): Likewise.
49099         * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
49100         `flags' to `grub_ieee1275_next_property'.  Change `pathlen' to type
49101         `grub_ssize_t'.
49103         * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
49105         * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49106         to type `grub_ssize_t'.
49107         (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49109 2006-09-22  Marco Gerards  <marco@gnu.org>
49111         * normal/script.c (grub_script_create_cmdmenu): Skip leading
49112         newlines.
49114 2006-09-22  Marco Gerards  <marco@gnu.org>
49116         * commands/echo.c: New file.
49118         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49120         * conf/common.rmk (echo_mod_SOURCES): New variable.
49121         (echo_mod_CFLAGS): Likewise.
49122         (echo_mod_LDFLAGS): Likewise.
49124 2006-09-22  Marco Gerards  <marco@gnu.org>
49126         * normal/main.c (get_line): Malloc memory instead of using
49127         preallocated memory.  Removed the arguments `cmdline' and
49128         `max_len'.  Updated all callers.
49130 2006-09-22  Marco Gerards  <marco@gnu.org>
49132         * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49133         (normal_mod_DEPENDENCIES): Likewise.
49135         * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49136         (normal_mod_DEPENDENCIES): Likewise.
49138         * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49140 2006-09-22  Johan Rydberg  <jrydberg@gnu.org>
49142         * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49143         programs.
49144         * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49145         (normal_mod_DEPENDENCIES): Likewise.
49146         * conf/i386-pc.mk: Regenerate.
49147         * conf/i386-efi.mk: Likewise
49148         * conf/common.mk: Likewise.
49149         * conf/powerpc-ieee1275.mk: Likewise.
49150         * conf/sparc64-ieee1275.mk: Likewise.
49152 2006-09-22  Robert Millan  <rmh@aybabtu.com>
49154         Sync with i386 version.
49155         * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49156         * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49158 2006-09-21  Robert Millan  <rmh@aybabtu.com>
49160         Import from GRUB Legacy (lib/device.c):
49161         * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49162         (init_device_map) [__linux__]: Add support for I2O devices.
49164 2006-09-14  Marco Gerards  <marco@gnu.org>
49166         * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49167         `-melf_i386'.
49169 2006-09-14  Robert Millan  <rmh@aybabtu.com>
49171         * util/i386/pc/grub-install.in: Skip menu.lst when removing
49172         /boot/grub/*.lst.
49174         * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49176         * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49177         before adding it to device.map.
49179 2006-08-15  Johan Rydberg  <jrydberg@gnu.org>
49181         * genmk.rb: Let GCC generate dependencies the first time it
49182         compiles a file; using the -MD option.
49183         * conf/common.mk: Regenerate.
49184         * conf/i386-pc.mk: Likewise.
49185         * conf/i386-efi.mk: Likewise.
49186         * conf/powerpc-ieee1275.mk: Likewise.
49187         * conf/sparc64-ieee1275.mk: Likewise.
49189 2006-08-04  Yoshinori K. Okuji  <okuji@enbug.org>
49191         Move the prototypes of grub_setjmp and grub_longjmp to
49192         cpu/setjmp.h, so that each architecture may specify different
49193         attributes.
49195         * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49196         (grub_longjmp): Likewise.
49197         * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49198         (grub_longjmp): Likewise.
49199         * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49200         (grub_longjmp): Likewise.
49202         * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49203         [!GRUB_UTIL] (grub_longjmp): Removed.
49205 2006-08-01  Pelletier Vincent  <subdino2004@yahoo.fr>
49207         * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49208         "color!" method does not return any value.
49210 2006-07-29  Vesa Jaaskelainen  <chaac@nic.fi>
49212         * include/grub/bitmap.h: New file.
49214         * include/grub/i386/pc/vbeutil.h: Likewise.
49216         * video/bitmap.c: Likewise.
49218         * video/readers/tga.c: Likewise.
49220         * video/i386/pc/vbeutil.c: Likewise.
49222         * commands/videotest.c: Code cleanup and updated to reflect to new
49223         video API.
49225         * term/gfxterm.c: Likewise.
49227         * video/video.c: Likewise.
49229         * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49230         (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49231         (bitmap_mod_SOURCES): New entry.
49232         (bitmap_mod_CFLAGS): Likewise.
49233         (bitmap_mod_LDFLAGS): Likewise.
49234         (tga_mod_SOURCES): Likewise.
49235         (tga_mod_CFLAGS): Likewise.
49236         (tga_mod_LDFLAGS): Likewise.
49238         * include/grub/video.h (grub_video_blit_operators): New enum type.
49239         (grub_video_render_target): Changed as forward declaration and moved
49240         actual definition to be video driver specific.
49241         (grub_video_adapter.blit_bitmap): Added blitting operator.
49242         (grub_video_adapter.blit_render_target): Likewise.
49243         (grub_video_blit_bitmap): Likewise.
49244         (grub_video_blit_render_target): Likewise.
49246         * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49247         driver specific render target definition.
49248         (grub_video_vbe_map_rgba): Added driver internal helper.
49249         (grub_video_vbe_unmap_color): Updated to use
49250         grub_video_i386_vbeblit_info.
49251         (grub_video_vbe_get_video_ptr): Likewise.
49253         * include/grub/i386/pc/vbeblit.h
49254         (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49255         grub_video_i386_vbeblit_info.
49256         (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49257         (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49258         (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49259         (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49260         (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49261         (grub_video_i386_vbeblit_index_index): Likewise.
49262         (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49263         (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49264         (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49265         (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49266         operator.
49267         (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49268         operator.
49270         * video/i386/pc/vbeblit.c: Updated to reflect changes on
49271         include/grub/i386/pc/vbeblit.h.
49273         * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49274         Updated to use grub_video_i386_vbeblit_info.
49275         (grub_video_i386_vbefill_R8G8B8): Likewise.
49276         (grub_video_i386_vbefill_index): Likewise.
49277         (grub_video_i386_vbefill): Added generic filler.
49279         * video/i386/pc/vbefill.c: Updated to reflect changes on
49280         include/grub/i386/pc/vbefill.h.
49282         * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49283         grub_video_i386_vbeblit_info.
49284         (grub_video_vbe_unmap_color): Likewise.
49285         (grub_video_vbe_blit_glyph): Likewise.
49286         (grub_video_vbe_scroll): Likewise.
49287         (grub_video_vbe_draw_pixel): Removed function.
49288         (grub_video_vbe_get_pixel): Likewise.
49289         (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49290         updated code to use it.
49291         (common_blitter): Added common blitter for render target and bitmap.
49292         (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49293         (grub_video_vbe_blit_render_target): Likewise.
49295 2006-07-30  Johan Rydberg  <jrydberg@gnu.org>
49297         * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49298         is in text mode if there is no console control protocol instance
49299         available.
49301 2006-07-29  Vesa Jaaskelainen  <chaac@nic.fi>
49303         * include/grub/video.h: Code cleanup.
49305         * include/grub/i386/pc/vbe.h: Likewise.
49307         * video/i386/pc/vbe.c: Likewise.
49309         * video/i386/pc/vbeblit.c: Likewise.
49311         * video/i386/pc/vbefill.c: Likewise.
49313         * video/video.c: Likewise.  Also added more comments.
49315 2006-07-29  Vesa Jaaskelainen  <chaac@nic.fi>
49317         * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49318         (struct grub_biosdisk_dap): Likewise.
49320         * include/grub/i386/pc/biosdisk.h: ... to here.  Also corrected
49321         linkage settings for all functions.
49323 2006-07-12  Marco Gerards  <marco@gnu.org>
49325         * configure.ac (--enable-mm-debug): Fix typo.
49327         * genkernsyms.sh.in: Use proper quoting for `CC'.
49329 2006-07-02  Jeroen Dekkers  <jeroen@dekkers.cx>
49331         * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49332         (normal_mod_ASFLAGS): Remove "-m32".
49334 2006-06-14  Yoshinori K. Okuji  <okuji@enbug.org>
49336         * util/misc.c: Include config.h.
49337         [!HAVE_MEMALIGN]: Do not include malloc.h.
49338         (grub_memalign): Use posix_memalign, if present. Then, use
49339         memalign, if present. Otherwise, emit an error.
49341         * util/grub-emu.c: Do not include malloc.h.
49343         * include/grub/util/misc.h: Include unistd.h. This is required for
49344         FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49345         D. Eades III <hde@foobar-qux.org>.
49347         * configure.ac (AC_GNU_SOURCE): Added.
49348         (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49349         type.
49351 2006-06-09  Yoshinori K. Okuji  <okuji@enbug.org>
49353         * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49354         ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49356 2006-06-07  Jeroen Dekkers  <jeroen@dekkers.cx>
49358         * include/grub/types.h (grub_host_addr_t): Rename to
49359         grub_target_addr_t.
49360         (grub_host_off_t): Rename to grub_target_off_t.
49361         (grub_host_size_t): Rename to grub_target_size_t.
49362         (grub_host_ssize_t): Rename to grub_target_ssize_t.
49363         Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49365         * include/grub/kernel.h (struct grub_module_header): Change type
49366         of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49367         (grub_module_info): Likewise.
49369 2006-06-05  Yoshinori K. Okuji  <okuji@enbug.org>
49371         * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49372         of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49373         Velazquez <jesus.velazquez@gmail.com>.
49375 2006-06-05  Yoshinori K. Okuji  <okuji@enbug.org>
49377         Count partitions from 1 instead of 0 in the string representation
49378         of partitions. Still use 0-based internally.
49380         * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49381         (sun_partition_map_iterate): Use grub_partition_t instead of
49382         struct grub_partition *. Cast DESC->START_CYLINDER to
49383         grub_uint64_t after converting the endian.
49384         (sun_partition_map_probe): Subtract 1 for PARTNUM.
49385         (sun_partition_map_get_name): Add 1 to P->INDEX.
49387         * partmap/pc.c (grub_partition_parse): Subtract 1 for
49388         PCDATA->DOS_PART.
49389         (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49391         * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49392         zero instead of one.
49393         (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49394         (gpt_partition_map_get_name): Add 1 into P->INDEX.
49396         * partmap/apple.c (apple_partition_map_iterate): Change the type
49397         of POS to unsigned.
49398         (apple_partition_map_probe): Subtract 1 for PARTNUM.
49399         (apple_partition_map_get_name): Add 1 into P->INDEX.
49401         * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49402         of POS to unsigned.
49403         (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49404         calculate the offset of a partition.
49405         (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49406         (amiga_partition_map_get_name): Add 1 into P->INDEX.
49408         * partmap/acorn.c (acorn_partition_map_find): Change the type of
49409         SECTOR to grub_disk_addr_t.
49410         (acorn_partition_map_iterate): Likewise.
49411         (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49412         Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49413         top.
49414         (acorn_partition_map_get_name): Add 1 into P->INDEX.
49416         * kern/i386/pc/init.c (make_install_device): Add 1 into
49417         GRUB_INSTALL_DOS_PART.
49419         * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49420         conditional.
49422 2006-06-04  Yoshinori K. Okuji  <okuji@enbug.org>
49424         Clean up the code to support 64-bit addressing in disks and
49425         files. This change is not enough for filesystems yet.
49427         * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49428         type of "start" to grub_uint64_t.
49429         (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49430         grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49431         save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49432         convert addresses.
49434         * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49435         to grub_disk_addr_t.
49437         * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49438         string.
49440         * partmap/pc.c (pc_partition_map_iterate): Likewise.
49442         * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49443         to char *.
49445         * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49447         * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49449         * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49451         * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49452         to grub_off_t, to detect an error from grub_file_seek.
49453         (grub_multiboot_load_elf32): Likewise.
49455         * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49456         maximum unsigned long value when an overflow is detected.
49457         (grub_strtoull): New function.
49458         (grub_divmod64): Likewise.
49459         (grub_lltoa): use grub_divmod64.
49461         * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49462         grub_disk_addr_t.
49463         (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49464         the pointer to next character. Use grub_strtoull instead of
49465         grub_strtoul.
49466         (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49467         SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49468         respectively.
49470         * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49471         return value is signed.
49472         (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49473         test if OFFSET is less than zero, as OFFSET is unsigned now.
49475         * kern/disk.c (struct grub_disk_cache): Change the type of
49476         "sector" to grub_disk_addr_t.
49477         (grub_disk_cache_get_index): Change the type of SECTOR to
49478         grub_disk_addr_t. Calculate the hash with SECTOR casted to
49479         unsigned after shifting.
49480         (grub_disk_cache_invalidate): Change the type of SECTOR to
49481         grub_disk_addr_t.
49482         (grub_disk_cache_unlock): Likewise.
49483         (grub_disk_cache_store): Likewise.
49484         (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49485         START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49486         grub_disk_addr_t and grub_uint64_t, respectively.
49487         (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49488         body, as the value of OFFSET is tweaked by
49489         grub_disk_check_range. Change the types of START_SECTOR, LEN and
49490         POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49491         respectively.
49492         (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49493         body, as the value of OFFSET is tweaked by
49494         grub_disk_check_range. Change the types of LEN and N to
49495         grub_size_t.
49497         * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49498         and "saved_offset" to grub_off_t.
49499         (test_header): Cast BUF to char *.
49500         (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49501         to char *.
49502         (grub_gzio_read): Change the types of OFFSET and SIZE to
49503         grub_off_t and grub_size_t, respectively.
49505         * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49506         Removed.
49507         (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49508         (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49509         (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49510         (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49511         (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49513         * include/grub/types.h (grub_off_t): Unconditionally set to
49514         grub_uint64_t.
49515         (grub_disk_addr_t): Changed to grub_uint64_t.
49517         * include/grub/partition.h (struct grub_partition): Change the
49518         types of "start", "len" and "offset" to grub_disk_addr_t,
49519         grub_uint64_t and grub_disk_addr_t, respectively.
49520         (grub_partition_get_start): Return grub_disk_addr_t.
49521         (grub_partition_get_len): Return grub_uint64_t.
49523         * include/grub/misc.h (grub_strtoull): New prototype.
49524         (grub_divmod64): Likewise.
49526         * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49527         of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49528         grub_off_t, respectively.
49529         All callers and references changed.
49531         * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49532         grub_size_t in "read".
49533         All callers and references changed.
49535         * include/grub/file.h (struct grub_file): Change the types of
49536         "offset" and "size" to grub_off_t and grub_off_t,
49537         respectively. Change the type of SECTOR to grub_disk_addr_t in
49538         "read_hook".
49539         (grub_file_read): Change the type of LEN to grub_size_t.
49540         (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49541         grub_off_t.
49542         (grub_file_size): Return grub_off_t.
49543         (grub_file_tell): Likewise.
49544         All callers and references changed.
49546         * include/grub/disk.h (struct grub_disk_dev): Change the types of
49547         SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49548         "write".
49549         (struct grub_disk): Change the type of "total_sectors" to
49550         grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49551         "read_hook".
49552         (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49553         grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49554         (grub_disk_write): Likewise.
49555         All callers and references changed.
49557         * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49558         char * for grub_strncmp to silence gcc.
49559         (grub_iso9660_mount): Likewise.
49560         (grub_iso9660_mount): Likewise.
49561         (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49562         return statement.
49563         (grub_iso9660_iterate_dir): Likewise.
49564         (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49566         * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49567         LEN to grub_disk_addr_t and grub_size_t, respectively.
49569         * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49571         * fs/jfs.c (grub_jfs_read_file): Likewise.
49573         * fs/minix.c (grub_jfs_read_file): Likewise.
49575         * fs/sfs.c (grub_jfs_read_file): Likewise.
49577         * fs/ufs.c (grub_jfs_read_file): Likewise.
49579         * fs/xfs.c (grub_jfs_read_file): Likewise.
49581         * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49582         and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49583         respectively.
49585         * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49586         BLKNR to -1 instead of returning GRUB_ERRNO.
49587         (grub_ext2_read_file): Change the types of SECTOR and
49588         LEN to grub_disk_addr_t and grub_size_t, respectively.
49590         * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49591         LEN to grub_disk_addr_t and grub_size_t, respectively.
49593         * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49594         grub_file_read.
49596         * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49597         string. Do not cast SECTOR explicitly.
49599         * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49600         TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49601         (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49602         grub_disk_addr_t and grub_size_t, respectively. If the sector is
49603         over 2TB and LBA mode is not supported, raise an error.
49604         (get_safe_sectors): New function.
49605         (grub_biosdisk_read): Use get_safe_sectors.
49606         (grub_biosdisk_write): Likewise.
49608         * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49609         (grub_efidisk_write): Likewise.
49611         * disk/loopback.c (delete_loopback): Cosmetic changes.
49612         (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49613         correctly.
49614         (grub_loopback_open): Likewise.
49615         (grub_loopback_read): Likewise. Also, change the type of POS to
49616         grub_off_t, and fix the usage of grub_memset.
49618         * commands/i386/pc/play.c: Include grub/machine/time.h.
49620         * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49621         print FILE->SIZE.
49623         * commands/configfile.c: Include grub/env.h.
49625         * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49626         GRUB_ERRNO directly instead. Change the type of POS to
49627         grub_off_t. Follow the coding standard.
49629         * commands/blocklist.c: Include grub/partition.h.
49630         (grub_cmd_blocklist): Return an error if the underlying device is
49631         not a disk. Take the starting sector of a partition into account,
49632         if a partition is used.
49634         * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49635         a length field.
49636         (lba_mode): Support 64-bit addresses.
49637         (chs_mode): Likewise.
49638         (copy_buffer): Adapted to the new offsets of a length field and a
49639         segment field.
49640         (blocklist_default_start): Allocate 64-bit space.
49642         * boot/i386/pc/boot.S (force_lba): Removed.
49643         (boot_drive): Moved to under KERNEL_SECTOR.
49644         (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49645         space.
49646         (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49647         is useless.
49648         (lba_mode): Refactored to support a 64-bit address. More size
49649         optimization.
49650         (setup_sectors): Likewise.
49652 2006-06-04  Yoshinori K. Okuji  <okuji@enbug.org>
49654         * DISTLIST: Added include/grub/i386/linux.h. Removed
49655         include/grub/i386/pc/linux.h
49657         * configure.ac (AC_INIT): Bumped to 1.94.
49659         * config.guess: Updated from gnulib.
49660         * config.sub: Likewise.
49661         * install-sh: Likewise.
49662         * mkinstalldirs: Likewise.
49664 2006-06-02  Yoshinori K. Okuji  <okuji@enbug.org>
49666         * conf/common.rmk (grub_modules_init.lst): Depended on
49667         grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49668         MODSRCFILES.
49670         * genmk.rb (PModule::rule): Reverted the previous change.
49672 2006-06-02  Yoshinori K. Okuji  <okuji@enbug.org>
49674         * conf/common.rmk (grub_modules_init.lst): Depends on
49675         $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49676         that the target does not exist before producing.
49677         (grub_modules_init.h): Remove the target before generating.
49678         (grub_emu_init.c): Likewise.
49680         * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49682 2006-05-31  Jeroen Dekkers  <jeroen@dekkers.cx>
49684         * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49685         for the target-specific tests. Make sure that we also have the
49686         up-to-date target variables for those tests.
49688 2006-05-31  Yoshinori K. Okuji  <okuji@enbug.org>
49690         * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49691         (PModule::rule): Likewise.
49693 2006-05-31  Yoshinori K. Okuji  <okuji@enbug.org>
49695         * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49696         TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49697         target-specific flags should be prefixed.
49698         (PModule::rule): Likewise.
49700 2006-05-30  Yoshinori K. Okuji  <okuji@enbug.org>
49702         * configure.ac (CMP): Check if cmp is available explicitly.
49704 2006-05-29  Yoshinori K. Okuji  <okuji@enbug.org>
49706         * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49707         (target_cpu): New variable.
49708         (pkglibdir): Use target_cpu instead of host_cpu.
49710         * util/i386/pc/grub-install.in (host_cpu): Removed.
49711         (target_cpu): New variable.
49712         (pkglibdir): Use target_cpu instead of host_cpu.
49714         * util/genmoddep.c: Removed.
49716         * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49717         instead of GRUB_HOST_SIZEOF_VOID_P.
49718         * kern/dl.c: Likewise.
49720         * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49721         ...
49722         (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49723         (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49724         (GRUB_TARGET_SIZEOF_LONG): ... this.
49725         (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49726         (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49727         * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49728         to ...
49729         (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49730         (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49731         (GRUB_TARGET_SIZEOF_LONG): ... this.
49732         (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49733         (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49734         * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49735         to ...
49736         (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49737         (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49738         (GRUB_TARGET_SIZEOF_LONG): ... this.
49739         (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49740         (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49742         * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49743         GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49744         [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49745         instead of GRUB_HOST_SIZEOF_LONG.
49746         [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49747         GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49748         GRUB_CPU_WORDS_BIGENDIAN.
49749         Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49750         define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49751         grub_host_ssize_t.
49753         * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49754         (genmoddep_SOURCES): Likewise.
49755         * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49756         (genmoddep_SOURCES): Likewise.
49757         * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49758         (genmoddep_SOURCES): Likewise.
49759         * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49760         Likewise.
49761         (genmoddep_SOURCES): Likewise.
49763         * genmoddep.awk: New file.
49765         * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49766         TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49767         CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49768         (PModule::rule): Likewise.
49769         (Program::rule): Likewise.
49770         (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49771         BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49772         respectively.
49774         * configure.ac: Rewritten intensively to use host and target
49775         instead of build and host, respectively.
49777         * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49778         (host_cpu): Removed.
49779         (target_cpu): New variable.
49780         (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49781         (BUILD_CC): Removed.
49782         (BUILD_CFLAGS): Likewise.
49783         (BUILD_CPPFLAGS): Likewise.
49784         (TARGET_CC): New variable.
49785         (TARGET_CFLAGS): Likewise.
49786         (TARGET_CPPFLAGS): Likewise.
49787         (TARGET_LDFLAGS): Likewise.
49788         (AWK): Likewise.
49789         (include): Use target_cpu instead of host_cpu.
49790         (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49792         * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49794 2006-05-29  Vesa Jaaskelainen  <chaac@nic.fi>
49796         * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49797         'exec_to_evaluate'.  Renamed field 'true' to 'exec_on_true'.  Renamed
49798         field 'false' to 'exec_on_false'.
49799         (grub_script_create_cmdif): Renamed argument names to reflect above
49800         changes.
49802         * normal/execute.c (grub_script_execute_cmdif): Likewise.
49804         * normal/script.c (grub_script_create_cmdif): Likewise.
49806 2006-05-28  Yoshinori K. Okuji  <okuji@enbug.org>
49808         * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49809         top.
49810         (grub_hfsplus_btree_recptr): Likewise.
49811         (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49812         FILEBLOCK both to pass a block number and store next block
49813         number.
49814         (grub_hfsplus_read_block): Rewritten heavily to support an extent
49815         overflow file correctly. Specify errors appropriately, because
49816         fshelp expects that GRUB_ERRNO is set when fails. Reuse
49817         grub_hfsplus_btree_recptr to get the pointer to a found key.
49818         (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49819         is found.
49821         * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49822         linux.mod.
49823         (_linux_mod_SOURCES): New variable.
49824         (_linux_mod_CFLAGS): Likewise.
49825         (_linux_mod_LDFLAGS): Likewise.
49826         (linux_mod_SOURCES): Likewise.
49827         (linux_mod_CFLAGS): Likewise.
49828         (linux_mod_LDFLAGS): Likewise.
49830         * DISTLIST: Added loader/i386/efi/linux.c,
49831         loader/i386/efi/linux_normal.c and
49832         include/grub/i386/efi/loader.h.
49834         * loader/i386/efi/linux.c: New file.
49835         * loader/i386/efi/linux_normal.c: Likewise.
49836         * include/grub/i386/efi/loader.h: Likewise.
49838 2006-05-27  Yoshinori K. Okuji  <okuji@enbug.org>
49840         * commands/blocklist.c: New file.
49842         * DISTLIST: Added commands/blocklist.c.
49844         * term/efi/console.c (grub_console_highlight_color): Use a lighter
49845         color for the background, and a darker color for the foreground.
49846         (grub_console_checkkey): Return READ_KEY.
49847         (grub_console_cls): Set the background to
49848         GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49850         * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49852         * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49853         the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49855         * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49856         prototype.
49858         * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49859         BG. The spec is wrong again.
49861         * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49862         prototype.
49863         [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49865         * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49866         commands/blocklist.c.
49867         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49869         * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49870         (blocklist_mod_SOURCES): New variable.
49871         (blocklist_mod_CFLAGS): Likewise.
49872         (blocklist_mod_LDFLAGS): Likewise.
49874 2006-05-20  Yoshinori K. Okuji  <okuji@enbug.org>
49876         * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49877         duplication.
49878         (lba_mode): Use %eax more intensively to reduce the code size.
49880 2006-05-20  Marco Gerards  <marco@gnu.org>
49882         * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49884         * normal/parser.y (commandblock): Defined as <cmd>.  A subroutine
49885         for `menuentry'.
49886         (script): Accept leading newlines.
49887         (newlines): New rule to describe 0 or more newlines.
49888         (commands): Accept `command' with trailing newline.  Fixed the
49889         order in which arguments were passed to `grub_script_add_cmd'.
49890         Accept commands separated by newlines.
49891         (function): Changed to accept newlines.
49892         (menuentry) Rewritten.
49894         * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49895         front of the list, instead of to the end.
49897 2006-05-19  Yoshinori K. Okuji  <okuji@enbug.org>
49899         * util/i386/pc/grub-install.in (bindir): New variable.
49900         (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49901         Shaver <lbgwjl@gmail.com>.
49903 2006-05-14  Yoshinori K. Okuji  <okuji@enbug.org>
49905         * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49906         grub/machine/linux.h
49907         * loader/i386/pc/linux.c: Likewise.
49909         * include/grub/i386/pc/linux.h: Moved to ...
49910         * include/grub/i386/linux.h: ... here.
49912         * include/grub/i386/linux.h (struct linux_kernel_params): New
49913         struct.
49915 2006-05-09  Vesa Jaaskelainen  <chaac@nic.fi>
49917         * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49918         checking.
49919         (grub_video_vbe_blit_glyph): Likewise.
49920         (grub_video_vbe_blit_bitmap): Likewise.
49921         (grub_video_vbe_blit_render_target): Likewise.
49923 2006-05-09  Yoshinori K. Okuji  <okuji@enbug.org>
49925         * configure.ac (--with-platform): Properly quote the square
49926         brackets.
49928 2006-05-08  Marco Gerards  <marco@gnu.org>
49930         * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49931         this...
49932         (kernel_elf_HEADERS): ...to this.  Updated all users.
49933         (grubof_symlist.c): Renamed from this...
49934         (kernel_elf_symlist.c): ...to this.  Updated all users.
49935         (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49936         (grubof_SOURCES): Renamed from this...
49937         (kernel_elf_SOURCES): ...to this.
49938         (grubof_HEADERS): Renamed from this...
49939         (kernel_elf_HEADERS): ...to this.
49940         (grubof_CFLAGS): Renamed from this...
49941         (kernel_elf_CFLAGS): ...to this.
49942         (grubof_ASFLAGS): Renamed from this...
49943         (kernel_elf_ASFLAGS): ...to this.
49944         (grubof_LDFLAGS): Renamed from this...
49945         (kernel_elf_LDFLAGS): ...to this.
49947         * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49948         this...
49949         (kernel_elf_HEADERS): ...to this.  Updated all users.
49950         (grubof_symlist.c): Renamed from this...
49951         (kernel_elf_symlist.c): ...to this.  Updated all users.
49952         (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49953         (grubof_SOURCES): Renamed from this...
49954         (kernel_elf_SOURCES): ...to this.
49955         (grubof_HEADERS): Renamed from this...
49956         (kernel_elf_HEADERS): ...to this.
49957         (grubof_CFLAGS): Renamed from this...
49958         (kernel_elf_CFLAGS): ...to this.
49959         (grubof_ASFLAGS): Renamed from this...
49960         (kernel_elf_ASFLAGS): ...to this.
49961         (grubof_LDFLAGS): Renamed from this...
49962         (kernel_elf_LDFLAGS): ...to this.
49964         * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49965         `kernel.elf' instead of `grubof'.
49967 2006-05-08  Yoshinori K. Okuji  <okuji@enbug.org>
49969         Add --with-platform to configure. Use pkglibdir instead of
49970         pkgdatadir. This is reported by Roger Leigh.
49972         * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49973         (host_vendor): Likewise.
49974         (host_os): Likewise.
49975         (pkgdatadir): Likewise.
49976         (platform): New variable.
49977         (pkglibdir): Likewise.
49978         Use PKGLIBDIR instead of PKGDATADIR.
49980         * util/i386/pc/grub-install.in (datadir): Removed.
49981         (host_vendor): Likewise.
49982         (host_os): Likewise.
49983         (pkgdatadir): Likewise.
49984         (platform): New variable.
49985         (pkglibdir): Likewise.
49986         Use PKGLIBDIR instead of PKGDATADIR.
49988         * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49989         instead of GRUB_DATADIR.
49990         (main): Likewise.
49991         * util/i386/pc/grub-mkimage.c (usage): Likewise.
49992         (main): Likewise.
49993         * util/i386/efi/grub-mkimage.c (usage): Likewise.
49994         (main): Likewise.
49996         * configure.ac (--with-platform): New option.
49997         Use PLATFORM instead of HOST_VENDOR to specify a platform.
49999         * Makefile.in: Include a makefile based on PLATFORM instead of
50000         HOST_VENDOR.
50001         (pkgdatadir): Not appended by the machine type.
50002         (pkglibdir): Appended by the machine type.
50003         (host_vendor): Removed.
50004         (platform): New variable.
50005         (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
50006         (install-local): Use PKGLIBDIR instead of PKGDATADIR.
50007         (uninstall): Likewise.
50009 2006-05-07  Yoshinori K. Okuji  <okuji@enbug.org>
50011         Use the environment context in the menu. Remove the commands
50012         "default" and "timeout", and use variables instead.
50014         * normal/menu.c: Include grub/env.h.
50015         (print_entry): Cast TITLE to silence gcc.
50016         (get_timeout): New function.
50017         (set_timeout): Likewise.
50018         (get_entry_number): Likewise.
50019         (run_menu): Use a default entry, a fallback entry and a timeout
50020         in the environment variables "default", "fallback" and
50021         "timeout". Also, tweak the default entry if it is not within the
50022         current menu entries.
50023         (grub_menu_run): Use a fallback entry in the environment variable
50024         "fallback".
50026         * normal/main.c (read_config_file): Do not initialize
50027         NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
50028         NEWMENU->TIMEOUT.
50029         (grub_normal_execute): Use a data slot to store the menu.
50031         * include/grub/normal.h (struct grub_menu): Removed default_entry,
50032         fallback_entry and timeout.
50033         (struct grub_menu_list): Removed.
50034         (grub_menu_list_t): Likewise.
50035         (struct grub_context): Likewise.
50036         (grub_context_t): Likewise.
50037         (grub_context_get): Likewise.
50038         (grub_context_get_current_menu): Likewise.
50039         (grub_context_push_menu): Likewise.
50040         (grub_context_pop_menu): Likewise.
50041         (grub_default_init): Likewise.
50042         (grub_default_fini): Likewise.
50043         (grub_timeout_init): Likewise.
50044         (grub_timeout_fini): Likewise.
50046         * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
50047         and timeout.mod.
50048         (normal_mod_SOURCES): Removed normal/context.c.
50050         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
50051         commands/default.c, commands/timeout.c and normal/context.c.
50052         (normal_mod_SOURCES): Removed normal/context.c.
50054         * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
50055         commands/timeout.c and normal/context.c.
50056         (normal_mod_SOURCES): Removed normal/context.c.
50058         * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
50059         commands/default.c, commands/timeout.c and normal/context.c.
50060         (normal_mod_SOURCES): Removed normal/context.c.
50062         * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
50063         timeout.mod.
50064         (default_mod_SOURCES): Removed.
50065         (default_mod_CFLAGS): Likewise.
50066         (default_mod_LDFLAGS): Likewise.
50067         (timeout_mod_SOURCES): Removed.
50068         (timeout_mod_CFLAGS): Likewise.
50069         (timeout_mod_LDFLAGS): Likewise.
50071         * DISTLIST: Removed commands/default.c, commands/timeout.c and
50072         normal/context.c.
50074         * commands/default.c: Removed.
50075         * commands/timeout.c: Likewise.
50076         * normal/context.c: Likewise.
50078 2006-05-07  Vesa Jaaskelainen  <chaac@nic.fi>
50080         * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
50082 2006-05-02  Yoshinori K. Okuji  <okuji@enbug.org>
50084         * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
50085         "next" to "prev" for readability.
50086         (struct grub_env_sorted_var): New struct.
50087         (grub_env_context): Renamed to ...
50088         (initial_context): ... this.
50089         (grub_env_var_context): Renamed to ...
50090         (current_context): ... this.
50091         (grub_env_find): Look only at CURRENT_CONTEXT.
50092         (grub_env_context_open): Rewritten to copy exported variables from
50093         previous context.
50094         (grub_env_context_close): Rewritten according to the new
50095         scheme. Also, add an assertion to prevent the initial context from
50096         removed.
50097         (grub_env_insert): Removed the code for the sorted list.
50098         (grub_env_remove): Likewise.
50099         (grub_env_export): Simply mark the variable with
50100         GRUB_ENV_VAR_GLOBAL.
50101         (grub_env_set): A cosmetic change for naming consistency.
50102         (grub_env_get): Likewise.
50103         (grub_env_unset): Likewise.
50104         (grub_env_iterate): Rewritten to sort variables within this
50105         function.
50106         (grub_register_variable_hook): Fixed for naming consistency. Call
50107         grub_env_find again, only if NAME is not found at the first time.
50108         (mangle_data_slot_name): New function.
50109         (grub_env_set_data_slot): Likewise.
50110         (grub_env_get_data_slot): Likewise.
50111         (grub_env_unset_data_slot): Likewise.
50113         * include/grub/env.h (grub_env_var_type): New enum.
50114         (GRUB_ENV_VAR_LOCAL): New constant.
50115         (GRUB_ENV_VAR_GLOBAL): Likewise.
50116         (GRUB_ENV_VAR_DATA): Likewise.
50117         (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50118         "type".
50119         (grub_env_set): Replace VAR with NAME for consistency.
50120         (grub_register_variable_hook): Likewise.
50121         (grub_env_export): Specify the name of the argument.
50122         (grub_env_set_data_slot): New prototype.
50123         (grub_env_get_data_slot): Likewise.
50124         (grub_env_unset_data_slot): Likewise.
50126 2006-04-30  Yoshinori K. Okuji  <okuji@enbug.org>
50128         Extend the loader so that GRUB can accept a loader which comes
50129         back to GRUB when a loaded image exits. Also, this change adds
50130         support for a chainloader on EFI.
50132         * term/efi/console.c: Include grub/misc.h.
50133         (grub_console_checkkey): Display a scan code on the top for
50134         debugging. This will be removed once the EFI port gets stable.
50135         Correct the scan code mapping.
50137         * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50138         allocate memory from larger regions, in order to reduce the number
50139         of allocated regions. Otherwise, the MacOSX loader panics.
50140         (filter_memory_map): Avoid less than 1MB for compatibility with
50141         other loaders.
50142         (add_memory_regions): Allocate from the tail of a region, if
50143         possible, to avoid allocating a region near to 1MB, for the MacOSX
50144         loader.
50146         * kern/efi/init.c (grub_efi_set_prefix): Specify
50147         GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50149         * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50150         argument IMAGE_HANDLE and specify it to get a loaded image.
50151         (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50152         grub_efi_get_loaded_image.
50153         (grub_efi_get_filename): Divide the length by the size of
50154         grub_efi_char16_t.
50155         (grub_efi_get_device_path): New function.
50156         (grub_efi_print_device_path): Print End Device Path nodes. Divide
50157         the length by the size of grub_efi_char16_t for a file path device
50158         path node.
50160         * kern/loader.c (grub_loader_noreturn): New variable.
50161         (grub_loader_set): Accept a new argument NORETURN. Set
50162         GRUB_LOADER_NORETURN to NORETURN.
50163         All callers changed.
50164         (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50165         grub_machine_fini.
50167         * include/grub/efi/efi.h (grub_efi_get_device_path): New
50168         prototype.
50169         (grub_efi_get_loaded_image): Take an argument to specify an image
50170         handle.
50172         * include/grub/loader.h (grub_loader_set): Added one more argument
50173         NORETURN.
50175         * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50176         instead of grub_efi_open_protocol.
50177         (grub_efidisk_get_device_name): Likewise.
50178         (grub_efidisk_close): Print a newline.
50179         (grub_efidisk_get_device_handle): Fixed to use
50180         GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50181         GRUB_EFI_DEVICE_PATH_TYPE.
50183         * disk/efi/efidisk.c (device_path_guid): Moved to ...
50184         * kern/efi/efi.c (device_path_guid): ... here.
50186         * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50187         chain.mod.
50188         (kernel_mod_HEADERS): Added efi/disk.h.
50189         (_chain_mod_SOURCES): New variable.
50190         (_chain_mod_CFLAGS): Likewise.
50191         (_chain_mod_LDFLAGS): Likewise.
50192         (chain_mod_SOURCES): Likewise.
50193         (chain_mod_CFLAGS): Likewise.
50194         (chain_mod_LDFLAGS): Likewise.
50196         * DISTLIST: Added include/grub/efi/chainloader.h,
50197         loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50199         * include/grub/efi/chainloader.h: New file.
50200         * loader/efi/chainloader.c: Likewise.
50201         * loader/efi/chainloader_normal.c: Likewise.
50203 2006-04-30  Marco Gerards  <marco@gnu.org>
50205         * commands/configfile.c (grub_cmd_source): New function.
50206         (GRUB_MOD_INIT): Register the commands `source' and `.'.
50207         (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50209 2006-04-30  Marco Gerards  <marco@gnu.org>
50211         * normal/execute.c (grub_script_execute_cmd): Change the return
50212         type to `grub_err_t'.  Correctly return the error.
50213         (grub_script_execute_cmdline): In case a command line is not a
50214         command or a function, try to interpret it as an assignment.
50216 2006-04-30  Yoshinori K. Okuji  <okuji@enbug.org>
50218         * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50219         (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50220         skip a node whose name is obviously invalid as UTF-16,
50221         i.e. contains a NUL character. Stop the iteration when the last
50222         directory entry is found. Instead of using the return value of
50223         grub_hfsplus_btree_iterate_node, store the value in RET and use
50224         it, because the iterator can be stopped by the last directory
50225         entry.
50227 2006-04-30  Marco Gerards  <marco@gnu.org>
50229         * include/grub/env.h (grub_env_export): New prototype.  Reported
50230         by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50232 2006-04-30  Marco Gerards  <marco@gnu.org>
50234         * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50235         size of the extents in a catalog file record.
50237 2006-04-29  Marco Gerards  <marco@gnu.org>
50239         * commands/configfile.c (grub_cmd_configfile): Execute the
50240         configfile within its own context.
50242         * include/grub/env.h (grub_env_context_open): New prototype.
50243         (grub_env_context_close): Likewise.
50245         * kern/env.c (grub_env): Removed.
50246         (grub_env_sorted): Likewise.
50247         (grub_env_context): New variable.
50248         (grub_env_var_context): Likewise.
50249         (grub_env_find): Search both the active context and the global
50250         context.
50251         (grub_env_context_open): New function.
50252         (grub_env_context_close): Likewise.
50253         (grub_env_insert): Likewise.
50254         (grub_env_remove): Likewise.
50255         (grub_env_export): Likewise.
50256         (grub_env_set): Changed to use helper functions to avoid code
50257         duplication.
50258         (grub_env_iterate): Rewritten so both the current context and the
50259         global context are being used.
50261         * normal/command.c (export_command): New function.
50262         (grub_command_init): Register the `export' function.
50264 2006-04-26  Yoshinori K. Okuji  <okuji@enbug.org>
50266         * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50267         explicitly to suppress gcc's warnings.
50268         * fs/fat.c (grub_fat_find_dir): Likewise.
50269         (grub_fat_label): Likewise.
50270         * fs/xfs.c (grub_xfs_read_inode): Likewise.
50271         (grub_xfs_mount): Likewise.
50272         (grub_xfs_label): Likewise.
50273         * fs/affs.c (grub_affs_mount): Likewise.
50274         (grub_affs_label): Likewise.
50275         (grub_affs_iterate_dir): Likewise.
50276         * fs/sfs.c (grub_sfs_mount): Likewise.
50277         (grub_sfs_iterate_dir): Likewise.
50278         * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50279         * fs/hfs.c (grub_hfs_mount): Likewise.
50280         (grub_hfs_cmp_catkeys): Likewise.
50281         (grub_hfs_find_dir): Likewise.
50282         (grub_hfs_dir): Likewise.
50283         (grub_hfs_label): Likewise.
50284         * fs/jfs.c (grub_jfs_mount): Likewise.
50285         (grub_jfs_opendir): Likewise.
50286         (grub_jfs_getent): Likewise.
50287         (grub_jfs_lookup_symlink): Likewise.
50288         (grub_jfs_label): Likewise.
50289         * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50290         (grub_hfsplus_iterate_dir): Likewise.
50291         (grub_hfsplus_btree_iterate_node): Made static.
50293         * util/grub-emu.c (prefix): New variable.
50294         (grub_machine_set_prefix): New function.
50295         (main): Do not set the environment variable "prefix" here. Only
50296         set PREFIX, which is used later by grub_machine_set_prefix.
50298         * include/grub/video.h: Do not include grub/symbol.h.
50299         (grub_video_register): Not exported. This symbol is not defined in
50300         the kernel.
50301         (grub_video_unregister): Likewise.
50302         (grub_video_iterate): Likewise.
50303         (grub_video_setup): Likewise.
50304         (grub_video_restore): Likewise.
50305         (grub_video_get_info): Likewise.
50306         (grub_video_get_blit_format): Likewise.
50307         (grub_video_set_palette): Likewise.
50308         (grub_video_get_palette): Likewise.
50309         (grub_video_set_viewport): Likewise.
50310         (grub_video_get_viewport): Likewise.
50311         (grub_video_map_color): Likewise.
50312         (grub_video_map_rgb): Likewise.
50313         (grub_video_map_rgba): Likewise.
50314         (grub_video_fill_rect): Likewise.
50315         (grub_video_blit_glyph): Likewise.
50316         (grub_video_blit_bitmap): Likewise.
50317         (grub_video_blit_render_target): Likewise.
50318         (grub_video_scroll): Likewise.
50319         (grub_video_swap_buffers): Likewise.
50320         (grub_video_create_render_target): Likewise.
50321         (grub_video_delete_render_target): Likewise.
50322         (grub_video_set_active_render_target): Likewise.
50324         * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50325         Undefined.
50326         [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50328         * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50329         config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50330         (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50331         instead of $(srcdir)/genkernsyms.sh.
50333         * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50334         config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50335         (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50336         instead of $(srcdir)/genkernsyms.sh.
50338         * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50339         gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50340         (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50341         instead of $(srcdir)/genkernsyms.sh.
50343         * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50344         gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50345         (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50346         instead of $(srcdir)/genkernsyms.sh.
50348         * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50349         genkernsyms.sh.
50351         * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50352         genkernsyms.sh.
50353         (gensymlist.sh): New target.
50354         (genkernsyms.sh): Likewise.
50356         * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50357         genkernsyms.sh.in and gensymlist.sh.in.
50359         * genkernsyms.sh: Removed.
50360         * gensymlist.sh: Likewise.
50362         * genkernsyms.sh.in: New file.
50363         * gensymlist.sh.in: Likewise.
50365 2006-04-25  Hollis Blanchard  <hollis@penguinppc.org>
50367         * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50368         clobber "prefix", since we may have already set it manually.
50370 2006-04-25  Hollis Blanchard  <hollis@penguinppc.org>
50372         * kern/misc.c (abort): New alias for grub_abort.
50374 2006-04-25  Yoshinori K. Okuji  <okuji@enbug.org>
50376         A new machine-specific function "grub_machine_set_prefix" is
50377         defined. This is called after loading modules, so that a prefix
50378         initialization can use modules. Also, this change adds an
50379         intensive debugging feature for the memory manager via the
50380         configure option "--enable-mm-debug".
50382         * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50383         PART.LEN.
50385         * kern/sparc64/ieee1275/init.c (abort): Removed.
50386         (grub_stop): Likewise.
50387         (grub_exit): New function.
50388         (grub_set_prefix): Renamed to ...
50389         (grub_machine_set_prefix): ... this.
50390         (grub_machine_init): Do not call grub_set_prefix.
50392         * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50393         (grub_machine_set_prefix): ... this.
50394         (grub_machine_init): Do not call grub_set_prefix.
50396         * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50397         (grub_machine_init): Do not set the prefix here.
50399         * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50401         * kern/efi/init.c: Include grub/mm.h.
50402         (grub_efi_set_prefix): New function.
50404         * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50405         (grub_efi_get_filename): New function.
50406         (grub_print_device_path): Renamed to ...
50407         (grub_efi_print_device_path): ... this.
50409         * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50410         [MM_DEBUG] (grub_realloc): Likewise.
50411         [MM_DEBUG] (grub_free): Likewise.
50412         [MM_DEBUG] (grub_memalign): Likewise.
50413         [MM_DEBUG] (grub_mm_debug): New variable.
50414         [MM_DEBUG] (grub_debug_malloc): New function.
50415         [MM_DEBUG] (grub_debug_free): New function.
50416         [MM_DEBUG] (grub_debug_realloc): New function.
50417         [MM_DEBUG] (grub_debug_memalign): New function.
50419         * kern/misc.c (grub_abort): Print a newline to distinguish
50420         the message.
50422         * kern/main.c (grub_main): Call grub_machine_set_prefix and
50423         grub_set_root_dev after loading modules. This is necessary when
50424         setting a prefix depends on modules.
50426         * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50427         (grub_efi_print_device_path): ... this.
50428         (grub_efi_get_filename): New prototype.
50429         (grub_efi_set_prefix): Likewise.
50431         * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50432         and grub/disk.h.
50433         (grub_efidisk_get_device_handle): New prototype.
50434         (grub_efidisk_get_device_name): Likewise.
50436         * include/grub/mm.h: Include config.h.
50437         (MM_DEBUG): Removed.
50438         [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50439         [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50440         [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50441         [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50442         [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50443         [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50444         [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50445         [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50446         [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50448         * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50450         * disk/efi/efidisk.c: Include grub/partition.h.
50451         (iterate_child_devices): New function.
50452         (add_device): First, compare only last device path nodes, so that
50453         devices are sorted by the types.
50454         (grub_efidisk_get_device_handle): New function.
50455         (grub_efidisk_get_device_name): Likewise.
50457         * configure.ac (--enable-mm-debug): New option to enable the
50458         memory manager debugging feature. This makes the binary much
50459         bigger, so is disabled by default.
50461 2006-04-23  Yoshinori K. Okuji  <okuji@enbug.org>
50463         Use grub_abort instead of grub_stop, and grub_exit must be
50464         define in each architecture now. Also, this change adds support
50465         for EFI disks.
50467         * util/i386/pc/grub-probefs.c: Include grub/term.h.
50468         (grub_getkey): New function.
50469         (grub_term_get_current): Likewise.
50471         * util/i386/pc/grub-setup.c: Include grub/term.h.
50472         (grub_getkey): New function.
50473         (grub_term_get_current): Likewise.
50475         * util/misc.c (grub_stop): Renamed to ...
50476         (grub_exit): ... this.
50478         * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50479         (grub_exit): ... this.
50480         (grub_machine_init): Use grub_abort instead of abort.
50481         (grub_stop): Removed.
50483         * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50484         abort.
50486         * kern/i386/pc/startup.S (grub_exit): New function.
50487         (cold_reboot): New label.
50489         * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50490         (grub_efi_init): Call grub_efidisk_init.
50491         (grub_efi_fini): Call grub_efidisk_fini.
50493         * kern/efi/efi.c: Include grub/mm.h.
50494         (grub_efi_console_control_guid): Renamed to ...
50495         (console_control_guid): ... this.
50496         (grub_efi_loaded_image_guid): Renamed to ...
50497         (loaded_image_guid): ... this.
50498         (grub_efi_locate_handle): New function.
50499         (grub_efi_open_protocol): Likewise.
50500         (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50501         GRUB_EFI_CONSOLE_CONTROL_GUID.
50502         (grub_efi_exit): Removed.
50503         (grub_stop): Likewise.
50504         (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50505         (grub_exit): New function.
50506         (grub_print_device_path): Likewise.
50508         * kern/rescue.c (grub_rescue_cmd_exit): New function.
50509         (grub_enter_rescue_mode): Register "exit".
50511         * kern/misc.c (grub_real_dprintf): A cosmetic change.
50512         (grub_abort): New function.
50514         * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50516         * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50518         * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50520         * include/grub/efi/efi.h (grub_efi_exit): Removed.
50521         (grub_print_device_path): New prototype.
50522         (grub_efi_locate_handle): Likewise.
50523         (grub_efi_open_protocol): Likewise.
50525         * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50526         * disk/efi/efidisk.c: Likewise.
50528         * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50530         * include/grub/efi/console_control.h
50531         (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50533         * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50534         last 8 bytes as an array.
50535         (GRUB_EFI_DISK_IO_GUID): New macro.
50536         (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50537         (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50538         (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50539         grub_uint8_t.
50540         (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50541         (struct grub_efi_device_path): Rename the member "sub_type" to
50542         "subtype".
50543         (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50544         (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50545         (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50546         (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50547         (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50548         (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50549         (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50550         (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50551         (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50552         (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50553         (struct grub_efi_pci_device_path): New structure.
50554         (grub_efi_pci_device_path_t): New type.
50555         (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50556         (struct grub_efi_pccard_device_path): New structure.
50557         (grub_efi_pccard_device_path_t): New type.
50558         (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50559         (struct grub_efi_memory_mapped_device_path): New structure.
50560         (grub_efi_memory_mapped_device_path_t): New type.
50561         (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50562         (struct grub_efi_vendor_device_path): New structure.
50563         (grub_efi_vendor_device_path_t): New type.
50564         (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50565         (struct grub_efi_controller_device_path): New structure.
50566         (grub_efi_controller_device_path_t): New type.
50567         (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50568         (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50569         (struct grub_efi_acpi_device_path): New structure.
50570         (grub_efi_acpi_device_path_t): New type.
50571         (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50572         (struct grub_efi_expanded_acpi_device_path): New structure.
50573         (grub_efi_expanded_acpi_device_path_t): New type.
50574         (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50575         (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50576         (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50577         (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50578         (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50579         (struct grub_efi_atapi_device_path): New structure.
50580         (grub_efi_atapi_device_path_t): New type.
50581         (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50582         (struct grub_efi_fibre_channel_device_path): New structure.
50583         (grub_efi_fibre_channel_device_path_t): New type.
50584         (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50585         (struct grub_efi_1394_device_path): New structure.
50586         (grub_efi_1394_device_path_t): New type.
50587         (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50588         (struct grub_efi_usb_device_path): New structure.
50589         (grub_efi_usb_device_path_t): New type.
50590         (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50591         (struct grub_efi_usb_class_device_path): New structure.
50592         (grub_efi_usb_class_device_path_t): New type.
50593         (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50594         (struct grub_efi_i2o_device_path): New structure.
50595         (grub_efi_i2o_device_path_t): New type.
50596         (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50597         (struct grub_efi_mac_address_device_path): New structure.
50598         (grub_efi_mac_address_device_path_t): New type.
50599         (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50600         (struct grub_efi_ipv4_device_path): New structure.
50601         (grub_efi_ipv4_device_path_t): New type.
50602         (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50603         (struct grub_efi_ipv6_device_path): New structure.
50604         (grub_efi_ipv6_device_path_t): New type.
50605         (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50606         (struct grub_efi_infiniband_device_path): New structure.
50607         (grub_efi_infiniband_device_path_t): New type.
50608         (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50609         (struct grub_efi_uart_device_path): New structure.
50610         (grub_efi_uart_device_path_t): New type.
50611         (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50612         (struct grub_efi_vendor_messaging_device_path): New structure.
50613         (grub_efi_vendor_messaging_device_path_t): New type.
50614         (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50615         (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50616         (struct grub_efi_hard_drive_device_path): New structure.
50617         (grub_efi_hard_drive_device_path_t): New type.
50618         (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50619         (struct grub_efi_cdrom_device_path): New structure.
50620         (grub_efi_cdrom_device_path_t): New type.
50621         (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50622         (struct grub_efi_vendor_media_device_path): New structure.
50623         (grub_efi_vendor_media_device_path_t): New type.
50624         (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50625         (struct grub_efi_file_path_device_path): New structure.
50626         (grub_efi_file_path_device_path_t): New type.
50627         (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50628         (struct grub_efi_protocol_device_path): New structure.
50629         (grub_efi_protocol_device_path_t): New type.
50630         (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50631         (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50632         (struct grub_efi_bios_device_path): New structure.
50633         (grub_efi_bios_device_path_t): New type.
50634         (struct grub_efi_disk_io): New structure.
50635         (grub_efi_disk_io_t): New type.
50636         (struct grub_efi_block_io_media): New structure.
50637         (grub_efi_block_io_media_t): New type.
50638         (struct grub_efi_block_io): New structure.
50639         (grub_efi_block_io_t): New type.
50641         * include/grub/misc.h (grub_stop): Removed.
50642         (grub_exit): New prototype.
50643         (grub_abort): Likewise.
50645         * include/grub/disk.h (enum grub_disk_dev_id): Added
50646         GRUB_DISK_DEVICE_EFIDISK_ID.
50648         * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50649         disk/efi/efidisk.c.
50650         (kernel_syms.lst): Remove the target if an error occurs.
50652 2006-04-22  Yoshinori K. Okuji  <okuji@enbug.org>
50654         * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50655         as it was simply too buggy.
50657 2006-04-21  Yoshinori K. Okuji  <okuji@enbug.org>
50659         * kern/misc.c (grub_lltoa): New function.
50660         (grub_vsprintf): Added support for the long long suffix,
50661         i.e. "ll".
50663 2006-04-20  Hollis Blanchard  <hollis@penguinppc.org>
50665         * Makefile.in (LDFLAGS): Add variable.
50666         (LD): Remove variable.
50667         * configure.ac: Add -m32 to LDFLAGS.
50668         * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50669         * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50670         (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50671         (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50672         suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50673         variables.
50674         * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50675         * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50676         * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50678 2006-04-20  Vesa Jaaskelainen  <chaac@nic.fi>
50680         * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50681         length for unknown glyph.
50683 2006-04-20  Yoshinori K. Okuji  <okuji@enbug.org>
50685         Add support for pre-loaded modules into the EFI port.
50687         * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50688         completely. Accept one more argument DIR. The caller has changed.
50690         * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50692         * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50693         (grub_efi_loaded_image_guid): New variable.
50694         (grub_efi_get_loaded_image): New function.
50695         (grub_arch_modules_addr): Likewise.
50697         * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50698         prototype.
50700         * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50701         (struct grub_efi_loaded_image): New structure.
50702         (grub_efi_loaded_image_t): New type.
50704 2006-04-20  Yoshinori K. Okuji  <okuji@enbug.org>
50706         * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50707         size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50708         grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50710 2006-04-19  Roger Leigh  <rleigh@whinlatter.ukfsn.org>
50712         * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50714 2006-04-19  Yoshinori K. Okuji  <okuji@enbug.org>
50716         * DISTLIST: Added include/grub/efi/console.h,
50717         include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50718         kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50720         * include/grub/efi/console.h: New file.
50721         * include/grub/efi/time.h: Likewise.
50722         * include/grub/i386/efi/kernel.h: Likewise.
50723         * kern/efi/init.c: Likewise.
50724         * kern/efi/mm.c: Likewise.
50725         * term/efi/console.c: Likewise.
50727         * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50728         (grub_stop): Removed.
50729         (grub_get_rtc): Likewise.
50730         (grub_machine_init): Simply call grub_efi_init.
50731         (grub_machine_fini): Call grub_efi_fini.
50733         * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50734         (grub_efi_output_string): Removed.
50735         (grub_efi_stall): New function.
50736         (grub_stop): Likewise.
50737         (grub_get_rtc): Likewise.
50739         * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50740         (grub_efi_stall): New prototype.
50741         (grub_efi_allocate_pages): Likewise.
50742         (grub_efi_free_pages): Likewise.
50743         (grub_efi_get_memory_map): Likewise.
50744         (grub_efi_mm_init): Likewise.
50745         (grub_efi_mm_fini): Likewise.
50746         (grub_efi_init): Likewise.
50747         (grub_efi_fini): Likewise.
50749         * include/grub/i386/efi/time.h: Do not include
50750         grub/symbol.h. Include grub/efi/time.h.
50751         (GRUB_TICKS_PER_SECOND): Removed.
50752         (grub_get_rtc): Likewise.
50754         * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50755         Added padding. The EFI spec is buggy.
50756         (GRUB_EFI_BLACK): New macro.
50757         (GRUB_EFI_BLUE): Likewise.
50758         (GRUB_EFI_GREEN): Likewise.
50759         (GRUB_EFI_CYAN): Likewise.
50760         (GRUB_EFI_RED): Likewise.
50761         (GRUB_EFI_MAGENTA): Likewise.
50762         (GRUB_EFI_BROWN): Likewise.
50763         (GRUB_EFI_LIGHTGRAY): Likewise.
50764         (GRUB_EFI_BRIGHT): Likewise.
50765         (GRUB_EFI_DARKGRAY): Likewise.
50766         (GRUB_EFI_LIGHTBLUE): Likewise.
50767         (GRUB_EFI_LIGHTGREEN): Likewise.
50768         (GRUB_EFI_LIGHTCYAN): Likewise.
50769         (GRUB_EFI_LIGHTRED): Likewise.
50770         (GRUB_EFI_LIGHTMAGENTA): Likewise.
50771         (GRUB_EFI_YELLOW): Likewise.
50772         (GRUB_EFI_WHITE): Likewise.
50773         (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50774         (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50775         (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50776         (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50777         (GRUB_EFI_BACKGROUND_RED): Likewise.
50778         (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50779         (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50780         (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50781         (GRUB_EFI_TEXT_ATTR): Likewise.
50783         * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50784         kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50785         (kernel_mod_HEADERS): Added efi/time.h.
50787 2006-04-18  Yoshinori K. Okuji  <okuji@enbug.org>
50789         * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50790         include/grub/efi/api.h, include/grub/efi/console_control.h,
50791         include/grub/efi/efi.h, include/grub/efi/pe32.h,
50792         include/grub/i386/efi/time.h, kern/efi/efi.c,
50793         kern/i386/efi/init.c, kern/i386/efi/startup.S,
50794         and util/i386/efi/grub-mkimage.c.
50796         * Makefile.in (RMKFILES): Added i386-efi.rmk.
50798         * genmk.rb (PModule#rule): Do not export symbols if
50799         #{prefix}_EXPORTS is set to "no".
50801         * conf/i386-efi.mk: New file.
50802         * conf/i386-efi.rmk: Likewise.
50803         * include/grub/efi/api.h: Likewise.
50804         * include/grub/efi/console_control.h: Likewise.
50805         * include/grub/efi/efi.h: Likewise.
50806         * include/grub/efi/pe32.h: Likewise.
50807         * include/grub/i386/efi/time.h: Likewise.
50808         * kern/efi/efi.c: Likewise.
50809         * kern/i386/efi/init.c: Likewise.
50810         * kern/i386/efi/startup.S: Likewise.
50811         * util/i386/efi/grub-mkimage.c: Likewise.
50813 2006-04-17  Marco Gerards  <marco@gnu.org>
50815         * include/grub/script.h: Include <grub/parser.h> and
50816         "grub_script.tab.h".
50817         (struct grub_lexer_param): New struct.
50818         (struct grub_parser_param): Likewise.
50819         (grub_script_create_arglist): Pass the state in an argument.
50820         (grub_script_add_arglist): Likewise.
50821         (grub_script_create_cmdline): Likewise.
50822         (grub_script_create_cmdblock): Likewise.
50823         (grub_script_create_cmdif): Likewise.
50824         (grub_script_create_cmdmenu): Likewise.
50825         (grub_script_add_cmd): Likewise.
50826         (grub_script_arg_add): Likewise.
50827         (grub_script_lexer_ref): Likewise.
50828         (grub_script_lexer_deref): Likewise.
50829         (grub_script_lexer_record_start): Likewise.
50830         (grub_script_lexer_record_stop): Likewise.
50831         (grub_script_mem_record): Likewise.
50832         (grub_script_mem_record_stop): Likewise.
50833         (grub_script_malloc): Likewise.
50834         (grub_script_yylex): Likewise.
50835         (grub_script_yyparse): Likewise.
50836         (grub_script_yyerror): Likewise.
50837         (grub_script_yylex): Likewise.
50838         (grub_script_lexer_init): Return the state.
50840         * normal/lexer.c (grub_script_lexer_state): Removed variable.
50841         (grub_script_lexer_done): Likewise.
50842         (grub_script_lexer_getline): Likewise.
50843         (grub_script_lexer_refs): Likewise.
50844         (script): Likewise.
50845         (newscript): Likewise.
50846         (record): Likewise.
50847         (recording): Likewise.
50848         (recordpos): Likewise.
50849         (recordlen): Likewise.
50850         (grub_script_lexer_init): Return the state instead of setting
50851         global variables.
50852         (grub_script_lexer_ref): Use the newly added argument for state
50853         instead of globals.
50854         (grub_script_lexer_deref): Likewise.
50855         (grub_script_lexer_record_start): Likewise.
50856         (grub_script_lexer_record_stop): Likewise.
50857         (recordchar): Likewise.
50858         (nextchar): Likewise.
50859         (grub_script_yylex2): Likewise.
50860         (grub_script_yylex): Likewise.
50861         (grub_script_yyerror): Likewise.
50863         * normal/parser.y (func_mem): Removed variable.
50864         (menu_entry): Likewise.
50865         (err): Likewise.
50866         (%lex-param): New parser option.
50867         (%parse-param): Likewise.
50868         (script): Always return the AST.
50869         (argument): Pass the state around.
50870         (arguments): Likewise.
50871         (grubcmd): Likewise.
50872         (commands): Likewise.
50873         (function): Likewise.
50874         (menuentry): Likewise.
50875         (if_statement): Likewise.
50876         (if): Likewise.
50878         * normal/script.c (grub_script_memused): Removed variable.
50879         (grub_script_parsed): Likewise.
50880         (grub_script_malloc): Added a state argument.  Use that instead of
50881         global variables.
50882         (grub_script_mem_record): Likewise.
50883         (grub_script_mem_record_stop): Likewise.
50884         (grub_script_arg_add): Likewise.
50885         (grub_script_add_arglist): Likewise.
50886         (grub_script_create_cmdline): Likewise.
50887         (grub_script_create_cmdif): Likewise.
50888         (grub_script_create_cmdmenu): Likewise.
50889         (grub_script_add_cmd): Likewise.
50890         (grub_script_parse): Setup the state before calling the parser.
50892 2006-04-16  Marco Gerards  <marco@gnu.org>
50894         * normal/command.c (grub_command_init): Remove the title command.
50896         * normal/lexer.c (grub_script_yylex): Renamed from this...
50897         (grub_script_yylex2): ... to this.
50898         (grub_script_yylex): New function.  Temporary
50899         introduced to filter some tokens.
50900         (grub_script_yyerror): Print a newline.
50902         * normal/main.c (read_config_file): Output information about the
50903         lines that contain errors.  Wait for a key after all lines have
50904         been processed.  Don't return an empty menu.
50906         * normal/parser.y (func_mem): Don't initialize.
50907         (menu_entry): Likewise.
50908         (err): New variable.
50909         (script): Don't return anything when an error was encountered.
50910         (ws, returns): Removed rules.
50911         (argument): Disabled concatenated variable support.
50912         (arguments): Remove explicit separators.
50913         (grubcmd): Likewise.
50914         (function): Likewise.
50915         (menuentry): Likewise.
50916         (if): Likewise.
50917         (commands): Likewise.  Add error handling.
50919         * normal/script.c (grub_script_create_cmdline): If
50920         `grub_script_parsed' is 0, assume the parser encountered an error.
50922 2006-04-02  Yoshinori K. Okuji  <okuji@enbug.org>
50924         * configure.ac: Add support for EFI. Fix the typo
50925         BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50927 2006-04-01  Vesa Jaaskelainen  <chaac@nic.fi>
50929         * util/unifont2pff.rb: Removed unnecessary byte ordering.  Now
50930         foreign multibyte characters should be shown correctly.
50932 2006-04-01  Vesa Jaaskelainen  <chaac@nic.fi>
50934         * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50935         calculation.
50936         (read_config_file): Made it to close file before returning.
50938 2006-03-31  Vesa Jaaskelainen  <chaac@nic.fi>
50940         * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50941         include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50942         video/i386/pc/vbefill.c.
50944         * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50945         video/i386/pc/vbefill.c.
50947         * include/grub/video.h (grub_video_blit_format): New enum.
50948         (grub_video_mode_info): Added new member blit_format.
50949         (grub_video_get_blit_format): New function prototype.
50951         * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50952         function prototype.
50953         (grub_video_vbe_map_rgb): Likewise.
50954         (grub_video_vbe_unmap_color): Likewise.
50956         * include/grub/i386/pc/vbeblit.h: New file.
50958         * include/grub/i386/pc/vbefill.h: New file.
50960         * video/video.c (grub_video_get_blit_format): New function.
50961         (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50962         (grub_video_vbe_map_rgb): Likewise.
50963         (grub_video_vbe_unmap_color): Likewise.
50965         * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50966         optimized fills.
50967         (grub_video_vbe_blit_render_target): Changed to use more optimized
50968         blits.
50969         (grub_video_vbe_setup): Added detection for optimized settings.
50970         (grub_video_vbe_create_render_target): Likewise.
50972         * video/i386/pc/vbeblit.c: New file.
50974         * video/i386/pc/vbefill.c: New file.
50976 2006-03-30  Vesa Jaaskelainen  <chaac@nic.fi>
50978         * font/manager.c (grub_font_get_glyph): Removed font fixup from
50979         here...
50981         * util/unifont2pff.rb: ... and moved it to here.  Improved argument
50982         parsing to support both hex and dec ranges.  If filename was missing
50983         show usage information.
50985 2006-03-14  Vesa Jaaskelainen  <chaac@nic.fi>
50987         * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50988         video/video.c, commands/videotest.c.  Removed term/i386/pc/vesafb.c.
50990         * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50991         gfxterm.mod, videotest.mod.  Removed vga.mod, vesafb.mod.
50992         (video_mod_SOURCES): Added.
50993         (video_mod_CFLAGS): Likewise.
50994         (video_mod_LDFLAGS): Likewise.
50995         (gfxterm_mod_SOURCES): Likewise.
50996         (gfxterm_mod_CFLAGS): Likewise.
50997         (gfxterm_mod_LDFLAGS): Likewise.
50998         (videotest_mod_SOURCES): Likewise.
50999         (videotest_mod_CFLAGS): Likewise.
51000         (videotest_mod_LDFLAGS): Likewise.
51001         (vesafb_mod_SOURCES): Removed.
51002         (vesafb_mod_CFLAGS): Likewise.
51003         (vesafb_mod_LDFLAGS): Likewise.
51004         (vga_mod_SOURCES): Likewise.
51005         (vga_mod_CFLAGS): Likewise.
51006         (vga_mod_LDFLAGS): Likewise.
51008         * commands/videotest.c: New file.
51010         * font/manager.c (fill_with_default_glyph): Modified to use
51011         grub_font_glyph.
51012         (grub_font_get_glyph): Likewise.
51013         (fontmanager): Renamed from this...
51014         (font_manager): ... to this.
51016         * include/grub/font.h (grub_font_glyph): Added new structure.
51017         (grub_font_get_glyph): Modified to use grub_font_glyph.
51019         * include/grub/misc.h (grub_abs): Added as inline function.
51021         * include/grub/video.h: New file.
51023         * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
51024         (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
51025         (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
51026         (grub_vbe_get_controller_info): Renamed from this...
51027         (grub_vbe_bios_get_controller_info): ... to this.
51028         (grub_vbe_get_mode_info): Renamed from this...
51029         (grub_vbe_bios_get_mode_info): ... to this.
51030         (grub_vbe_set_mode): Renamed from this...
51031         (grub_vbe_bios_set_mode): ... to this.
51032         (grub_vbe_get_mode): Renamed from this...
51033         (grub_vbe_bios_get_mode): ... to this.
51034         (grub_vbe_set_memory_window): Renamed from this...
51035         (grub_vbe_bios_set_memory_window): ... to this.
51036         (grub_vbe_get_memory_window): Renamed from this...
51037         (grub_vbe_bios_get_memory_window): ... to this.
51038         (grub_vbe_set_scanline_length): Renamed from this...
51039         (grub_vbe_set_scanline_length): ... to this.
51040         (grub_vbe_get_scanline_length): Renamed from this...
51041         (grub_vbe_bios_get_scanline_length): ... to this.
51042         (grub_vbe_set_display_start): Renamed from this...
51043         (grub_vbe_bios_set_display_start): ... to this.
51044         (grub_vbe_get_display_start): Renamed from this...
51045         (grub_vbe_bios_get_display_start): ... to this.
51046         (grub_vbe_set_palette_data): Renamed from this...
51047         (grub_vbe_bios_set_palette_data): ... to this.
51048         (grub_vbe_set_pixel_rgb): Removed.
51049         (grub_vbe_set_pixel_index): Likewise.
51051         * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
51052         from this...
51053         (grub_vbe_bios_get_controller_info): ... to this.
51054         (grub_vbe_get_mode_info): Renamed from this...
51055         (grub_vbe_bios_get_mode_info): ... to this.
51056         (grub_vbe_set_mode): Renamed from this...
51057         (grub_vbe_bios_set_mode): ... to this.
51058         (grub_vbe_get_mode): Renamed from this...
51059         (grub_vbe_bios_get_mode): ... to this.
51060         (grub_vbe_set_memory_window): Renamed from this...
51061         (grub_vbe_bios_set_memory_window): ... to this.
51062         (grub_vbe_get_memory_window): Renamed from this...
51063         (grub_vbe_bios_get_memory_window): ... to this.
51064         (grub_vbe_set_scanline_length): Renamed from this...
51065         (grub_vbe_set_scanline_length): ... to this.
51066         (grub_vbe_get_scanline_length): Renamed from this...
51067         (grub_vbe_bios_get_scanline_length): ... to this.
51068         (grub_vbe_set_display_start): Renamed from this...
51069         (grub_vbe_bios_set_display_start): ... to this.
51070         (grub_vbe_get_display_start): Renamed from this...
51071         (grub_vbe_bios_get_display_start): ... to this.
51072         (grub_vbe_set_palette_data): Renamed from this...
51073         (grub_vbe_bios_set_palette_data): ... to this.
51074         (grub_vbe_bios_get_controller_info): Fixed problem with registers
51075         getting corrupted after calling it.  Added more pushes and pops.
51076         (grub_vbe_bios_set_mode): Likewise.
51077         (grub_vbe_bios_get_mode): Likewise.
51078         (grub_vbe_bios_get_memory_window): Likewise.
51079         (grub_vbe_bios_set_scanline_length): Likewise.
51080         (grub_vbe_bios_get_scanline_length): Likewise.
51081         (grub_vbe_bios_get_display_start): Likewise.
51082         (grub_vbe_bios_set_palette_data): Likewise.
51084         * normal/cmdline.c (cl_set_pos): Refresh the screen.
51085         (cl_insert): Likewise.
51086         (cl_delete): Likewise.
51088         * term/gfxterm.c: New file.
51090         * term/i386/pc/vesafb.c: Removed file.
51092         * video/video.c: New file.
51094         * video/i386/pc/vbe.c (real2pm): Added new function.
51095         (grub_video_vbe_draw_pixel): Likewise.
51096         (grub_video_vbe_get_video_ptr): Likewise.
51097         (grub_video_vbe_get_pixel): Likewise
51098         (grub_video_vbe_init): Likewise.
51099         (grub_video_vbe_fini): Likewise.
51100         (grub_video_vbe_setup): Likewise.
51101         (grub_video_vbe_get_info): Likewise.
51102         (grub_video_vbe_set_palette): Likewise.
51103         (grub_video_vbe_get_palette): Likewise.
51104         (grub_video_vbe_set_viewport): Likewise.
51105         (grub_video_vbe_get_viewport): Likewise.
51106         (grub_video_vbe_map_color): Likewise.
51107         (grub_video_vbe_map_rgb): Likewise.
51108         (grub_video_vbe_map_rgba): Likewise.
51109         (grub_video_vbe_unmap_color): Likewise.
51110         (grub_video_vbe_fill_rect): Likewise.
51111         (grub_video_vbe_blit_glyph): Likewise.
51112         (grub_video_vbe_blit_bitmap): Likewise.
51113         (grub_video_vbe_blit_render_target): Likewise.
51114         (grub_video_vbe_scroll): Likewise.
51115         (grub_video_vbe_swap_buffers): Likewise.
51116         (grub_video_vbe_create_render_target): Likewise.
51117         (grub_video_vbe_delete_render_target): Likewise.
51118         (grub_video_vbe_set_active_render_target): Likewise.
51119         (grub_vbe_set_pixel_rgb): Remove function.
51120         (grub_vbe_set_pixel_index): Likewise.
51121         (index_color_mode): Remove static variable.
51122         (active_mode): Likewise.
51123         (framebuffer): Likewise.
51124         (bytes_per_scan_line): Likewise.
51125         (grub_video_vbe_adapter): Added new static variable.
51126         (framebuffer): Likewise.
51127         (render_target): Likewise.
51128         (initial_mode): Likewise.
51129         (mode_in_use): Likewise.
51130         (mode_list): Likewise.
51132 2006-03-10  Marco Gerards  <marco@gnu.org>
51134         * configure.ac (AC_INIT): Bumped to 1.93.
51136         * DISTLIST: Added `include/grub/hfs.h'.
51138 2006-02-01  Yoshinori K. Okuji  <okuji@enbug.org>
51140         * boot/i386/pc/boot.S (general_error): Before looping, try INT
51141         18H, which might help the BIOS falling back to next boot media.
51143 2006-01-25  Yoshinori K. Okuji  <okuji@enbug.org>
51145         * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51146         Poe Chen <poe.poechen@gmail.com>.
51148 2006-01-17  Marco Gerards  <marco@gnu.org>
51150         * include/grub/normal.h: Include <grub/script.h>.
51151         (grub_command_list): Removed struct.
51152         (grub_command_list_t): Removed type.
51153         (grub_menu_entry): Remove members `num' and `command_list'.  Add
51154         members `commands' and `sourcecode'.
51155         * include/grub/script.h: Add inclusion guards.
51156         (grub_script_cmd_menuentry): New struct.
51157         (grub_script_execute_menuentry): New prototype.
51158         (grub_script_lexer_record_start): Likewise.
51159         (grub_script_lexer_record_stop): Likewise.
51160         * normal/execute.c (grub_script_execute_menuentry): New function.
51161         * normal/lexer.c (record, recording, recordpos, recordlen): New
51162         variables.
51163         (grub_script_lexer_record_start): New function.
51164         (grub_script_lexer_record_stop): Likewise.
51165         (recordchar): Likewise.
51166         (nextchar): Likewise.
51167         (grub_script_yylex): Use `nextchar' to fetch new characters.  Use
51168         2048 as the buffer size.  Add the tokens `menuentry' and `@'.
51169         * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51170         (current_menu): New variable.
51171         (free_menu): Mainly rewritten.
51172         (grub_normal_menu_addentry): New function.
51173         (read_config_file): Rewritten.
51174         * normal/menu.c (run_menu_entry): Mainly rewritten.
51175         * normal/menu_entry.c (make_screen): Rewritten the code to insert
51176         the menu entry.
51177         (run): Mainly rewritten.
51178         * normal/parser.y (menu_entry): New variable.
51179         (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51180         (menuentry): New rule.
51181         (command): Add `menuentry'.
51182         (if_statement): Allow additional returns before `fi'.
51183         * normal/script.c (grub_script_create_cmdmenu): New function.
51185 2006-01-03  Marco Gerards  <marco@gnu.org>
51187         * INSTALL: GNU Bison is required.
51188         * configure.ac: Rewritten the test to detect Bison.
51189         * Makefile.in (YACC): New variable.  Reported by Xun Sun
51190         <xun.sun.cn@gmail.com>.
51192 2006-01-03  Marco Gerards  <marco@gnu.org>
51194         * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51195         the HFS+ filesystem to filesystem blocks.
51196         (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51197         GCC warning is silenced.
51199 2006-01-03  Marco Gerards  <marco@gnu.org>
51201         * partmap/apple.c (apple_partition_map_iterate): Convert the data
51202         read from disk from big endian to host byte order.
51204 2006-01-03  Hollis Blanchard  <hollis@penguinppc.org>
51206         * fs/hfs.c: Include <grub/hfs.h>.  Added reference to the official
51207         documentation.
51208         (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51209         (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51210         embedded HFS+ filesystem.
51211         (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51212         (grub_hfs_sblock): Move from here...
51213         * include/grub/hfs.h: To here...  New file.
51214         * fs/hfsplus.c: Include <grub/hfs.h>.  Added reference to the official
51215         documentation.
51216         (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51217         New macros.
51218         (grub_hfsplus_volheader): Change type of member `magic' to
51219         `grub_uint16_t'.
51220         (grub_hfsplus_data): Add new member `embedded_offset'.
51221         (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51222         returned block.
51223         (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51224         Calculate the offset.
51226 2005-12-25  Yoshinori K. Okuji  <okuji@enbug.org>
51228         * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51229         Removed.
51230         (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51232 2005-12-25  Yoshinori K. Okuji  <okuji@enbug.org>
51234         * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51235         ENV->NAME is NULL after allocating ENV->VALUE.
51237 2005-12-25  Marco Gerards  <marco@gnu.org>
51239         * kern/env.c (grub_env_set): Rewritten the error handling code.
51241 2005-12-25  Yoshinori K. Okuji  <okuji@enbug.org>
51243         * geninit.sh: Made more robust, and more portable.
51245 2005-12-25  Marco Gerards  <marco@gnu.org>
51247         Add support for Apple HFS+ filesystems.
51249         * fs/hfsplus.c: New file.
51251         * DISTLIST: Added `fs/hfsplus.c'.
51253         * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51254         (hfsplus_mod_SOURCES): New variable.
51255         (hfsplus_mod_CFLAGS): Likewise.
51256         (hfsplus_mod_LDFLAGS): Likewise.
51257         * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51258         (grub_setup_SOURCES): Likewise.
51259         (grub_mkdevicemap_SOURCES): Likewise.
51260         (grub_emu_SOURCES): Likewise.
51261         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51263         * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51265         * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51267 2005-12-25  Yoshinori K. Okuji  <okuji@enbug.org>
51269         * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51270         commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51271         include/grub/parser.h, include/grub/script.h, kern/parser.c,
51272         kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51273         normal/lexer.c, normal/parser.y, normal/script.c, and
51274         partmap/gpt.c.
51275         Removed kern/sparc64/cache.c.
51277         * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51278         grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51279         grub_emu_init.c.
51281         * configure.ac (AC_INIT): Bumped to 1.92.
51283 2005-12-24  Vesa Jaaskelainen  <chaac@nic.fi>
51285         * kern/err.c (grub_error_push): Added new function to support error
51286         stacks.
51287         (grub_error_pop): Likewise.
51288         (grub_error_stack_items): New local variable to support error stacks.
51289         (grub_error_stack_pos): Likewise.
51290         (grub_error_stack_assert): Likewise.
51291         (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51292         stack depth.
51293         (grub_print_error): Added support to print errors from error stack.
51295         * include/grub/err.h (grub_error_push): Added function prototype.
51296         (grub_error_pop): Likewise.
51298 2005-12-09  Hollis Blanchard  <hollis@penguinppc.org>
51300         * configure.ac: Accept `powerpc64' as host_cpu.
51301         (amd64): Rename to `biarch32'.
51303         * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51304         non-cacheline-aligned addresses.
51306         * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51307         (grub_dl_flush_cache): Likewise.  Only call `grub_arch_sync_caches'
51308         if `size' is non-zero.
51310 2005-12-03  Marco Gerards  <mgerards@xs4all.nl>
51312         * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51313         and `cd' to make sure the filename is not prefixed with a
51314         directory name.
51315         (pkgdata_MODULES): Add `gpt.mod'.
51316         (gpt_mod_SOURCES): New variable.
51317         (gpt_mod_CFLAGS): Likewise.
51318         (gpt_mod_LDFLAGS): Likewise.
51320         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51322         * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51323         New macro.
51325         * partmap/gpt.c: New file.
51327         * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51328         GPT partition map is detected.
51330 2005-12-03  Vincent Pelletier  <subdino2004@yahoo.fr>
51332         * commands/i386/pc/play.c: New file.
51333         * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51334         (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51335         macros.
51337 2005-11-27  Marco Gerards  <mgerards@xs4all.nl>
51339         * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51340         ((unused))' to silence gcc warning.
51342 2005-11-26  Hollis Blanchard  <hollis@penguinppc.org>
51344         * configure.ac: Correct `AC_PROG_YACC' test.
51346 2005-11-22  Hollis Blanchard  <hollis@penguinppc.org>
51348         * util/powerpc/ieee1275/grub-install.in: Run the mount point
51349         check before installing files.
51351 2005-11-22  Mike Small  <smallm@panix.com>
51353         * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51354         number regex so multidigit numbers are recognized correctly.
51356 2005-11-22  Mike Small  <smallm@panix.com>
51358         * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51359         debugging message before attempting to claim memory.
51360         (grub_rescue_cmd_initrd): Add a claim debugging message and try
51361         multiple addresses in case of failure.
51363 2005-11-22  Hollis Blanchard  <hollis@penguinppc.org>
51365         * term/tparm.c (get_space): Remove empty `if' statement.
51367         * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51369         * kern/parser.c (check_varstate): Rename `state' to 's'.
51371 2005-11-22  Hollis Blanchard  <hollis@penguinppc.org>
51373         * partmap/acorn.c: Change `unsigned' to `unsigned int'.  Move all
51374         variable definitions to the beginning of each function.  Sort stack
51375         variables by size.
51376         (find): Rename to `acorn_partition_map_find'.  Cast `grub_disk_read'
51377         `buf' argument to `char *'.
51379 2005-11-22  Hollis Blanchard  <hollis@penguinppc.org>
51381         * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51382         (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51383         minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51384         hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51385         help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51386         sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51387         configfile.mod, search.mod, gzio.mod and test.mod.
51388         (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51389         (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51390         (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51391         (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51392         (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51393         (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51394         (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51395         (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51396         (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51397         (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51398         (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51399         (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51400         (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51401         (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51402         (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51403         (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51404         (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51405         (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51406         (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51407         (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51408         (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51409         (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51410         (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51412         * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51413         `grep --include'.
51414         (pkgdata_MODULES): Add test.mod.
51416 2005-11-18  Timothy Baldwin  <T.E.Baldwin99@members.leeds.ac.uk>
51418         * genmk.rb: Fixed list rules moved to Makefile.in.  Recognise
51419         appending to variables with "+=".
51420         (PModule): Use full pathname to generate *.lst filenames.
51422         * Makefile.in: Fixed list rules moved from genmk.rb.
51423         (.DELETE_ON_ERROR): New special target.
51424         (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51426         * conf/i386-pc.rmk: Include conf/common.mk.
51427         (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51428         minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51429         hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51430         help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51431         sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51432         configfile.mod, search.mod, gzio.mod and test.mod.
51433         (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51434         (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51435         (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51436         (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51437         (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51438         (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51439         (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51440         (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51441         (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51442         (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51443         (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51444         (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51445         (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51446         (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51447         (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51448         (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51449         (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51450         (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51451         (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51452         (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51453         (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51454         (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51455         (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51456         here...
51457         * conf/common.rmk: ... to here.  New file.
51459         * conf/common.mk: New file.
51461 2005-11-18  Yoshinori K. Okuji  <okuji@enbug.org>
51463         * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51464         (grub_script.tab.c): ... here.
51466         * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51467         (grub_script.tab.c): ... here.
51469         * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51470         (grub_script.tab.c): ... here.
51472         * normal/command.c (grub_command_find): Fixed a memory leak of
51473         MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51475 2005-11-13  Timothy Baldwin  <T.E.Baldwin99@members.leeds.ac.uk>
51477         * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51478         "@" which marks the start of a comment on ARM.
51479         (VARIABLE): Likewise.
51481 2005-11-13  Timothy Baldwin  <T.E.Baldwin99@members.leeds.ac.uk>
51483         Add support for Linux/ADFS partition tables.
51485         * partmap/acorn.c: New file.
51487         * include/grub/acorn_filecore.h: Likewise.
51489         * DISTLIST: Added `partmap/acorn.c' and
51490         `include/grub/acorn_filecore.h'.
51492         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51493         `partmap/acorn.c'.
51494         (pkgdata_MODULES): Add `acorn.mod'.
51495         (acorn_mod_SOURCES): New variable.
51496         (acorn_mod_CFLAGS): Likewise.
51498         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51499         `partmap/acorn.c'.
51500         (pkgdata_MODULES): Add `acorn.mod'.
51501         (acorn_mod_SOURCES): New variable.
51502         (acorn_mod_CFLAGS): Likewise.
51504         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51505         (pkgdata_MODULES): Add `acorn.mod'.
51506         (acorn_mod_SOURCES): New variable.
51507         (acorn_mod_CFLAGS): Likewise.
51508         (acorn_mod_LDFLAGS): Likewise.
51510         * include/types.h (grub_disk_addr_t): New typedef.
51512 2005-11-13  Marco Gerards  <mgerards@xs4all.nl>
51514         * geninit.sh: New file.
51516         * geninitheader.sh: Likewise.
51518         * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51519         * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51520         * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51521         * commands/configfile.c (grub_configfile_init)
51522         (grub_configfile_fini): Likewise.
51523         * commands/default.c (grub_default_init, grub_default_fini):
51524         Likewise.
51525         * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51526         * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51527         * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51528         * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51529         Likewise.
51530         * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51531         * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51532         Likewise.
51533         * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51534         * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51535         Likewise.
51536         * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51537         Likewise.
51538         * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51539         Likewise.
51540         * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51541         * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51542         * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51543         * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51544         * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51545         * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51546         * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51547         * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51548         * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51549         * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51550         * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51551         * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51552         * partmap/amiga.c (grub_amiga_partition_map_init)
51553         (grub_amiga_partition_map_fini): Likewise.
51554         * partmap/apple.c (grub_apple_partition_map_init)
51555         (grub_apple_partition_map_fini): Likewise.
51556         * partmap/pc.c (grub_pc_partition_map_init)
51557         (grub_pc_partition_map_fini): Likewise.
51558         * partmap/sun.c (grub_sun_partition_map_init,
51559         grub_sun_partition_map_fini): Likewise.
51560         * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51561         Likewise.
51563         * util/grub-emu.c: Include <grub_modules_init.h>.
51564         (main): Don't initialize and de-initialize any modules directly,
51565         use `grub_init_all' and `grub_fini_all' instead.
51567         * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51568         `grub_vesafb_mod_init'.
51569         (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'.  Updated
51570         all users.
51571         * term/i386/pc/vga.c (grub_vga_init): Renamed to
51572         `grub_vga_mod_init'.  Updated all users.
51573         (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51575         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51576         (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51577         rules.
51579         * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51580         Generate a function to initialize the module in utilities.
51581         Updated all callers.
51582         (GRUB_MOD_FINI): Add argument `name'.  Generate a function to
51583         initialize the module in utilities.  Updated all callers.
51585 2005-11-09  Hollis Blanchard  <hollis@penguinppc.org>
51587         * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51588         escape sequence and a literal ^L to clear the screen.
51590         * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51591         when returning from Open Firmware.
51593 2005-11-09  Hollis Blanchard  <hollis@penguinppc.org>
51595         * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51596         (grub_ofconsole_height): Likewise.
51597         (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51598         manually insert a '\n'.
51599         (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51600         `grub_ofconsole_height'.  Return early if these are already set.
51602 2005-11-07  Vincent Pelletier  <subdino2004@yahoo.fr>
51604         * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51605         `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51606         `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51607         `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51608         and `normal/script.c'.
51609         (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51610         `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51611         (test_mod_SOURCES): New variable.
51612         (test_mod_CFLAGS): Likewise.
51613         (test_mod_LDFLAGS): Likewise.
51614         (pkgdata_MODULES): Add `test.mod'.
51615         (grub_script.tab.c): New rule.
51616         (grub_script.tab.h): Likewise.
51618 2005-11-07  Marco Gerards  <mgerards@xs4all.nl>
51620         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51621         `commands/test.c', `normal/execute.c', `normal/lexer.c',
51622         `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51623         (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51624         `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51625         (test_mod_SOURCES): New variable.
51626         (test_mod_CFLAGS): Likewise.
51627         (pkgdata_MODULES): Add `test.mod'.
51628         (grub_script.tab.c): New rule.
51629         (grub_script.tab.h): Likewise.
51631 2005-11-06  Marco Gerards  <mgerards@xs4all.nl>
51633         Add initial scripting support.
51635         * commands/test.c: New file.
51636         * include/grub/script.h: Likewise.
51637         * normal/execute.c: Likewise.
51638         * normal/function.c: Likewise.
51639         * normal/lexer.c: Likewise.
51640         * normal/parser.y: Likewise.
51641         * normal/script.c: Likewise.
51643         * configure.ac: Add `AC_PROG_YACC' test.
51645         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51646         `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51647         `normal/function.c' and `normal/script.c'.
51648         (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51649         `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51650         (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51651         variables.
51652         (pkgdata_MODULES): Add `test.mod'.
51653         (grub_script.tab.c): New rule.
51654         (grub_script.tab.h): Likewise.
51656         * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51658         * include/grub/normal.h (grub_test_init): New prototype.
51659         (grub_test_fini): Likewise.
51661         * normal/command.c: Include <grub/script.h>.
51662         (grub_command_execute): Rewritten.
51664         * util/grub-emu.c (main): Call `grub_test_init' and
51665         `grub_test_fini'.
51667 2005-11-03  Hollis Blanchard  <hollis@penguinppc.org>
51669         * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51670         to 0.
51671         * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51672         there are no pending characters.
51674 2005-11-03  Hollis Blanchard  <hollis@penguinppc.org>
51676         * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51677         `grub_strndup' to drop device arguments. Replace unnecessary
51678         `grub_strndup' with `grub_strdup'.
51680 2005-11-03  Hollis Blanchard  <hollis@penguinppc.org>
51682         * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51683         `debug' environment variable has been set.
51685 2005-11-02  Hollis Blanchard  <hollis@penguinppc.org>
51687         * Makefile.in (install-local): Use $(DATA).
51688         (uninstall): Likewise.
51689         * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51690         (sbin_UTILITIES): ... to here.
51691         (sbin_SCRIPTS): New variable.
51692         (grub_install_SOURCES): New variable.
51693         * util/powerpc/ieee1275/grub-install.in: New file.
51694         * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51695         variable.
51696         (add_segments): Call `grub_util_get_path'.
51698 2005-10-28  Yoshinori K. Okuji  <okuji@enbug.org>
51700         From Timothy Baldwin:
51701         * commands/ls.c (grub_ls_list_files): Close FILE with
51702         grub_file_close.
51703         * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51705 2005-10-24  Marco Gerards  <mgerards@xs4all.nl>
51707         * include/grub/parser.h: New file.
51709         * kern/parser.c: Likewise.
51711         * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51712         (grub_setup_SOURCES): Likewise.
51713         (grub_probefs_SOURCES): Likewise.
51714         (grub_emu_SOURCES): Likewise.
51715         (kernel_img_HEADERS): Add `parser.h'.
51717         * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51718         (grub_emu_SOURCES): Add `kern/parser.c'.
51719         (grubof_SOURCES): Likewise.
51721         * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51722         (grubof_SOURCES): Add `kern/parser.c'.
51724         * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51726         * kern/misc.c (grub_split_cmdline): Removed function.
51728         * kern/rescue.c: Include <grub/parser.h>.
51729         (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51730         of `grub_split_cmdline'.
51732         * normal/command.c: Include <grub/parser.h>.
51733         (grub_command_execute):  Use `grub_parser_split_cmdline' instead
51734         of `grub_split_cmdline'.
51736         * normal/completion.c: Include <grub/parser.h>.
51737         (cmdline_state): New variable.
51738         (iterate_dir): End the filename with a quote depending on the
51739         command line state.
51740         (get_state): new function.
51741         (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51742         split the arguments and determine the current argument.  When the
51743         argument string is not quoted, escape all spaces.
51745 2005-10-23  Vincent Pelletier  <subdino2004@yahoo.fr>
51747         * normal/sparc64/setjmp.S: New file.
51749 2005-10-23  Vincent Pelletier  <subdino2004@yahoo.fr>
51751         * include/grub/sparc64/libgcc.h: New file.
51752         * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51753         (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51754         normal/sparc64/setjmp.c.
51756 2005-10-23  Vincent Pelletier  <subdino2004@yahoo.fr>
51758         * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51759         * kern/sparc64/cache.S: New file.
51760         * kern/sparc64/cache.c: Removed.
51761         * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51762         (COMMON_CFLAGS): Add -mno-app-regs.  Remove -mcpu=v9 and
51763         -mtune=ultrasparc.
51764         (COMMON_LDFLAGS): Add -melf64_sparc.
51765         (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51766         (grubof_SOURCES): Use cache.S instead of cache.c.
51767         (grubof_LDFLAGS): Add -mno-app-regs.  Replace "-Xlinker
51768         --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51769         (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51770         commented though.
51771         (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51772         (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51773         (linux_mod_CFLAGS): Commented out.
51774         (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51775         out because module isn't built.
51776         (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51777         (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51778         (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51779         (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51780         (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51781         (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51782         (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51783         (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51784         (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51785         (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51786         (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51787         (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51788         (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51789         (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51791 2005-10-20  Yoshinori K. Okuji  <okuji@enbug.org>
51793         * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51794         grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51795         longer, because HFS should not be used on PC.
51797 2005-10-20  Timothy Baldwin  <T.E.Baldwin99@members.leeds.ac.uk>
51799         * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51800         consistently within the loop.
51802 2005-10-15  Marco Gerards  <mgerards@xs4all.nl>
51804         * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51805         directory can not be read.
51807 2005-10-15  Yoshinori K. Okuji  <okuji@enbug.org>
51809         * configure.ac (AC_INIT): Increase the version number to 1.91.
51811         * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51812         include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51813         term/i386/pc/serial.c.
51815 2005-10-15  Yoshinori K. Okuji  <okuji@enbug.org>
51817         * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51818         file size must be permitted.
51820         * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51821         between %ah and %al.
51823 2005-10-15  Yoshinori K. Okuji  <okuji@enbug.org>
51825         * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51826         grub_uint64_t.
51827         Call the hook with a NUL-terminated filename.
51828         (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51829         grub_cpu_to_be32.
51831         * kern/term.c (cursor_state): New variable.
51832         (grub_term_set_current): Reset the cursor state on a new
51833         terminal.
51834         (grub_setcursor): Rewritten to use CURSOR_STATE.
51835         (grub_getcursor): New function.
51837         * include/grub/term.h (grub_getcursor): New prototype.
51839         * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51840         integers on ARM. Reported by Timothy Baldwin
51841         <T.E.Baldwin99@members.leeds.ac.uk>.
51843 2005-10-11  Marco Gerards  <mgerards@xs4all.nl>
51845         * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51846         allocated.
51847         (grub_sfs_dir): Likewise.
51849 2005-10-09  Marco Gerards  <mgerards@xs4all.nl>
51851         Add support for the SFS filesystem.
51853         * fs/sfs.c: New file.
51855         * DISTLIST: Added `fs/sfs.c'.
51857         * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51858         (grub_probefs_SOURCES): Likewise.
51859         (grub_emu_SOURCES): Likewise.
51860         (pkgdata_MODULES): Add `sfs.mod'.
51861         (sfs_mod_SOURCES): New variable.
51862         (sfs_mod_CFLAGS): Likewise.
51863         (sfs_mod_LDFLAGS): Likewise.
51865         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51866         (pkgdata_MODULES): Add `sfs.mod'.
51867         (sfs_mod_SOURCES): New variable.
51868         (sfs_mod_CFLAGS): Likewise.
51870         * util/grub-emu.c (main): Call `grub_sfs_init' and
51871         `grub_sfs_fini'.
51873         * include/grub/fs.h (grub_sfs_init): New prototype.
51874         (grub_sfs_fini): Likewise.
51876 2005-10-07  Marco Gerards  <mgerards@xs4all.nl>
51878         Add support for the AFFS filesystem.
51880         * fs/affs.c: New file.
51882         * DISTLIST: Added `fs/affs.c'.
51884         * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51885         (grub_probefs_SOURCES): Likewise.
51886         (grub_emu_SOURCES): Likewise.
51887         (pkgdata_MODULES): Add `affs.mod'.
51888         (affs_mod_SOURCES): New variable.
51889         (affs_mod_CFLAGS): Likewise.
51890         (affs_mod_LDFLAGS): Likewise.
51892         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51893         (pkgdata_MODULES): Add `affs.mod'.
51894         (affs_mod_SOURCES): New variable.
51895         (affs_mod_CFLAGS): Likewise.
51897         * util/grub-emu.c (main): Call `grub_affs_init' and
51898         `grub_affs_fini'.
51900         * include/grub/fs.h (grub_affs_init): New prototype.
51901         (grub_affs_fini): Likewise.
51903 2005-10-01  Marco Gerards  <mgerards@xs4all.nl>
51905         * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51907 2005-10-01  Marco Gerards  <mgerards@xs4all.nl>
51909         * configure.ac: Accept `x86_64' as host_cpu.  In that case add
51910         `-m32' to CFLAGS.
51912         * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51913         linking.
51915         * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51916         (COMMON_LDFLAGS): New variable.
51917         (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51918         (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51919         (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51920         (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51921         (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51922         (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51923         (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51924         (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51925         (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51926         (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51927         (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51928         (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51929         (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51930         (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51931         (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51932         variables.
51933         (normal_mod_ASFLAGS): Add `-m32'.
51935         * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51936         (grub_host_size_t, grub_host_ssize_t): New types.
51937         (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51938         dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51939         `GRUB_HOST_SIZEOF_VOID_P'.
51941         * include/grub/kernel.h (struct grub_module_header): Type of
51942         member offset changed to `grub_host_off_t'.  Type of member size
51943         changed to `grub_host_size_t'.
51944         (struct grub_module_info): Type of member offset changed to
51945         `grub_host_off_t'.  Type of member size changed to
51946         `grub_host_size_t'.
51948 2005-09-29  Yoshinori K. Okuji  <okuji@enbug.org>
51950         Make GRUB's kernel compliant to Multiboot Specification.
51952         * kern/i386/pc/startup.S (multiboot_header): New label.
51953         (multiboot_entry): Likewise.
51954         (multiboot_trampoline): Likewise.
51956         * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51957         Increased to 0x4A0.
51959         * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51960         put parentheses after a question mark.
51961         [!GRUB_UTIL] (my_mod): New variable.
51963         * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51965 2005-09-28  Marco Gerards  <mgerards@xs4all.nl>
51967         Adds support for the XFS filesystem.  Btrees are not supported
51968         yet.
51970         * fs/xfs.c: New file.
51972         * DISTLIST: Added `fs/xfs.c'.
51974         * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51975         (grub_probefs_SOURCES): Likewise.
51976         (grub_emu_SOURCES): Likewise.
51977         (pkgdata_MODULES): Add `xfs.mod'.
51978         (xfs_mod_SOURCES): New variable.
51979         (xfs_mod_CFLAGS): Likewise.
51981         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51982         (pkgdata_MODULES): Add `xfs.mod'.
51983         (xfs_mod_SOURCES): New variable.
51984         (xfs_mod_CFLAGS): Likewise.
51986         * util/grub-emu.c (main): Call `grub_xfs_init' and
51987         `grub_xfs_fini'.
51989         * include/grub/fs.h (grub_xfs_init): New prototype.
51990         (grub_xfs_fini): Likewise.
51993 2005-09-18  Vesa Jaaskelainen  <chaac@nic.fi>
51995         * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51996         color modes, allow greater than 16 colors to be configured as
51997         a default palette.
51999 2005-09-03  Yoshinori K. Okuji  <okuji@enbug.org>
52001         * normal/completion.c (complete_arguments): Add the qualifier
52002         const into OPTIONS.
52004         From Omniflux <omniflux+lists@omniflux.com>:
52005         * include/grub/terminfo.h: New file.
52006         * include/grub/tparm.h: Likewise.
52007         * include/grub/i386/pc/serial.h: Likewise.
52008         * term/terminfo.c: Likewise.
52009         * term/tparm.c: Likewise.
52010         * term/i386/pc/serial.c: Likewise.
52011         * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
52012         serial.mod.
52013         (terminfo_mod_SOURCES): New variable.
52014         (terminfo_mod_CFLAGS): Likewise.
52015         (serial_mod_SOURCES): Likewise.
52016         (serial_mod_CFLAGS): Likewise.
52018 2005-08-31  Yoshinori K. Okuji  <okuji@enbug.org>
52020         * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
52021         boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
52022         and kern/powerpc/ieee1275/cmain.c, respectively.
52024         * boot/powerpc/ieee1275/crt0.S: Moved to ...
52025         * kern/powerpc/ieee1275/crt0.S: ... here.
52027         * boot/powerpc/ieee1275/cmain.c: Moved to ...
52028         * kern/powerpc/ieee1275/cmain.c: ... here.
52030         * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
52031         kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
52032         instead of boot/powerpc/ieee1275/crt0.S and
52033         boot/powerpc/ieee1275/cmain.c, respectively.
52035         * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
52036         sectors. It was not used anyway.
52038 2005-08-30  Hollis Blanchard  <hollis@penguinppc.org>
52040         * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
52041         `unused parameter' warning.
52043 2005-08-30  Hollis Blanchard  <hollis@penguinppc.org>
52045         * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
52046         function.
52047         (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
52048         getcharwidth.
52050 2005-08-28  Marco Gerards  <metgerards@student.han.nl>
52052         * include/grub/normal.h (enum grub_completion_type): Added
52053         `GRUB_COMPLETION_TYPE_ARGUMENT'.
52055         * normal/cmdline.c (print_completion): Handle
52056         the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
52057         * normal/menu_entry.c (store_completion): Likewise.
52059         * normal/completion.c (complete_arguments): New function.
52060         (grub_normal_do_completion): Call `complete_arguments' when the
52061         current words start with a dash.
52063 2005-08-27  Marco Gerards  <metgerards@student.han.nl>
52065         * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
52066         `gzio.mod' instead of `io.mod').
52068 2005-08-22  Yoshinori K. Okuji  <okuji@enbug.org>
52070         * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
52071         (DISTDIRS): Added io and video.
52072         Rewrite the search routine to make an output consistently.
52074         * DISTLIST: Added conf/sparc64-ieee1275.mk,
52075         conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
52076         include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
52077         io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
52078         kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
52079         util/powerpc/ieee1275/misc.c.
52081         * include/grub/gzio.h: New file.
52082         * io/gzio.c: Likewise.
52084         * kern/file.c (grub_file_close): Call grub_device_close only if
52085         FILE->DEVICE is not NULL.
52087         * include/grub/mm.h [!NULL] (NULL): New macro.
52089         * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
52091         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
52092         (pkgdata_MODULES): Added gzio.mod.
52093         (gzio_mod_SOURCES): New variable.
52094         (gzio_mod_CFLAGS): Likewise.
52096         * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
52097         (pkgdata_MODULES): Added gzio.mod.
52098         (gzio_mod_SOURCES): New variable.
52099         (gzio_mod_CFLAGS): Likewise.
52101         * commands/cat.c: Include grub/gzio.h.
52102         (grub_cmd_cat): Use grub_gzfile_open instead of
52103         grub_file_open.
52105         * commands/cmp.c: Include grub/gzio.h.
52106         (grub_cmd_cmp): Use grub_gzfile_open instead of
52107         grub_file_open.
52109         * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52110         (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52111         grub_file_open.
52112         (grub_rescue_cmd_module): Likewise.
52114 2005-08-21  Vincent Pelletier  <subdino2004@yahoo.fr>
52116         * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52117         kern/sparc64/ieee1275/init.c because it contains _start.
52118         * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52120 2005-08-21  Vincent Pelletier  <subdino2004@yahoo.fr>
52122         * configure.ac: Add support for sparc64 host with ieee1275
52123         firmware.
52124         * configure: Generated from configure.ac.
52125         * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52126         instead of int.
52127         (grub_ofdisk_read): Likewise.
52128         (grub_ofdisk_open): Use %p to print pointer values, and cast the
52129         pointers as (void *) to remove a warning.
52130         (grub_ofdisk_close): Likewise.
52131         (grub_ofdisk_read): Likewise.
52132         * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52133         returns, so make it return void to remove a warning.
52134         * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52135         Corresponding prototype change.
52136         * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52137         values, and cast the pointers as (void *) to remove a warning.
52138         (grub_mm_dump): Likewise.
52139         * conf/sparc64-ieee1275.mk: New file.
52140         * conf/sparc64-ieee1275.rmk: Likewise.
52141         * include/grub/sparc64/setjmp.h: Likewise.
52142         * include/grub/sparc64/types.h: Likewise.
52143         * include/grub/sparc64/ieee1275/console.h: Likewise.
52144         * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52145         * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52146         * include/grub/sparc64/ieee1275/time.h: Likewise.
52147         * kern/sparc64/cache.c: Likewise.
52148         * kern/sparc64/dl.c: Likewise.
52149         * kern/sparc64/ieee1275/init.c: Likewise.
52150         * kern/sparc64/ieee1275/openfw.c: Likewise.
52152 2005-08-21  Yoshinori K. Okuji  <okuji@enbug.org>
52154         * util/console.c (grub_ncurses_putchar): If C is greater than
52155         0x7f, set C to a question mark.
52156         (grub_ncurses_getcharwidth): New function.
52157         (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52158         getcharwidth.
52160         * normal/menu.c (print_entry): Made aware of Unicode. First,
52161         convert TITLE to UCS-4, and predict the cursor position by
52162         grub_getcharwidth.
52164         * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52165         const to SRC.
52166         * kern/misc.c (grub_utf16_to_utf8): Likewise.
52168 2005-08-20  Yoshinori K. Okuji  <okuji@enbug.org>
52170         * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52171         the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52172         grub_strcat.
52174         * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52175         file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52176         grub_strcpy and grub_strlen. Take it into account that a space
52177         character is inserted as a delimiter.
52179 2005-08-20  Yoshinori K. Okuji  <okuji@enbug.org>
52181         * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52182         invalid magic in the error.
52184         * commands/search.c: New file.
52186         * util/grub-emu.c (main): Call grub_search_init and
52187         grub_search_fini.
52189         * kern/rescue.c (grub_rescue_print_disks): Removed.
52190         (grub_rescue_print_devices): New function.
52191         (grub_rescue_cmd_ls): Use grub_device_iterate with
52192         grub_rescue_print_devices instead of grub_disk_dev_iterate with
52193         grub_rescue_print_disks.
52195         * kern/partition.c (grub_partition_iterate): Return the result of
52196         PARTMAP->ITERATE instead of GRUB_ERRNO.
52198         * kern/device.c: Include grub/partition.h.
52199         (grub_device_iterate): New function.
52201         * include/grub/partition.h (grub_partition_iterate): Return int
52202         instead of grub_err_t.
52204         * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52205         prototype.
52206         [GRUB_UTIL] (grub_search_fini): Likewise.
52208         * include/grub/device.h (grub_device_iterate): New prototype.
52210         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52211         commands/search.c.
52212         (pkgdata_MODULES): Added search.mod.
52213         (search_mod_SOURCES): New variable.
52214         (search_mod_CFLAGS): Likewise.
52216         * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52217         (pkgdata_MODULES): Added search.mod.
52218         (search_mod_SOURCES): New variable.
52219         (search_mod_CFLAGS): Likewise.
52221         * commands/ls.c (grub_ls_list_disks): Renamed to ...
52222         (grub_ls_list_devices): ... this, and use grub_device_iterate.
52223         All callers changed.
52225         * DISTLIST: Added commands/search.c.
52227 2005-08-20  Yoshinori K. Okuji  <okuji@enbug.org>
52229         * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52230         conversion.
52231         (grub_getcharwidth): New function.
52233         * kern/misc.c (grub_utf8_to_ucs4): New function.
52235         * include/grub/term.h (struct grub_term): Added a new member
52236         "getcharwidth".
52237         (grub_getcharwidth): New prototype.
52239         * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52241         * term/i386/pc/console.c (map_char): New function. Segregated from
52242         grub_console_putchar.
52243         (grub_console_putchar): Use map_char.
52244         (grub_console_getcharwidth): New function.
52245         (grub_console_term): Specified grub_console_getcharwidth as
52246         getcharwidth.
52248         * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52249         (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52251         * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52252         GRUB_ERRNO.
52253         (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52254         on grub_strtoul completely.
52255         (write_char): Declare local variables in the beginning of the
52256         function.
52257         (grub_vesafb_getcharwidth): New function.
52258         (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52259         getcharwidth.
52261 2005-08-19  Yoshinori K. Okuji  <okuji@enbug.org>
52263         * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52264         commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52265         commands/i386/pc/vbetest.c.
52267         * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52268         call grub_vbe_get_controller_info again, because the returned
52269         information is volatile.
52270         (grub_vbe_set_video_mode): Mostly rewritten.
52271         (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52272         grub_vbe_status_t correctly.
52273         (grub_vbe_get_video_mode_info): Likewise.
52274         (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52275         several if statements.
52277         * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52278         * commands/i386/pc/vbeinfo.c: ... this.
52280         * commands/i386/pc/vbe_test.c: Renamed to ...
52281         * commands/i386/pc/vbetest.c: ... this.
52283         * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52284         ...
52285         (grub_cmd_vbeinfo): ... this. Save video modes before
52286         iterating. Skip a video mode, if it is not available, not enough
52287         information is given or it is monochrome. Show the memory
52288         model. Leave the interpretation of MODEVAR to grub_strtoul
52289         completely.
52290         (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52291         (GRUB_MOD_FINI): Likewise.
52293         * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52294         (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52295         grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52296         duplicated grub_env_get. Leave the interpretation of MODEVAR to
52297         grub_strtoul completely.
52298         (real2pm): Removed.
52299         (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52300         (GRUB_MOD_FINI): Likewise.
52302         * normal/misc.c: Include grub/mm.h.
52304         * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52305         vbe_list_modes with vbetest.mod and vbeinfo.mod.
52306         (vbe_list_modes_mod_SOURCES): Removed.
52307         (vbe_list_modes_mod_CFLAGS): Likewise.
52308         (vbe_test_mod_SOURCES): Likewise.
52309         (vbe_test_mod_CFLAGS): Likewise.
52310         (vbeinfo_mod_SOURCES): New variable.
52311         (vbeinfo_mod_CFLAGS): Likewise.
52312         (vbetest_mod_SOURCES): Likewise.
52313         (vbetest_mod_CFLAGS): Likewise.
52315 2005-08-18  Yoshinori K. Okuji  <okuji@enbug.org>
52317         * normal/misc.c: New file.
52319         * DISTLIST: Added normal/misc.c.
52321         * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52322         DISK to HOOK. Call HOOK with DISK.
52323         * partmap/apple.c (apple_partition_map_iterate): Likewise.
52324         * partmap/pc.c (pc_partition_map_iterate): Likewise.
52325         * partmap/sun.c (sun_partition_map_iterate): Likewise.
52327         * normal/menu_entry.c (struct screen): Added a new member
52328         "completion_shown".
52329         (completion_buffer): New global variable.
52330         (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52331         (store_completion): New function.
52332         (complete): Likewise.
52333         (clear_completions): Likewise.
52334         (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52335         call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52336         a tab, call complete.
52338         * normal/completion.c (disk_dev): Removed.
52339         (print_simple_completion): Likewise.
52340         (print_partition_completion): Likewise.
52341         (print_func): New global variable.
52342         (add_completion): Do not take the arguments WHAT or PRINT any
52343         longer. Added a new argument TYPE. Instead of printing directly,
52344         call PRINT_FUNC if not NULL.
52345         All callers changed.
52346         (complete_device): Use a local variable DEV instead of
52347         DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52348         (grub_normal_do_completion): Take a new argument HOOK. Do not
52349         initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52350         empty string, return NULL instead.
52351         All callers changed.
52353         * normal/cmdline.c (print_completion): New function.
52355         * kern/partition.c (grub_partition_iterate): Add an argument DISK
52356         to HOOK.
52357         All callers changed.
52359         * kern/disk.c (grub_print_partinfo): Removed.
52361         * include/grub/partition.h (struct grub_partition_map): Add a new
52362         argument DISK into HOOK of ITERATE.
52363         (grub_partition_iterate): Add a new argument DISK to HOOK.
52365         * include/grub/normal.h (enum grub_completion_type): New enum.
52366         (grub_completion_type_t): New type.
52367         (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52368         (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52369         (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52370         (GRUB_COMPLETION_TYPE_FILE): Likewise.
52371         (grub_normal_do_completion): Added a new argument HOOK.
52372         (grub_normal_print_device_info): New prototype.
52374         * include/grub/disk.h (grub_print_partinfo): Removed.
52376         * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52377         (normal_mod_SOURCES): Likewise.
52378         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52379         (normal_mod_SOURCES): Likewise.
52381         * commands/ls.c (grub_ls_list_disks): Use
52382         grub_normal_print_device_info instead of grub_print_partinfo. Free
52383         PNAME.
52384         (grub_ls_list_files): Use grub_normal_print_device_info instead of
52385         duplicating the code.
52387 2005-08-16  Vesa Jaaskelainen  <chaac@nic.fi>
52389         * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52390         follow GCS more precisely.
52391         * commands/i386/pc/vbe_test.c: Likewise.
52392         * include/grub/i386/pc/vbe.h: Likewise.
52393         * term/i386/pc/vesafb.c: Likewise.
52394         * video/i386/pc/vbe.c: Likewise.
52396 2005-08-16  Vesa Jaaskelainen  <chaac@nic.fi>
52398         * DISTLIST: Added term/i386/pc/vesafb.c
52399         DISTLIST: Added video/i386/pc/vbe.c
52400         DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52401         DISTLIST: Added commands/i386/pc/vbe_test.c.
52402         * commands/i386/pc/vbe_list_modes.c: New file.
52403         * commands/i386/pc/vbe_test.c: Likewise.
52404         * term/i386/pc/vesafb.c: Likewise.
52405         * video/i386/pc/vbe.c: Likewise.
52406         * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52407         (grub_vbe_probe) Added prototype.
52408         (grub_vbe_set_video_mode) Likewise.
52409         (grub_vbe_get_video_mode) Likewise.
52410         (grub_vbe_get_video_mode_info) Likewise.
52411         (grub_vbe_set_pixel_rgb) Likewise.
52412         (grub_vbe_set_pixel_index) Likewise.
52413         * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52414         (pkgdata_MODULES): Added vesafb.mod.
52415         (pkgdata_MODULES): Added vbe_list_modes.mod.
52416         (pkgdata_MODULES): Added vbe_test.mod.
52417         (vbe_mod_SOURCES): Added.
52418         (vbe_mod_CFLAGS): Likewise.
52419         (vesafb_mod_SOURCES): Likewise.
52420         (vesafb_mod_CFLAGS): Likewise.
52421         (vbe_list_modes_mod_SOURCES): Likewise.
52422         (vbe_list_modes_mod_CFLAGS): Likewise.
52423         (vbe_test_mod_SOURCES): Likewise.
52424         (vbe_test_mod_CFLAGS): Likewise.
52426 2005-08-14  Yoshinori K. Okuji  <okuji@enbug.org>
52428         * normal/command.c (grub_command_execute): If INTERACTIVE is
52429         false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52430         CMDLINE. Disable the pager if INTERACTIVE is true.
52431         All callers are changed.
52433         * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52434         before reading a config file.
52435         * normal/main.c (read_config_file): Even if a command is not
52436         found, register it if it is within an entry.
52438         * util/grub-emu.c: Include sys/types.h and unistd.h.
52439         (options): Added --hold.
52440         (struct arguments): Added a new member "hold".
52441         (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52442         missing.
52443         (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52444         cleared by a debugger, if it is not zero.
52446         * include/grub/normal.h (grub_command_execute): Add an argument
52447         INTERACTIVE.
52449 2005-08-14  Vesa Jaaskelainen  <chaac@nic.fi>
52451         * DISTLIST: Added include/grub/i386/pc/vbe.h.
52453 2005-08-13  Yoshinori K. Okuji  <okuji@enbug.org>
52455         * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52456         program with another one, because the old one didn't detect a bug
52457         in gcc-3.4. Always use regparm 2, because the new test is still
52458         not enough for gcc-4.0. Someone must investigate a simple test
52459         case which detects a bug in gcc-4.0.
52461 2005-08-12  Yoshinori K. Okuji  <okuji@enbug.org>
52463         * DISTLIST: Added normal/completion.c.
52465         * normal/completion.c: New file.
52467         * term/i386/pc/console.c (grub_console_getwh): New function.
52468         (grub_console_term): Assign grub_console_getwh to getwh.
52470         * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52471         function is defined in normal/completion.c as
52472         grub_normal_do_completion.
52473         (grub_cmdline_get): Use grub_normal_do_completion instead of
52474         grub_tab_complete.
52476         * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52477         returns non-zero, otherwise return 0.
52478         (grub_partition_iterate): First, probe the partition map. Then,
52479         call ITERATE only for this partition map.
52481         * kern/misc.c (grub_strncmp): Rewritten.
52483         * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52484         returns non-zero. Otherwise return 0.
52486         * include/grub/partition.h (grub_partition_map_iterate): Return
52487         int instead of void.
52489         * include/grub/normal.h (grub_normal_do_completion): New prototype.
52491         * include/grub/misc.h (grub_strncmp): Change the type of N to
52492         grub_size_t.
52494         * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52495         of void.
52497         * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52498         unsigned explicitly before comparing it with I.
52500         * kern/main.c (grub_env_write_root): Add the attribute unused into
52501         VAR.
52503         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52504         normal/completion.c.
52505         (normal_mod_SOURCES): Likewise.
52506         * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52507         (normal_mod_SOURCES): Likewise.
52509         * normal/command.c (grub_iterate_commands): If ITERATE returns
52510         non-zero, return one immediately.
52512 2005-08-09  Vesa Jaaskelainen  <chaac@nic.fi>
52514         * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52515         * kern/i386/pc/startup.S: Updated Global Descriptor table's
52516         descriptions.
52517         (grub_vbe_get_controller_info): New function.
52518         (grub_vbe_get_mode_info): Likewise.
52519         (grub_vbe_set_mode): Likewise.
52520         (grub_vbe_get_mode): Likewise.
52521         (grub_vbe_set_memory_window): Likewise.
52522         (grub_vbe_get_memory_window): Likewise.
52523         (grub_vbe_set_scanline_length): Likewise.
52524         (grub_vbe_get_scanline_length): Likewise.
52525         (grub_vbe_set_display_start): Likewise.
52526         (grub_vbe_get_display_start): Likewise.
52527         (grub_vbe_set_palette_data): Likewise.
52528         * include/grub/i386/pc/vbe.h: New file.
52530 2005-08-08  Hollis Blanchard  <hollis@penguinppc.org>
52532         * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52533         kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52534         * DISTLIST: Likewise.
52535         * kern/ieee1275/of.c: Moved to ...
52536         * kern/ieee1275/ieee1275.c: ... here.
52538 2005-08-08  Hollis Blanchard  <hollis@penguinppc.org>
52540         * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52541         (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52542         Pass 0 as `end' parameter to grub_strtoul().
52544 2005-08-08  Hollis Blanchard  <hollis@penguinppc.org>
52546         * include/grub/powerpc/ieee1275/console.h: Do not include
52547         <grub/types.h>.  Do not include <grub/symbol.h>.  Remove ASM_FILE
52548         ifdef.
52549         (grub_console_cur_color): Remove i386-specific prototype.
52550         (grub_console_real_putchar): Likewise.
52551         (grub_console_checkkey): Likewise.
52552         (grub_console_getkey): Likewise.
52553         (grub_console_getxy): Likewise.
52554         (grub_console_gotoxy): Likewise.
52555         (grub_console_cls): Likewise.
52556         (grub_console_setcursor): Likewise.
52557         * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52558         Include <grub/machine/console.h>.
52559         * term/ieee1275/ofconsole.c: Likewise.
52561 2005-08-08  Yoshinori K. Okuji  <okuji@enbug.org>
52563         * Makefile.in (LIBLZO): New variable.
52565         * configure.ac: Check for LZO version 2.
52567         * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52568         lzo/lzo1x.h instead of lzo1x.h.
52570         * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52571         of -llzo.
52573         * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52574         twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52576         * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52577         copying the data from PARTITION to P.
52579 2005-08-07  Yoshinori K. Okuji  <okuji@enbug.org>
52581         * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52582         negative, unload the module.
52584         * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52585         map is "pc_partition_map" but not "pc".
52586         (usage): Fix the description. The options are --boot-image and
52587         --core-image but not --boot-file or --core-file.
52588         (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52589         based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52590         DEFAULT_DIRECTORY.
52592         * util/i386/pc/grub-install.in: Do not specify --boot-file or
52593         --core-file. Specify INSTALL_DEVICE as an argument.
52595         * util/console.c: Include config.h.
52596         [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52597         [HAVE_NCURSES_H]: Include ncurses.h.
52598         [HAVE_CURSES_H]: Include curses.h.
52599         [!A_NORMAL] (A_NORMAL): Defined as zero.
52600         [!A_STANDOUT] (A_STANDOUT): Likewise.
52602         * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52603         -lncurses.
52604         * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52606         * configure.ac: Check for curses libraries and headers.
52608         * Makefile.in (LIBCURSES): New variable.
52610         * genmk.rb (Script::rule): Set the executable bits.
52612         * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52613         name of the PC partition map is "pc_partition_map" but not "pc".
52615 2005-08-07  Yoshinori K. Okuji  <okuji@enbug.org>
52617         * util/i386/pc/grub-install.in (grub_probefs): New variable.
52618         (modules): Likewise.
52619         (usage): Added descriptions for --modules and --grub-probefs.
52620         Handle --modules and --grub-probefs. Save the arguments in MODULES
52621         and GRUB_PROBEFS, respectively.
52622         Auto-detect a filesystem module against GRUBDIR. If the result is
52623         empty and modules are not specified explicitly, abort the
52624         installation. Add the result to MODULES.
52626         * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52627         disk/powerpc/ieee1275/ofdisk.c,
52628         include/grub/powerpc/ieee1275/init.h and
52629         term/powerpc/ieee1275/ofconsole.c.
52630         Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52631         term/ieee1275/ofconsole.c.
52633         * include/grub/powerpc/ieee1275/console.h: Resurrected.
52635         * COPYING: Upgraded to the latest version. Only the address of the
52636         FSF office has changed.
52638 2005-08-07  Yoshinori K. Okuji  <okuji@enbug.org>
52640         * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52641         kern/ieee1275.c with kern/ieee1275/of.c.
52643         * kern/ieee1275.c: Moved to ...
52644         * kern/ieee1275/of.c: ... here.
52646 2005-08-06  Yoshinori K. Okuji  <okuji@enbug.org>
52648         * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52649         readability.
52651         * config.guess: Updated to the latest version from gnulib.
52652         * config.sub: Likewise.
52653         * install.sh: Likewise.
52654         * mkinstalldirs: Likewise.
52656         * include/grub/console.h: Removed. This file is arch-specific. Do
52657         not put this in include/grub.
52659         * include/grub/i386/pc/console.h: Resurrected.
52661         * util/console.c: Include grub/machine/console.h instead of
52662         grub/console.h.
52663         * util/grub-emu.c: Likewise.
52665 2005-08-04  Marco Gerards  <metgerards@student.han.nl>
52667         * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52668         hardcoded value.
52670         From Vincent Pelletier  <subdino2004@yahoo.fr>
52671         * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52672         Redefined to use grub_getwh.
52673         (grub_term): New member named getwh.
52674         (grub_getwh): New prototype.
52675         * kern/term.c (grub_getwh): New function.
52676         * term/i386/pc/console.c (grub_console_getwh): New function.
52677         (grub_console_term): New member `getwh'.
52678         * term/i386/pc/vga.c (grub_vga_getwh): New function.
52679         (grub_vga_term): New member `getwh'.
52680         * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52681         grub_ssize_t.
52682         (grub_ofconsole_getw): New function.
52683         (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52684         (grub_ofconsole_term): New field named getwh and new initial
52685         value.
52687 2005-08-03  Hollis Blanchard  <hollis@penguinppc.org>
52689         * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52690         * include/grub/ieee1275/ieee1275.h: ... to here.  All users updated.
52691         Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52692         * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52693         * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52694         of <grub/machine/ieee1275.h>.
52695         * commands/ieee1275/reboot.c: Likewise.
52696         * boot/powerpc/ieee1275/ieee1275.c: Move ...
52697         * kern/ieee1275.c: ... to here.  All users updated.  Change all
52698         parameter structs to use new type `grub_ieee1275_cell_t'.
52699         * term/powerpc/ieee1275/ofconsole.c: Move ...
52700         * term/ieee1275/ofconsole.c: ... to here.  All users updated.
52701         * disk/powerpc/ieee1275/ofdisk.c: Move ...
52702         * disk/ieee1275/ofdisk.c: ... to here.  All users updated.
52703         * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52704         to return int.
52705         * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52706         Remove unused prototypes.  All users updated.
52707         * include/grub/powerpc/ieee1275/console.h: Removed.
52708         * include/grub/powerpc/ieee1275/ieee1275.h: Define
52709         `grub_ieee1275_cell_t'.
52710         * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52711         Cast comparisons with -1 to the correct type.
52712         * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52713         type to match `grub_ieee1275_entry_fn'.
52715 2005-08-01  Yoshinori K. Okuji  <okuji@enbug.org>
52717         * DISTLIST: Added util/i386/pc/grub-probefs.c.
52719         * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52720         (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52721         partmap/sun.c.
52722         (grub_probefs_SOURCES): New variable.
52724         * util/i386/pc/grub-probefs.c: New file.
52726         * util/i386/pc/grub-setup.c (main): Call
52727         grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52728         grub_hfs_init and grub_jfs_init to initialize the system. Call
52729         grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52730         grub_pc_partition_map_fini to finish the system.
52732 2005-07-31  Yoshinori K. Okuji  <okuji@enbug.org>
52734         * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52735         function.
52736         (grub_multiboot_load_elf32): Likewise.
52737         (grub_multiboot_is_elf64): Likewise.
52738         (grub_multiboot_load_elf64): Likewise.
52739         (grub_multiboot_load_elf): Likewise.
52740         (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52741         an ELF32 or ELF64 file.
52742         This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52744         From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52745         * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52746         NULL before calling FS->LABEL.
52747         * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52748         * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52749         (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52750         before calling FS->LABEL.
52752 2005-07-26  Yoshinori K. Okuji  <okuji@enbug.org>
52754         * util/i386/pc/grub-install.in (datadir): New variable.
52755         (libdir): Removed.
52756         (pkgdatadir): New variable.
52757         (pkglibdir): Removed.
52759 2005-07-24  Yoshinori K. Okuji  <okuji@enbug.org>
52761         * DISTLIST: Added util/i386/pc/grub-install.in.
52763         * util/i386/pc/grub-install.in: New file.
52765         * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52766         (grub_install_SOURCES): Likewise.
52768         * genmk.rb: Added support for scripts.
52769         (Script): New class.
52770         (scripts): New variable.
52772         * Makefile.in (install-local): Install sbin_SCRIPTS by
52773         INSTALL_SCRIPT.
52774         (uninstall): Remove sbin_SCRIPTS.
52776         * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52777         device, try to get a GRUB device by
52778         grub_util_biosdisk_get_grub_dev.
52779         Free DEST_DEV.
52781         * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52782         description for --device-map.
52784 2005-07-20  Yoshinori K. Okuji  <okuji@enbug.org>
52786         Change the semantics of variable hooks. They now return strings
52787         instead of error values.
52789         * util/i386/pc/grub-setup.c: Include grub/env.h.
52790         (setup): Use grub_device_set_root instead of grub_env_set.
52792         * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52793         grub_env_get instead of grub_device_set_root and
52794         grub_device_get_root, respectively.
52796         * kern/main.c (grub_env_write_root): New function.
52797         (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52798         grub_env_set instead of grub_device_set_root.
52800         * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52801         many variables.
52802         (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52803         rather than calling ENV->WRITE_HOOK afterwards.
52804         (grub_env_get): Return the result of ENV->READ_HOOK rather than
52805         passing a pointer of a pointer.
52806         (grub_register_variable_hook): Change the types of "read_hook" and
52807         "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52808         respectively.
52809         Allocate the default empty string on the heap, because this string
52810         may be freed later.
52812         * kern/device.c: Include grub/env.h.
52813         (grub_device_set_root): Removed.
52814         (grub_device_get_root): Likewise.
52815         (grub_device_open): Use grub_env_get instead of
52816         grub_device_get_root.
52818         * include/grub/env.h (grub_env_read_hook_t): New type.
52819         (grub_env_write_hook_t): Likewise.
52820         (grub_env_var): Change the types of "read_hook" and "write_hook"
52821         to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52822         (grub_register_variable_hook): Likewise.
52824         * include/grub/device.h (grub_device_set_root): Removed.
52825         (grub_device_set_root): Likewise.
52827         * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52828         make sure that DIRNAME terminates with '/', so that
52829         grub_fat_find_dir will fail if PATH is not a directory.
52831         * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52832         from DIRNAME.
52833         Use the qualifier auto for print_files and print_files_long.
52834         If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52835         as a regular file.
52836         Put a newline only if there is no error.
52837         (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52838         used.
52840 2005-07-20  Yoshinori K. Okuji  <okuji@enbug.org>
52842         * kern/partition.c (grub_partition_probe): Initialize PART to
52843         NULL. Otherwise, when no partition map is registered, this returns
52844         a garbage.
52846 2005-07-19  Yoshinori K. Okuji  <okuji@enbug.org>
52848         * partmap/apple.c (apple_partition_map_iterate): Check if POS
52849         equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52850         valid.
52852 2005-07-18  Yoshinori K. Okuji  <okuji@enbug.org>
52854         * commands/ls.c (grub_ls_list_disks): Print the filesystem
52855         information on each device, if it does not have partitions. Print
52856         "Device" instead of "Disk", because this function is not specific
52857         to disk devices.
52859         * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52860         static to ensure that it is put on the memory rather than a
52861         register.
52863 2005-07-17  Yoshinori Okuji  <okuji@enbug.org>
52865         * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52866         (grub_cat_init): Likewise.
52867         * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52868         (options): Likewise.
52869         * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52870         (grub_configfile_init): Likewise.
52871         * font/manager.c (GRUB_MOD_INIT): Likewise.
52872         * commands/help.c (GRUB_MOD_INIT): Likewise.
52873         (grub_help_init): Likewise.
52874         * normal/command.c (grub_command_init): Likewise.
52875         * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52876         * disk/loopback.c (grub_loop_init): Likewise.
52877         (GRUB_MOD_INIT): Likewise.
52878         * commands/ls.c (grub_ls_init): Likewise.
52879         (GRUB_MOD_INIT): Likewise.
52880         (options): Likewise.
52881         * commands/boot.c (grub_boot_init): Likewise.
52882         (GRUB_MOD_INIT): Likewise.
52883         * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52884         * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52885         (GRUB_MOD_INIT): Likewise.
52886         * commands/cmp.c (grub_cmp_init): Likewise.
52887         (GRUB_MOD_INIT): Likewise.
52889         * normal/arg.c: Use <> instead of "" to include header files.
52890         (SHORT_ARG_HELP): New macro.
52891         (SHORT_ARG_USAGE): Likewise.
52892         (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52893         of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52894         descriptions.
52895         (find_short): Check if C is 'h' or 'u' explicitly.
52896         (grub_arg_show_help): Use space characters instead of tabs. Treat
52897         SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52898         are shown with --help and --usage only if they are not used for
52899         the command itself.
52900         (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52901         'h' and 'u'.
52903         * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52904         const into "longarg". Change the type of "shortarg" to int.
52906 2005-07-17  Yoshinori Okuji  <okuji@enbug.org>
52908         * boot/i386/pc/boot.S (boot_drive_check): New label.
52910         * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52911         macro.
52913         * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52914         which do not pass a boot drive correctly. Copied from GRUB Legacy.
52916 2005-07-17  Yoshinori Okuji  <okuji@enbug.org>
52918         * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52919         When turning off Gate A20, skip the check and return immediately,
52920         because this is not fatal usually.
52922 2005-07-17  Yoshinori Okuji  <okuji@enbug.org>
52924         * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52925         be 0x7C00 instead of 0x8000.
52927         * boot/i386/pc/pxeboot.S: Rewritten.
52929         * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52930         EXT_C.
52931         (gate_a20_check_state): Read a byte from 0x108000. Invert the
52932         result.
52934 2005-07-16  Yoshinori K. Okuji  <okuji@enbug.org>
52936         * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52937         robustness. This routine now supports a BIOS call and System
52938         Control Port A to modify the gate A20.
52940         * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52941         Increased to 0x440.
52943 2005-07-12  Hollis Blanchard  <hollis@penguinppc.org>
52945         * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52946         device path and resulting ihandle.
52947         (grub_ofdisk_close): dprintf the ihandle being closed.
52948         (grub_ofdisk_read): dprintf function parameters.
52949         * kern/mm.c (grub_mm_init_region): Likewise.
52950         * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52951         (grub_linux_boot): dprintf the Linux entry point, initrd address and
52952         size, and boot arguments.
52953         (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52954         before loading into memory.
52955         (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52956         before loading into memory.
52958 2005-07-12  Yoshinori K. Okuji  <okuji@enbug.org>
52960         * kern/mm.c: Added much documentation.
52961         (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52962         8, set to 5 instead of 8.
52964 2005-07-10  Yoshinori Okuji  <okuji@enbug.org>
52966         * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52968         * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52969         (grub_mkdevicemap_SOURCES): New variable.
52971         * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52972         lib/device.c of GRUB Legacy.
52974 2005-07-10  Yoshinori Okuji  <okuji@enbug.org>
52976         * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52977         instead of PATH is NULL.
52979 2005-07-09  Vincent Pelletier  <subdino2004@yahoo.fr>
52981         * commands/cmp.c (BUFFER_SIZE): New macro.
52982         (grub_cmd_cmp): Close the right file at the right time.  Compare
52983         only data just read.  Don't report files of different  size as
52984         identical.  Dynamically allocate buffers.  Move variable
52985         declarations at the beginning of function.
52987 2005-07-09  Yoshinori Okuji  <okuji@enbug.org>
52989         * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52990         reverse.
52992 2004-07-04  Vincent Pelletier  <subdino2004@yahoo.fr>
52994         * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52995         when backspace is pressed at beginning of line.
52997 2005-07-03  Yoshinori Okuji  <okuji@enbug.org>
52999         * DISTLIST: Added genfslist.sh.
53001         * normal/main.c (fs_module_list): New variable.
53002         (autoload_fs_module): New function.
53003         (read_fs_list): Likewise.
53004         (grub_normal_execute): Call read_fs_list.
53006         * kern/fs.c (grub_fs_autoload_hook): New variable.
53007         (grub_fs_probe): Added support for auto-loading.
53009         * include/grub/normal.h (struct grub_fs_module_list): New struct.
53010         (grub_fs_module_list_t): New type.
53012         * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
53013         (grub_fs_autoload_hook): New prototype.
53015         * genfslist.sh: New file.
53017         * genmk.rb: Added a rule to generate a filesystem list.
53019 2005-06-30  Marco Gerards  <metgerards@student.han.nl>
53021         * configure.ac: Fix the test for cross-compiling.
53023         * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'.  Don't
53024         define GRUB_UTIL anymore.
53026         * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
53027         so this function works on other systems than just big endian.
53028         (load_modules): Likewise.
53029         (add_segments): Likewise.
53031 2005-06-23  Hollis Blanchard  <hollis@penguinppc.org>
53033         * kern/misc.c (grub_vsprintf): Add `longfmt'.  If format string
53034         contains `l' modifier, get a long from va_arg().
53036 2005-06-23  Yoshinori K. Okuji  <okuji@enbug.org>
53038         * kern/mm.c (grub_free): If the next free block which is being
53039         merged is the first free block, set the first block to the block
53040         being freed.
53041         Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
53043 2005-05-08  Hollis Blanchard  <hollis@penguinppc.org>
53045         * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
53046         `grub_ieee1275_chosen'.
53048 2005-05-08  Hollis Blanchard  <hollis@penguinppc.org>
53050         * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
53051         (grub_ieee1275_chosen): New variable.
53052         (cmain): Initialize and use `grub_ieee1275_chosen' instead of
53053         `chosen'.
53054         * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
53055         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53056         Rename first argument to `phandle' for consistency.
53057         (grub_ieee1275_get_property_length): Likewise.
53058         (grub_ieee1275_next_property): Likewise.  Change type of first argument
53059         to grub_ieee1275_phandle_t.
53060         * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
53061         Move export next to declaration.
53062         (grub_ieee1275_chosen): New variable.
53063         * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
53064         Correct cosmetic typo.
53065         * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
53066         `grub_ieee1275_chosen'.
53067         * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
53068         * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
53069         (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
53070         * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
53071         `grub_ieee1275_chosen'.
53073 2005-05-10  Hollis Blanchard  <hollis@penguinppc.org>
53075         * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
53076         /chosen/bootargs.
53077         * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
53078         /chosen/bootargs as "variable=value" pairs.
53080 2005-05-08  Vincent Pelletier  <subdino2004@yahoo.fr>
53082         * include/grub/misc.h (grub_dprintf): New macro.
53083         (grub_real_dprintf): New prototype.
53084         (grub_strword): Likewise.
53085         (grub_iswordseparator): Likewise.
53086         * kern/misc.c (grub_real_dprintf): New function.
53087         (grub_strword): Likewise.
53088         (grub_iswordseparator): Likewise.
53090 2005-04-30  Hollis Blanchard  <hollis@penguinppc.org>
53092         * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
53093         (roundup): Remove macro.
53094         (grub_ieee1275_flags): Make static.
53095         (grub_ieee1275_realmode): Remove.
53096         (grub_ieee1275_test_flag): New function.
53097         (grub_ieee1275_set_flag): Likewise.
53098         (find_options): Rename to `grub_ieee1275_find_options'; update
53099         callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
53100         GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53101         (cmain): New prototype.
53102         (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53103         `grub_ieee1275_flags' directly.
53104         * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53105         machine/biosdisk.h.
53106         * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53107         Don't include grub/machine/init.h.
53108         (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53109         * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53110         Remove prototype.
53111         (grub_ieee1275_realmode): Likewise.
53112         (grub_ieee1275_flag): New enum.
53113         (grub_ieee1275_test_flag): New prototype.
53114         (grub_ieee1275_set_flag): New prototype.
53115         * include/grub/powerpc/ieee1275/init.h: Remove file.
53116         * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53117         * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53118         Include grub/machine/console.h.  Include grub/machine/ofdisk.h.
53119         (grub_machine_fini): Don't call `grub_ieee1275_release'.  Remove
53120         comment.
53121         * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53122         `grub_ieee1275_test_flag'.
53123         (grub_ieee1275_encode_devname): Likewise.
53125 2005-04-21  Hollis Blanchard  <hollis@penguinppc.org>
53127         * include/grub/powerpc/ieee1275/ieee1275.h
53128         (grub_ieee1275_encode_devname): New prototype.
53129         (grub_ieee1275_get_filename): Likewise.
53130         * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53131         function.
53132         (grub_set_prefix): Likewise.
53133         (grub_machine_init): Call grub_set_prefix.
53134         * kern/powerpc/ieee1275/openfw.c: Fix typos.
53135         (grub_parse_type): New enum.
53136         (grub_ieee1275_get_devargs): New function.
53137         (grub_ieee1275_get_devname): Likewise.
53138         (grub_ieee1275_parse_args): Likewise.
53139         (grub_ieee1275_get_filename): Likewise.
53140         (grub_ieee1275_encode_devname): Likewise.
53142 2005-03-30  Marco Gerards  <metgerards@student.han.nl>
53144         * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53145         `grub_loader_unset'.
53147 2005-03-26  Hollis Blanchard  <hollis@penguinppc.org>
53149         * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53150         instead of grub_ieee1275_interpret.
53151         (grub_halt_init): New function.
53152         (grub_halt_fini): Likewise.
53153         (GRUB_MOD_INIT): Correct message grammar.
53154         * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53155         instead of grub_ieee1275_interpret.
53156         (grub_reboot_init): New function.
53157         (grub_reboot_fini): Likewise.
53158         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53159         commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53160         util/i386/pc/misc.c with commands/ieee1275/halt.c,
53161         commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53162         * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53163         function.
53164         * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53165         Add prototype.
53166         * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53167         prototype.
53168         (grub_halt): Likewise.
53169         * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53170         (cmain): Remove __attribute__((unused)).
53171         * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53172         (grub_heap_len): Likewise.
53173         (grub_machine_fini): New function.
53174         * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53175         (grub_halt): Likewise.
53176         * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53177         function.
53178         * util/powerpc/ieee1275/misc.c: New file.
53180 2005-03-19  Yoshinori K. Okuji  <okuji@enbug.org>
53182         * DISTLIST: New file.
53183         * gendistlist.sh: Likewise.
53185         * Makefile.in (COMMON_DISTFILES): Removed.
53186         (BOOT_DISTFILES): Likewise.
53187         (CONF_DISTFILES): Likewise.
53188         (DISK_DISTFILES): Likewise.
53189         (FS_DISTFILES): Likewise.
53190         (INCLUDE_DISTFILES): Likewise.
53191         (KERN_DISTFILES): Likewise.
53192         (LOADER_DISTFILES): Likewise.
53193         (TERM_DISTFILES): Likewise.
53194         (UTIL_DISTFILES): Likewise.
53195         (DISTFILES): Likewise.
53196         (uninstall): Uninstall files in $(pkgdata_DATA).
53197         (DISTLIST): New target.
53198         (distdir): Use the contents of the file DISTLIST to get a list of
53199         distributed files.
53201 2005-03-18  Yoshinori K. Okuji  <okuji@enbug.org>
53203         * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53204         descriptor. This is ported from GRUB Legacy.
53206         * gencmdlist.sh: Added an extra semicolon to make it work with
53207         old sed versions. Reported by Robert Bihlmeyer
53208         <robbe@orcus.priv.at>.
53210 2005-03-08  Yoshinori Okuji  <okuji@enbug.org>
53212         Automatic loading of commands is supported.
53214         * normal/main.c (read_command_list): New function.
53215         (grub_normal_execute): Call read_command_list.
53217         * normal/command.c (grub_register_command): Return zero or CMD.
53218         Allocate CMD->NAME from the heap.
53219         Initialize CMD->MODULE_NAME to zero.
53220         Find the same name as well. If the same command is found and it is
53221         a dummy command, overwrite members. If it is not a dummy command,
53222         return zero.
53223         (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53224         (grub_command_find): If a dummy command is found, load a module
53225         and retry to find a command only once.
53227         * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53228         make sure that each command is loaded.
53230         * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53231         macro.
53232         (struct grub_command): Remove const from the member `name'.
53233         Add a new member `module_name'.
53234         (grub_register_command): Return grub_command_t.
53236         * commands/help.c (grub_cmd_help): Call grub_command_find to make
53237         sure that each command is loaded.
53239         * genmk.rb (PModule::rule): Specify a module name without the
53240         suffix ".mod" to gencmdlist.sh.
53242 2005-03-02  Yoshinori K. Okuji  <okuji@enbug.org>
53244         * gencmdlist.sh: New file.
53246         * genmk.rb (PModule::rule): Generate a rule for a command list.
53247         Clean command.lst.
53248         Generate command.lst from $(COMMANDFILES).
53250         * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53251         (DATA): Added $(pkgdata_DATA).
53252         (install-local): Install files in $(pkgdata_DATA).
53254 2005-03-02  Yoshinori K. Okuji  <okuji@enbug.org>
53256         * term/i386/pc/vga.c (debug_command): Removed.
53257         (GRUB_MOD_INIT): Do not register the command "debug".
53259         From Hollis Blanchard:
53260         * commands/configfile.c: New file.
53261         * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53262         commands/configfile.c.
53263         (pkgdata_MODULES): Added configfile.mod.
53264         (configfile_mod_SOURCES): New variable.
53265         (configfile_mod_CFLAGS): Likewise.
53266         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53267         commands/configfile.c.
53268         (pkgdata_MODULES): Added configfile.mod.
53269         (configfile_mod_SOURCES): New variable.
53270         (configfile_mod_CFLAGS): Likewise.
53271         * util/grub-emu.c (main): Call grub_configfile_init and
53272         grub_configfile_fini.
53273         * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53274         prototype.
53275         [GRUB_UTIL] (grub_configfile_fini): Likewise.
53277 2005-02-27  Yoshinori K. Okuji  <okuji@enbug.org>
53279         * normal/arg.c (grub_arg_show_help): Do not show the bug report
53280         address.
53282         * commands/help.c (grub_cmd_help): Do not print newlines after
53283         the last command in print_command_help.
53285 2005-02-27  Yoshinori K. Okuji  <okuji@enbug.org>
53287         * commands/default.h: New file.
53288         * commands/timeout.h: Likewise.
53289         * normal/context.c: Likewise.
53291         * util/misc.c: Do not include sys/times.h.
53292         Include sys/time.h and grub/machine/time.h.
53293         (grub_get_rtc): Rewritten with gettimeofday.
53295         * util/grub-emu.c (main): Call grub_default_init and
53296         grub_timeout_init before grub_normal_init, and call
53297         grub_timeout_fini and grub_default_fini after grub_main.
53299         * util/console.c (grub_ncurses_checkkey): Return the read
53300         character or -1.
53302         * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53303         timeouts.
53305         * normal/main.c (read_config_file): Push MENU. If this fails,
53306         print an error and wait for a user input.
53307         Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53308         If a menu is empty or an error occurs, pop MENU.
53309         (grub_normal_execute): Pop and free MENU after grub_menu_run
53310         returns.
53312         * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53314         * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53315         include time.h.
53316         [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53317         without GRUB_UTIL.
53318         * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53319         time.h.
53320         [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53321         without GRUB_UTIL.
53323         * include/grub/normal.h (struct grub_menu_list): New struct.
53324         (grub_menu_list_t): New type.
53325         (struct grub_context): New struct.
53326         (grub_context_t): New type.
53327         (grub_register_command): Got rid of EXPORT_FUNC.
53328         (grub_unregister_command): Likewise.
53329         (grub_context_get): New prototype.
53330         (grub_context_get_current_menu): Likewise.
53331         (grub_context_push_menu): Likewise.
53332         (grub_context_pop_menu): Likewise.
53333         [GRUB_UTIL] (grub_default_init): Likewise.
53334         [GRUB_UTIL] (grub_default_fini): Likewise.
53335         [GRUB_UTIL] (grub_timeout_init): Likewise.
53336         [GRUB_UTIL] (grub_timeout_fini): Likewise.
53338         * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53339         commands/timeout.c and normal/context.c.
53340         (pkgdata_MODULES): Added default.mod and timeout.mod.
53341         (normal_mod_SOURCES): Added normal/context.c.
53342         (default_mod_SOURCES): New variable.
53343         (default_mod_CFLAGS): Likewise.
53344         (timeout_mod_SOURCES): Likewise.
53345         (timeout_mod_CFLAGS): Likewise.
53346         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53347         conf/i386-pc.rmk.
53348         (pkgdata_MODULES): Added default.mod and timeout.mod.
53349         (normal_mod_SOURCES): Added normal/context.c.
53350         (default_mod_SOURCES): New variable.
53351         (default_mod_CFLAGS): Likewise.
53352         (timeout_mod_SOURCES): Likewise.
53353         (timeout_mod_CFLAGS): Likewise.
53355         * Makefile.in (all-local): Added $(MKFILES).
53357 2005-02-21  Vincent Pelletier  <subdino2004@yahoo.fr>
53359         * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53360         (grub_emu_SOURCES): Likewise.
53361         (pkgdata_MODULES): Add `sun.mod'.
53362         (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53363         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53364         `partmap/sun.c'.
53365         (pkgdata_MODULES): Add `sun.mod'.
53366         (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53367         * include/grub/partition.h (grub_sun_partition_map_init): New
53368         prototype.
53369         (grub_sun_partition_map_fini): Likewise.
53370         * partmap/sun.c: New file.
53371         * util/grub-emu.c (main): Initialize and de-initialize the sun
53372         partitionmap support.
53374 2005-02-19  Yoshinori K. Okuji  <okuji@enbug.org>
53376         This implements an Emacs-like menu entry editor.
53378         * normal/menu_entry.c: New file.
53380         * util/console.c (grub_ncurses_putchar): Translate some Unicode
53381         characters to ASCII.
53382         (saved_char): New variable.
53383         (grub_ncurses_checkkey): Rewritten completely.
53384         (grub_ncurses_getkey): Likewise.
53385         (grub_ncurses_init): Call raw instead of cbreak.
53387         * normal/menu.c (print_entry): Do not put a space.
53388         (init_page): Renamed to ...
53389         (grub_menu_init_page): ... this. All callers changed.
53390         (edit_menu_entry): Removed.
53391         (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53393         * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53395         * kern/misc.c (grub_vprintf): Call grub_refresh.
53397         * normal/menu.c (DISP_LEFT): Renamed to ...
53398         * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53399         * normal/menu.c (DISP_UP): Renamed to ...
53400         * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53401         * normal/menu.c (DISP_RIGHT): Renamed to ...
53402         * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53403         * normal/menu.c (DISP_DOWN): Renamed to ...
53404         * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53405         * normal/menu.c (DISP_HLINE): Renamed to ...
53406         * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53407         * normal/menu.c (DISP_VLINE): Renamed to ...
53408         * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53409         * normal/menu.c (DISP_UL): Renamed to ...
53410         * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53411         * normal/menu.c (DISP_UR): Renamed to ...
53412         * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53413         * normal/menu.c (DISP_LL): Renamed to ...
53414         * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53415         * normal/menu.c (DISP_LR): Renamed to ...
53416         * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53417         * normal/menu.c (TERM_WIDTH): Renamed to ...
53418         * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53419         * normal/menu.c (TERM_HEIGHT): Renamed to ...
53420         * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53421         * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53422         * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53423         * normal/menu.c (TERM_MARGIN): Renamed to ...
53424         * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53425         * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53426         * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53427         * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53428         * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53429         * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53430         * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53431         * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53432         * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53433         * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53434         * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53435         * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53436         * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53437         * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53438         * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53439         * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53440         * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53441         * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53442         * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53443         * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53444         * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53445         All callers changed.
53447         * include/grub/normal.h: New prototype.
53449         * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53450         normal/menu_entry.c.
53451         (normal_mod_SOURCES): Likewise.
53452         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53453         (normal_mod_SOURCES): Likewise.
53455 2005-02-15  Yoshinori K. Okuji  <okuji@enbug.org>
53457         * include/grub/normal.h (grub_halt_init): New prototype.
53458         (grub_halt_fini): Likewise.
53459         (grub_reboot_init): Likewise.
53460         (grub_reboot_fini): Likewise.
53462         * util/grub-emu.c: Include signal.h.
53463         (main_env): New global variable.
53464         (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53465         catch C-c.
53466         (grub_machine_fini): New function.
53467         (main): Call grub_halt_init and grub_reboot_init before
53468         grub_main, and grub_reboot_fini and grub_halt_fini after it.
53469         Call setjmp with MAIN_ENV to go back afterwards.
53470         Call grub_machine_fini right before return.
53472         * include/grub/util/misc.h: Include setjmp.h.
53473         (main_env): New prototype.
53475         * include/grub/kernel.h (grub_machine_fini): New prototype.
53476         * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53477         * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53479         * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53480         * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53481         * term/i386/pc/console.c (grub_console_fini): Likewise.
53483         * util/i386/pc/misc.c: New file.
53485         * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53486         util/i386/pc/misc.c, commands/i386/pc/halt.c and
53487         commands/i386/pc/reboot.c.
53489 2005-02-14  Guillem Jover  <guillem@hadrons.org>
53491         * include/grub/dl.h (grub_dl_check_header): New prototype.
53492         (grub_arch_dl_check_header): Change return type to grub_err_t,
53493         remove size parameter and export function.  Update all callers.
53494         * kern/dl.c (grub_dl_check_header): New function.
53495         (grub_dl_load_core): Use `grub_dl_check_header' instead of
53496         `grub_arch_dl_check_header'.  Check ELF type.  Check if sections
53497         are inside the core.
53498         * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53499         independent ELF header checks.
53500         * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53501         * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53502         `grub_dl_check_header' instead of explicit checks.  Check for the
53503         ELF type.
53504         * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53505         `grub_dl_check_header' instead of explicit checks.  Remove arch
53506         specific ELF header checks.
53508         * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53509         argument SIZE.
53511 2005-02-13  Hollis Blanchard  <hollis@penguinppc.org>
53513         * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53514         * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53516 2005-02-12  Hollis Blanchard  <hollis@penguinppc.org>
53518         * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53519         return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53520         (part_map_iterate): Clear `grub_errno' and return 0 if
53521         `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53522         * partmap/amiga.c (amiga_partition_map_iterate): Return
53523         GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53524         * partmap/apple.c (apple_partition_map_iterate): Likewise.
53526 2005-02-01  Guillem Jover  <guillem@hadrons.org>
53528         * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53529         help info.
53531 2005-01-31  Marco Gerards  <metgerards@student.han.nl>
53533         * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53534         Removed prototype.
53535         (grub_rescue_cmd_linux): New prototype.
53536         (grub_rescue_cmd_initrd): Likewise.
53537         * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53538         `bi_rec'.
53539         (grub_linux_release_mem): Release the memory for the initrd.
53540         (grub_load_linux): Renamed from this...
53541         (grub_rescue_cmd_linux): ...To this.  Changed all callers.
53542         Changed `entry' not to be static.  Loop over memory regions to
53543         find another one when the default fails.
53544         (grub_rescue_cmd_initrd): New function.
53545         (grub_linux_init): Remove function.
53546         (grub_linux_fini): Likewise.
53547         (GRUB_MOD_INIT): Register `initrd'.
53548         (GRUB_MOD_FINI): Unregister `initrd'.
53549         * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53550         Function removed.
53551         (grub_linux_normal_fini): Likewise.
53552         (GRUB_MOD_INIT): Register `initrd'.
53553         (GRUB_MOD_FINI): Unregister `initrd'.
53555 2005-01-31  Marco Gerards  <metgerards@student.han.nl>
53557         * commands/help.c: New file.
53558         * normal/arg.c (show_help): Renamed to...
53559         (grub_arg_show_help): ... this.
53560         * commands/i386/pc/halt.c: New file.
53561         * commands/i386/pc/reboot.c: Likewise.
53562         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53563         (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53564         (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53565         (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53566         variables.
53567         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53568         `commands/help.c'.
53569         (pkgdata_MODULES): Add `help.mod'.
53570         (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53571         * grub/i386/pc/init.h (grub_reboot): New prototype.
53572         (grub_halt): Likewise.
53573         * include/grub/normal.h (grub_arg_show_help): New prototype.
53574         (grub_help_init): Likewise.
53575         (grub_help_fini): Likewise.
53576         * util/grub-emu.c (main): Initialize and deinitialize the help
53577         command.
53579         * normal/cmdline.c (grub_cmdline_get): Doc fix.
53581         * normal/command.c (grub_command_init): Fixed the description of
53582         the `set' and `unset' commands.
53584 2005-01-31  Marco Gerards  <metgerards@student.han.nl>
53586         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53587         function.
53588         * commands/ieee1275/halt.c: New file.
53589         * commands/ieee1275/reboot.c: Likewise.
53590         * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53591         `__attribute__ ((unused))'.  Some GCS related fixed.
53592         (grub_suspend_init) [GRUB_UTIL]: Function removed.
53593         (grub_suspend_fini): Likewise.
53594         * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53595         and `halt.mod'.
53596         (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53597         (halt_mod_CFLAGS): New variables.
53598         * include/grub/powerpc/ieee1275/ieee1275.h
53599         (grub_ieee1275_interpret): New prototype.
53601 2005-01-29  Yoshinori K. Okuji  <okuji@enbug.org>
53603         * include/grub/misc.h (memmove): New prototype.
53604         (memcpy): Likewise.
53606 2005-01-22  Hollis Blanchard  <hollis@penguinppc.org>
53608         * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53609         `devpath' to 0.  Use `name' instead of `devpath' with `grub_strndup'.
53611 2005-01-22  Marco Gerards  <metgerards@student.han.nl>
53613         * kern/misc.c (grub_strndup): Function rewritten.
53615 2005-01-22  Vincent Pelletier  <subdino2004@yahoo.fr>
53617         * normal/menu.c (TERM_WIDTH): Macro redefined.
53618         (TERM_TOP_BORDER_Y): Likewise.
53619         (draw_border): Replaced while-loop by a for-loop.  Make the number
53620         of lines consistent with the number of lines displayed in
53621         print_entries.  Added a margin below the rectangle.
53622         (print_entry): Make the entry fit in the rectangle.
53623         (print_entries): Display the scroll arrows next to the right
53624         border.
53626 2005-01-21  Marco Gerards  <metgerards@student.han.nl>
53628         * fs/minix.c (grub_minix_find_file): Reserve more space for
53629         `fpath' so the \0 can be stored.  Use `grub_strcpy' instead of
53630         `grub_strncpy' to copy `path' into it.
53632 2005-01-21  Marco Gerards  <metgerards@student.han.nl>
53634         Add the loopback device, a device via which files can be accessed
53635         as devices.
53637         * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53638         (pkgdata_MODULES): Add loopback.mod.
53639         (loopback_mod_SOURCES): New variable.
53640         (loopback_mod_CFLAGS): Likewise.
53641         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53642         `disk/loopback.c'.
53643         (pkgdata_MODULES): Add loopback.mod.
53644         (loopback_mod_SOURCES): New variable.
53645         (loopback_mod_CFLAGS): Likewise.
53646         * disk/loopback.c: new file.
53647         * include/grub/normal.h (grub_loop_init): New prototype.
53648         (grub_loop_fini): New prototype.
53649         * util/grub-emu.c (main): Initialize and de-initialize loopback
53650         support.
53651         * include/grub/disk.h (grub_disk_dev_id): Add
53652         `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53654 2005-01-20  Hollis Blanchard  <hollis@penguinppc.org>
53656         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53657         function.
53658         * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53659         (suspend_mod_SOURCES): New variable.
53660         (suspend_mod_CFLAGS): Likewise.
53661         * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53662         New prototype.
53663         * commands/ieee1275/suspend.c: New file.
53665 2005-01-20  Timothy Baldwin  <T.E.Baldwin99@members.leeds.ac.uk>
53667         * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53668         ((unused))' to `__attribute__ ((used))'.
53669         (GRUB_MOD_FINI): Likewise.
53670         * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53671         * genmk.rb (PModule): Assign space to common symbols when linking
53672         modules.
53674 2005-01-20  Marco Gerards  <metgerards@student.han.nl>
53676         * include/grub/mm.h (grub_mm_init_region): Change the type of the
53677         `unsigned' arguments to `grub_size_t'.
53678         (grub_malloc): Likewise.
53679         (grub_realloc): Likewise.
53680         (grub_memalign): Likewise.
53681         * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53682         * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53683         * util/misc.c (grub_malloc): Likewise.
53684         (grub_realloc): Likewise.
53685         * kern/mm.c (get_header_from_pointer): Change the casts to
53686         `unsigned' into a cast to `grub_size_t'.
53688         * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53689         point to `currnode' when `currnode' is changed.
53691         * util/grub-emu.c (main): Initialize `progname'.  Reported by Nico
53692         Schottelius <nico-linux@schottelius.org>.
53694 2005-01-09  Hollis Blanchard  <hollis@penguinppc.org>
53696         * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53697         (note_path): Remove variable.
53698         (GRUB_IEEE1275_NOTE_NAME): New macro.
53699         (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53700         (grub_ieee1275_note_hdr): New structure.
53701         (grub_ieee1275_note_desc): Likewise.
53702         (grub_ieee1275_note): Likewise.
53703         (load_note): Remove `dir' argument.  All callers updated.  Remove
53704         `note_img' and `path'.  Do not load a file from `note_path'.
53705         Initialize a struct grub_ieee1275_note and write that to `out'.
53706         Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53708 2005-01-05  Marco Gerards  <metgerards@student.han.nl>
53710         * util/misc.c (grub_util_read_image): Revert last change.  It
53711         called `grub_util_read_at', which seeks from the beginning of the
53712         file.
53714 2005-01-04  Hollis Blanchard  <hollis@penguinppc.org>
53716         * TODO: Add note about endianness in grub-mkimage.
53717         * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53718         section.
53719         * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53720         (grub_mkimage_SOURCES): New target.
53721         * include/grub/kernel.h (grub_start_addr): Remove variable.
53722         (grub_end_addr): Likewise.
53723         (grub_total_module_size): Likewise.
53724         (grub_kernel_image_size): Likewise.
53725         (GRUB_MODULE_MAGIC): New constant.
53726         (grub_module_info): New structure.
53727         (grub_arch_modules_addr): New prototype.
53728         (grub_get_end_addr): Remove prototype.
53729         * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53730         * include/grub/powerpc/ieee1275/kernel.h: New file.
53731         * include/grub/util/misc.h (grub_util_get_fp_size): New
53732         prototype.
53733         (grub_util_read_at): Likewise.
53734         (grub_util_write_image_at): Likewise.
53735         * kern/main.c (grub_get_end_addr): Remove function.
53736         (grub_load_modules): Call grub_arch_modules_addr instead of using
53737         grub_end_addr.  Look for a grub_module_info struct in memory.  Use
53738         the grub_module_info fields instead of calling grub_get_end_addr
53739         as loop conditions.  Move grub_add_unused_region code here.
53740         (grub_add_unused_region): Remove function.
53741         * kern/i386/pc/init.c: Include grub/cache.h.
53742         (grub_machine_init): Remove call to grub_get_end_addr.  Remove
53743         one call to add_mem_region.
53744         (grub_arch_modules_addr): New function.
53745         * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53746         (grub_total_module_size): Likewise.
53747         Include grub/machine/kernel.h.
53748         (grub_arch_modules_addr): New function.
53749         * util/grub-emu.c (grub_end_addr): Remove variable.
53750         (grub_total_module_size): Likewise.
53751         (grub_arch_modules_addr): New function.
53752         * util/misc.c: Include unistd.h.
53753         (grub_util_get_fp_size): New function.
53754         (grub_util_read_at): Likewise.
53755         (grub_util_write_image_at): Likewise.
53756         (grub_util_read_image): Call grub_util_read_at.
53757         (grub_util_write_image): Call grub_util_write_image_at.
53758         * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53759         additional memory in kernel_img for a struct grub_module_info.
53760         Fill in that grub_module_info.
53761         * util/powerpc/ieee1275/grub-mkimage.c: New file.
53763 2005-01-03  Hollis Blanchard  <hollis@penguinppc.org>
53765         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53766         New function.
53767         * include/grub/powerpc/ieee1275/ieee1275.h
53768         (grub_ieee1275_milliseconds): New prototype.
53769         * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53770         Change to 1000.
53771         * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53772         grub_ieee1275_milliseconds.
53774 2005-01-03  Hollis Blanchard  <hollis@penguinppc.org>
53776         * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53777         variable.
53778         (find_options): New function.
53779         (cmain): Call find_options.
53780         * include/grub/powerpc/ieee1275/ieee1275.h
53781         (grub_ieee1275_realmode): New extern variable.
53782         * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53783         grub_map if grub_ieee1275_realmode is false.
53785 2004-12-29  Marco Gerards  <metgerards@student.han.nl>
53787         * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53788         lines are inserted and make it work like readline.  Reported by
53789         Vincent Pelletier <subdino2004@yahoo.fr>.
53791 2004-12-28  Marco Gerards  <metgerards@student.han.nl>
53793         * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53795         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53796         `kern/powerpc/cache.S'.
53798 2004-12-27  Marco Gerards  <metgerards@student.han.nl>
53800         * genmk.rb: Handle the `Program' class in the main loop.  Written
53801         by Johan Rydberg <jrydberg@gnu.org>.
53802         (Program): New class.
53803         (programs): New variable.
53804         * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53805         instead of "grub/machine/ieee1275.h".  Include <grub/kernel.h>
53806         instead of "grub/kernel.h".  Include <grub/machine/init.h>.
53807         (help_arch): Function removed.
53808         * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53809         `powerpc/libgcc.h' and `loader.h'.
53810         (pkgdata_PROGRAMS): New variable.
53811         (sbin_UTILITIES): Variable removed.
53812         (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53813         (grubof_SOURCES): Variable re-defined so it only includes the
53814         core functionality.
53815         (grubof_CFLAGS): Remove `-DGRUBOF'.
53816         (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53817         (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53818         (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53819         (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53820         (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53821         (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53822         (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53823         (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53824         (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53825         (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53826         (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53827         (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53828         (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53829         (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53830         (pc_mod_CFLAGS): New variables.
53831         * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53832         (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53833         * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53834         * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53835         Moved from here...
53836         * include/grub/i386/pc/init.h (grub_os_area_addr)
53837         (rub_os_area_size): ... to here.
53838         * include/grub/powerpc/ieee1275/ieee1275.h
53839         (grub_ieee1275_entry_fn): Export symbol.
53840         * include/grub/powerpc/ieee1275/init.h: New file.
53841         * include/grub/powerpc/libgcc.h: Likewise.
53842         * include/grub/cache.h: Likewise.
53843         * kern/powerpc/cache.S: Likewise.  Written by Hollis Blanchard
53844         <hollis@penguinppc.org>.
53845         * kern/dl.c: Include <grub/cache.h>.
53846         (grub_dl_flush_cache): New function.
53847         (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53848         for this module.
53849         * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53850         (grub_console_init): Removed prototypes.
53851         (grub_machine_init): Don't initialize the modules anymore.
53852         * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53853         static.
53854         * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53855         Macro undef removed.
53856         (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53857         * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53858         relocation `R_PPC_REL32'.  Return an error when the relocation is
53859         unknown.
53860         * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53861         * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53862         * util/misc.c (grub_arch_sync_caches): Likewise.
53864 2004-12-19  Marco Gerards  <metgerards@student.han.nl>
53866         * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53867         `symlist.c', add `grubof_symlist.c'.
53868         (symlist.c): Variable removed.
53869         (grubof_HEADERS): Variable added.
53870         (grubof_symlist.c): New target.
53871         (kernel_syms.lst): Use `grubof_HEADERS' instead of
53872         `kernel_img_HEADERS'.
53873         (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53874         * kern/powerpc/dl.c: New file.
53875         * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53876         Function removed.
53877         (grub_arch_dl_relocate_symbols): Likewise.
53878         (grub_register_exported_symbols): Likewise.
53880 2004-12-13  Marco Gerards  <metgerards@student.han.nl>
53882         * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53883         (grub_ext2_dir): Likewise.  Don't return in case of an error, jump
53884         to fail instead.  Reported by Vincent Pelletier
53885         <subdino2004@yahoo.fr>.
53887         * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53888         it is not allocated.  Reported by Vincent Pelletier
53889         <subdino2004@yahoo.fr>.
53891         * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53892         output so the output looks better.
53894 2004-12-04  Marco Gerards  <metgerards@student.han.nl>
53896         Modulize the partition map support and add support for the amiga
53897         partition map.
53899         * commands/ls.c: Include <grub/partition.h> instead of
53900         <grub/machine/partition.h>.
53901         * kern/disk.c: Likewise.
53902         * kern/rescue.c: Likewise.
53903         * loader/i386/pc/chainloader.c: Likewise.
53904         * normal/cmdline.c: Likewise.
53905         * kern/powerpc/ieee1275/init.c: Likewise.
53906         (grub_machine_init): Call `grub_pc_partition_map_init',
53907         `grub_amiga_partition_map_init' and
53908         `grub_apple_partition_map_init'.
53909         * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53910         `disk/i386/pc/partition.c'.  Add `kern/partition.c'.
53911         (kernel_img_HEADERS): Remove `machine/partition.h'.  Add
53912         `partition.h' and `pc_partition.h'.
53913         (grub_setup_SOURCES): Remove
53914         `disk/i386/pc/partition.c'.  Add `kern/partition.c',
53915         `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53916         (grub_emu_SOURCES): Likewise.
53917         (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53918         (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53919         (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53920         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53921         `disk/powerpc/ieee1275/partition.c'.  Add `kern/partition.c',
53922         `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53923         (grubof_SOURCES): Likewise.
53924         * disk/i386/pc/partition.c: File removed.
53925         * disk/powerpc/ieee1275/partition.c: Likewise.
53926         * include/grub/powerpc/ieee1275/partition.h: Likewise.
53927         * include/grub/i386/pc/partition.h: Likewise.
53928         * kern/partition.c: New file.
53929         * partmap/amiga.c: Likewise.
53930         * partmap/apple.c: Likewise.
53931         * partmap/pc.c: Likewise.
53932         * include/grub/partition.h: Likewise..
53933         * include/grub/pc_partition.h: Likewise.
53934         * util/grub-emu.c: Include <grub/partition.h> instead of
53935         <grub/machine/partition.h>.
53936         (main): Call `grub_pc_partition_map_init',
53937         `grub_amiga_partition_map_init' and
53938         `grub_apple_partition_map_init' and deinitialize afterwards.
53939         * util/i386/pc/biosdisk.c: Include `#include
53940         <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53941         `<grub/machine/partition.h>'.
53942         * util/i386/pc/grub-setup.c: Likewise.
53943         * util/i386/pc/biosdisk.c: Likewise.
53944         (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53945         partition information in case of a PC partition.
53946         * util/i386/pc/grub-setup.c: Include `#include
53947         <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53948         `<grub/machine/partition.h>'.
53949         (setup): Only access the PC specific partition information in case
53950         of a PC partition.
53952 2004-11-17  Hollis Blanchard  <hollis@penguinppc.org>
53954         * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53955         (grub_longjmp): Likewise.
53956         * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53957         20.
53958         * normal/powerpc/setjmp.S: New file.
53959         * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53960         `normal/powerpc/setjmp.S'.
53961         (grubof_CFLAGS): Add `-DGRUBOF'.
53962         * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53963         [GRUB_UTIL && !GRUBOF].
53965 2004-11-16  Marco Gerards  <metgerards@student.han.nl>
53967         * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53968         property named `name'.  Correctly handle the error returned by
53969         `grub_ieee1275_finddevice' if a device can not be opened.
53971 2004-11-02  Hollis Blanchard  <hollis@penguinppc.org>
53973         * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53974         `actual' for negativity.
53975         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53976         kern/fshelp.c.
53978 2004-11-01  Marco Gerards  <metgerards@student.han.nl>
53980         * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53981         (PAGE_OFFSET): New macro.
53982         (CRTC_ADDR_PORT): Likewise.
53983         (CRTC_DATA_PORT): Likewise.
53984         (START_ADDR_HIGH_REGISTER): Likewise.
53985         (START_ADDR_LOW_REGISTER): Likewise.
53986         (GRAPHICS_ADDR_PORT): Likewise.
53987         (GRAPHICS_DATA_PORT): Likewise.
53988         (READ_MAP_REGISTER): Likewise.
53989         (INPUT_STATUS1_REGISTER): Likewise.
53990         (INPUT_STATUS1_VERTR_BIT): Likewise.
53991         (page): New variable.
53992         (wait_vretrace): New function.
53993         (set_read_map): Likewise.
53994         (set_start_address): Likewise.
53995         (grub_vga_init): Use mode 0x10 instead of mode 0x12.  Switch to
53996         the right page.
53997         (check_vga_mem): Take the page into account.
53998         (write_char): Likewise.
53999         (write_cursor): Likewise.
54000         (scroll_up): Likewise.  Copy the page to the page that is not
54001         shown and switch between both pages.
54002         (grub_vga_putchar): Fix off by one error.
54003         (grub_vga_cls): Wait for the vertical retrace.  Take the page into
54004         account.
54006 2004-11-01  Marco Gerards  <metgerards@student.han.nl>
54008         Add support for iso9660 (including rockridge).
54010         * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
54011         (iso9660_mod_SOURCES): New variable.
54012         (iso9660_mod_CFLAGS): Likewise.
54013         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
54014         * include/grub/fs.h (grub_iso9660_init): New prototype.
54015         * util/grub-emu.c (main): Call `grub_iso9660_init'.
54016         * fs/iso9660.c: New file.
54018         * include/grub/misc.h (grub_strncat): New prototype.
54019         * kern/misc.c (grub_strncat): New function.
54021         * fs/hfs.c (grub_hfs_mount): Translate the error
54022         `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
54023         * fs/jfs.c (grub_jfs_mount): Likewise.
54024         * fs/ufs.c (grub_ufs_mount): Likewise.
54026 2004-10-28  Hollis Blanchard  <hollis@penguinppc.org>
54028         * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
54029         which initialized BAT registers.
54030         * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
54031         grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
54032         Move from here...
54033         * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
54034         grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
54035         ... to here.
54036         * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
54037         (grub_mapclaim): Likewise.
54038         * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
54039         grub_mapclaim instead of grub_ieee1275_claim.  Assign linux_addr by
54040         hand.
54042 2004-10-19  Hollis Blanchard  <hollis@penguinppc.org>
54044         * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
54045         (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
54046         -ffreestanding and -msoft-float.
54048 2004-10-15  Hollis Blanchard  <hollis@penguinppc.org>
54050         * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
54051         append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
54052         set in grub_ieee1275_flags.
54054 2004-10-14  Hollis Blanchard  <hollis@penguinppc.org>
54056         * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
54057         prototype.
54058         * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
54059         grub_console_init first.
54060         Change the memory range used for grub_ieee1275_claim and
54061         grub_mm_init_region.
54062         Print an error message if the claim fails.
54063         Include <grub/misc.h>.
54065 2004-10-13  Hollis Blanchard  <hollis@penguinppc.org>
54067         * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
54068         Call grub_children_iterate for device nodes of type `scsi',
54069         `ide', or `ata'.
54070         (grub_ofdisk_open): Remove manual device alias resolution.
54071         Fix memory leak when device cannot be opened.
54072         * include/grub/powerpc/ieee1275/ieee1275.h
54073         (grub_children_iterate): New prototype.
54074         * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
54075         New function.
54076         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54077         Return -1 if args.size was -1.
54079 2004-10-11  Hollis Blanchard  <hollis@penguinppc.org>
54081         * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
54082         (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
54083         World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
54084         Open Firmware's memory for it; claim memory from _start to _end.
54085         * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
54086         (_end): New extern.
54087         (_start): Zero BSS from __bss_start to _end.
54088         * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
54089         New extern.
54090         (GRUB_IEEE1275_NO_PARTITION_0): New #define.
54092 2004-10-11  Hollis Blanchard  <hollis@penguinppc.org>
54094         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
54095         -1 if args.base was -1.
54097 2004-10-08  Hollis Blanchard  <hollis@penguinppc.org>
54099         * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
54100         escape sequence instead of a literal ^L. Also call
54101         grub_ofconsole_gotoxy.
54103 2004-10-03  Hollis Blanchard  <hollis@penguinppc.org>
54105         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54106         void *  arguments to grub_addr_t.  All callers updated.  Also make
54107         the `result' argument optional.
54108         (grub_ieee1275_release): change void * arguments to grub_addr_t.
54109         All callers updated.
54111 2004-09-22  Hollis Blanchard  <hollis@penguinppc.org>
54113         * commands/ls.c (grub_ls_list_files): Use the string following the
54114         initial ')', if present, as the filesystem path.
54115         * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54117         * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54119 2004-09-18  Yoshinori K. Okuji  <okuji@enbug.org>
54121         Make the source code of the menu interface more readable.
54123         * normal/menu.c: Include grub/mm.h.
54124         (TERM_WIDTH): New macro.
54125         (TERM_HEIGHT): Likewise.
54126         (TERM_INFO_HEIGHT): Likewise.
54127         (TERM_MARGIN): Likewise.
54128         (TERM_SCROLL_WIDTH): Likewise.
54129         (TERM_TOP_BORDER_Y): Likewise.
54130         (TERM_LEFT_BORDER_X): Likewise.
54131         (TERM_BORDER_WIDTH): Likewise.
54132         (TERM_MESSAGE_HEIGHT): Likewise.
54133         (TERM_BORDER_HEIGHT): Likewise.
54134         (TERM_NUM_ENTRIES): Likewise.
54135         (TERM_FIRST_ENTRY_Y): Likewise.
54136         (TERM_ENTRY_WIDTH): Likewise.
54137         (TERM_CURSOR_X): Likewise.
54138         (draw_border): Use macros instead of magic numbers.
54139         (print_entry): Likewise.
54140         (print_entries): Likewise.
54141         (run_menu): Likewise. Also, handle the key 'e'.
54142         (run_menu_entry): Ignore empty command lines.
54143         (print_message): Added a new argument EDIT. If EDIT is true,
54144         print a different message.
54145         (init_page): Likewise.
54146         (edit_menu_entry): New function. Not implemented yet.
54148 2004-09-17  Marco Gerards  <metgerards@student.han.nl>
54150         Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54151         can be loaded from normal mode.
54153         * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54154         `multiboot.mod'.
54155         (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54156         (multiboot_mod_CFLAGS): New variables.
54157         * loader/i386/pc/linux_normal.c: New file.
54158         * loader/i386/pc/multiboot_normal.c: Likewise.
54160         * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54161         attribute `unused'.
54163         * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type.  Use
54164         `fdiro' to read the mode information from instead of `diro'.
54166         * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54167         looking up a symlink.
54169         * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54170         macro.
54171         * normal/command.c (grub_command_execute): Don't parse the
54172         arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54173         flags of the command.
54175         * normal/menu.c (grub_menu_run): Fix typo.
54177 2004-09-14  Hollis Blanchard  <hollis@penguinppc.org>
54179         * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54181         * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54182         `y + 1' instead of `y - 1'.
54184         * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54186 2004-09-14  Yoshinori K. Okuji  <okuji@enbug.org>
54188         From Hollis Blanchard <hollis@penguinppc.org>:
54189         * kern/misc.c (memmove): New alias for grub_memmove.
54190         (memcmp): New alias for grub_memcmp.
54191         (memset): New alias for grub_memset.
54192         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54193         Change "int handle" to "grub_ieee1275_phandle_t handle".
54194         * include/grub/powerpc/ieee1275/ieee1275.h
54195         (grub_ieee1275_get_property): Likewise.
54197 2004-09-12  Tomas Ebenlendr  <ebik@ucw.cz>
54199         Added normal mode command `chainloader' as module chain.mod, which
54200         depends on normal.mod and _chain.mod.
54202         * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54203         (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54204         * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54205         Deleted prototype.
54206         * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54207         but arguments parsing moved to ...
54208         (grub_chainloader_cmd): ... here.  New function.
54209         * include/grub/i386/pc/chainloader.h: New file.
54210         * loader/i386/pc/chainloader_normal.c: Likewise.
54212 2004-09-11  Marco Gerards  <metgerards@student.han.nl>
54214         * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54215         (grub_mkimage_LDFLAGS): Likewise.
54216         (grub_emu_SOURCES): Likewise.
54217         (kernel_img_HEADERS): Added fshelp.h.
54218         * fs/ext2.c: Include <grub/fshelp.h>.
54219         (FILETYPE_REG): New macro.
54220         (FILETYPE_INO_REG): Likewise.
54221         (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54222         Changed all users.
54223         (ext2_block_group): Renamed to `grub_ext2_block_group'.  Changed
54224         all users.
54225         (grub_fshelp_node): New struct.
54226         (grub_ext2_data): Added member `diropen'.  Changed member `inode'
54227         to a pointer.
54228         (grub_ext2_get_file_block): Removed function.
54229         (grub_ext2_read_block): New function.
54230         (grub_ext2_read_file): Replaced parameter `data' by `node'.
54231         This function was written.
54232         (grub_ext2_mount): Read the root inode.  Create a diropen struct.
54233         (grub_ext2_find_file): Removed function.
54234         (grub_ext2_read_symlink): New function.
54235         (grub_ext2_iterate_dir): Likewise.
54236         (grub_ext2_open): Rewritten.
54237         (grub_ext2_dir): Rewritten.
54238         * include/grub/fshelp.h: New file.
54239         * fs/fshelp.c: Likewise.
54241 2004-09-10  Yoshinori K. Okuji  <okuji@enbug.org>
54243         * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54244         (print_message): Add a missing newline.
54245         (run_menu): Added timeout support.
54246         (run_menu_entry): New local function.
54247         (grub_menu_run): Added support for booting.
54249         * kern/loader.c (grub_loader_is_loaded): New function.
54251         * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54252         (grub_get_rtc): Exported.
54254         * include/grub/i386/pc/time.h: Include grub/symbol.h.
54255         (grub_get_rtc): Exported.
54257         * include/grub/normal.h (struct grub_command_list): Remove
54258         constant from the member `command'.
54260         * include/grub/loader.h (grub_loader_is_loaded): Declared.
54262         * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54264         * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54266 2004-08-28  Marco Gerards  <metgerards@student.han.nl>
54268         Add support for the JFS filesystem.
54270         * fs/jfs.c: New file.
54271         * include/grub/fs.h (grub_jfs_init): New prototype.
54272         (grub_jfs_fini): New prototype.
54273         * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54274         (grub_emu_SOURCES): Likewise.
54275         (pkgdata_MODULES): Add jfs.mod.
54276         (jfs_mod_SOURCES): New variable.
54277         (jfs_mod_CFLAGS): Likewise.
54278         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54279         (grubof_SOURCES): Likewise.
54280         * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54282         * fs/fat.c (grub_fat_find_dir): Convert the filename little
54283         endian to the host endian.
54284         (grub_fat_utf16_to_utf8): Move function from there...
54285         * kern/misc.c (grub_utf16_to_utf8): ...to here.  Do not convert
54286         the endianness of the source string anymore.
54287         * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54289 2004-08-24  Marco Gerards  <metgerards@student.han.nl>
54291         * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54292         (grub_boot_fini) [GRUB_UTIL]: Likewise.
54293         (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54294         (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54296         * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54297         (grub_hfs_iterate_dir): Make the function static.  Add prototypes
54298         for `node_found' and `it_dir'.
54299         (grub_hfs_dir): Add prototype for `dir_hook'.
54301         * fs/minix.c (grub_minix_get_file_block): Add prototype for
54302         `grub_get_indir'.  Rename `indir' in two blocks to `indir16'
54303         and `indir32' to silence a gcc warning.
54305         * include/grub/fs.h (grub_hfs_init): New prototype.
54306         (grub_hfs_fini): Likewise.
54309 2004-08-21  Yoshinori K. Okuji  <okuji@enbug.org>
54311         Each disk device has its own id now. This is useful to make use
54312         of multiple disk devices.
54314         * include/grub/disk.h (grub_disk_dev_id): New enum.
54315         (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54316         (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54318         * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54319         GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54321         * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54322         GRUB_DISK_DEVICE_OFDISK_ID as an id.
54324         * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54325         GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54327         * include/grub/disk.h (struct grub_disk_dev): Added a new member
54328         "id" which is used by the cache manager.
54330         * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54331         of just "GRUB".
54333 2004-08-18  Marco Gerards  <metgerards@student.han.nl>
54335         * fs/hfs.c: New file.
54336         * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54337         (grub_emu_SOURCES): Likewise.
54338         (pkgdata_MODULES): Add hfs.mod.
54339         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54340         (grubof_SOURCES): Likewise.
54341         * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54343         * include/grub/misc.h (grub_strncasecmp): Add prototype.
54344         * kern/misc.c (grub_strncasecmp): Add function.
54346 2004-08-14  Marco Gerards  <metgerards@student.han.nl>
54348         * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54349         with parentheses.
54351         * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54352         (grub_ext2_dir): In case the directory entry type is unknown, read
54353         it from the inode.
54355 2004-08-02  Peter Bruin  <pjbruin@dds.nl>
54357         * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54358         grub_load_linux instead of grub_rescue_cmd_linux as second
54359         argument of grub_rescue_register_command.
54361         * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54363 2004-07-27  Marco Gerards  <metgerards@student.han.nl>
54365         * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54366         function.
54367         * commands/boot.c: Remove the check for `GRUB_UTIL'.
54368         * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54369         `loader/powerpc/ieee1275/linux.c',
54370         `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54371         * include/grub/powerpc/ieee1275/ieee1275.h
54372         (grub_ieee1275_release): New prototype.
54373         * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54374         * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54375         normal, boot, linux and linux_normal.
54376         * loader/powerpc/ieee1275/linux.c: New file.
54377         * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54379 2004-07-12  Marco Gerards  <metgerards@student.han.nl>
54381         * normal/arg.c (grub_arg_parse): Correct error handling after
54382         reallocating the argumentlist (check if `argl' is not null instead
54383         of checking if `args' is not null).
54384         * kern/mm.c (grub_realloc): Return the same pointer when using the
54385         same region, instead of returning the header address.
54387 2004-07-11  Marco Gerards  <metgerards@student.han.nl>
54389         * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54390         one block instead of two when looking for the initial partition.
54391         (grub_partition_probe): Initialize the local variable `p' with 0.
54392         Use base 10 for the grub_strtoul call.
54393         * kern/misc.c (grub_strncpy): Fix off by one bug.  Eliminated the
54394         need for one local variable.
54395         (grub_strtoul): Don't add the new value to `num', instead of that
54396         just assign it.
54398 2004-07-11  Marco Gerards  <metgerards@student.han.nl>
54400         * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54401         (pxeboot_img_SOURCES): New variable.
54402         (pxeboot_img_ASFLAGS): Likewise.
54403         (pxeboot_img_LDFLAGS): Likewise.
54404         * boot/i386/pc/pxeboot.S: New file.  Based on pxeloader.S from
54405         GRUB Legacy and boot.S.  Adopted for GRUB 2 by lode leroy
54406         <lode_leroy@hotmail.com>.
54408 2004-06-27  Tomas Ebenlendr  <ebik@ucw.cz>
54410         * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54411         there was no input.
54413 2004-06-27  Tomas Ebenlendr  <ebik@ucw.cz>
54415         * normal/cmdline.c (grub_set_history): Fix off by one bug.  Fixed
54416         the history buffer logic.
54418 2004-06-27  Tomas Ebenlendr  <ebik@ucw.cz>
54420         * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54421         (FILETYPE_INO_SYMLINK): New macros.
54422         (grub_ext2_find_file): Check if the node is a directory using the
54423         inode stat information instead of using the filetype in the
54424         dirent.  Exclude the first character of an absolute symlink.
54425         (grub_ext2_dir): Mask out the filetype part of the mode member of
54426         the inode.
54428 2004-05-24  Marco Gerards  <metgerards@student.han.nl>
54430         Add support for UFS version 1 and 2.  Add support for the minix
54431         filesystem version 1 and 2, both the variants with 14 and 30 long
54432         filenames.
54434         * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54435         fs/minix.c.
54436         (grub_emu_SOURCES): Likewise.
54437         (pkgdata_MODULES): Add ufs.mod and minix.mod.
54438         (ufs_mod_SOURCES): New variable.
54439         (ufs_mod_CFLAGS): Likewise.
54440         (minix_mod_SOURCES): Likewise.
54441         (minix_mod_CFLAGS): Likewise.
54442         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54443         fs/minix.c.
54444         (grubof_SOURCES): Likewise.
54445         * fs/ufs.c: New file.
54446         * fs/minix.c: New file.
54447         * include/grub/fs.h (grub_ufs_init): New prototype.
54448         (grub_ufs_fini): Likewise.
54449         (grub_minix_init): Likewise.
54450         (grub_minix_fini): Likewise.
54451         * util/grub-emu.c (main): Initialize and deinitialize UFS and
54452         minix fs.
54454 2004-04-30  Jeroen Dekkers  <jeroen@dekkers.cx>
54456         * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54457         commands/ls.c, commands/terminal.c, commands/boot.c,
54458         commands/cmp.c and commands/cat.c.
54459         (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54461         * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54462         "env.h"
54464 2004-04-04  Yoshinori K. Okuji  <okuji@enbug.org>
54466         All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54467         and grub_, respectively. Because the conversion is trivial and
54468         mechanical, I omit the details here. Please refer to the CVS
54469         if you need more information.
54471 2004-04-04  Yoshinori K. Okuji  <okuji@enbug.org>
54473         * include/pupa: Renamed to ...
54474         * include/grub: ... this.
54475         * util/i386/pc/pupa-mkimage.c: Renamed to ...
54476         * util/i386/pc/grub-mkimage.c: ... this.
54477         * util/i386/pc/pupa-setup.c: Renamed to ...
54478         * util/i386/pc/grub-setup.c: ... this.
54479         * util/pupa-emu.c: Renamed to ...
54480         * util/grub-emu.c: ... this.
54482 2004-03-29  Marco Gerards  <metgerards@student.han.nl>
54484         Add support for the newworld apple macintosh (PPC).  This has been
54485         tested on the powerbook 2000 only.  It only adds support for
54486         generic ieee1275 functions, console and disk support.  This should
54487         be easy to port to other architectures with support for Open
54488         Firmware.
54490         * configure.ac: Accept the powerpc as host_cpu.  In the case of
54491         the powerpc cpu set the host_vendor to ieee1275.  Make sure the i386
54492         specific tests are only executed while building for the i386.
54493         Inverse test for crosscompile.
54494         * genmk.rb (Utility): Allow assembler files.
54495         * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54496         * conf/powerpc-ieee1275.rmk: New file.
54497         * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54498         * disk/powerpc/ieee1275/partition.c: Likewise.
54499         * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54500         * include/pupa/powerpc/ieee1275/console.h: Likewise.
54501         * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54502         * include/pupa/powerpc/ieee1275/time.h: Likewise.
54503         * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54504         * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54505         * include/pupa/powerpc/ieee1275/loader.h
54506         * include/pupa/powerpc/setjmp.h: Likewise.
54507         * include/pupa/powerpc/types.h: Likewise.
54508         * kern/powerpc/ieee1275/init.c: Likewise.
54509         * kern/powerpc/ieee1275/openfw.c: Likewise.
54510         * term/powerpc/ieee1275/ofconsole.c: Likewise.
54512         These files were written by Johan Rydberg
54513         (jrydberg@night.trouble.net) and I only modified them slightly.
54515         * boot/powerpc/ieee1275/cmain.c: New file.
54516         * boot/powerpc/ieee1275/crt0.S: Likewise.
54517         * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54518         * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54520 2004-03-14  Jeroen Dekkers  <jeroen@dekkers.cx>
54522         * Makefile.in: Update copyright.
54523         * genmodsrc.sh: Likewise.
54524         * gensymlist.sh: Likewise.
54525         * term/i386/pc/vga.c: Indent correctly.
54527         * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54528         bugreporting address.
54529         * util/i386/pc/pupa-setup.c (usage): Likewise,
54530         (main): Call pupa_ext2_init and pupa_ext2_fini.
54532         * fs/fat.c (log2): Renamed to ...
54533         (fat_log2): ... this.
54534         All callers changed.
54535         * kern/misc.c (memcpy): Alias to pupa_memmove.
54536         * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54537         lvalue cast.
54538         * util/console.c (pupa_ncurses_fini): Return 0.
54540         * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54541         Move fail label here.
54542         [__GNU__]: Don't warn when using stat.
54543         (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54544         (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54545         long int. Use strtol instead of strtoul.
54547 2004-03-14  Marco Gerards  <metgerards@student.han.nl>
54549         * commands/boot.c: New file.
54550         * commands/cat.c: Likewise.
54551         * commands/cmp.c: Likewise.
54552         * commands/ls.c: Likewise.
54553         * commands/terminal.c: Likewise.
54554         * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54555         (pupa_register_command): Changed interface to match the new
54556         argument parser.
54557         (pupa_command_execute): Changed (almost rewritten) so it uses
54558         pupa_split_command.  Added support for setting variables using the
54559         syntax `foo=bar'.
54560         (rescue_command): Changed to work with the new argument parser.
54561         (terminal_command): Moved from here to commands/terminal.c.
54562         (set_command): New function.
54563         (unset_command): New function.
54564         (insmod_command): New function.
54565         (rmmod_command): New function.
54566         (lsmod_command): New function.
54567         (pupa_command_init): Don't initialize the command terminal
54568         anymore.  Initialize the commands set, unset, insmod, rmmod and
54569         lsmod.
54570         * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54571         (kernel_img_HEADERS): Add arg.h and env.h.
54572         (pupa_mkimage_LDFLAGS): Add kern/env.c.
54573         (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54574         commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54575         normal/arg.c.
54576         (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54577         terminal.mod.
54578         (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54579         (boot_mod_SOURCES): New variable.
54580         (terminal_mod_SOURCES): Likewise.
54581         (ls_mod_SOURCES): Likewise.
54582         (cmp_mod_SOURCES): Likewise.
54583         (cat_mod_SOURCES): Likewise.
54585         * normal/arg.c: New file.
54586         * kern/env.c: Likewise.
54587         * include/pupa/arg.h: Likewise.
54588         * include/pupa/env.h: Likewise.
54589         * font/manager.c (font_command): Changed to match argument parsing
54590         interface changes.
54591         (PUPA_MOD_INIT): Likewise.
54592         * hello/hello.c (pupa_cmd_hello): Likewise.
54593         (PUPA_MOD_INIT): Likewise.
54594         * include/pupa/disk.h: Include <pupa/device.h>.
54595         (pupa_print_partinfo): New prototype.
54596         * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54597         (pupa_dl_get_prefix): Likewise.
54598         * include/pupa/misc.h: Include <pupa/err.h>.
54599         (pupa_isgraph): New prototype.
54600         (pupa_isdigit): Likewise.
54601         (pupa_split_cmdline): Likewise.
54602         * include/pupa/normal.h: Include <pupa/arg.h>.
54603         (pupa_command): Changed the prototype of the member `func' to
54604         match the argument parsing interface.  Added member `options'.
54605         (pupa_register_command): Updated to match function.
54606         (pupa_arg_parse): New prototype.
54607         (pupa_hello_init) [PUPA_UTIL]: New prototype.
54608         (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54609         (pupa_ls_init) [PUPA_UTIL]: Likewise.
54610         (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54611         (pupa_cat_init) [PUPA_UTIL]: Likewise.
54612         (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54613         (pupa_boot_init) [PUPA_UTIL]: Likewise.
54614         (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54615         (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54616         (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54617         (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54618         (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54619         * kern/disk.c: Include <pupa/file.h>.
54620         (pupa_print_partinfo): New function.
54621         * kern/dl.c: Include <pupa/env.h>.
54622         (pupa_dl_dir): Variable removed.
54623         (pupa_dl_load): Use the environment variable `prefix' instead of
54624         the variable pupa_dl_dir.
54625         (pupa_dl_set_prefix): Function removed.
54626         (pupa_dl_get_prefix): Likewise.
54627         * kern/i386/pc/init.c: Include <pupa/env.h>.
54628         (pupa_machine_init): Use the environment variable `prefix' instead of
54629         using pupa_dl_set_prefix to set the prefix.
54630         * kern/main.c: Include <pupa/env.h>.
54631         (pupa_set_root_dev): Use the environment variable `prefix' instead of
54632         using pupa_dl_get_prefix to get the prefix.
54633         * kern/misc.c: Include <pupa/env.h>.
54634         (pupa_isdigit): New function.
54635         (pupa_isgraph): Likewise.
54636         (pupa_ftoa): Likewise.
54637         (pupa_vsprintf): Added support for printing values of the type
54638         `double'.  Make it possible to format variable output when using
54639         formatting like `%1.2%f'.
54640         (pupa_split_cmdline): New function.
54641         * kern/rescue.c: Include <pupa/env.h>.
54642         (next_word): Removed function.
54643         (pupa_rescue_cmd_prefix): Likewise.
54644         (pupa_rescue_cmd_set): New function.
54645         (pupa_rescue_cmd_unset): New function.
54646         (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54647         split the command line instead of splitting it here.  Added
54648         support for setting variables using the syntax `foo=bar'.  Don't
54649         initialize the prefix command anymore.  Initialized the set and
54650         unset commands.
54651         * normal/cmdline.c: Include <pupa/env.h>.
54652         (pupa_tab_complete): Added prototypes for print_simple_completion,
54653         print_partition_completion, add_completion, iterate_commands,
54654         iterate_dev, iterate_part and iterate_dir. Moved code to print
54655         partition information from here to kern/disk.c.
54656         (pupa_cmdline_run): Don't check if the function exists anymore.
54657         * normal/main.c: Include <pupa/env.h>.
54658         (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54659         instead of using pupa_dl_get_prefix to get the prefix.
54660         * term/i386/pc/vga.c: Include <pupa/arg.h>.
54661         (check_vga_mem): Cast pointers to `void *' to silence a gcc
54662         warning.
54663         (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54664         (pupa_vga_setcolor): Declare unused variables with `__attribute__
54665         ((unused))' to silence a gcc warning.
54666         (pupa_vga_setcolor): Likewise.
54667         (debug_command): Changed to match argument parsing
54668         interface changes.
54669         * util/pupa-emu.c: Include <pupa/env.h>.
54670         (options): Added 0's for unused fields to silence a gcc warning.
54671         (argp): Likewise.
54672         (main): Use the environment variable `prefix' instead of using
54673         pupa_dl_set_prefix to set the prefix.  Initialize the commands ls,
54674         boot, cmp, cat and terminal.  Finish the commands boot, cmp, cat
54675         and terminal.
54677         * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54678         * util/misc.c: Include <malloc.h>.
54679         (pupa_malloc): Rewritten so errors are correctly reported.
54680         (pupa_realloc): Likewise.
54681         (pupa_memalign): Likewise.
54682         (pupa_mm_init_region): Declare unused variables with
54683         `__attribute__ ((unused))' to silence a gcc warning.
54684         * normal/i386/setjmp.S: Remove tab at the end of the file to
54685         silence a gcc warning.
54686         * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54687         variables with `__attribute__ ((unused))' to silence a gcc
54688         warning.
54689         * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54690         local variable i unsigned to silence a gcc warning.
54692         * kern/term.c: Include <pupa/misc.h>.
54693         (pupa_more_lines): New variable.
54694         (pupa_more): Likewise.
54695         (pupa_putcode): When the pager is active pause at the end of every
54696         screen.
54697         (pupa_set_more): New function.
54698         * include/pupa/term.h (pupa_set_more): New prototype.
54701 2004-03-07  Yoshinori K. Okuji  <okuji@enbug.org>
54703         Now this project is GRUB 2 rather than PUPA. The location of
54704         the CVS repository was moved to GRUB's.
54706         * configure.ac: Use bug-grub as the reporting address.
54707         Use GRUB instead of PUPA.
54708         Change the version number to 1.90.
54710 2004-02-24  Yoshinori K. Okuji  <okuji@enbug.org>
54712         * genkernsyms.sh: Updated copyright information.
54713         * genmk.rb: Likewise.
54714         * genmodsrc.sh: Likewise.
54715         * gensymlist.sh: Likewise.
54716         * boot/i386/pc/boot.S: Likewise.
54717         * boot/i386/pc/diskboot.S: Likewise.
54718         * disk/i386/pc/biosdisk.c: Likewise.
54719         * disk/i386/pc/partition.c: Likewise.
54720         * font/manager.c: Likewise.
54721         * fs/ext2.c: Likewise.
54722         * fs/fat.c: Likewise.
54723         * include/pupa/boot.h: Likewise.
54724         * include/pupa/device.h: Likewise.
54725         * include/pupa/disk.h: Likewise.
54726         * include/pupa/dl.h: Likewise.
54727         * include/pupa/elf.h: Likewise.
54728         * include/pupa/err.h: Likewise.
54729         * include/pupa/file.h: Likewise.
54730         * include/pupa/font.h: Likewise.
54731         * include/pupa/fs.h: Likewise.
54732         * include/pupa/kernel.h: Likewise.
54733         * include/pupa/loader.h: Likewise.
54734         * include/pupa/misc.h: Likewise.
54735         * include/pupa/mm.h: Likewise.
54736         * include/pupa/net.h: Likewise.
54737         * include/pupa/normal.h: Likewise.
54738         * include/pupa/rescue.h: Likewise.
54739         * include/pupa/setjmp.h: Likewise.
54740         * include/pupa/symbol.h: Likewise.
54741         * include/pupa/term.h: Likewise.
54742         * include/pupa/types.h: Likewise.
54743         * include/pupa/i386/setjmp.h: Likewise.
54744         * include/pupa/i386/types.h: Likewise.
54745         * include/pupa/i386/pc/biosdisk.h: Likewise.
54746         * include/pupa/i386/pc/boot.h: Likewise.
54747         * include/pupa/i386/pc/console.h: Likewise.
54748         * include/pupa/i386/pc/init.h: Likewise.
54749         * include/pupa/i386/pc/kernel.h: Likewise.
54750         * include/pupa/i386/pc/linux.h: Likewise.
54751         * include/pupa/i386/pc/loader.h: Likewise.
54752         * include/pupa/i386/pc/memory.h: Likewise.
54753         * include/pupa/i386/pc/multiboot.h: Likewise.
54754         * include/pupa/i386/pc/partition.h: Likewise.
54755         * include/pupa/i386/pc/time.h: Likewise.
54756         * include/pupa/i386/pc/vga.h: Likewise.
54757         * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54758         * include/pupa/util/getroot.h: Likewise.
54759         * include/pupa/util/misc.h: Likewise.
54760         * include/pupa/util/resolve.h: Likewise.
54761         * kern/device.c: Likewise.
54762         * kern/disk.c: Likewise.
54763         * kern/dl.c: Likewise.
54764         * kern/err.c: Likewise.
54765         * kern/file.c: Likewise.
54766         * kern/fs.c: Likewise.
54767         * kern/loader.c: Likewise.
54768         * kern/main.c: Likewise.
54769         * kern/misc.c: Likewise.
54770         * kern/mm.c: Likewise.
54771         * kern/rescue.c: Likewise.
54772         * kern/term.c: Likewise.
54773         * kern/i386/dl.c: Likewise.
54774         * kern/i386/pc/init.c: Likewise.
54775         * kern/i386/pc/lzo1x.S: Likewise.
54776         * kern/i386/pc/startup.S: Likewise.
54777         * loader/i386/pc/chainloader.c: Likewise.
54778         * loader/i386/pc/linux.c: Likewise.
54779         * loader/i386/pc/multiboot.c: Likewise.
54780         * normal/cmdline.c: Likewise.
54781         * normal/command.c: Likewise.
54782         * normal/main.c: Likewise.
54783         * normal/menu.c: Likewise.
54784         * normal/i386/setjmp.S: Likewise.
54785         * term/i386/pc/console.c: Likewise.
54786         * term/i386/pc/vga.c: Likewise.
54787         * util/console.c: Likewise.
54788         * util/genmoddep.c: Likewise.
54789         * util/misc.c: Likewise.
54790         * util/pupa-emu.c: Likewise.
54791         * util/resolve.c: Likewise.
54792         * util/unifont2pff.rb: Likewise.
54793         * util/i386/pc/biosdisk.c: Likewise.
54794         * util/i386/pc/getroot.c: Likewise.
54795         * util/i386/pc/pupa-mkimage.c: Likewise.
54796         * util/i386/pc/pupa-setup.c: Likewise.
54798 2004-02-15  Jeroen Dekkers  <jeroen@dekkers.cx>
54800         * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54801         when it is EXT2_BLOCK_SIZE (data).  New argument READ_HOOK, all
54802         callers changed.  Set DATA->DISK->READ_HOOK to READ_HOOK before
54803         reading and reset it after reading.
54804         (pupa_ext2_close): Return PUPA_ERR_NONE.
54806         * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54807         Correct value.
54808         (struct linux_kernel_header): Add kernel_version and
54809         initrd_addr_max.
54810         * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54811         pupa_file_read succeeds.
54812         (pupa_rescue_cmd_initrd): Implement.
54814 2003-12-03  Marco Gerards  <metgerards@student.han.nl>
54816         * fs/ext2.c (pupa_ext2_label): New function.
54817         (pupa_ext2_fs): Added label.
54818         * fs/fat.c (pupa_fat_label): New function.
54819         (pupa_fat_fs): Added label.
54820         * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54822         * kern/misc.c (pupa_strndup): New function.
54823         * include/pupa/misc.h (pupa_strndup): New prototype.
54825         * include/pupa/normal.h: Include <pupa/err.h>.
54826         (pupa_set_history): New prototype.
54827         (pupa_iterate_commands): New prototype.
54828         * normal/cmdline.c: Include <pupa/machine/partition.h>,
54829         <pupa/disk.h>, <pupa/file.h>.
54830         (hist_size): New variable.
54831         (hist_lines): Likewise.
54832         (hist_end): Likewise.
54833         (hist_used): Likewise.
54834         (pupa_set_history): New function.
54835         (pupa_history_get): Likewise.
54836         (pupa_history_add): Likewise.
54837         (pupa_history_replace): Likewise.
54838         (pupa_tab_complete): Likewise.
54839         (pupa_cmdline_run): Added tab completion and history buffer.  Tab
54840         completion shows partitionnames while completing partitions, this
54841         feature was suggested by Jeff Bailey.
54842         * normal/command.c (pupa_iterate_commands): New function.
54843         * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54844         (pupa_normal_init): Initialize history buffer.
54845         (PUPA_MOD_INIT): Likewise.
54846         (pupa_normal_fini): Free the history buffer.
54847         (PUPA_MOD_FINI): Likewise.
54849         * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54850         key.
54852         * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54853         * configure.ac [i386]: Check for regparam bug.
54854         (NESTED_FUNC_ATTR) [! i386]: Defined.
54856 2003-11-17  Marco Gerards  <metgerards@student.han.nl>
54858         * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54859         (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54860         (pupa_emu_SOURCES): New variable.
54861         (pupa_emu_LDFLAGS): Likewise.
54862         * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54863         (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54864         * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54865         (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54866         * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54867         (pupa_jmp_buf): New typedef.
54868         (pupa_setjmp) [PUPA_UTIL]: New macro.
54869         (pupa_longjmp) [PUPA_UTIL]: Likewise.
54870         * include/pupa/term.h (struct pupa_term): New member `refresh'.
54871         (pupa_refresh): New prototype.
54872         * include/pupa/util/getroot.h: New file.
54873         * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54874         it.
54875         * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54876         (pupa_rescue_cmd_cat): Likewise.
54877         (pupa_rescue_cmd_ls): Likewise.
54878         (pupa_rescue_cmd_testload): Likewise.
54879         (pupa_rescue_cmd_lsmod): Likewise.
54880         * normal/cmdline.c (pupa_cmdline_get): Likewise.
54881         * normal/menu.c (run_menu): Likewise.
54882         * kern/term.c (pupa_cls): Likewise.
54883         (pupa_refresh): New function.
54884         * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54885         (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54886         * util/console.c: New file.
54888         * util/i386/pc/getroot.c: New file.
54889         * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54890         (pupa_putchar): New function.
54891         (pupa_refresh): Likewise.
54892         (xgetcwd): Function moved to ...
54893         (strip_extra_slashes): Likewise.
54894         (get_prefix): Likewise.
54895         * util/i386/pc/getroot.c: ... here.
54896         (find_root_device): Function moved and renamed to...
54897         * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54898         Changed all callers.
54899         * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54900         and renamed to...
54901         * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54902         Changed all callers.
54903         * util/misc.c (pupa_memalign): New function.
54904         (pupa_mm_init_region): Likewise.
54905         (pupa_register_exported_symbols): Likewise.
54906         (pupa_putchar): Function removed.
54907         * util/pupa-emu.c: New file.
54909 2003-11-16  Jeroen Dekkers  <jeroen@dekkers.cx>
54911         * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54912         (_multiboot_mod_SOURCES): New variable.
54913         (_multiboot_mod_CFLAGS): Likewise.
54914         * loader/i386/pc/multiboot.c: New file.
54915         * include/pupa/i386/pc/multiboot.h: Likewise.
54916         * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54917         (pupa_multiboot_real_boot): New function.
54918         * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54919         (pupa_multiboot_real_boot): New prototype.
54920         (pupa_rescue_cmd_multiboot): Likewise
54921         (pupa_rescue_cmd_module): Likewise.
54923         * kern/loader.c (pupa_loader_set): Continue when
54924         pupa_loader_unload_func() fails.
54925         (pupa_loader_unset): New function.
54926         * include/pupa/loader.h (pupa_loader_unset): New prototype.
54928         * kern/misc.c (pupa_stpcpy): New function.
54929         * include/pupa/misc.h (pupa_stpcpy): New prototype.
54931 2003-11-12  Marco Gerards  <metgerards@student.han.nl>
54933         * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54934         for available extensions.
54936         * include/pupa/i386/pc/time.h: New file.
54937         * kern/disk.c: Include <pupa/machine/time.h>.
54938         (PUPA_CACHE_TIMEOUT): New macro.
54939         (pupa_last_time): New variable.
54940         (pupa_disk_open): Flush the cache when there was a timeout.
54941         (pupa_disk_close): Reset the timer.
54942         * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54943         pupa_currticks.
54944         * util/misc.c: Include <sys/times.h>
54945         (pupa_get_rtc): New function.
54947 2003-11-09  Jeroen Dekkers  <jeroen@dekkers.cx>
54949         * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54950         as blocks.
54951         (pupa_ext2_get_file_block): Use blocks member.
54953         * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54954         first block. Return -1 instead of pupa_errno on error.
54956 2003-10-27  Marco Gerards  <metgerards@student.han.nl>
54958         * README: In the pupa-mkimage example use _chain instead of chain
54959         and ext2 instead of fat.
54960         * TODO: Replace ext2fs with jfs as an example.  Add an item for
54961         adding journal playback for ext2fs.
54962         * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54963         (pkgdata_MODULES): Added ext2.mod.
54964         (ext2_mod_SOURCES): New variable.
54965         (ext2_mod_CFLAGS): Likewise.
54966         * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54967         * include/pupa/misc.h (pupa_strncpy): New prototype.
54968         (pupa_strcat): Likewise.
54969         (pupa_strncmp): Likewise.
54970         * kern/misc.c (pupa_strcat): Enable function.
54971         (pupa_strncpy): New function.
54972         (pupa_strncmp): Likewise.
54973         * fs/ext2.c: New file.
54975         * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54976         when the read failed before retrying.
54977         * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54978         (_FILE_OFFSET_BITS): Likewise.
54979         * configure.ac: Added AC_SYS_LARGEFILE.
54981 2003-09-25  Yoshinori K. Okuji  <okuji@enbug.org>
54983         * genmk.rb (PModule#rule): Make sure to get only symbol names
54984         from the output of nm.
54985         Reported by Robert Millan <rmh.grub@aybabtu.com>.
54987 2003-09-25  Yoshinori K. Okuji  <okuji@enbug.org>
54989         I forgot to check in these changes for a long time. This adds
54990         incomplete support for VGA console, and this is still very
54991         buggy. Also, a lot of consideration is required for I18N,
54992         UNICODE, and VGA font issues. Therefore, assume that this is
54993         such that "better than nothing".
54995         * font/manager.c: New file.
54996         * include/pupa/font.h: Likewise.
54997         * include/pupa/i386/pc/vga.h: Likewise.
54998         * term/i386/pc/vga.c: Likewise.
54999         * util/unifont2pff.rb: Likewise.
55001         * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
55002         (pkgdata_MODULES): Added vga.mod and font.mod.
55003         (vga_mod_SOURCES): New variables.
55004         (vga_mod_CFLAGS): Likewise.
55005         (font_mod_SOURCES): Likewise.
55006         (font_mod_CFLAGS): Likewise.
55008         * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
55010         * include/pupa/term.h: Include pupa/err.h.
55011         (struct pupa_term): Added init and fini.
55012         Changed the argument of putchar to pupa_uint32_t.
55014         * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
55015         (pupa_console_real_putchar): New prototype.
55016         (pupa_console_putchar): Removed.
55017         (pupa_console_checkkey): Exported.
55018         (pupa_console_getkey): Likewise.
55020         * kern/misc.c (pupa_vsprintf): Add support for UNICODE
55021         characters.
55023         * kern/term.c (pupa_term_set_current): Rewritten.
55024         (pupa_putchar): Likewise.
55025         (pupa_putcode): New function.
55027         * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
55028         (pupa_console_real_putchar): ... this.
55029         (pupa_vga_set_mode): New function.
55030         (pupa_vga_get_font): Likewise.
55032         * normal/command.c: Include pupa/term.h.
55033         (terminal_command): New function.
55034         (pupa_command_init): Register the command "terminal".
55036         * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
55037         (DISP_UP): Likewise.
55038         (DISP_RIGHT): Likewise.
55039         (DISP_DOWN): Likewise.
55040         (DISP_HLINE): Likewise.
55041         (DISP_VLINE): Likewise.
55042         (DISP_UL): Likewise.
55043         (DISP_UR): Likewise.
55044         (DISP_LL): Likewise.
55045         (DISP_LR): Likewise.
55047         * term/i386/pc/console.c (pupa_console_putchar): New function.
55049 2003-02-08  NIIBE Yutaka  <gniibe@m17n.org>
55051         * util/resolve.c (pupa_util_resolve_dependencies): BUG
55052         FIX. Reverse the path_list.
55054         * include/pupa/normal.h: Export pupa_register_command and
55055         pupa_unregister_command.
55057         * hello/hello.c (pupa_cmd_hello): New module.
55058         * conf/i386-pc.rmk: Added hello.mod.
55060 2003-01-31  Yoshinori K. Okuji  <okuji@enbug.org>
55062         * kern/i386/pc/lzo1x.S: New file.
55064         * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
55065         (compress_kernel): New variable.
55066         (generate_image): Heavily modified to support compressing a
55067         large part of the core image.
55069         * util/misc.c (pupa_util_read_image): Fix a file descriptor
55070         leak.
55071         (pupa_util_load_image): New function.
55073         * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
55074         (pupa_compressed_size): New variable.
55075         (codestart): Enable Gate A20 here.
55076         Decompress the compressed part of the core image.
55077         Rearrange the code to put functions and variables which are
55078         required for initialization in the non-compressed part.
55079         Include lzo1x.S.
55081         * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
55082         here.
55084         * include/pupa/util/misc.h (pupa_util_write_image): Declared.
55086         * include/pupa/i386/pc/kernel.h
55087         (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
55088         (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
55089         (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55090         (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55091         (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
55093         * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
55095         * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
55096         (Utility#rule): Likewise.
55098         * configure.ac: Check if LZO is available.
55100 2003-01-20  Yoshinori K. Okuji  <okuji@enbug.org>
55102         * include/pupa/normal.h: New file.
55103         * include/pupa/setjmp.h: Likewise.
55104         * include/pupa/i386/setjmp.h: Likewise.
55105         * normal/cmdline.c: Likewise.
55106         * normal/command.c: Likewise.
55107         * normal/main.c: Likewise.
55108         * normal/menu.c: Likewise.
55109         * normal/i386/setjmp.S: Likewise.
55111         * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55112         (pupa_rescue_cmd_initrd): Likewise.
55114         * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55115         Likewise.
55117         * kern/i386/pc/startup.S (translation_table): New variable.
55118         (translate_keycode): New function.
55119         (pupa_console_getkey): Call translate_keycode.
55121         * kern/rescue.c (attempt_normal_mode): New function.
55122         (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55123         it failed, print a message.
55125         * kern/mm.c (pupa_real_malloc): Print more information when a
55126         free magic is broken.
55127         (pupa_free): If the first free header is not free actually, set
55128         it to P.
55130         * kern/main.c (pupa_load_normal_mode): Just load the module
55131         "normal".
55132         (pupa_main): Don't print the message
55133         "Entering into rescue mode..." here.
55135         * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55136         Declared.
55137         (pupa_rescue_cmd_initrd): Likewise.
55138         (pupa_rescue_cmd_initrd): Likewise.
55140         * include/pupa/symbol.h (FUNCTION): Specify the type.
55141         (VARIABLE): Likewise.
55143         * include/pupa/err.h (pupa_err_t): Added
55144         PUPA_ERR_UNKNOWN_COMMAND.
55146         * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55147         (pupa_dl_get_prefix): Likewise.
55149         * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55150         Added _chain.mod and _linux.mod instead of chain.mod and
55151         linux.mod.
55152         (chain_mod_SOURCES): Renamed to ...
55153         (_chain_mod_SOURCES): ... this.
55154         (chain_mod_CFLAGS): Renamed to ...
55155         (_chain_mod_CFLAGS): ... this.
55156         (linux_mod_SOURCES): Renamed to ...
55157         (_linux_mod_SOURCES): ... this.
55158         (linux_mod_CFLAGS): Renamed to ...
55159         (_linux_mod_CFLAGS): ... this.
55160         (normal_mod_SOURCES): New variable.
55161         (normal_mod_CFLAGS): Likewise.
55162         (normal_mod_ASFLAGS): Likewise.
55164 2003-01-18  Yoshinori K. Okuji  <okuji@enbug.org>
55166         * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55167         possible.
55169         * kern/dl.c (pupa_dl_ref): Refer depending modules
55170         recursively.
55171         (pupa_dl_unref): Unrefer depending modules recursively.
55172         Don't call pupa_dl_unload implicitly, because PUPA can crash if
55173         a module is unloaded before one depending on that module is
55174         unloaded.
55175         (pupa_dl_unload): Unload depending modules explicitly,
55176         if possible.
55178 2003-01-17  Yoshinori K. Okuji  <okuji@enbug.org>
55180         * include/pupa/i386/pc/linux.h: New file.
55181         * loader/i386/pc/linux.c: Likewise.
55183         * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55184         Removed.
55185         (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55186         (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55187         of PUPA_CHAINLOADER_BOOT_SECTOR.
55189         * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55190         (pupa_linux_prot_size): New variable.
55191         (pupa_linux_tmp_addr): Likewise.
55192         (pupa_linux_real_addr): Likewise.
55193         (pupa_linux_boot_zimage): New function.
55194         (pupa_linux_boot_bzimage): Likewise.
55196         * kern/i386/pc/init.c (struct mem_region): New structure.
55197         (MAX_REGIONS): New macro.
55198         (mem_regions): New variable.
55199         (num_regions): Likewise.
55200         (pupa_os_area_addr): Likewise.
55201         (pupa_os_area_size): Likewise.
55202         (pupa_lower_mem): Likewise.
55203         (pupa_upper_mem): Likewise.
55204         (add_mem_region): New function.
55205         (compact_mem_regions): Likewise.
55206         (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55207         the size of the conventional memory and that of so-called upper
55208         memory (before the first memory hole).
55209         Instead of adding each found region to free memory, use
55210         add_mem_region and add them after removing overlaps.
55211         Also, add only 1/4 of the upper memory to free memory. The rest
55212         is used for loading OS images. Maybe this is ad hoc, but this
55213         makes it much easier to relocate OS images when booting.
55215         * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55216         (pupa_enter_rescue_mode): Don't register initrd and module.
55218         * kern/mm.c: Include pupa/dl.h.
55220         * kern/main.c: Include pupa/file.h and pupa/device.h.
55222         * kern/loader.c (pupa_loader_load_module_func): Removed.
55223         (pupa_loader_load_module): Likewise.
55225         * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55226         ``.o''.
55228         * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55229         (pupa_linux_tmp_addr): Likewise.
55230         (pupa_linux_real_addr): Likewise.
55231         (pupa_linux_boot_zimage): Likewise.
55232         (pupa_linux_boot_bzimage): Likewise.
55234         * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55235         (pupa_upper_mem): Likewise.
55236         (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55237         module is too dangerous.
55239         * include/pupa/loader.h (pupa_os_area_addr): Declared.
55240         (pupa_os_area_size): Likewise.
55241         (pupa_loader_set): Remove the first argument. Loader doesn't
55242         manage modules or initrd any longer.
55243         (pupa_loader_load_module): Removed.
55245         * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55246         (linux_mod_SOURCES): New variable.
55247         (linux_mod_CFLAGS): Likewise.
55249 2003-01-07  Yoshinori K. Okuji  <okuji@enbug.org>
55251         * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55252         the length of a blocklist correctly.
55254         * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55255         Use ioctl only if the OS file is a block device.
55256         (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55257         not very useful for normal files.
55259         * kern/main.c (pupa_set_root_dev): New function.
55260         (pupa_load_normal_mode): Likewise.
55261         (pupa_main): Call those above.
55263         * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55264         pupa_uint16_t.
55266         * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55268 2003-01-06  Yoshinori K. Okuji  <okuji@enbug.org>
55270         * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55271         (setup): Configure the installed partition information and the
55272         dl prefix.
55274         * loader/i386/pc/chainloader.c (my_mod): New variable.
55275         (pupa_chainloader_unload): New function.
55276         (pupa_rescue_cmd_chainloader): Refer itself.
55277         (PUPA_MOD_INIT): Save its own module in MY_MOD.
55279         * kern/i386/pc/startup.S (install_partition): Removed.
55280         (version_string): Likewise.
55281         (config_file): Likewise.
55282         (pupa_install_dos_part): New variable.
55283         (pupa_install_bsd_part): Likewise.
55284         (pupa_prefix): Likewise.
55285         (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55287         * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55288         and pupa/misc.h.
55289         (make_install_device): New function.
55290         (pupa_machine_init): Set the dl prefix.
55292         * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55293         (buf): Renamed to ...
55294         (linebuf): ... this.
55295         (pupa_rescue_cmd_prefix): New function.
55296         (pupa_rescue_cmd_insmod): Likewise.
55297         (pupa_rescue_cmd_rmmod): Likewise.
55298         (pupa_rescue_cmd_lsmod): Likewise.
55299         (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55300         rmmod and lsmod.
55302         * kern/mm.c (pupa_memalign): If failed even after invalidating
55303         disk caches, unload unneeded modules and retry.
55305         * kern/misc.c (pupa_memmove): New function.
55306         (pupa_memcpy): Removed.
55307         (pupa_strcpy): New function.
55308         (pupa_itoa): Made static.
55310         * kern/dl.c (pupa_dl_iterate): New function.
55311         (pupa_dl_ref): Likewise.
55312         (pupa_dl_unref): Likewise.
55313         (pupa_dl_unload): Return if succeeded or not.
55314         (pupa_dl_unload_unneeded): New function.
55315         (pupa_dl_unload_all): Likewise.
55316         (pupa_dl_init): Renamed to ...
55317         (pupa_dl_set_prefix): ... this.
55318         (pupa_dl_get_prefix): New function.
55320         * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55321         (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55322         (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55323         (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55324         (pupa_install_dos_part): Declared.
55325         (pupa_install_bsd_part): Likewise.
55326         (pupa_prefix): Likewise.
55327         (pupa_boot_drive): Likewise.
55329         * include/pupa/types.h: Fix a typo.
55331         * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55332         pupa_memmove.
55333         (pupa_memmove): Declared.
55334         (pupa_strcpy): Likewise.
55336         * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55337         pupa_mod_init takes one argument, its own module.
55338         (pupa_dl_unload_unneeded): Declared.
55339         (pupa_dl_unload_all): Likewise.
55340         (pupa_dl_ref): Likewise.
55341         (pupa_dl_unref): Likewise.
55342         (pupa_dl_iterate): Likewise.
55343         (pupa_dl_init): Renamed to ...
55344         (pupa_dl_set_prefix): ... this.
55345         (pupa_dl_get_prefix): Declared.
55347         * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55348         (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55349         unloaded.
55350         (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55351         (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55353         * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55354         -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55356 2003-01-03  Yoshinori K. Okuji  <okuji@enbug.org>
55358         * util/i386/pc/pupa-setup.c (setup): Define the internal
55359         function find_first_partition_start at the top level, because GCC
55360         3.0.x cannot compile internal functions in deeper scopes
55361         correctly.
55362         (find_root_device): Use lstat instead of stat.
55363         Don't follow symbolic links.
55364         Fix the path-constructing code.
55366         * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55367         (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55368         by a BLKGETSIZE ioctl first, because block devices don't fill
55369         the member st_mode of the structure stat on Linux.
55370         [__linux__] (linux_find_partition): Use a temporary buffer
55371         REAL_DEV for the working space. Copy it to DEV before returning.
55372         (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55373         buffer cache consistent.
55374         (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55375         strncmp. The previous value was merely wrong.
55376         (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55378         * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55379         FAT size is 12. The previous value was merely wrong.
55381         * kern/main.c (pupa_main): Don't split the starting message from
55382         newlines.
55384         * kern/term.c (pupa_putchar): Put CR after LF instead of before
55385         LF, because BIOS goes crazy about character attributes in this
55386         case.
55388 2003-01-03  Yoshinori K. Okuji  <okuji@enbug.org>
55390         * include/i386/pc/util/biosdisk.h: New file.
55391         * util/i386/pc/biosdisk.c: Likewise.
55392         * util/i386/pc/pupa-setup.c: Likewise.
55394         * Makefile.in (INCLUDE_DISTFILES): Added
55395         include/pupa/i386/pc/util/biosdisk.h.
55396         (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55397         directory util/i386/pc.
55398         (install-local): Added a rule for sbin_UTILITIES.
55399         (uninstall): Likewise.
55401         * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55403         * util/misc.c (xrealloc): New function.
55404         (pupa_malloc): Likewise.
55405         (pupa_free): Likewise.
55406         (pupa_realloc): Likewise.
55407         (pupa_stop): Likewise.
55408         (pupa_putchar): Likewise.
55410         * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55412         * include/pupa/util/misc.h (xrealloc): Declared.
55414         * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55415         macro.
55416         (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55417         (PUPA_BOOT_MACHINE_BPB_END): ... this.
55419         * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55420         [PUPA_UTIL] (pupa_fat_fini): Likewise.
55422         * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55423         way should be implemented.
55424         [PUPA_UTIL] (pupa_fat_fini): Likewise.
55426         * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55427         the size of NAME for safety.
55428         (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55429         0x88.
55431         * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55432         (pupa_setup_SOURCES): Likewise.
55434         * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55436 2002-12-28  Yoshinori K. Okuji  <okuji@enbug.org>
55438         * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55439         bunch of pushl's from pusha, because this destroys the return
55440         value.
55442 2002-12-28  Yoshinori K. Okuji  <okuji@enbug.org>
55444         Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55445         This means that any missing prototypes could be fatal. Also, you
55446         must take care when writing assembly code. See the comments at
55447         the beginning of startup.S, for more details.
55449         * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55450         compilation mechanism.
55451         (pupa_chainloader_real_boot): Likewise.
55452         (pupa_biosdisk_rw_int13_extensions): Likewise.
55453         (pupa_biosdisk_rw_standard): Likewise.
55454         (pupa_biosdisk_check_int13_extensions): Likewise.
55455         (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55456         (pupa_biosdisk_get_diskinfo_standard): Likewise.
55457         (pupa_get_memsize): Likewise.
55458         (pupa_get_mmap_entry): Likewise.
55459         (pupa_console_putchar): Likewise.
55460         (pupa_console_setcursor): Likewise.
55461         (pupa_getrtsecs): Use pushl instead of push.
55463         * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55464         memory instead of the stack for a mmap entry, because some
55465         BIOSes may ignore the maximum size and overflow.
55467         * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55469         * genmk.rb (PModule#rule): Compile automatically generated
55470         sources with module-specific CFLAGS as well as other sources.
55472 2002-12-27  Yoshinori K. Okuji  <okuji@enbug.org>
55474         * configure.ac: Check ld.
55475         Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55476         respectively, before checking endianness and sizes.
55478         * Makefile.in (LD): New variable.
55480 2002-12-27  Yoshinori K. Okuji  <okuji@enbug.org>
55482         * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55484 2002-12-27  Yoshinori K. Okuji  <okuji@enbug.org>
55486         * Changelog: New file.