1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Check block size
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Do not
11 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
16 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18 * grub-core/fs/minix.c: Additional filesystem
21 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
24 checks for superblock validity.
26 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28 * grub-core/fs/ufs.c (grub_ufs_mount): Check
29 that sblock.ino_per_group is not 0.
31 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
33 Reject NILFS2 superblocks with over 1GiB blocks.
35 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
36 block size is <= 1GiB.
38 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
40 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
41 is sane when using CHS addressing.
43 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
45 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
47 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
49 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
52 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
54 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
55 potentially returning 0.
57 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
59 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
62 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
64 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
67 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
69 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
70 synchronously with line.
72 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
74 Replace explicit sizeof divisions by ARRAY_SIZE.
76 2015-01-19 Kris Moore <kris@pcbsd.org>
78 * grub-core/disk/geli.c: Support GELI v6 and v7.
80 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
82 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
85 2014-12-07 David Kozub <zub.272@gmail.com>
87 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
89 Fixes Savannah bug #43632.
91 2014-12-07 Peter Nelson <peterdn>
93 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
96 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
98 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
99 non-portable '-n' echo option.
100 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
101 non-portable 'echo -n.
102 * util/grub.d/10_linux.in: Likewise (closes 43668).
103 * util/grub.d/20_linux_xen.in: Likewise.
104 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
105 non-portable 'echo -n'.
107 2014-12-07 Curtis Larsen <larsen@dixie.edu>
109 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
110 free when multiple empty segments were received (closes 42765).
112 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
114 * tests/util/grub-shell.in: Support --files also for netboot.
115 * tests/file_filter_test.in: New file with file filters tests.
116 * Makefile.util.def: Add file_filter_test.
117 * conf/Makefile.extra-dist: ... and here.
118 * tests/file_filter/file.gz: Test file for file_filter_test.
119 * tests/file_filter/file.gz.sig: Likewise.
120 * tests/file_filter/file.lzop: Likewise.
121 * tests/file_filter/file.lzop.sig: Likewise.
122 * tests/file_filter/file.xz: Likewise.
123 * tests/file_filter/file.xz.sig: Likewise.
124 * tests/file_filter/keys: Likewise.
125 * tests/file_filter/keys.pub: Likewise.
126 * tests/file_filter/test.cfg: Likewise.
127 * grub-core/commands/verify.c: Fix memory corruption doing
128 signature check for network files (closes 43601).
130 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
132 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
133 memory leak (CID 73645, 73782).
134 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
137 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
139 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
140 inline array (CID 73610).
142 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
144 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
145 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
146 (Coverity CID 73813, 73710)
147 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
148 and use after free (Coverity CID 73813, 73710, 73730)
149 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
151 * util/grub-install-common.c (grub_install_get_target): Check return
152 value of grub_util_fd_read (Coverity CID 73819).
153 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
154 to hd.magic (Coverity CID 73587, 73888, bug 43690).
156 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
158 * tests/util/grub-fs-tester.in: Consistently print output
159 of grub ls if test fails.
161 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
163 * grub-core/kern/efi/init.c: check value of *path before
166 2014-11-03 Michael Chang <mchang@suse.com>
168 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
169 of neighbor solicitation packet in grub_netbuff_pull.
171 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
173 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
174 avoid fatal warnings with older gcc (probably before 4.7).
175 * grub-core/loader/arm64/linux.c: Likewise.
176 * grub-core/loader/i386/linux.c: Likewise.
177 * grub-core/loader/i386/pc/linux.c: Likewise.
178 * grub-core/loader/ia64/efi/linux.c: Likewise.
179 * grub-core/loader/mips/linux.c: Likewise.
180 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
181 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
183 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
185 Fix in-tree --platform=none
187 * configure.ac: Only remove include/grub/cpu and
188 include/grub/machine in the --platform=none case, not all of
191 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
193 Add a new "none" platform that only builds utilities
195 * configure.ac: Add "none" platform. Default to it for unsupported
196 CPUs rather than stopping with a fatal error. Don't downgrade
197 x86_64-none to i386. Define COND_real_platform Automake conditional
198 if the platform is anything other than "none". Don't do any include
199 directory linking for "none".
200 * Makefile.am: Skip building grub-core and all bootcheck targets if
202 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
205 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
207 Use grub_cpu_to_XXX_compile_time for constants.
209 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
211 The AML parser implements only a small subset of possible AML
212 opcodes. On the Fujitsu Lifebook E744 this and another bug in
213 the parser (incorrect handling of TermArg data types) would lead
214 to the laptop not turning off (_S5 not found).
216 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
217 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
218 aren't always simply strings!); Add function to skip TermArgs
219 * include/grub/acpi.h: Add new opcodes
221 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
223 * grub-core/normal/main.c: Don't drop to rescue console in
224 case of password-protected prompt and no menu entries.
226 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
228 * grub-core/commands/keylayouts.c: Ignore unknown keys.
230 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
232 * grub-core/gmodule.pl.in: Accept newer binutils which output
233 empty column rather than 0x0.
235 2014-09-21 Michael Chang <mchang@suse.com>
237 * grub-core/osdep/unix/config.c: Remove extraneous comma.
239 2014-09-21 Peter Jones <pjones@redhat.com>
241 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
242 we don't free a random pointer from the stack.
243 * grub-core/loader/arm64/linux.c: Likewise.
244 * grub-core/loader/i386/linux.c: Likewise.
245 * grub-core/loader/i386/pc/linux.c: Likewise.
246 * grub-core/loader/ia64/efi/linux.c: Likewise.
247 * grub-core/loader/mips/linux.c: Likewise.
248 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
249 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
251 2014-09-15 Khem Raj <raj.khem@gmail.com>
253 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
254 _BSD_SOURCE to avoid warnings under glibc 2.20+.
256 2014-09-08 Michael Chang <mchang@suse.com>
258 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
259 check; comparing &data->extent against addresses in the region it
260 points to is unpredictable.
262 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
264 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
266 * configure.ac: Remove -m64 from checks for -mcmodel=large and
267 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
268 already in TARGET_CFLAGS at this point, and they produce incorrect
269 results when building for x32.
270 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
271 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
272 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
273 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
275 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
277 * configure.ac: Remove several unnecessary semicolons.
279 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
281 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
282 Initialise pend to pacify GCC.
284 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
286 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
289 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
291 * grub-core/term/at_keyboard.c: Retry probing keyboard if
292 scancode setup failed.
294 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
296 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
298 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
300 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
301 safety to avoid triggerring VirtualBox bug.
303 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
305 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
307 Fixes hang on virtualbox.
309 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
311 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
312 kernels whose paths contain regex metacharacters.
313 * util/grub.d/10_kfreebsd.in: Likewise.
314 * util/grub.d/10_linux.in: Likewise.
315 * util/grub.d/20_linux_xen.in: Likewise.
317 Reported by: Heimo Stranner.
319 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
321 * docs/grub-dev.texi (Finding your way around): The build system no
322 longer uses AutoGen directly.
324 2014-06-21 Роман Пехов <roman_pekhov>
326 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
328 2014-06-21 Glenn Washburn <development@efficientek.com>
330 * util/grub-install.c: Fix handling of --disk-module.
332 2014-06-21 Stephane Rochoy <sheda>
334 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
337 2014-06-21 Stephane Rochoy <sheda>
339 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
340 EFI system table physical address.
342 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
344 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
346 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
348 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
350 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
352 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
355 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
357 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
359 Reported by: Yves Blusseau <blusseau@zetam.org>.
361 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
363 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
364 GDT in conventional memory.
366 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
368 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
369 UUID. Other parts of grub-mkconfig tolerate these, they were
370 previously allowed here up to commit
371 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
372 practice when the system has active LVM snapshots.
373 Fixes Ubuntu bug #1287436.
375 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
377 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
378 "logical_volumes" block a little more accurately.
380 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
382 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
384 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
386 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
389 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
391 Replace few instances of memcmp/memcpy in the code that should be
392 grub_memcmp/grub_memcpy.
394 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
396 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
399 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
401 btrfs: fix get_root key comparison failures due to endianness
403 * grub-core/fs/btrfs.c (get_root): Convert
404 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
406 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
408 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
410 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
411 no longer to be forgiving of trailing spaces on grub-probe output
412 lines, which among other things means that util/grub.d/10_linux.in
413 no longer detects LVM. To fix this, make grub-probe's output
414 delimiting more consistent. As a bonus, this improves the coverage
417 Fixes Debian bug #735935.
419 * grub-core/disk/cryptodisk.c
420 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
421 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
423 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
425 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
426 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
427 probe_mods): Adjust for extra user-data arguments.
428 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
429 probe_abstraction): Use configured delimiter. Update callers.
431 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
433 * util/grub-probe,c (options): Make -0 work again (broken by
435 (main): Simplify logic.
437 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
439 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
441 2014-03-26 Fu Wei <fu.wei@linaro.org>
443 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
445 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
447 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
448 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
450 Suggested by: Markus Müller.
452 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
454 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
455 if E820 failed to return any regions.
457 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
459 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
460 tables for low memory calculations.
462 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
464 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
467 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
469 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
472 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
474 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
477 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
479 Add bootpath parser for open firmware.
481 It enables net boot even when there is no bootp/dhcp server.
483 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
484 and call it at grub_ieee1275_net_config_real.
485 * grub-core/kern/ieee1275/init.c: Add bootpath to
486 grub_ieee1275_net_config.
487 * include/grub/ieee1275/ieee1275.h: Likewise.
490 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
492 Add grub_env_set_net_property function.
494 * grub-core/net/bootp.c: Remove set_env_limn_ro.
495 * grub-core/net/net.c: Add grub_env_set_net_property.
496 * include/grub/net.h: Likewise.
498 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
500 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
502 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
504 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
506 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
508 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
509 7 seconds to recover if last poweroff was bad.
511 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
513 * grub-core/disk/ahci.c: Properly handle transactions with no
516 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
518 * grub-core/disk/ahci.c: Add safety cleanups.
520 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
522 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
523 slots to avoid pointing to uninited area.
525 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
527 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
528 enabling busmaster for the end.
530 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
532 * util/grub-mkfont.c: Downgrade warnings about unhandled features
535 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
537 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
539 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
541 * .gitignore: add missing files and .exe variants.
543 2014-01-26 Mike Gilbert <floppym@gentoo.org>
545 grub-install: support for partitioned partx loop devices.
547 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
548 /dev/loopX as being the parent of /dev/loopXpY.
550 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
552 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
553 Ensure that pointers are inited to NULL and that pointers are not
556 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
558 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
559 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
560 * include/grub/emu/misc.h: ... and here.
561 * include/grub/err.h: ... and here.
562 * util/import_gcry.py: ... and here (in files g10lib.h).
564 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
566 * util/grub-mkimage.c: Make prefix argument mandatory.
568 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
570 Fix several translatable strings.
572 Suggested by: D. Prévot.
574 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
576 * util/grub-install.c: List available targets.
578 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
580 * util/grub-install.c (write_to_disk): Add an info message.
582 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
584 * Makefile.am: Allow adding extra files to generated Windows ZIP
585 archive by setting GRUB_WINDOWS_EXTRA_DIST.
587 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
589 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
590 Show detected font path in summary.
592 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
594 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
596 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
597 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
598 * grub-core/net/tftp.c (tftp_open): Likewise.
599 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
601 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
603 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
606 In net/net.c there is a while (1) that only exits if there is a stop
607 condition and more then 10 packages or if there is no package received.
609 If GRUB is idle and enter in this loop, the only condition to leave is
610 if it doesn't have incoming packages. In a network with heavy traffic
613 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
615 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
616 EPERM when modifying kern.geom.debugflags. It is only a problem for
617 such things as installing GRUB to the MBR, in which case there'll be
618 an error later anyway, not for opening files during tests.
620 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
622 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
623 instead of MOD_FILES.
624 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
625 both with and without .exe.
626 * grub-core/genemuinitheader.sh: Same.
628 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
630 * util/grub-install.c: Fix a typo.
632 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
634 * grub-core/normal/main.c (read_config_file): Buffer config file.
637 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
639 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
640 symbolic link to directory. It fails in Msys shell on Windows 2003.
642 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
644 * Makefile.am (default_payload.elf): Add modules
645 multiboot cbmemc linux16 gzio echo help.
647 2014-01-18 Mike Gilbert <floppym@gentoo.org>
649 * Makefile.util.def: Link grub-ofpathname with zfs libs.
651 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
653 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
656 Reported by: Andrey Borzenkov.
658 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
660 * include/grub/misc.h: Move macros for compiler features to ...
661 * include/grub/compiler.h: ... new file.
662 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
663 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
664 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
665 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
666 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
667 * grub-core/video/capture.c: Include <grub/misc.h>.
668 * include/grub/command.h: Include <grub/misc.h>.
669 * include/grub/dl.h: Include <grub/misc.h>.
670 * include/grub/procfs.h: Include <grub/misc.h>.
672 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
674 * configure.ac: Add support for BUILD_EXEEXT and use it ...
675 * Makefile.am: ... here.
676 * Makefile.util.def: ... and here.
677 * grub-core/Makefile.am: ... and here.
679 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
681 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
682 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
684 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
686 * grub-core/term/terminfo.c: Recognize keys F1-F12.
688 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
690 * configure.ac: Add support for BUILD_LDFLAGS.
691 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
692 * grub-core/Makefile.am: ... and here.
693 * INSTALL: Mention BUILD_LDFLAGS.
695 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
697 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
699 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
701 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
704 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
706 * NEWS: Add few missing entries.
708 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
710 * util/grub.d/00_header.in (make_timeout): Use && rather than test
712 * util/grub.d/10_windows.in: Likewise.
713 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
715 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
718 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
720 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
721 redundant preprocessor conditional.
723 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
725 * Makefile.util.def (grub-macbless): Change mansection to 8.
727 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
729 * grub-core/loader/arm64/linux.c: correctly set device path end length.
731 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
733 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
734 arm64 to comply with EFI specification. Also use grubaa64.efi for
736 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
738 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
740 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
741 on MinGW-64 when compiling for 32 bits.
743 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
745 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
747 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
749 * NEWS: Add few missing entries. Correct existing ones.
751 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
753 Don't abort() on unavailable coreboot tables if not running on coreboot.
755 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
757 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
760 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
762 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
763 mention of it from 2.02.
765 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
767 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
769 As these functions are used on pre-ARMv6 CPUs as well we don't want
770 to make assembler assume that architecture is higher than default one.
772 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
774 * NEWS: First draft of 2.02 entry.
776 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
778 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
779 * docs/grub.texi (Getting the source code): Likewise.
781 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
783 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
786 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
788 * configure.ac: Set version to 2.02~beta2.
790 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
792 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
794 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
796 * util/grub-probe.c: Improve help message and simplify list handling.
798 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
800 Fix buffer overflow in grub_efi_print_device_path.
802 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
804 Show SATA device path.
806 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
808 Revert grub-file usage in grub-mkconfig.
810 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
812 Make newly-created files other than grub.cfg world-readable.
814 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
816 * util/grub.d/00_header.in: Improve compatibility with old config.
818 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
820 Make rijndael.c respect aliasing rules.
822 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
824 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
826 Make grub_util_device_is_mapped_stat available in grub-emu core.
828 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
830 Add -Qn to TARGET_CFLAGS if it's supported.
831 Fixes compilation on cygwin.
833 Reported by: Andrey Borzenkov.
834 Suggested by: Andrey Borzenkov.
836 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
838 Save TARGET_CC version in modinfo.sh.
840 Suggested by: Andrey Borzenkov.
842 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
844 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
845 follow the same algorithm to avoid method mismatch. Don't assume
846 DMRAID- UUID to mean full disk but instead check that mapping is linear.
848 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
850 Declare GRUB_EFI_VENDOR_APPLE_GUID.
852 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
854 Dump type and vendor specific data when printing device path.
856 2013-12-23 Colin Watson <cjwatson@debian.org>
858 Update some documentation to refer to Git rather than Bazaar.
860 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
862 * po/README: Likewise. Fix spelling mistake.
864 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
866 Don't distribute config.h.
868 * Makefile.am (platform_HEADERS): Move to ...
869 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
870 failure when building from a distributed tarball.
872 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
874 * configure.ac: Fix spelling.
875 * grub-core/commands/parttool.c: Fix grammar.
876 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
877 Embedding Partition".
879 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
881 ARM64 support for grub-mkrescue.
883 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
885 Install modinfo.sh to keep build information around.
887 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
889 * grub-core/modinfo.sh.in: Add build config information.
891 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
893 ARM64 grub-file and grub-mkconfig support.
895 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
897 Remove leftover options defines.
899 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
901 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
903 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
905 * grub-core/loader/arm64/linux.c: Add missing bracket.
907 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
909 Add arm64-efi recognition to grub-file.
911 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
913 Fix ia64-efi recognition in grub-file.
915 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
917 Recognize raspberry pi kernel in grub-file.
919 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
921 Enable cache on ARM U-Boot port.
923 Without it the port is reidiculously slow.
925 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
927 Fix ARM cache maintainance.
929 More code was converted from ASM to C for easier handling.
931 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
933 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
936 Suggested by: Leif Lindholm.
938 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
940 * util/grub-mkconfig.in: Fix Xen platform conditions.
942 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
944 * util/grub-mkrescue.c: Split single help message string in several
945 strings used in previous shell version.
947 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
949 Add arm64 Linux loader.
951 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
953 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
955 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
957 Add module loading and parsing boot time checkpoints.
959 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
961 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
964 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
966 * util/grub-mkconfig.in: Skip non-executable files.
968 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
970 Workaround buggy timer in raspberry pie by using our own timer
973 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
975 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
976 Increase to 16 MiB to allow loading the whole memdisk.
978 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
980 Fix ARM Linux Loader on non-FDT platforms.
982 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
984 * configure.ac: Choose link format based on host_os on emu.
986 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
988 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
990 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
992 * grub-core/kern/emu/main.c: Build fix for emu.
994 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
996 Build fixes for argp.h with older gcc.
998 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1000 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
1003 Suggested by: David Prévot.
1005 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1007 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
1009 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1011 Enable -Wformat=2 if it's supported.
1013 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1015 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1016 -Wmissing-declarations if supported.
1018 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1020 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1021 u32 as both HFS and HFS+ have 32-bit inodes.
1023 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1025 * include/grub/misc.h (grub_strtol): Fix overflow.
1027 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1029 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1030 as return type in both conditionals.
1032 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1034 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1035 to use uint8_t for color.
1037 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1039 * util/misc.c (grub_util_get_image_size): Check for overflow.
1041 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1043 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1046 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1048 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1049 for pointer difference.
1051 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1053 * util/import_gcry.py: Skip sample keys.
1055 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1057 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1059 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1061 * configure.ac: Remove duplicate warning arguments.
1063 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1065 Add missing static qualifiers.
1067 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1069 Add missing includes.
1071 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1073 Inline printf templates when possible to enable format checking.
1075 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1077 * include/grub/crypto.h: Don't discard const attribute.
1079 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1081 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1084 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1086 * grub-core/lib/crypto.c: Don't discard const attribute.
1088 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1090 * grub-core/lib/disk.c: Fix potential overflow.
1092 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1094 * grub-core/lib/arg.c: Don't discard const attribute.
1096 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1098 * grub-core/kern/dl.c: Don't discard const attribute.
1100 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1102 * grub-core/kern/disk.c: Fix potential overflow.
1104 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1106 * conf/Makefile.common: Don't include non-existing directory
1107 grub-core/lib/libgcrypt-grub/include.
1109 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1111 Clarify several translatable messages.
1113 2013-12-21 David Prévot <david@tilapin.org>
1115 Correct some translatable strings.
1117 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1119 * util/grub-mkrescue.c: Rephrase mkrescue description.
1121 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1122 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1124 Clarify several translatable messages.
1126 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1128 Be more verbose about some configure failures.
1130 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1132 Fix various build problems on GNU/Hurd.
1134 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1136 (xgetcwd): Likewise.
1137 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1138 [__GNU__]: Add prototype.
1139 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1140 long int using %ld rather than %d.
1142 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1144 * util/grub-install.c: Inform user about install platform.
1146 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1148 * configure.ac: Set version to 2.02~beta1.
1150 2013-12-18 Allen Pais <allen.pais@oracle.com>
1151 2013-12-18 Bob Picco <bob.picco@oracle.com>
1153 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1155 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1157 Make grub_zlib_decompress handle incomplete chunks.
1161 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1163 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1166 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1168 * grub-core/disk/usbms.c: Retry on unknown errors.
1169 Reuse the same tag on retries.
1171 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1173 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1175 Avoid confusing them with already completed transfers.
1177 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1181 Due to XEN bug it prevents Linux boot. Remove it at least, until
1182 workaround is found.
1184 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1186 * po/exclude.pot: Add 2 missing excludes.
1188 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1190 Add missing license section in macbless.mod and macho.mod.
1192 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1194 Allow compilation without thumb-interwork as long as no thumb is
1195 involved or only thumb2 is used.
1197 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1199 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1201 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1203 Add __attribute__ ((sysv_abi)) only if it's really needed.
1205 Some compilers don't support it.
1207 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1209 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1211 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1213 Remove -Wold-style-definition.
1215 Not very useful and interaction of it with regexp depends on GCC
1218 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1220 Make grub_util_get_windows_path_real static.
1222 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1224 * grub-core/commands/fileXX.c: Silence cast-align.
1225 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1227 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1229 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1230 rather than LL suffix.
1232 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1234 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1236 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1238 * grub-core/loader/arm/linux.c: Use common initrd functions.
1240 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1242 Decrease number of strings to translate.
1244 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1246 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1248 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1250 Mark strings for translation and add remaining ones to exclude list.
1252 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1254 * util/grub-file.c (main): Fix sizeof usage.
1256 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1258 Silence spurious warning.
1260 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1262 Remove check_nt_hiberfil as it's been superseeded by file command.
1264 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1266 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1268 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1270 Implement syslinux parser.
1272 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1274 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1276 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1278 Support cpuid --pae.
1280 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1282 Use AT keyboard on Yeeloong 3A.
1284 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1286 Add Yeeloong 3A reboot and halt.
1288 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1290 Add Radeon Yeeloong 3A support.
1292 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1294 Add bonito 3A support.
1296 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1298 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1300 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1302 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1304 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1306 * grub-core/loader/macho.c: Fix compilation on non-i386.
1308 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1310 Add missing format_arg attribute to check that printf with translated
1311 messages has proper arguments.
1313 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1315 Use grub_xasprintf to format translated error messages containing
1318 2013-12-17 Jon McCune <jonmccune@google.com>
1320 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1322 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1324 Unify message for unsupported relocation.
1326 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1328 Mark miscompile error for translation.
1330 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1332 Use %I64 and not %ll when using OS printf if compiling for windows.
1334 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1336 Update Mac code to match new register_efi prototype.
1338 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1340 Implement better integration with Mac firmware.
1342 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1344 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1347 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1349 Include serial module in default_payload.elf.
1351 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1353 Add explicit thumb interwork bx in asm files.
1355 Shouldn't matter for armv >= 5 but let's be safe.
1357 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1359 Implement Truecrypt ISO loader.
1361 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1363 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1365 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1367 Implement grub_file tool and use it to implement generating of config
1370 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1372 Change to v1 xen grants.
1374 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1376 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1378 GRUB relied on %ebx being preserved across hypercall which isn't true.
1380 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1382 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1384 GRUB relied on %rdi being preserved across hypercall which isn't true.
1386 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1388 Implement XEN VFB support.
1390 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1392 Remove grub_bios_interrupt on coreboot.
1394 It's not used currently and cannot be used safely currently.
1396 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1398 Update exclude.pot and mark few strings for translation.
1400 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1402 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1404 Reported by: Jon McCune
1406 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1408 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1409 Add verbose information which firmware directories were tried.
1411 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1413 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1414 function to optionally redirect all three standard descriptors.
1415 Redefine grub_util_exec, grub_util_exec_redirect and
1416 grub_util_exec_redirect_null to use it.
1417 * include/grub/emu/exec.h: Define it.
1418 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1419 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1420 Use grub_util_exec_redirect_all to redirect error to NULL.
1422 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1424 * grub-core/tests/sleep_test.c: Silence spurious warning.
1426 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1428 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1429 linker trying to "fixup" the code.
1431 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1433 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1435 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1437 Add support for converting PE+ to Elf64.
1439 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1441 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1443 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1445 Remove practice of assigning random const pointers to device id.
1447 This is not required as cache code already checks driver id as well.
1449 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1451 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1454 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1456 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1457 mingw or cygwin as API already matches.
1459 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1461 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1463 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1465 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1468 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1470 Handle X86_64_PC64 relocation.
1472 Those are generated by some cygwin compilers.
1474 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1476 Determine the need for mingw-related stubs at compile time rather than
1477 using not very significant $target_os.
1479 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1481 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1482 may not work with ELF.
1484 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1486 Use unix functions for temporary files and special files on cygwin.
1488 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1490 Define functions explicitly rather than using --defsym in tests
1491 whenever possible. Respect locality in remaining cases.
1493 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1495 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1497 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1499 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1500 unlikely errors when getting EFI variables and make exhaustive search
1501 for all BootNNNN variables to find matching one.
1503 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1505 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1507 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1509 New functional test for sleep function.
1511 This test allows to check sleep without qemu. Keep qemu version as
1512 well as functional test won't notice if all clocks are going too fast
1515 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1517 Add explicit sysv_abi on amd64 asm routines.
1519 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1521 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1524 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1526 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1529 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1531 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1534 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1536 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1538 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1540 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1543 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1545 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1547 In case of quick removal of loopback and adding another one it may
1548 get same ID, confusing the cache system.
1550 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1555 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1557 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1558 than converting to long.
1560 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1562 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1564 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1566 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1567 than almost useless pointer.
1569 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1571 Add gcc_struct to all packed structures when compiling with mingw.
1573 Just "packed" doesn't always pack the way we expect.
1575 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1577 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1579 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1581 * util/grub-pe2elf.c: Fix handling of .bss.
1583 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1585 Implement windows flavour of EFI install routines.
1587 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1589 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1591 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1593 Change grub_install_register_efi interface to pass GRUB device.
1595 This allows grub_install_register_efi to request partition info
1598 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1600 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1602 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1604 Do not use TCHAR string functions as they are not available on cygwin.
1606 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1608 Workaround windows bug when querying EFI system partition parameters.
1610 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1612 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1615 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1617 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1619 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1621 Make i386-* other than i386-pc compileable under cygwin.
1623 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1625 Fix definition of grub_efi_hard_drive_device_path. Take care that
1626 existing code would work even if by some reason bogus definition is
1627 used by EFI implementations.
1629 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1631 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1633 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1635 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1638 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1640 * util/config.c: Remove trailing newline from distributor in simple
1643 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1645 * include/grub/efi/api.h: Rename protocol and interface to avoid
1648 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1650 * .gitignore: add .exe variants. add missing files. remove few outdated
1653 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1655 * grub-core/osdep/exec.c: Use unix version on cygwin.
1657 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1659 Implement multiboot2 EFI BS specification.
1661 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1663 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1664 Crash happened only in some cases like a string starting at the
1665 half of the screen of same length.
1667 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1669 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1670 with EFI counterpart.
1672 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1674 Propagate the EFI commits to x86-efi specific parts.
1676 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1678 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1680 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1682 Introduce grub_efi_packed_guid and use it where alignment is not
1685 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1687 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1688 unaligned u16 rather than u8[2].
1690 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1692 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1693 for relocation range.
1695 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1697 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1698 non-function pcrel21b relocation. It happens with .text.unlikely
1701 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1703 * make MAX_USABLE_ADDRESS platform-specific
1704 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1706 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1708 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1710 2013-12-09 Jon McCune <jonmccune@google.com>
1712 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1713 in grub-install and grub-bios-setup for x86 BIOS targets.
1715 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1717 Add missing compile and link options for sparc64-emu.
1719 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1721 Implement sparc64 trampolines (needed for sparc64-emu).
1723 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1725 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1726 range of R_SPARC_HI22.
1727 Implement R_SPARC_LM22.
1729 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1731 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1732 Do not explicitly check for symbol table as it's already checked in
1733 platform-independent layer.
1735 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1737 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1738 on ia64 as __clear_cache is a dummy on ia64.
1740 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1742 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1743 Do not explicitly check for symbol table as it's already checked in
1744 platform-independent layer.
1746 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1748 * util/grub-mkconfig.in: Add missing newline to output.
1750 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1752 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1753 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1755 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1757 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1758 compilation with GCC <= 4.2.
1759 * grub-core/kern/emu/argp_common.c: Likewise.
1761 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1763 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1764 right platform rather than leaking to sparc64-emu.
1766 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1768 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1769 But ensure that the variables in question are indeed unsigned.
1771 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1773 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1775 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1777 Remove grub_memalign on emu.
1779 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1781 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1782 truncate incomplete lines but instead flushes them.
1784 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1786 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1787 and implement windows variant.
1789 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1791 Fix mips-emu compilation.
1793 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1795 * configure.ac: Check for freetype library usability.
1797 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1801 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1803 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1805 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1807 * docs/grub.texi (Environment): Update color_normal and color_highlight
1808 defaults (light-gray instead of white).
1810 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1812 * grub-core/normal/main.c (INIT): Set default color to light-gray
1813 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1814 and apparently BIOS defaults.
1816 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1818 Transform -C option to grub-mkstandalone to --core-compress available
1819 in all grub-install flavours.
1821 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1823 Merge GRUBFS and GRUB_FS variables.
1825 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1827 Revert commit 69ca97c820, it caused failures when using OS device name
1828 in grub-install. Instead just strip off parenthesis in grub-install
1829 if (hdX) was passed.
1831 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1833 * util/grub-install.c (push_partmap_module): Add helper to convert
1834 partmap names to module names and use it in probe_mods(). Fixes
1835 failure to find partmap modules in diskfilter case.
1837 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1839 * configure.ac: Make unifont mandatory on coreboot.
1841 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1843 * configure.ac: Skip unifont 6.3 pcf and bdf.
1845 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1847 * Makefile.am: Remove partial font files if generation failed.
1849 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1851 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1853 * include/grub/util/misc.h: Define it ...
1854 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1856 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1858 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1861 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1863 Don't add -mlong-calls when compiling with clang.
1865 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1867 * configure.ac: Fix a typo.
1869 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1871 Revamp relocation handling.
1873 Move more code to common dl.c. Add missing veneers for arm and arm64.
1874 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1876 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1878 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1880 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1882 * INSTALL: Raise minimum python version to 2.6.
1883 * gentpl.py: Use python3-style print function.
1885 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1887 * util/grub-install.c: Mention Boot* variable.
1889 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1891 * grub-core/osdep/linux/hostdisk.c
1892 (grub_util_find_partition_start_os): Initialise start to avoid
1893 spurious compiler warning.
1895 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1897 On Linux, read partition start offsets from sysfs if possible, to
1898 cope with block device drivers that don't implement HDIO_GETGEO.
1899 Fixes Ubuntu bug #1237519.
1901 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1903 (sysfs_partition_start): Likewise.
1904 (grub_util_find_partition_start_os): Try sysfs_partition_start
1907 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1909 * grub-core/kern/fdt.c: Update struct size when adding node.
1911 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1913 Handle unaligned .bss on sparc64.
1915 Current code improperly assumes that both __bss_start and _end are
1916 aligned to 8-bytes. Eliminating this assumption and explicitly align
1919 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1921 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1922 so it doesn't land in the middle of loaded image.
1924 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1926 * configure.ac: Move all warning options that may be absent in
1927 gcc >= 3.1 to optional.
1929 Note: while this allows to compile with older GCC, official requirements
1930 remain the same and no support for older GCC.
1932 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1934 Copying the themes directory in grub-shell isn't
1935 parallel-test-friendly and breaks on the second test when the source
1936 directory is read-only (as in "make distcheck"). Instead, add a
1937 hidden --themes-directory option to grub-mkrescue et al, and use it
1940 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1942 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1943 as it's no longer necessarry.
1945 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1947 * configure.ac: Allow compilation with older GCC for ARM.
1949 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1951 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1952 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1955 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1957 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1959 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1961 Pass font config to config.h and not by TARGET_CFLAGS as adding
1962 arguments doesn't work if TARGET_CFLAGS is specified on command
1965 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1967 * configure.ac: Add -Wvla if compiler supports it.
1969 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1971 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1972 Remove variable length arrays.
1973 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1975 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1977 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1979 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1981 * include/grub/types.h: Declare all byteswaps as inline functions
1982 except compile-time ones.
1984 Solves variable shadowing in constructions like
1985 cpu_to_le (le_to_cpu(x) + 1).
1987 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1989 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1991 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1993 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1996 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1998 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1999 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
2001 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2003 * grub-core/Makefile.core.def (setjmp): Distribute
2006 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
2008 Add a new timeout_style environment variable and a corresponding
2009 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2010 controls hidden-timeout handling more simply than the previous
2011 arrangements, and pressing any hotkeys associated with menu entries
2012 during the hidden timeout will now boot the corresponding menu entry
2015 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2016 generates a warning, and if it shows the menu it will do so as if
2017 the second timeout were not present. Other combinations are
2018 translated into reasonable equivalents.
2020 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2022 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2024 * util/config.c: Add missing pointer adjustment.
2025 Reported by: qwertial
2027 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2029 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2030 directly, not via `cpu' link, to fix libgrub.pp generation.
2032 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2036 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2038 * docs/grub.texi (sleep): Document exit codes.
2040 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2042 Ensure that -mno-unaligned-access or some equivalent option is used.
2044 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2046 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2049 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2051 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2053 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2055 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2056 builds, since we don't have an EPS version of font_char_metrics.png.
2057 Add leading dot to image extension per the Texinfo documentation.
2059 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2061 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2062 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2063 * util/grub-gen-widthspec.c: Likewise.
2064 * util/grub-mkfont.c: Likewise.
2066 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2068 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2069 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2070 failed to install on (hdX).
2071 * util/grub-setup.c (get_device_name): Remove, not needed after
2074 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2076 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2078 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2080 * util/grub-fstest.c: Remove variable length arrays.
2082 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2084 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2086 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2088 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2089 computing crc32 rather than handling with md fundtions directly.
2091 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2093 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2094 checking fwstart.img rather than md fundtions directly.
2096 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2098 * util/grub-mkrescue.c (main): Check that fread succeeded.
2100 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2102 * conf/Makefile.common: Remove -mexplicit-relocs and
2103 -DUSE_ASCII_FALLBACK on yeeloong.
2105 -DUSE_ASCII_FALLBACK is already added by font snippets.
2106 -mexplicit-relocs isn't needed is compiler/assemblera are
2107 configured properly.
2108 If they're not we shouldn't attempt to fix it by ourselves.
2109 Binary compare between before and after shows no difference.
2111 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2113 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2114 sources in dependencies directly.
2116 This was the only instance of "library" in core config. A bug was
2117 reported that -fno-stack-protector wasn't passed to it. Instead of
2118 figuring out why it failed just remove this construction used
2121 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2123 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2126 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2128 * docs/grub.texi (ls): Fix command description in case of a device name
2131 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2133 Eliminate variable length arrays in grub_vsnprintf_real.
2135 A bit tricky because this function has to continue to work without
2136 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2137 but make all stack references use 32-bit offset rather than 8-bit one.
2138 So split va_args preparsing to separate function and put the prealloc
2141 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2143 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2144 Fixes build for windows.
2146 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2148 * gentpl.py: Don't generate platform-dependent conditionals for
2149 platform-independent targets.
2151 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2153 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2154 references to mdadm from otherwise generic code.
2155 (grub_util_exec_pipe): Likewise.
2156 (grub_util_exec_pipe_stderr): Likewise.
2157 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2158 This function calls vgs, not mdadm; adjust variable names
2161 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2163 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2164 of Autogen. The Autogen definitions files remain intact as they
2165 offer a useful abstraction.
2167 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2169 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2170 into no-ops, and use it in programs that copy files but do not need
2171 to take special care to sync writes (grub-mknetdir, grub-rescue,
2174 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2176 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2177 than hardcoding /usr/local/bin/xorriso.
2179 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2181 Add PCI command activation to all PCI drivers as required for coreboot
2182 and maybe some other firmwares.
2184 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2186 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2187 and non-Apple variants of efiemu compile.
2189 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2191 * configure.ac: Add explicit check for linking format of
2192 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2193 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2194 hardcoding linking format.
2196 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2198 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2201 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2202 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2204 Add a --locale-directory option to grub-install and related tools.
2206 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2207 --locale-directory option.
2208 (enum grub_install_options): Add
2209 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2210 * util/grub-install-common.c (grub_install_help_filter): Handle
2211 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2212 (grub_install_parse): Likewise.
2213 (get_localedir): New function to check for a user-provided option
2214 before trying grub_util_get_localedir.
2215 (copy_locales): Use get_localedir rather than
2216 grub_util_get_localedir. Handle differing locale directory layouts.
2217 (grub_install_copy_files): Likewise.
2219 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2221 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2222 Don't rely on PATH_MAX.
2224 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2226 * grub-core/genmoddep.awk: Use more portable && rather than and.
2228 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2230 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2231 an object after data. While it doesn't seem right solution, it
2232 works well enough and OSX isn't main compilation platform.
2234 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2236 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2237 While it doesn't seem right solution, it works well enough and
2238 OSX isn't main compilation platform.
2240 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2242 * configure.ac: Add -static to LDFLAGS when using apple linker to
2243 prevent it from pulling in dynamic linker.
2245 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2247 Apple assembly doesn't handle symbol arithmetic well. So define an
2248 offset symbol in boot.S and use it.
2250 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2252 Apple assembly doesn't handle symbol arithmetic well. So instead
2253 of getting addres of kernel_sector + 4 define kernel_sector_high.
2254 It also makes code more readable.
2256 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2258 With Apple assembly in .macro environvemnt you have to use $$ instead
2259 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2260 to $$x on Apple and to $x on everything else.
2262 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2264 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2267 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2269 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2270 and non-Apple. This instruction is shorter and faster,
2271 so no reason not to use it on both.
2273 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2275 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2276 .text when compiling for Apple.
2278 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2280 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2282 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2284 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2285 %dx restore the probe worked on non-existant drive. Reorganize the
2286 code a little bit to free 2 bytes necessary for push/pop.
2288 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2290 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2291 Add missing cast to silence warning.
2293 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2295 * util/grub-install.c (update_nvram): Support --no-nvram flag
2298 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2300 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2302 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2304 * util/garbage-gen.c: Add missing include of sys/time.h.
2306 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2308 Don't add -mflush-func if it's not supported by compiler.
2310 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2312 Move common BIOS/coreboot memory map declarations to
2313 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2315 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2317 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2319 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2321 * INSTALL: Document why older clang versions aren't appropriate.
2323 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2325 * INSTALL: Document about clang for mips.
2327 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2329 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2332 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2334 Add *-xen to the list of grub-install-common platforms.
2336 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2338 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2341 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2343 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2345 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2347 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2348 with -mcmodel=large.
2350 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2352 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2353 range-checking for 32-bit quantities.
2355 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2357 * configure.ac: Compile with -fPIC when compiling with clang on
2360 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2362 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2363 when compiling with clang.
2365 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2367 clang emits calls to abort () under some unknown conditions.
2368 Export abort () when compiling with clang.
2370 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2372 * docs/grub-dev.texi: Document stack and heap sizes.
2374 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2376 * include/grub/i386/pc/memory.h: Decrease
2377 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2378 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2379 The binary doesn't change (checked). It's more to better reflect actual
2382 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2384 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2385 at compile time that enough of scratch size is available.
2387 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2389 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2390 Previously we misaligned stack by 8 in startup.S and compensated
2391 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2392 right behaviour is to align stack in startup.S and keep it aligned
2393 in callwrap.S. startup.S part was committed few commits before. This
2394 takes care of callwrap.S.
2395 Reported by: Gary Lin.
2397 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2399 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2400 .data and .bss. May happen if compiler and assembly use different
2403 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2405 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2408 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2410 Add support for a new magic symbol _gp_disp on mips to handle PIC
2413 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2415 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2417 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2419 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2420 when rest of GRUB is compiled for hisher stepping. Instead use
2421 .set mips3/.set mips1 around cache and sync opcodes.
2423 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2425 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2426 do essentially the same thing, do it in similar way.
2428 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2430 * util/grub-mkrescue.c (main): If a source directory is not
2431 specified, read platform-specific files from subdirectories of
2432 pkglibdir, not pkgdatadir.
2434 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2436 * grub-core/normal/progress.c: Remove unused file.
2438 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2440 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2443 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2445 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2448 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2450 * coreboot.cfg: Add missing file.
2452 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2454 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2456 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2458 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2459 selectively skipping systems.
2461 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2463 * Makefile.util.def (grub-mkimage): Add
2464 grub-core/osdep/aros/config.c to extra_dist.
2465 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2466 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2467 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2468 grub-core/gnulib-no-gets.diff.
2470 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2472 Add automated filesystem checking based on scripts I've used now for
2473 quite some time locally. Most of the test require root so they are
2474 skipped when run without necessarry privelegies.
2476 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2478 * util/grub-install.c (main): Adjust info messages to match
2479 installed paths of grub-bios-setup and grub-sparc64-setup.
2481 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2483 * util/grub-install-common.c (copy_locales): Consistently use
2484 grub_util_get_localedir () rather than LOCALEDIR.
2485 (grub_install_copy_files): Likewise.
2487 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2489 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2490 16-byte boundary, as required by the x86-64 ABI, before calling
2491 grub_main. In some cases, GCC emits code that assumes this
2492 alignment, which crashes if not aligned. The EFI firmware is also
2493 entitled to assume that stack alignment without checking.
2495 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2497 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2498 4k page boundaries as expected by firmware rather than 1k
2500 (grub_mmap_malign_and_register): Likewise.
2502 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2504 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2505 fragmentation 512M is enough.
2507 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2509 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2510 pointer to 32K. This is the size of cache element which is the most
2511 common allocation >1K. This way the pointer is always around blocks
2512 of 32K and so we keep performance while decreasing fragmentation.
2514 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2516 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2517 current memory when allocating large chunks. This significantly
2518 decreases memory fragmentation.
2520 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2522 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2524 * tests/lzocompress_test.in: Skip if lzop is not installed.
2525 * tests/xzcompress_test.in: Skip if xz is not installed.
2527 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2529 * util/grub-mkrescue.c (main): Fix typo.
2531 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2533 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2534 clock frequency to 200 MHz,
2536 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2538 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2540 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2542 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2543 Load config file from (cbfsdisk)/etc/grub.cfg.
2545 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2547 * util/grub-install-common.c (grub_install_copy_files): Fix module
2548 destination directory.
2550 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2552 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2553 files have not been built.
2555 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2557 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2558 Handle errors from mkstemp.
2559 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2561 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2563 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2564 on primary master on pseries.
2566 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2568 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2569 already loaded. This saves memory needed for tests,
2571 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2573 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2576 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2578 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2581 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2583 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2584 master since with some combinations of qemu and firmware only primary
2585 IDE channel is available.
2587 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2589 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2590 low-memory platforms where we don't have enough memory for them.
2591 * grub-core/tests/videotest_checksum.c: Likewise.
2593 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2595 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2596 already loaded. This saves memory needed for tests,
2598 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2600 Fix handling of install lists.
2602 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2604 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2606 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2608 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2609 the devices before accessing them.
2611 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2613 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2616 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2618 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2620 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2622 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2623 (grub_file_close): Free file->name.
2625 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2627 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2628 (grub_load_public_key): Likewise.
2629 (grub_verify_signature_real): Likewise.
2630 (grub_cmd_verify_signature): Likewise.
2632 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2634 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2637 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2639 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2640 (grub_longjmp): Restore r31.
2641 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2643 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2645 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2646 modules to be in line with make_image_abs.
2648 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2650 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2652 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2654 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2656 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2658 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2660 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2661 to leave some memory to firmware.
2663 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2665 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2666 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2667 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2670 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2672 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2673 now needs full arguments.
2675 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2677 * util/grub-mkrescue.c (main): Add trailing \n in
2678 .disk_label.contentDetails to be in line with previous shell script.
2680 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2682 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2684 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2686 * util/grub-install-common.c (grub_install_parse): Recognize
2687 --compress=none like shell script did.
2689 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2691 * include/grub/misc.h: Replace check for __sparc64__ with one for
2692 __sparc__ as __sparc64__ isn't actually defined.
2694 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2696 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2697 counterpart of fixing the naming of escc ports.
2699 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2701 * util/grub-install-common.c (platforms): Fix the order of entries and
2702 remove useless field val.
2704 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2706 * util/grub-install.c: Add new option --no-bootsector to skip
2707 installing of bootsector. Accept --grub-setup=/bin/true as
2708 backwards-compatible synonym.
2710 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2712 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2713 order of qsort arguments (number of elements vs. element size).
2715 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2717 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2718 the function of these files exceeds what can be sanely handled in shell
2719 in posix-comaptible way. Also writing it in C extends the functionality
2720 to non-UNIX-like OS and minimal environments.
2722 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2724 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2725 compiling to thumb2.
2726 * grub-core/kern/arm/cache_armv7.S: Likewise.
2727 * grub-core/lib/arm/setjmp.S: Likewise.
2729 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2731 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2732 in grub_uboot_syscall
2734 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2736 Decrease stack usage in lexer.
2738 We have only 92K of stack and using over 4K per frame is wasteful
2740 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2741 as macros so that compiler would remove useless structure on stack.
2742 Better solution would be to fix flex not to put this structure on
2743 the stack but flex is external program.
2745 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2747 Decrease stack usage in signature verification.
2749 We have only 92K of stack and using over 4K per frame is wasteful
2751 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2753 (grub_verify_signature_real): Likewise.
2755 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2757 Decrease stack usage in mdraid 0.9x.
2759 We have only 92K of stack and using over 4K per frame is wasteful
2761 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2764 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2766 Decrease stack usage in BtrFS.
2768 We have only 92K of stack and using over 4K per frame is wasteful
2770 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2773 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2775 Decrease stack usage in JFS.
2777 We have only 92K of stack and using over 4K per frame is wasteful
2779 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2780 stack. Note: this function is recursive.
2781 (grub_jfs_read_inode): Read only part we care about.
2783 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2785 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2788 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2790 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2792 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2794 * docs/grub.texi (Environment): Document cmdpath.
2796 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2798 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2799 Remove "unused" attribute from arguments, they are used.
2801 2013-11-15 Colin Watson <cjwatson@debian.org>
2803 * .gitignore: Only ignore grub-mk* at the top level.
2805 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2807 * util/grub-reboot.in (usage): Fix a typo.
2809 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2811 Replace libgcc version of ctz with our own.
2813 On upcoming arm64 port libgcc ctz* are not usable in standalone
2814 environment. Since we need ctz* for this case and implementation is
2815 in C we may as well use it on all concerned platforms.
2817 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2819 * configure.ac: Probe for linking format rather than guessing it based
2822 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2824 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2825 "1" prior to handoff.
2827 Reported by: M A Young.
2829 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2831 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2834 Reported by: M A Young.
2836 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2838 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2839 compilation on NetBSD.
2841 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2843 * acinclude.m4: Don't add -P on initial nm test.
2845 Note: even though this patch postdates Andrey's it bears 14 Nov as
2846 date due to timezone difference.
2848 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2850 * grub-core/Makefile.core.def (signature_test): Add missing
2853 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2855 * util/grub-install_header: Set localedir here, since this file is
2857 * util/grub-install.in: Remove setting of localedir.
2858 * util/grub-mkrescue.in: Likewise.
2860 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2862 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2864 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2866 * configure.ac: Move nm checks to the end.
2867 Call grub_PROG_NM_WORKS.
2868 * acinclude.m4: New check grub_PROG_NM_WORKS.
2869 Use $TARGET_CFLAGS -c when compiling test binary.
2871 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2873 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2876 2013-11-14 Matthew Garrett <mjg@redhat.com>
2878 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2879 cmdpath to firmware directory.
2881 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2883 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2884 at the start of second iteration.
2886 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2888 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2890 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2892 * Makefile.am (default_payload.elf): New target for easier coreboot
2895 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2897 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2898 clang (not necessarry with -no-integrated-as).
2899 * include/grub/symbol.h [__arm__]: Likewise.
2901 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2903 * configure.ac: Use -no-integrated-as on arm with clang.
2904 * INSTALL: Mention ARM compilation with clang.
2906 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2908 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2911 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2913 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2914 code for indirect block handling.
2916 Saves 185 bytes on compressed image.
2918 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2922 * Makefile.am: Remove build-grub-* in make clean.
2924 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2926 New files to gitignore.
2928 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2929 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2931 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2933 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2935 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2937 * .gitignore: fix rules for .dep* and add *.a post git migration
2939 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2941 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2944 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2946 * grub-core/kern/misc.c: Don't redirect divisions in the
2948 * include/grub/misc.h: Likewise.
2950 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2952 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2953 systems that require checking the return value of write.
2955 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2957 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2958 efibootmgr quiet when --debug is not used, rather than when it is.
2960 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2962 * gentpl.py (define_macro_for_platform_dependencies): Remove
2963 first (and thus unused) of two definitions for this function.
2964 (platform_dependencies): Likewise.
2966 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2968 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2969 functions, we only need to check this for the target, not the host.
2970 * configure.ac (grub_apple_cc): Likewise.
2972 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2974 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2975 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2976 asm to stay in arm even if surrounding is thumb.
2978 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2980 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2981 helper functions are needed for thumb.
2983 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2985 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2986 level / 3 division explicitly unsigned. Saves few bytes.
2988 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2990 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2992 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2994 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2997 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2999 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
3000 grub_uboot_boot_data to asm part.
3002 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3004 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
3006 (grub_uboot_syscall): Save/restore r9 and align stack.
3008 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3010 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3012 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3014 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3015 occurencies with END.
3017 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3019 * util/grub-editenv.c (help_filter, argp): Document how to delete
3020 the whole environment block.
3021 Reported by Dan Jacobson. Fixes Debian bug #726265.
3023 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3025 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3028 2013-11-13 Josh Triplett <josh@joshtriplett.org>
3030 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3031 increment/decrement.
3033 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3035 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3036 compiling with clang.
3038 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3040 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3043 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3045 Redirect all divisions to grub_divmod64.
3047 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3049 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3051 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3053 Add missing includes of loader.h.
3055 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3057 * configure.ac: Allow disabling themes.
3059 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3061 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3063 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3065 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3066 until it becomes operational.
3068 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3070 * grub-core/Makefile.core.def (legacy_password_test): Disable
3071 on platforms where no legacycfg is compiled.
3072 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3073 load legacy_password_test.
3075 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3077 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3079 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3081 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3083 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3085 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3086 strict-aliasing warning.
3087 (fsync): Silence cast warning.
3089 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3091 * grub-core/commands/verify.c: Remove variable length arrays.
3092 Load gcry_dsa/gcry_rsa automatically.
3094 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3096 * grub-core/tests/signature_test.c: New test.
3098 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3100 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3103 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3105 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3106 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3108 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3110 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3112 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3114 * grub-core/fs/proc.c: Allow \0 in proc files.
3116 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3118 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3120 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3122 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3124 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3126 * grub-core/fs/ext2.c: Remove variable length arrays.
3128 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3130 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3133 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3135 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3136 * grub-core/disk/cryptodisk.c: Likewise.
3137 * grub-core/disk/geli.c: Likewise.
3138 * grub-core/disk/luks.c: Likewise.
3140 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3142 * grub-core/tests/legacy_password_test.c: New test.
3143 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3145 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3147 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3149 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3151 * grub-core/tests/pbkdf2_test.c: New test.
3153 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3155 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3157 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3159 * grub-core/io/lzopio.c: Remove variable length arrays.
3161 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3163 * include/grub/crypto.h: Add maximums on hash size and cipher block
3166 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3168 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3170 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3172 * grub-core/tests/xnu_uuid_test.c: New test.
3174 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3176 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3179 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3181 * grub-core/commands/hashsum.c: Remove variable length arrays.
3183 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3185 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3187 * tests/grub_func_test.in: Increase memory allocation.
3189 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3191 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3192 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3195 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3197 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3198 (grub_util_get_fd_size_os): ...this.
3199 (grub_hostdisk_flush_initial_buffer): New empty function.
3201 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3203 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3204 without --defined-only.
3206 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3208 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3209 rip-relative addressing in prologue.
3211 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3213 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3214 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3216 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3218 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3219 Add missing semicolon.
3221 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3223 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3225 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3227 * configure.ac: Check for lzma.h for enabling liblzma and allow
3230 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3232 Add missing includes of loader.h.
3234 2013-11-11 Fam Zheng <famcool@gmail.com>
3236 * util/grub.d/30_os-prober.in: Add minix entry.
3238 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3240 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3241 right buffer for temporary load.
3243 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3245 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3247 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3249 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3252 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3254 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3256 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3258 (LzmaDec_InitDicAndState): Make static.
3260 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3262 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3264 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3266 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3268 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3270 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3272 * docs/grub-dev.texi: Replace bzr references with git ones.
3274 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3276 * docs/grub.texi (Simple configuration): Remove reference to
3277 grub-reboot from saved default entry description - grub-default
3278 does not use it anymore.
3280 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3282 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3285 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3287 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3289 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3291 Fix grub_machine_fini bitrot.
3293 Reported by: Glenn Washburn.
3295 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3297 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3299 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3301 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3303 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3306 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3308 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3309 Add -march=core2 when testing compile of efiemu64.
3311 Thanks Andrey Borzenkov for spotting this.
3313 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3315 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3316 XEN PV environment and load kernels.
3318 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3320 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3321 * grub-core/loader/multiboot_mbi2.c: Likewise.
3323 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3325 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3328 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3330 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3332 Tested by: Denis 'GNUtoo' Carikli.
3334 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3336 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3338 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3340 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3341 Use to get rounded angle rather than truncated.
3343 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3345 * grub-core/term/serial.c: Add option for enabling/disabling
3346 RTS/CTS flow control.
3348 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3350 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3353 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3355 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3356 Use grub_fatal rather than divide by zero.
3357 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3359 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3361 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3363 (grub_fixed_fsf_divide): Likewise.
3365 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3367 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3368 division by-zero and senseless negative divisions.
3370 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3372 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3373 division by-zero and senseless negative divisions.
3374 (circprog_set_property): Don't accept negative num_ticks.
3376 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3378 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3379 division by-zero and senseless negative divisions.
3381 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3383 * configure.ac: Use elf_*_fbsd on kfreebsd.
3385 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3387 * grub-core/tests/div_test.c: New test.
3389 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3391 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3392 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3393 * grub-core/gfxmenu/view.c: Likewise.
3394 * grub-core/video/fb/video_fb.c: Introduce new functions:
3395 grub_video_set_area_status, grub_video_get_area_status,
3396 grub_video_set_region, grub_video_get_region.
3397 * grub-core/video/bochs.c: Likewise.
3398 * grub-core/video/capture.c: Likewise.
3399 * grub-core/video/video.c: Likewise.
3400 * grub-core/video/cirrus.c: Likewise.
3401 * grub-core/video/efi_gop.c: Likewise.
3402 * grub-core/video/efi_uga.c: Likewise.
3403 * grub-core/video/emu/sdl.c: Likewise.
3404 * grub-core/video/radeon_fuloong2e.c: Likewise.
3405 * grub-core/video/sis315pro.c: Likewise.
3406 * grub-core/video/sm712.c: Likewise.
3407 * grub-core/video/i386/pc/vbe.c: Likewise.
3408 * grub-core/video/i386/pc/vga.c: Likewise.
3409 * grub-core/video/ieee1275.c: Likewise.
3410 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3411 * include/grub/video.h: Likewise.
3412 * include/grub/video_fb.h: Likewise.
3413 * include/grub/fbfill.h: Updated render_target structure.
3414 grub_video_rect_t viewport, region, area
3415 int area_offset_x, area_offset_y, area_enabled
3416 * include/grub/gui.h: New helper function
3417 grub_video_bounds_inside_region.
3418 * docs/grub-dev.texi: Added information about new functions.
3420 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3422 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3425 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3429 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3431 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3433 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3434 simple division on arm and ia64.
3436 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3438 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3441 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3443 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3445 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3447 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3448 prefix symbol, not @.
3450 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3452 * INSTALL: Add note about older gcc and clang.
3454 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3456 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3458 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3461 NULL pointer dereference.
3463 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3465 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3468 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3470 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3473 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3475 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3477 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3478 * grub-core/disk/geli.c (ascii2hex): Likewise.
3480 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3482 * configure.ac: Run linker tests without -Werror.
3483 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3484 Change all occurences of -static-libgcc resp -lgcc to
3485 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3487 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3489 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3493 Allow compiling with clang (not really supported though).
3495 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3497 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3498 Add -mrtd -mregparm=3 on i386 when not using clang.
3499 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3501 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3503 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3505 * grub-core/lib/reed_solomon.c: Likewise.
3506 * include/grub/i386/gdb.h: Likewise.
3507 * include/grub/i386/pc/int.h: Likewise.
3508 * include/grub/i386/pc/pxe.h: Likewise.
3509 * include/grub/ieee1275/ieee1275.h: Likewise.
3511 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3513 Import libgcrypt 1.5.3.
3515 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3517 * configure.ac: Don't add -Wcast-align on x86.
3519 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3521 * configure.ac: Add -freg-struct-return on all platforms that
3524 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3526 * acinclude.m4: Use -Werror on parameter tests.
3527 * configure.ac: Likewise.
3529 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3531 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3533 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3535 * configure.ac: Check that -malign-loops works rather than assuming that
3536 either -falign-loops or -malign-loops work.
3538 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3540 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3542 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3544 * configure.ac: Prevent cflags leaking to subsequent tests by always
3545 resetting cflags to target_cflags in target tests.
3547 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3549 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3552 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3554 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3556 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3558 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3560 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3562 * grub-core/normal/cmdline.c (grub_cmdline_get):
3563 Remove nested functions.
3565 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3567 * tests/test_sha512sum.in: Make it work on emu.
3569 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3571 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3573 (grub_bidi_line_logical_to_visual): Likewise.
3575 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3577 Remove vestiges of -Wunsafe-loop-optimisations.
3579 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3580 -Wno-unsafe-loop-optimisations.
3581 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3583 * grub-core/io/gzio.c: Likewise.
3584 * grub-core/script/parser.y: Likewise.
3585 * grub-core/script/yylex.l: Likewise.
3586 * util/grub-mkfont.c: Likewise.
3588 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3590 * util/grub-mkfont.c (process_cursive): Remove nested function.
3592 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3594 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3595 (grub_boot_time): Likewise.
3597 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3599 * include/grub/symbol.h (FUNCTION): Use @function rather than
3601 (VARIABLE): Likewise.
3603 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3605 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3607 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3609 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3610 (parse_dhcp_vendor): Likewise.
3612 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3614 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3616 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3618 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3619 Define after defining type and not before.
3621 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3623 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3625 (grub_gcm_decrypt): Likewise.
3626 (algo_decrypt): Likewise.
3627 (grub_zfs_decrypt_real): Transform error type.
3629 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3631 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3633 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3635 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3636 (grub_usbms_cbi_reset): Likewise.
3637 (grub_usbms_bo_reset): Likewise.
3638 (grub_usbms_reset): Likewise.
3639 (grub_usbms_attach): Likewise.
3640 (grub_usbms_transfer_cbi): Likewise.
3642 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3644 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3645 "checksum = checksum;".
3647 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3649 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3652 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3654 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3657 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3659 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3661 (grub_ehci_fini_hw): Likewise.
3662 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3664 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3666 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3667 return grub_usb_err_t for cosistency. All users updated.
3669 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3671 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3672 assigning to itself.
3674 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3675 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3677 Issue separate DNS queries for ipv4 and ipv6
3679 Adding multiple questions on a single DNS query is not supportted by
3680 most DNS servers. This patch issues two separate DNS queries
3681 sequentially for ipv4 and then for ipv6.
3683 Fixes: https://savannah.gnu.org/bugs/?39710
3685 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3686 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3687 * (grub_net_dns_lookup): Now using separated dns packages.
3688 * (grub_cmd_nslookup): Add error condition.
3689 * (grub_cmd_list_dns): Print DNS option.
3690 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3691 --prefer-ipv4, and --prefer-ipv6.
3692 * include/grub/net.h (grub_dns_option_t): New enum.
3693 * (grub_net_network_level_address): option added.
3695 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3697 * grub-core/video/fb/video_fb.c: Merge two blit functions
3700 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3702 * grub-core/term/terminfo.c: Add sequences for home and end.
3704 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3706 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3709 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3711 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3714 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3716 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3717 e-mail by Per Öberg.
3719 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3721 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3724 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3726 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3728 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3730 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3732 * docs/grub.texi: Document usage of menuentry id.
3734 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3736 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3738 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3740 * grub-core/commands/i386/nthibr.c: New command.
3742 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3744 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3746 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3748 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3751 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3753 Support GRUB_DISABLE_SUBMENU config.
3755 Inspired by patch from Prarit Bhargava.
3757 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3759 * docs/grub.texi: Mention RSA support.
3761 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3763 * grub-core/commands/verify.c: Add RSA support.
3765 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3767 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3768 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3769 device is known to be ATAPI.
3771 2013-11-03 Mike Frysinger <vapier>
3773 * configure.ac: Don't add target-prefix.
3775 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3777 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3780 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3782 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3783 if language is English.
3785 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3787 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3789 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3791 * configure.ac: Don't add -m32/-m64 on emu.
3795 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3796 broken linux headers.
3798 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3800 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3802 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3804 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3805 Reed-Solomon recovery if more than half of redundancy info is 0.
3807 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3809 * util/grub-mount.c: Handle symlinks to directories.
3811 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3813 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3814 find_file recursively for symlink.
3816 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3818 * tests/util/grub-shell.in: Copy themes.
3820 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3822 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3824 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3826 * configure.ac: Use 0x8000 for address instead of 8000.
3828 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3830 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3833 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3835 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3838 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3840 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3842 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3844 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3845 file_progress_read_hook.
3846 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3848 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3850 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3853 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3855 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3857 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3859 Rewrite blocklist functions in order to get progress when
3860 reading large extents and decrease amount of blocklist hook calls.
3862 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3864 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3867 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3869 Support --base-clock for serial command to handle weird cards with
3870 non-standard base clock.
3872 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3874 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3876 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3877 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3878 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3879 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3880 + strcpy rather than strncpy.
3882 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3884 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3885 (check_pool_label): Likewise. Fixes overflow.
3886 (nvlist_find_value): Fix comparison.
3888 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3890 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3891 more appropriate functions.
3893 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3895 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3898 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3900 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3902 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3904 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3907 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3909 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3911 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3913 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3914 (initialize_tables): reset tl and td to NULL after freeing.
3916 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3918 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3920 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3922 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3925 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3927 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3929 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3931 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3934 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3936 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3937 a page in protected space.
3939 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3941 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3942 allocate space for zero-sized modules.
3944 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3946 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3948 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3950 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3952 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3954 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3955 safeguards. Fixes a crash with i386/pc/console.c.
3957 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3959 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3960 and grub_hostfs_init.
3962 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3964 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3965 windows method on other platforms without good stat as well.
3967 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3969 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3971 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3973 Make / in btrfs refer to real root, not the default volume.
3974 Modify mkrelpath to work even if device is mounted with subvolid option.
3976 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3978 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3980 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3983 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3985 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3988 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3990 * docs/autoiso.cfg: New file.
3992 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3994 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3995 COND_GRUB_PE2ELF conditions.
3997 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3999 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
4000 "vnd", "rd" and "fd" disks.
4002 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4004 Move grub_disk_write out of kernel into disk.mod.
4006 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4008 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4011 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4013 * grub-core/kern/misc.c (grub_abort): Make static
4015 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4017 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4018 transform invalid unicode codepoints.
4020 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4022 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4025 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4027 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4029 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4031 Consolidate cpuid code.
4033 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4035 Move cpuid code to cpuid.h and TSC code to tsc.c.
4037 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4039 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4041 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4043 * util/grub-mkconfig.in: Replace $0 with $self.
4044 * util/grub-reboot.in: Likewise.
4045 * util/grub-set-default.in: Likewise.
4047 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4049 * docs/osdetect.cfg: New file.
4051 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4053 * tests/util/grub-shell.in: Add new --debug option.
4055 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4057 * tests/test_unset.in: New test.
4059 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4061 * tests/test_sha512sum.in: New test.
4063 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4065 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4066 * include/grub/misc.h: Remove strncat.
4067 * grub-core/lib/posix_wrap/string.h: Likewise.
4069 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4071 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4072 Try to handle more than 0xFFFF packets.
4073 Reported by: Bernhard Übelacker <bernhardu>.
4074 He also spotted few overflows in first version of this patch.
4076 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4078 * tests/date_unit_test.c: New test.
4080 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4082 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4083 of first three years after start of validity of unixtime.
4085 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4087 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4088 division as the one making more sense.
4089 (update_screen): Likewise.
4090 (complete): Likewise.
4092 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4094 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4096 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4098 Make char and string width grub_size_t rather than grub_ssize_t.
4100 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4102 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4104 (grub_history_replace): Likewise.
4106 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4108 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4111 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4113 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4116 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4118 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4119 Use unsigned divisions rather than signed variants.
4121 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4123 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4124 unsigned arithmetics.
4127 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4129 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4131 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4133 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4134 rather than signed one.
4135 (recovery): Likewise.
4137 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4139 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4141 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4143 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4146 2013-10-25 Jon McCune <jonmccune@google.com>
4148 * docs/grub.texi: Cleanup security documentation around signatures.
4150 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4152 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4154 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4156 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4159 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4161 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4162 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4163 functions when compiling for kernel.
4165 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4167 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4168 unsigned long long when using %llu.
4170 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4172 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4173 terminal after updating progress.
4175 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4177 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4178 argument. We don't disable Gate A20 in this code.
4180 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4182 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4183 Conceptually based on change in branch "vbe-on-coreboot".
4185 2013-10-24 Robert Millan <rmh@gnu.org>
4187 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4188 numeric constants with their symbolic equivalent.
4189 Taken from branch "vbe-on-coreboot".
4191 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4193 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4195 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4197 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4198 divmod64 for offset division.
4200 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4202 Rename .bzrignore to .gitignore. Add "*.o" rule.
4204 * .bzrignore: Renamed to...
4205 * .gitignore: ...this.
4207 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4209 Add new progress module that displays the load progress of files.
4211 * grub-core/lib/progress.c: New file.
4212 * grub-core/Makefile.core.def (progress): New module.
4213 * grub-core/kern/file.c (grub_file_open): File name added.
4214 * (grub_file_read): Progress hook added.
4215 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4216 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4217 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4218 * include/grub/file.h (struct grub_file): Add progress module members.
4219 * include/grub/term.h (struct grub_term_output): Likewise.
4220 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4221 Terminal velocity added.
4222 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4223 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4224 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4225 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4226 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4227 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4228 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4229 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4230 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4231 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4232 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4233 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4235 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4237 Verify signatures of signatures unless --skip-sig is specified.
4239 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4241 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4244 Saves 70 bytes on compressed image.
4246 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4248 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4251 Saves 10 bytes on compressed image.
4253 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4255 * grub-core/kern/misc.c (grub_isprint): Move to ...
4256 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4258 Saves 20 bytes on compressed image due to remving exporting.
4260 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4262 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4264 Saves 5 bytes on compressed image.
4266 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4268 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4271 Saves 379 bytes on compressed image.
4273 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4275 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4277 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4279 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4281 Saves 40 bytes on compressed image.
4283 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4285 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4286 mask rather than 64-bit type.
4288 Saves 20 bytes on compressed image.
4290 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4292 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4293 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4295 Saves 273 bytes on compressed image.
4297 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4299 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4300 variable length arrays.
4302 Saves 50 bytes on compressed image.
4304 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4306 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4308 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4310 * grub-core/fs/ufs.c: Remove variable length arrays.
4312 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4314 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4316 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4318 * grub-core/fs/zfs.c: Remove variable length arrays.
4319 Reduces zfs.mod by 160 bytes (208 compressed).
4321 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4323 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4325 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4327 * grub-core/net/arp.c: Remove variable length arrays.
4328 * grub-core/net/bootp.c: Likewise.
4329 * grub-core/net/dns.c: Likewise.
4330 * grub-core/net/icmp6.c: Likewise.
4331 * grub-core/net/net.c: Likewise.
4333 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4335 * grub-core/fs/ntfs.c: Remove variable length arrays.
4336 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4339 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4341 * grub-core/fs/hfs.c: Remove variable length arrays.
4342 Reduces hfs.mod by 8 bytes (52 compressed).
4344 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4346 * grub-core/fs/udf.c: Remove variable length arrays.
4347 Increases udf.mod by 128 bytes (but decreases by 13 when
4350 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4352 * grub-core/fs/iso9660.c: Remove variable length arrays.
4353 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4356 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4358 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4359 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4362 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4364 * grub-core/fs/xfs.c: Remove variable length arrays.
4365 Reduces xfs.mod by 40 bytes (43 compressed).
4367 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/fs/fshelp.c: Remove variable length arrays.
4370 Reduces fshelp.mod by 116 bytes (23 compressed).
4372 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4374 * grub-core/normal/completion.c: Remove variable length arrays.
4375 * grub-core/normal/menu_entry.c: Likewise.
4377 Reduces normal.mod by 496 bytes.
4379 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4381 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4382 by 356 bytes (158 compressed).
4384 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4386 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4387 by 364 bytes (169 compressed).
4389 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4391 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4392 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4393 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4395 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4397 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4398 bitmasks to small structures of size chosen to fit in registers.
4400 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4402 * conf/Makefile.common: Use -freg-struct-return on i386. This
4403 decreases code size and improves performance.
4405 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4407 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4409 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4411 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4413 Simplify expressions to save around 256 bytes in kernel.img.
4414 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4416 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4418 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4419 Use GRUB_UTIL_FD_O_* rather than O_*.
4421 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4423 Add haiku-specific functions.
4425 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4427 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4429 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4431 Move stat () and device mode checking into OS-dependent files as
4432 long as performance doesn't suffer.
4434 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4436 Split make_system_path_relative_to_its_root into separate file
4437 relpath.c from getroot.c as it's common between unix and haiku
4438 but otherwise haiku doesn't use any functions from unix getroot.c.
4440 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4442 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4444 (grub_util_is_special_file): Likewise.
4446 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4448 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4449 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4451 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4453 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4454 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4456 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4458 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4459 (load_image): Likewise.
4461 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4463 * util/grub-render-label.c: Move backend part to ...
4464 * util/render-label.c: ... here.
4466 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4468 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4469 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4471 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4473 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4475 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4477 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4478 CD-ROM in case when it's declared as having subpartitions.
4480 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4482 Don't add -lm on haiku.
4484 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4486 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4489 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4491 * configure.ac: Use -melf_*_haiku as target on haiku.
4493 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4495 * Makefile.util.def: Add util/setup.c to extra_dist.
4497 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4499 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4500 unknown types through.
4502 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4504 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4505 (grub_util_check_char_device): Likewise.
4506 * include/grub/emu/getroot.h: Likewise.
4508 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4510 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4511 memset rather than inline static function.
4513 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4515 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4516 not doing embedded decompressor.
4518 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4520 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4522 * grub-core/kern/disk.c: Likewise.
4523 * grub-core/kern/misc.c: Likewise.
4524 * include/grub/parser.h: Likewise.
4525 * include/grub/script_sh.h: Likewise.
4526 * include/grub/zfs/zfs.h: Likewise.
4528 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4530 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4532 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4534 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4535 defined before trying to use it.
4537 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4539 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4542 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4544 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4545 Use __unused__ rather than __used__ on gcc < 3.2.
4547 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4549 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4551 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4553 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4555 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4557 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4559 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4560 * include/grub/emu/misc.h: Likewise.
4562 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4564 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4567 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4569 * grub-core/tests/checksums.h: Regenerated due to progress bar
4570 get_minimal_size changes.
4572 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4574 Added `tr' command support.
4576 * grub-core/commands/tr.c: New file.
4577 * grub-core/Makefile.core.def: Build rules for new module.
4579 * tests/grub_cmd_tr.in: New test.
4580 * Makefile.util.def: Build rules for new test.
4582 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4584 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4586 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4588 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4589 * docs/gurb.texi: Likewise.
4591 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4593 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4594 Pixmap highlighted section with east and west slices was displayed
4595 incorrectly due to negative width of the central slice.
4597 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4599 * docs/grub.texi: Graphical options information update.
4600 Removed outdated. Updated current. Inserted missed.
4602 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4604 * docs/grub.texi: Mention few new platform-specific commands.
4606 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4608 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4609 currently used so this doesn't really have any effect.
4610 Reported by: Douglas Ray <dougray>
4612 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4614 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4615 compilation but prevents gcc from displaying messages in non-Latin
4617 * conf/Makefile.common: Likewise.
4619 2013-10-16 Hiroyuki YAMAMORI
4621 Handle Japanese special keys.
4622 Reported by: Hiroyuki YAMAMORI.
4623 Codes supplied by: Hiroyuki YAMAMORI.
4625 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4627 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4629 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4631 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4632 * docs/grub.texi: Likewise.
4634 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4636 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4637 value in case of incomplete read.
4638 (grub_util_fd_write): Likewise.
4640 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4642 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4644 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4646 * util/grub-editenv.c (create_envblk_file): More from here ...
4647 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4649 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4651 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4652 canonicalize file name before doing the rest.
4654 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4656 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4659 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4661 Define grub_util_is_directory/regular/special_file and
4662 use OS-dependent versions rather than to rely on stat().
4664 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4666 * util/grub-mkimage.c: Move backend part to ...
4667 * util/mkimage.c: ... here.
4669 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4671 Allow compilation with mingw64 albeit with warnings due to lack of
4674 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4675 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4676 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4677 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4679 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4681 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4683 Remove leftover references to some of the system headers.
4685 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4687 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4690 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4692 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4695 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4697 Split out blocklist retrieving from setup.c to
4698 grub-core/osdep/blocklist.c and add windows implementation since
4699 generic version doesn't work on NTFS on Windows due to aggressive
4702 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4704 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4707 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4709 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4710 Cut tailing newline. Remove arbitrary limitation. Always use
4711 grub_util_tchar_to_utf8.
4713 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4715 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4716 * tests/printf_unit_test.c (printf_test): Add %% tests.
4717 Reported by: Paulo Flabiano Smorigo.
4719 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4721 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4724 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4726 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4727 use nvlist_lookup_string and don't use nvlist_print.
4729 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4731 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4732 closedir to handle filename charset translation.
4734 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4736 * include/grub/emu/hostdisk.h: Move file operations to
4737 * include/grub/emu/hostfile.h: ... here.
4739 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4741 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4744 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4746 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4748 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4750 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4751 and remove export.h.
4753 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4755 * grub-core/kern/emu/error.c: Removed.
4756 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4757 explicitly as it's already in libgnu.a.
4759 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4761 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4762 config-util.h include.
4764 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4766 Split emunet into platform-dependent and GRUB-binding parts. Keep
4767 platform-dependent part in kernel for easy access to OS functions.
4769 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4771 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4774 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4776 * grub-core/osdep/windows/emuconsole.c: New file.
4778 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4780 * conf/Makefile.extra-dist: Add osdep/*/init.c
4782 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4784 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4786 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4788 * util/grub-probe.c (probe): Separate different drives in hint-str
4789 by spaces and not newlines.
4790 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4792 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4794 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4797 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4799 Pass-through unknown E820 types. It required reorganisation of mmap
4802 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4804 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4806 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4808 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4811 2013-10-14 qwertial <qwertial>
4813 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4815 2013-10-14 Jon McCune <jonmccune@google.com>
4817 * docs/grub.texi: Document new signatures possibility.
4819 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4821 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4823 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4825 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4827 (grub_util_tchar_to_utf8): Likewise.
4829 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4831 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4832 * grub-core/kern/emu/main.c: Add missing include.
4833 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4834 Don't call grub_util_init_nls.
4835 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4838 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4840 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4843 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4845 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4847 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4849 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4851 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4853 Add a wrapper for fopen. On unix-like systems just pass-through. On
4854 windows use unicode version.
4856 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4858 Move set_program_name and init_nls to host_init. On windows
4859 fix in this fuction console and argument charset as well.
4861 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4863 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4864 GRUB_ENABLE_CRYPTODISK.
4866 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4867 GRUB_ENABLE_CRYPTODISK.
4868 * util/grub-mkconfig_lib.in: Likewise.
4870 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4872 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4874 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4876 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4877 error when enabling debug.
4879 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4881 * configure.ac: Use -melf_*_obsd on openbsd.
4883 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4885 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4887 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4889 * include/grub/misc.h: Use gnu_printf rather than printf as format
4890 template since our functions are independent of libc.
4892 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4894 * util/grub-setup.c (setup): Move copying of partition table as
4895 futher up as possible to avoid possible overwrite by floppy routines.
4897 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4899 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4901 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4903 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4904 * docs/grub.texi: Likewise.
4906 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4908 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4909 it's mostly unused. Move vestiges to the callers.
4911 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4913 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4914 version of salt and hash. Use grub_snprintf rather than snprintf.
4916 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4918 * docs/grub.texi: Fix problem with braces.
4920 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4922 * conf/Makefile.extra-dist: Fix extra-dist list.
4923 * grub-core/Makefile.core.def: Likewise.
4925 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4927 * docs/grub.texi: Document disk names used on Windows and AROS.
4929 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4931 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4933 * grub-core/osdep/aros/hostdisk.c: Likewise.
4935 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4937 Avoid including hostfile.h when not necessarry as it pulls
4938 in OS-specific headers which may redefine generic names
4941 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4943 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4944 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4945 scrollbar_bottom_pad
4946 * docs/grub.texi: Likewise.
4948 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4950 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4952 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4954 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4956 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4958 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4960 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4963 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4965 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4968 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4970 Move OS-specific driver configuration to grub_util_fd_open. This
4971 moves OS-dependent parts from kern/emu/hostdisk.c to
4972 grub-core/osdep/*/hostdisk.c.
4974 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4976 * util/grub-mkimage.c (generate_image): Use size_t instead of
4978 * util/grub-mkimagexx.c (locate_sections): Likewise.
4979 (load_image): Likewise.
4981 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4983 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4985 (grub_util_write_image): Likewise.
4987 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4989 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4990 get random when no RNG is available.
4991 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4993 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4995 * include/grub/util/lvm.h: Removed.
4997 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4999 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
5000 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
5002 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5004 * grub-core/osdep/windows/sleep.c: Add missing config.h.
5006 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5008 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5010 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5012 * grub-core/net/drivers/emu/emunet.c: Move to ..
5013 * grub-core/osdep/linux/emunet.c: ..here.
5015 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5017 * util/ieee1275/ofpath.c: Move to ...
5018 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5019 * grub-core/osdep/basic/ofpath.c: ..here.
5021 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5023 Move password-querying (util-version) routines to grub-core/osdep.
5025 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5027 Move sleep routines to grub-core/osdep.
5029 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5031 Move OS-dependent files to grub-core/osdep and document it.
5033 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5035 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5036 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5038 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5040 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5042 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5044 * util/misc.c: Remove leftover inclusion of malloc.h.
5046 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5048 * include/grub/setjmp.h: Remove leftover GRUBOF.
5050 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5052 * util/raid.c: Fold into ...
5053 * util/getroot_linux.c: ... here. Make all functions static.
5055 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5057 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5058 macros to GRUB ones.
5060 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5062 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5063 occasional bug. If there are too many boot entries or too low
5064 scrollbar height then we need to use another formula to calculate
5065 the position and size of the scrollbar thumb.
5067 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5069 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5071 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5073 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5074 * docs/grub.texi: Likewise.
5076 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5078 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5081 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5083 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5084 minimal width calculations.
5086 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5088 * docs/grub.texi: Update note on colors on emu console.
5090 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5092 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5093 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5094 it's FS and not GRUB limitation.
5096 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5098 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5100 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5102 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5104 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5106 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5107 kernels by version order.
5109 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5111 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5113 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5115 Add AROS hostdisk and getroot routines.
5117 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5119 Make cryptodisk and diskfilter probe data retrievable programmatically
5120 and not just printable.
5122 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5124 Split random retrieving code into separate files.
5126 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5128 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5131 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5133 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5135 * grub-core/tests/fake_input.c: Likewise.
5136 * grub-core/tests/cmdline_cat_test.c: Likewise.
5138 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5140 * grub-core/video/capture.c: Do not do finalization when .fini
5141 is called as there is explicit capture_end.
5143 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5145 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5146 changing windows to avoid crash.
5148 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5150 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5152 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5154 * po/exclude.pot: Add several strings to exclude.
5156 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5158 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5160 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5162 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5163 ./util/grub-gen-asciih.c to exclude list.
5165 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5167 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5168 and don't mark error strings for translation.
5170 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5172 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5173 properly in case of missing block size.
5175 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5177 * grub-core/lib/arm/setjmp.S: Add missing license section.
5179 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5181 * po/swiss.sed: Add replacement for key names and for term computer.
5183 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5185 * grub-core/gfxmenu/theme_loader.c: New global options for the
5186 theme background image handling. desktop-image-scale-method,
5187 desktop-image-h-align, desktop-image-v-align.
5188 * grub-core/gfxmenu/view.c: Likewise.
5189 * include/gfxmenu_view.h: Likewise.
5190 * include/bitmap_scale.h: Proportional scale functions introduced.
5191 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5192 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5193 cases of unexpected input variables for scale functions.
5194 * docs/grub.texi: Updated documentation for new options.
5196 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5198 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5200 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5202 * grub-core/tests/checksums.h: Corrected due to changes in
5203 bilinear interpolation function.
5205 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5207 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5208 to eliminate artefacts in bilinear interpolation.
5210 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5212 * grub-core/video/readers/tga.c: Support paletted tga.
5214 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5216 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5217 incorrect cbcr setting when in color mode.
5219 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5221 * grub-core/video/readers/png.c: Support paletted images and clean up
5224 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5226 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5227 usage of wrong table which resulted in mishandling of 4-byte
5230 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5232 * grub-core/term/terminfo.c: Add Home and End key sequences.
5234 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5236 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5237 Fix formula for computing total number of bytes.
5239 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5241 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5242 image processing, fix big-endian and support grayscale.
5244 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5246 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5247 Correctly will with maximum transparency when using index color.
5249 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5251 * grub-core/video/readers/png.c: Support grayscale
5253 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5255 * grub-core/video/readers/jpeg.c: Support grayscale.
5257 2013-09-26 Jon McCune <jonmccune@google.com>
5259 * grub-core/commands/loadenv.c: Support skipping signature check
5260 and variable names filtering.
5262 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5264 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5265 * grub-core/kern/emu/hostfs.c: Likewise.
5266 * util/getroot_unix.c: Likewise.
5268 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5270 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5271 Migrate all explicit defines to this new one.
5273 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5275 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5276 grub_util_fd_strerror when using grub_util_fd_*.
5277 (grub_util_fd_open_device): Likewise.
5278 (grub_util_biosdisk_read): Likewise.
5279 (grub_util_biosdisk_write): Likewise.
5280 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5281 (grub_util_fd_strerror): Likewise.
5282 (grub_util_fd_sync): Likewise.
5283 (grub_util_fd_close): Likewise.
5284 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5285 (grub_util_fd_close): Likewise.
5286 (grub_util_fd_strerror): Likewise.
5287 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5288 function proto rather than macro.
5289 (grub_util_fd_sync): Likewise.
5290 (grub_util_fd_open): Likewise.
5291 (grub_util_fd_strerror): New proto.
5293 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5295 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5296 platforms on which it doesn't work.
5298 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5300 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5301 stat immediately to where it's used.
5303 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5305 * util/getroot.c (grub_util_check_block_device): Move to ...
5306 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5307 * util/getroot.c (grub_util_check_char_device): Move to ...
5308 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5310 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5312 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5315 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5317 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5319 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5321 * docs/grub.texi (File name syntax): Document ZFS filenames
5322 (/volume@snapshot/...).
5324 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5326 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5327 Always return full path. Fixes a problem with mkrelpath.
5329 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5331 * util/grub-install.in: Add GPT PReP support.
5332 * util/grub-probe.c (probe): Support GPT partition type.
5333 (main): Support -t gpt_parttype.
5335 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5337 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5339 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5341 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5343 2013-09-23 Tim Hardeck <thardeck>
5345 * util/grub.d/10_hurd.in: Filter out character for the class.
5346 * util/grub.d/10_kfreebsd.in: Likewise.
5347 * util/grub.d/10_linux.in: Likewise.
5348 * util/grub.d/20_linux_xen.in: Likewise.
5350 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5352 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5355 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5357 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5360 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5362 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5363 doesn't use posix_wrap. Keep literal -fno-builtin however.
5365 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5367 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5369 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5372 * configure.ac: Do not enable -Wmissing-noreturn as its
5373 usefulness is limited and creates problems on some OS notably with
5374 code generated by bison.
5376 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5379 * configure.ac: Do not explicitly enable -Waddress as it's not
5380 supported by all gcc and when it is, it's already enabled by -Wall.
5382 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5384 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5385 desactivated use of EDID at all.
5387 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5390 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5391 video if no text is available.
5393 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5396 * configure.ac: Substitute TARGET_RANLIB.
5398 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5401 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5403 Based on patches from AROS.
5405 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5408 * grub-core/Makefile.am: Override STRIP and RANLIB.
5409 * configure.ac: compute TARGET_RANLIB.
5410 * INSTALL: Document TARGET_RANLIB
5412 Based on patches from AROS.
5414 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5416 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5417 that floppies are unpartitioned.
5419 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5421 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5422 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5424 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5426 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5427 less nice but more portable.
5428 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5430 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5432 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5434 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5436 (grub_cryptodisk_cheat_insert): Likewise.
5437 (grub_cryptodisk_close): Likewise.
5439 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5441 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5442 Use windows path for DEFAULT_DIRECTORY.
5444 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5446 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5447 difference was likely just gcc version, not anything mingw-related.
5449 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5451 Use Winapi on both cygwin and mingw32 to share more code between both.
5453 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5455 * util/grub-install.in: Add --grub-editenv option.
5456 * util/grub-install_header (grub_compress_file): Explicitly check for
5457 plain file to avoid cp error.
5459 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5461 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5462 names; fix LVM driver name (lvm, not lv).
5463 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5466 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5468 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5469 files rather than one file with loads of #if's.
5470 * util/getroot.c: Likewise.
5472 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5474 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5476 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5478 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5479 GNU/Hurd to the list of checked PRNG.
5481 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5483 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5485 2013-09-21 Ales Nesrsta <starous@volny.cz>
5487 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5489 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5491 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5492 * grub-core/disk/lvm.c: Add LVM UUIDs.
5493 * util/getroot.c: Use LVM UUIDs whenever possible.
5495 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5497 * docs/grub.texi (Networking commands): Add documentation for
5498 network related commands.
5500 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5502 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5503 to determine if device is handled by devmapper.
5504 (convert_system_partition_to_system_disk): Likewise.
5505 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5506 already done in grub_util_open_dm.
5508 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5510 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5511 Clean up stack manipulation (sync_caches_armv*)
5513 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5515 * util/lvm.c: Remove since unused. Remove remaining references.
5517 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5519 Handle the case of partitioned LVM properly.
5521 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5522 Stop on meeting LVM, mpath or DMRAID.
5523 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5524 (read_device_map): Likewise.
5525 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5526 device is full disk rather than erroring out on LVM and similar cases.
5528 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5530 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5532 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5534 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5536 Reported by: Leif Lindholm
5538 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5539 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5541 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5544 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5546 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5547 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5549 2013-09-18 Douglas Ray <dougray@cpan.org>
5551 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5554 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5556 * docs/grub.texi: Fix broken link.
5558 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5560 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5561 to break endless loop.
5563 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5565 * util/grub-fstest.c: Fix several printf formats.
5566 * util/grub-mkimage.c: Likewise.
5567 * util/grub-mkimagexx.c: Likewise.
5568 * util/grub-script-check.c: Likewise.
5570 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5572 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5575 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5577 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5579 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5581 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5582 removed in current versions cygwin_conv_*.
5584 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5586 * configure.ac: Disable efiemu runtime on cygwin.
5588 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5590 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5591 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5593 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5595 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5598 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5600 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5602 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5605 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5607 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5608 when on x86 and not cygwin.
5609 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5612 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5614 * configure.ac: Set CPP to build one when checkoing for freetype for
5617 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5619 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5620 [!GRUB_BUILD]: Remove has_argument.
5622 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5624 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5625 Replace with a dummy.
5627 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5629 * configure.ac: Don't change host_os from mingw to cygwin.
5631 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5633 * configure.ac: Change target_os from windows to cygwin.
5635 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5637 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5639 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5640 (build-grub-gen-asciih): Likewise.
5641 (build-grub-gen-widthspec): Likewise.
5642 * Makefile.util.def (grub-pe2elf): Remove.
5643 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5644 * configure.ac: Separate tests for build.
5645 Move ./build-grub-pe2elf to grub-core.
5647 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5648 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5650 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5652 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5653 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5654 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5656 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5658 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5659 mingw32 as well based on grub_util_get_disk_size.
5660 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5661 grub_util_get_fd_size.
5663 (fsync): Moved to ...
5664 * grub-core/kern/emu/misc.c (fsync): ... here.
5666 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5668 * include/grub/mm.h (grub_extend_alloc): Remove.
5669 * grub-core/loader/i386/pc/plan9.c: Use own version of
5670 grub_extend_alloc with appropriate types.
5672 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5674 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5676 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5678 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5680 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5682 Fix dependencies on cygwin.
5684 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5685 dependencies when used and defined.
5686 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5688 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5690 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5691 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5693 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5695 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5696 implementation available to cause compile-time rather than runtime
5699 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5701 * util/grub-fstest.c: Don't check for symlinks on windows.
5703 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5705 * INSTALL: Mention unavailability of man pages when cross-compiling.
5707 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5709 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5711 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5713 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5715 * INSTALL: Document cross-compilation.
5716 * acinclude.m4: Determine whether nm support -P and --defined-only.
5717 * configure.ac: Add TARGET_ to all variables pertaining to target
5718 that don't have it yet.
5719 * gentpl.py: Likewise.
5720 * grub-core/Makefile.am: Likewise.
5721 * grub-core/genmod.sh.in: Likewise.
5722 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5725 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5727 * configure.ac: Remove -Wempty-body. It's not essential and needs
5730 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5732 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5733 * util/getroot.c: Likewise.
5735 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5737 * grub-core/disk/ahci.c: Add needed explicit cast.
5738 * grub-core/lib/backtrace.c: Likewise.
5739 * grub-core/net/ip.c: Likewise.
5740 * grub-core/net/tcp.c: Likewise.
5741 * grub-core/net/udp.c: Likewise.
5743 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5745 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5747 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5749 * util/import_gcry.py: Add final newline in visibility.h.
5751 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5753 * conf/Makefile.common: Fix typo.
5755 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5757 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5759 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5761 * Makefile.am (widthspec.h): Fix typo.
5762 * util/grub-gen-widthspec.c: Likewise.
5764 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5766 Move ascii.h and widthspec.h generation to a separate build-time-only
5769 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5771 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5772 Always fill bootdisk info and improve check for NetBSD disklabel.
5774 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5776 * conf/Makefile.extra-dist: Add util/bin2h.c.
5777 Reported by: floppym.
5779 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5781 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5783 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5785 * configure.ac: Disable unifont and starfield if no freetype was found.
5787 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5789 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5790 on NetBSD and OpenBSD.
5792 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5794 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5796 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5798 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5799 reduced. Inheritant options are processed during the theme loading.
5801 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5803 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5805 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5807 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5809 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5811 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5814 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5816 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5817 remove-potcdate.sed.
5819 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5821 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5822 unused attribute from pull argument.
5824 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5826 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5829 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5831 * util/getroot.c (pull_lvm_by_command): add --separator option
5832 to vgs call to disable padding of output to 10 characters.
5834 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5836 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5838 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5841 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5843 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5846 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5848 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5849 full Canadian cross. Tested with build=x86_64, host=arm,
5850 target=ppc-ieee1275.
5852 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5854 * configure.ac: Error if no $BUILD_CC could be found.
5857 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5859 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5862 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5864 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5865 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5867 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5869 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5870 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5871 falling back to the partition device, otherwise a later call to this
5872 function may fail spuriously.
5873 Reported by Axel Beckert. Fixes Debian bug #708614.
5875 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5877 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5879 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5881 Prevent shadowing of stdlib's devname(3) on BSD.
5883 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5884 and devlast to diskname and disklast, respectively.
5886 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5888 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5890 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5892 * docs/grub.texi: Introduce terminal window position options:
5893 terminal-left: terminal window's left position
5894 terminal-top: terminal window's top position
5895 terminal-width: terminal window's width
5896 terminal-height: terminal window's height
5897 terminal-border: terminal window's border width
5898 * grub-core/gfxmenu/theme-loader.c: Likewise.
5899 * include/grub/gfxmenu_view.h: Likewise.
5900 * po/exlude.pot: Likewise.
5901 * grub-core/gfxmenu/view.c: Likewise.
5902 Also updated minimal window size.
5903 Also terminal_sanity_check function has been introduced.
5904 * grub-core/tests/checksums.h: Update (terminal window height
5905 is adjusted now for low resolution screen)
5907 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5909 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5912 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5914 * po/exclude.pot: Add few recent exceptions.
5916 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5918 * tests/grub_func_test.in: Add unicode.pf2.
5920 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5922 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5923 standard rather than noral color, in line with other terminals.
5925 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5927 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5930 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5932 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5934 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5936 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5937 inappropriate printf.
5939 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5941 * .bzrignore: Remove grub-core/lib/dtc-grub,
5942 grub-core/Makefile.libfdt.def
5943 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5945 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5947 * include/grub/video.h (grub_video_register): Keep double-linked as
5948 well as single-linked invariants.
5949 Reported by: qwertial.
5951 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5953 * grub-core/commands/nativedisk.c (get_uuid): Handle
5954 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5956 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5958 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5959 maximum of NW, N, NE heights instead of N's height and maximum of
5960 NW, W, SW widths instead of W's width. (So the box will be always
5963 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5965 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5966 Fix misuse of variable count.
5968 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5969 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5970 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5972 New ports to arm-uboot and arm-efi.
5973 Mostly by Leif Lindholm with some additions from
5974 Francesco Lavra and cleanup by Vladimir Serbinenko.
5976 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5978 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5980 Reported by: Leon Drugi.
5982 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5984 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5985 Reported by: Paulo Flabiano Smorigo.
5987 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5989 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5991 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5993 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5995 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5997 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5999 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6001 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
6003 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
6005 * grub-core/net/bootp.c: Export net_* variables.
6006 * grub-core/net/net.c: Likewise.
6008 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6010 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6012 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6014 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6016 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6018 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6020 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6022 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6024 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6026 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6029 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6031 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6034 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6036 * grub-core/fs/zfs/zfs_lz4.c: New file.
6037 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6039 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6041 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6043 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6045 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6046 (check_pool_label): Likewise.
6047 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6049 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6051 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6053 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6055 * docs/grub.texi (Commands): Document postition parameters
6056 for menuentry command.
6058 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6060 * util/grub-mknetdir.in: Remove stray line from help output.
6062 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6064 Remove early sm712 init as there is no reason for it (the "watchdog"
6065 effect was due to wrong GPIO map).
6067 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6069 * grub-core/commands/pcidump.c: Remove static variables.
6071 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6073 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6075 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6077 * configure.ac: Move delimiter after the infos.
6079 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6081 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6083 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6085 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6086 not filling whole 8x16 space.
6088 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6090 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6092 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6094 * configure.ac: Indicate which liblzma is used if any.
6096 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6097 2013-06-21 Craig Sanders <savannah@taz.net.au>
6099 * util/grub-reboot.in: Document submenu usage.
6101 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6103 * .bzrignore: Update with a number of new test-related files.
6105 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6107 * util/grub-script-check.c: Fail on scripts containing no
6108 commands, to guard against corrupted grub-mkconfig setups that
6109 produce no useful output.
6110 * tests/grub_script_no_commands.in: New test.
6111 * Makefile.util.def (grub_script_no_commands): Add.
6112 Reported by Hans Putter. Fixes Debian bug #713886.
6114 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6116 * grub-core/disk/diskfilter.c: Forgot to remove comment
6117 from previous commit.
6119 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6121 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6122 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6124 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6126 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6128 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6130 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6131 rescan diskfilter devices until nothing new is found.
6133 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6135 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6137 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6139 Don't try to detect cbfs on *-emu.
6141 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6143 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6145 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6147 Add support for processed coreboot payload chainloading.
6149 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6151 Enable coreboot information commands even when not loaded as
6152 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6154 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6156 Support for cbfs. Also factor out the part which is common
6157 for all archives to a separate module. This splits tar from cpio
6158 as they are very different but keeps cpio, cpio_be, odc and newc
6159 together since they're very similar.
6161 2013-06-15 David Michael <fedora.dm0@gmail.com>
6163 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6164 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6166 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6168 * tests/grub_script_eval.in: Really add the eval test.
6170 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6172 Move flavour-specific parts out of common cpio.c file and
6173 rename remaining to cpio_common.c
6175 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6177 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6178 off new function grub_script_execute_new_scope. Change callers to use
6179 either of them as appropriate.
6180 * grub-core/commands/eval.c: New command eval.
6181 * docs/grub.texi (Commands): Document it.
6183 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6185 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6186 to fetch values when listing.
6188 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6190 Fix make dist on non-pc.
6192 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6194 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6195 without a device name.
6197 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6199 Remove enable_executable_check as it's not needed anymore.
6200 Reported by: dougray.
6202 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6204 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6205 ambigouos RAID before discovering RAIDs on top of it.
6208 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6210 Fix typo (failback vs fallback).
6212 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6214 * util/grub.d/30_os-prober.in: Add support for probing EFI
6215 System Partition (as of os-prober 1.58).
6217 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6219 * configure.ac: Add yet another path to unifont. For parabola.
6221 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6223 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6224 handling to copy the killed characters to the kill buffer as
6225 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6226 stored as char. Eliminates UCS4 truncation and corruption
6227 observed when killing characters with Ctrl-u and yanking them
6230 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6232 Detach optional parts of gfxterm and integrate in with coreboot init.
6234 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6236 Move blit and fill dispatcher to appropriate files to decrease export
6237 and relocation overhead.
6239 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6241 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6244 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6246 * grub-core/Makefile.am: Fix compilation problem with some
6249 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6251 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6253 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6255 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6258 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6260 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6263 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6265 * grub-core/partmap/dfly.c: New partition map.
6267 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6269 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6271 Reported by: Francesco Lavra.
6273 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6275 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6276 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6278 * conf/Makefile.common: define dist_grubconf_DATA
6280 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6282 Progressively skip menu elements on small terminals rather
6285 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6287 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6288 to avoid losing last column.
6290 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6292 * po/exclude.pot: Add missing string "%C".
6294 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6296 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6299 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6301 * util/grub-install.in: Gettextize "Not found" message.
6303 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6306 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6308 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6310 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6312 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6314 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6316 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6318 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6320 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6321 attribute since structure is not necessarily aligned.
6323 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6325 * docs/grub.texi (Device syntax): Clarify description of network
6328 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6330 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6331 for vasprintf presence.
6333 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6335 * util/grub-install.in: Handle efibootmgr presence check.
6336 Reported by: Leif Lindholm.
6338 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6340 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6341 new strings to translate.
6343 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6345 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6346 yet another string (pun intended) to translate.
6348 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6350 * po/POTFILES-shell.in: Autogenerate it.
6352 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6354 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6356 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6358 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6361 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6363 * docs/grub.texi (Network): Add description of net_default_interface,
6364 net_default_ip and net_default_mac. Rewrite variables description
6365 to emphasize that they are per-interface.
6367 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6369 New test: cmdline and cat.
6371 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6373 * grub-core/commands/cat.c: Show UTF-8 characters.
6375 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6377 * conf/Makefile.common: Poison float and double on non-emu.
6379 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6381 * configure.ac: Don't disable extended registers on emu.
6383 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6385 * configure.ac: Don't use extended registers on x86_64.
6386 Reported by: Peter Jones.
6388 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6390 * grub-core/term/efi/console.c: Fix compile error.
6392 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6394 Compressed HFS+ support.
6396 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6398 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6401 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6405 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6407 * grub-core/tests/setjmp_test.c: New test.
6409 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6411 New variables 'net_default_*' to determine MAC/IP of default interface.
6413 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6415 * tests/gettext_strings_test.in: A test to check for strings not
6416 marked for translation.
6418 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6420 * autogen.sh: Exclude unused libgcrypt files from translation.
6422 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6424 Simplify few strings.
6426 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6428 Mark few forgotten strings for translation.
6430 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6432 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6435 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6437 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6439 * grub-core/video/readers/tga.c: Likewise.
6441 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6443 * tests/priority_queue_unit_test.cc: New test.
6445 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6447 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6450 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6452 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6453 variable for one time boot menu entry.
6455 2013-05-05 Bean <bean123ch@gmail.com>
6457 * grub-core/commands/testspeed.c: New command testspeed.
6459 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6461 Factor-out human-size printing.
6463 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6465 Agglomerate more mallocs to speed-up gfxterm.
6467 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6469 Speed-up gfxterm by slightly agglomerating mallocs.
6471 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6475 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6477 Speed-up gfxterm by saving intermediate results in index+alpha
6480 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6482 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6485 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6487 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6488 line of timeout as it may contain the rest of long line.
6490 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6492 * grub-core/normal/main.c: Fix freed memory dereference.
6494 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6496 Fix several memory leaks.
6498 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6500 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6502 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6504 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6506 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6508 Fix test -a and -o precedence.
6509 Reported by: adrian15.
6511 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6513 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6515 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6517 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6518 and add it as source to functional_test module.
6520 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6522 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6524 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6526 New series of tests for gfxterm and gfxmenu.
6528 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6530 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6531 the theme path relative to $prefix/themes.
6533 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6535 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6537 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6539 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6541 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6544 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6546 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6547 grub_gfxmenu_timeout_notifications.
6548 (grub_gfxmenu_view_destroy): Likewise.
6550 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6552 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6554 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6556 Several fixes to ieee1275 and big-endian video.
6558 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6560 Add missing exports on mips.
6562 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6564 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6565 if no unifont is found.
6566 Restore original keyboard.
6568 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6570 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6571 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6573 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6575 First automated video test (running videotest and comparing results)
6577 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6579 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6580 instead of 2 to have full RGB/CMY test pattern.
6582 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6586 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6588 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6589 ARCS. All users updated.
6591 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6593 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6595 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6597 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6599 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6601 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6602 Reported by: qwertial.
6604 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6606 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6607 with syntax "XXX deg"/"XXX °".
6609 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6611 Make PCI init in i386-qemu port more robust.
6613 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6615 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6616 cached view is reused.
6617 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6620 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6622 Unify more code in grub-install_header.
6624 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6628 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6630 Enforce disabling of firmware disk drivers when native drivers kick in.
6632 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6634 * grub-core/commands/nativedisk.c: Customize the list of modules on
6635 platform. Don't try to search for disks already using native drivers.
6637 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6639 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6642 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6644 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6645 handling of variables containing backslash.
6647 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6649 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6651 Reported by: qwertial.
6653 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6655 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6657 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6659 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6661 Reported by: qwertial.
6663 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6665 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6667 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6669 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6671 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6673 New command `nativedisk'.
6675 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6677 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6678 * grub-core/loader/i386/bsd.c: Likewise.
6680 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6682 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6684 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6686 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6687 grub_get_unaligned16 rather than shifts.
6689 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6691 * grub-core/kern/file.c: Use const char * rather than casting to
6694 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6696 * grub-core/commands/probe.c: Add missing grub_device_close.
6698 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6700 * INSTALL: Document linguas.sh.
6702 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6704 Remove POTFILES.in and regenerate it in autogen.sh.
6706 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6708 Move --directory/--override-directorry to grub-install_header and unify.
6710 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6712 * grub-core/term/morse.c: Macroify dih and dah.
6714 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6716 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6718 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6720 * grub-core/term/ns8250.c: Systematically probe ports by writing
6721 to SR before using them.
6723 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6725 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6727 (check_sas): Get sas_adress info.
6729 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6731 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6734 2013-04-27 Leon Drugi <eyak>
6736 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6739 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6741 Core compression test.
6743 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6745 Implement grub_machine_get_bootlocation for ARC.
6747 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6749 Improve AHCI detection and command issuing.
6751 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6755 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6757 Make 'make check' work on emu.
6759 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6761 Replace libcurses with our own vt100 handling for the ease of testing
6762 and decreasing prerequisites.
6764 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6766 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6768 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6770 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6771 compile when not needed.
6773 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6775 * tests/pseries_test.in: New test.
6777 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6779 Add test to check that different boot mediums work.
6781 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6783 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6784 ofw limited ISO support.
6786 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6788 * configure.ac: Fix loongson conditional.
6790 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6794 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6796 Add serial on ARC platform.
6798 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6800 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6803 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6805 * tests/partmap_test.in: Add missing double semicolon.
6807 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6809 * util/grub-mkrescue.in: Fix loongson filename.
6811 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6813 * util/grub-mkrescue.in: Move all files that don't have a location
6814 set in stone under /boot/grub. Use ISO hard links rather than copies
6817 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6819 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6822 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6824 Make check work on mips-arc.
6826 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6828 * util/grub-mkrescue.in: Alias sashARCS as sash.
6830 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6832 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6835 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6837 * util/grub-install.in: Fix target fo qemu_mips.
6838 Fix extension on EFI.
6840 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6842 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6843 in front of chosen entry to mark it even if highlighting is lost.
6845 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6847 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6848 gfxpayload=keep if cbfb is active.
6850 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6852 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6854 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6856 Add missing video ids to coreboot and ieee1275 video.
6858 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6860 * util/grub-mkrescue.in: Add mips-arc support.
6862 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6864 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6866 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6868 Move mips-arc link address. Previous link address was chosen
6869 in belief that RAM on SGI platforms grows down while in fact it
6870 grows up from an unusual base.
6872 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6874 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6875 Fix a type which prevented CD-ROM and floppy boot.
6877 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6879 Support coreboot framebuffer.
6881 * grub-core/video/i386/coreboot/cbfb.c: New file.
6883 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6885 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6886 detecting too small regions.
6888 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6890 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6892 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6894 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6896 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6898 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6900 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6901 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6902 * grub-core/loader/powerpc/ieee1275/linux.c
6903 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6905 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6907 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6908 Look for /boot-rom as well as /rom/boot-rom.
6910 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6912 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6913 handling when creating text_layer failed.
6914 * grub-core/video/video.c (grub_video_create_render_target):
6915 Set result to 0 on error.
6916 (grub_video_delete_render_target): Do not dereference NULL.
6918 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6920 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6921 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6922 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6923 (grub_linux_load64): Mask out 2 high bits.
6925 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6927 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6930 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6932 Add support for pseries and other bootinfo machines to grub-mkrescue.
6934 Tested by: Paulo Flabiano Smorigo.
6936 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6938 * util/grub-mkrescue.in: Add GPT for EFI boot.
6940 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6942 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6943 It improves performance in qemu.
6945 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6947 * build-aux/snippet: Add missing gnulib files.
6949 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6951 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6953 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6955 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6957 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6958 2013-04-15 Peter Jones <pjones@redhat.com>
6960 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6962 Based on patch by Peter Jones.
6964 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6966 Fix DMRAID partition handling.
6968 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6970 * tests/grub_cmd_date.in: Skip on sparc64.
6972 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6974 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6975 firmware error messages.
6977 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6979 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6980 source and destination differ.
6982 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6984 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6987 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6989 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6990 match config-util.h to avoid warnings and increase compatibility.
6992 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6993 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6995 Add option to compress files on install/image creation.
6997 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6999 * docs/grub-dev.texi: Rearrange menu to match the section order.
7000 Reported by: Bryan Hundven.
7002 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7004 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
7006 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7008 Move GRUB out of system area when using xorriso 1.2.9 or later.
7010 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7012 * tests/grub_cmd_date.in: Add missing exit 1.
7014 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7016 * tests/partmap_test.in: Skip on sparc64.
7018 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7020 Support grub-shell on sparc64.
7022 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7024 Support mkrescue on sparc64.
7026 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7028 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7029 Needed on OpenBIOS due to incomplete device tree.
7031 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7033 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7034 would be otherwise excluded.
7036 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7038 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7039 Inline name defines used only once.
7041 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7043 Fix memory leaks in ofnet.
7044 Reported by: Francesco Lavra.
7046 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7048 * docs/man/grub-glue-efi.h2m: Add missing file.
7050 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7052 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7054 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7056 Better support Apple Intel Macs on CD.
7058 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7060 Replace stpcpy with grub_stpcpy in tools.
7062 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7064 Handle Japanese special keys.
7065 Reported by: Hiroyuki YAMAMORI.
7066 Codes supplied by: Hiroyuki YAMAMORI.
7068 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7070 * util/grub-mkimage.c: Document memdisk implying --prefix.
7072 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7074 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7075 much we can do about it anyway.
7077 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7079 Fix handling of split transfers.
7081 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7083 * grub-core/net/http.c: Fix bad free.
7085 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7087 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7090 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7092 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7094 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7096 * tests/util/grub-shell.in: Fix it on powerpc.
7098 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7100 Turn off QEMU ACPI-way since new releases don't have shutdown port
7103 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7105 * docs/grub.texi: Update coreboot status info.
7107 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7109 * tests/grub_cmd_date.in: New test for datetime.
7111 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7113 * tests/partmap_test.in: Fix missing qemudisk setting.
7115 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7117 Support i386-ieee1275 grub-mkrescue and make check on it.
7119 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7121 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7124 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7126 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7127 GRUB_CMDLINE_XEN_DEFAULT.
7128 Reported by: Marc Warne (GigaTux) <gigatux>
7130 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7134 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7136 Use ACPI shutdown intests as traditional port was removed.
7138 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7140 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7143 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7145 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7146 Fix few warining messages and leaks while on it.
7148 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7150 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7151 links under grub-core/lib/libgcrypt-grub/mpi.
7153 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7155 Fix ia64-efi image generation on big-endian machines. Deduplicate
7156 some code while on it.
7157 Reported by: Leif Lindholm.
7159 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7161 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7164 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7166 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7168 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7170 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7173 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7175 * grub-core/normal/term.c: Few more fixes for menu entry editor
7177 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7179 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7181 * grub-core/normal/term.c: Few more fixes for menu entry editor
7183 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7185 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7187 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7188 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7190 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7192 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7193 instead of hardcoding grub.mo.
7195 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7197 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7199 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7201 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7202 grub-core/disk/geli.c.
7204 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7206 * util/grub-mkfont.c: Prefer enum to #define.
7208 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7210 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7212 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7214 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7216 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7218 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7220 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7222 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7224 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7226 * include/grub/bsdlabel.h: Use enums.
7228 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7230 Move GRUB_CHAR_BIT to types.h.
7232 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7234 * docs/grub.texi: Document more user commands.
7236 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7238 * docs/grub.texi: Document menuentry --id option.
7240 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7242 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7244 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7246 Unify file copying setup across different install scripts. Add
7247 options for performing partial install.
7249 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7250 2013-04-04 Peter Jones <pjones@redhat.com>
7252 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7254 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7256 Use TSC as a possible time source on i386-ieee1275.
7258 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7260 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7263 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7265 * util/grub-setup.c (setup): Handle some corner cases.
7267 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7269 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7271 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7273 * grub-core/commands/verify.c: Save verified file to avoid it being
7274 tampered with after verification was done.
7276 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7278 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7279 reported width by one to compensate for curesor algorithm problem.
7281 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7283 Fix screen corruption in menu entry editor and simplify the code
7286 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7288 * util/grub-mount.c (fuse_init): Return error if fuse_main
7291 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7293 * include/grub/elf.h: Add missing ARM relocation codes and fix
7296 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7298 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7300 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7301 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7303 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7304 into account when calculating radius.
7306 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7308 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7310 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7312 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7314 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7316 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7317 missing closing bracket.
7319 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7321 * INSTALL: Mention xorriso requirement.
7323 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7325 * grub-core/commands/verify.c: Fix hash algorithms values for
7326 the first three hashes - they start with 1, not with 0.
7328 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7330 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7331 Try terminating EFI services several times due to quirks in some
7334 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7336 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7337 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7338 BankField extended opcodes.
7339 (get_sleep_type): Add minimal scope handling (just enough to
7340 handle setting the scope to the root path).
7341 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7342 * include/grub/acpi.h: Add enumeration values for Event, Device,
7343 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7345 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7347 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7350 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7352 * grub-core/disk/ahci.c: Give more time for AHCI request.
7354 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7356 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7359 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7361 Replace the region at 0 from coreboot tables to available in BSD
7364 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7366 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7369 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7371 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7374 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7376 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7377 handling of multi-device filesystems.
7379 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7381 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7384 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7386 Add new 'proc' filesystem framework and put luks_script into it.
7388 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7390 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7393 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7395 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7397 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7399 Add ability to generate newc additions on runtime.
7401 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7403 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7406 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7408 * po/POTFILES.in: Regenerate.
7410 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7412 * grub-core/commands/verify.c (hashes): Add several hashes
7415 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7417 Slight improve in USB-related boot-time checkpoints.
7419 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7421 * grub-core/commands/boottime.c: Fix copyright header.
7423 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7425 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7426 coreboot tables content. Support for cbmemc.
7428 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7430 Fix a conflict between ports structures with 2 controllers of
7433 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7435 * include/grub/boottime.h: Add missing file.
7437 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7439 Initialize USB ports in parallel to speed-up boot.
7441 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7443 Fix USB devices not being detected when requested
7444 due to delayed attach.
7446 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7448 Implement boot time analysis framework.
7450 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7452 Remove get_endpoint_descriptor and change all functions needing
7453 descriptor to just receive it as argument rather than endpoint
7456 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7458 Better estimate the maximum USB transfer size.
7460 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7462 Resend a packet if we got the wrong buffer in status.
7464 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7466 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7467 multiplication rather than division.
7469 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7471 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7474 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7476 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7477 operations to have intended shifts and not divisions.
7479 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7481 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7482 intended shifts rather than division.
7484 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7486 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7487 computation for some years before epoch. Avode confusing division
7490 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7492 * grub-core/video/i386/pc/vbe.c
7493 (grub_video_vbe_print_adapter_specific_info): Replace division by
7496 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7498 Adjust types in gdb module to have intended unsigned shifts rather than
7501 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7503 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7504 maximum size is 4G - 1 on hfs
7506 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7508 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7510 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7512 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7515 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7517 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7518 causing gcc error with gcc 4.7.1.
7520 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7522 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7523 dereference null pointer. While the code is technically correct, gcc
7524 may eliminate a null check if pointer is already dereferenced.
7526 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7528 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7530 * grub-core/normal/term.c (read_terminal_list): Likewise.
7532 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7534 Lift up core size limits on some platforms. Fix potential memory
7535 corruption with big core on small memory systems. Document remaining
7538 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7540 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7543 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7545 Remove all trampoline support. Add -Wtrampolines when
7546 present. Remove symbols used for trampolines to make
7547 link fail if trampolines are present.
7549 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7551 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7552 append out of its parent.
7554 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7556 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7559 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7561 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7562 all vars to a macro. All users updated.
7564 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7566 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7569 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7571 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7573 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7575 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7577 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7579 Move to more hookless approach in IEEE1275 devices handling.
7581 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7583 * grub-core/kern/term.c (grub_term_normal_color),
7584 (grub_term_highlight_color): Add back lost defaults.
7586 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7588 Make elfload not use hooks. Opt for flags and iterators instead.
7590 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7592 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7593 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7595 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7597 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7599 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7601 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7602 hook pass-through parameter. All users updated and unnested.
7604 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7606 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7609 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7611 * grub-core/fs/hfs.c: Remove nested functions.
7613 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7615 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7616 the context through.
7617 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7619 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7621 * util/grub-editenv.c (list_variables): Move print_var out of its
7624 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7626 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7629 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7631 * grub-core/gentrigtables.c: Make tables const.
7633 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7635 Remove nested functions from videoinfo iterators.
7637 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7639 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7640 for 64-bit platforms.
7642 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7644 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7645 a FOR_CHILDREN macro.
7647 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7649 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7650 platform from firmware path.
7652 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7654 Enable linux16 on non-BIOS systems for i.a. memtest.
7656 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7658 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7660 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7662 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7663 Fix end of table condition.
7665 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7667 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7670 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7672 * grub-core/fs/jfs.c: Remove nested functions.
7674 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7676 * grub-core/fs/minix.c: Remove nested functions.
7678 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7680 * grub-core/fs/iso9660.c: Remove nested functions.
7682 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7684 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7687 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7689 * util/grub-fstest.c: Remove nested functions.
7691 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7693 * grub-core/loader/machoXX.c: Remove nested functions.
7695 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7697 Remove nested functions from disk and file read hooks.
7699 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7700 (struct grub_disk): Add read_hook_data member.
7701 * include/grub/file.h (struct grub_file): Likewise.
7702 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7707 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7709 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7710 Fix off by one error in enumerating extended partitions.
7712 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7714 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7715 memory leak if device name is not found.
7717 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7719 * grub-core/normal/menu_entry.c (update_screen): remove
7720 unused variable `off' which caused scroll down arrow to be always shown.
7722 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7724 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7725 access to unallocated memory.
7727 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7729 * Makefile.util.def: Add partmap/msdos.c to common library.
7730 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7731 * grub-core/disk/ldm.c: Check for existence of
7732 GRUB_PC_PARTITION_TYPE_LDM.
7734 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7736 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7737 sizes and display sector size.
7739 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7741 Implement new command cmosdump.
7743 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7745 Support Openfirmware disks with non-512B sectors.
7747 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7749 * (grub_ofdisk_get_block_size): New function.
7750 * (grub_ofdisk_prepare): Use the correct block size.
7751 * (grub_ofdisk_read): Likewise.
7752 * (grub_ofdisk_write): Likewise.
7753 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7756 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7758 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7760 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7762 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7765 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7767 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7770 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7772 Implement USBDebug (full USB stack variant).
7774 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7776 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7777 unless they have unexpected values.
7779 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7781 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7784 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7786 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7787 zero-out of port structure.
7789 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7791 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7792 of extended attributes.
7794 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7796 * util/grub-install.in: change misleading comment about
7799 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7801 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7802 when menu highlight color isn't set.
7804 2013-01-27 C. Masloch <pushbx@38.de>
7806 Improve FreeDOS direct loading support compatibility.
7808 * include/grub/i386/relocator.h (grub_relocator16_state):
7810 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7812 (grub_relocator16_boot): Handle %ebp.
7813 * grub-core/lib/i386/relocator16.S: Likewise.
7814 * grub-core/loader/i386/pc/freedos.c:
7815 Load BPB to pass kernel which partition to load from.
7816 Check that kernel file is not too large.
7817 Set register dl to BIOS unit number as well.
7819 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7821 * util/grub-reboot.in (usage): Document the need for
7823 * util/grub-set-default.in (usage): Likewise.
7824 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7826 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7828 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7829 than defining WORDS_BIGENDIAN manually.
7831 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7833 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7836 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7838 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7840 (blit_comb: add_device_width): Likewise.
7842 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7844 Remove nested functions from USB iterators.
7846 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7847 (grub_usb_controller_iterate_hook_t): Likewise.
7848 (grub_usb_iterate): Add hook_data argument.
7849 (grub_usb_controller_iterate): Likewise.
7850 (struct grub_usb_controller_dev.iterate): Likewise.
7852 Update all implementations and callers.
7854 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7856 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7857 margin when not needed.
7859 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7861 Make color variables global instead of it being per-terminal.
7863 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7865 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7868 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7870 Fix powerpc and sparc64 build failures caused by un-nesting memory
7873 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7875 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7876 parameter declarations.
7878 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7880 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7882 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7884 Improve spkmomdem reliability by adding a separator between bytes.
7886 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7888 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7889 an Acer registration utility with several sightings in the wild.
7890 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7892 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7894 Remove nested functions from filesystem directory iterators.
7896 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7897 (struct grub_fs.dir): Add hook_data argument.
7899 Update all implementations and callers.
7901 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7903 * docs/grub.texi (Multi-boot manual config): Fix typo for
7906 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7908 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7909 until after its use in generate_image.
7911 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7913 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7914 initrd size to addr_min, since the initrd will be allocated after
7917 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7919 * conf/Makefile.common: Fix autogen rules to pass definition
7920 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7922 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7924 * include/grub/elf.h: Update ARM definitions based on binutils.
7926 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7928 Split long USB transfers into short ones.
7930 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7932 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7933 is interrupted by ESC.
7935 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7937 * util/grub-script-check.c (main): Uniform the error message.
7939 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7941 Remove nested functions from ELF iterators.
7943 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7945 Remove nested functions from device iterators.
7947 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7948 (grub_arc_iterate_devs): Add hook_data argument.
7949 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7950 (struct grub_ata_dev.iterate): Add hook_data argument.
7951 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7952 (grub_device_iterate): Add hook_data argument.
7953 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7954 (struct grub_disk_dev.iterate): Add hook_data argument.
7955 (grub_disk_dev_iterate): Likewise.
7956 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7958 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7960 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7962 (struct grub_partition_map.iterate): Add hook_data argument.
7963 (grub_partition_iterate): Likewise.
7964 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7965 (struct grub_scsi_dev.iterate): Add hook_data argument.
7969 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7971 Fix typos for "developer" and "development".
7973 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7975 Add license header to spkmodem-recv.c.
7977 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7979 Rewrite spkmodem to use PIT for timing. Double the speed.
7981 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7983 Add new command pcidump.
7985 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7987 New terminal outputs using serial: morse and spkmodem.
7989 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7991 Improve bidi handling in entry editor.
7993 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7995 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7996 argument to prevent name collision.
7998 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8000 Remove nested functions from script reading and parsing.
8002 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
8003 getline_data argument, passed to getline.
8004 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
8005 getline_data argument, passed to grub_parser_split_cmdline.
8006 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
8007 lexerstate->getline_data to lexerstate->getline.
8008 (grub_script_lexer_init): Add getline_data argument, saved in
8009 lexerstate->getline_data.
8010 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8011 argument, passed to grub_script_parse.
8012 * grub-core/script/script.c (grub_script_parse): Add getline_data
8013 argument, passed to grub_script_lexer_init.
8014 * include/grub/parser.h (grub_parser_split_cmdline): Update
8015 prototype. Update all callers to pass appropriate getline data.
8016 (struct grub_parser.parse_line): Likewise.
8017 (grub_rescue_parse_line): Likewise.
8018 * include/grub/reader.h (grub_reader_getline_t): Add void *
8020 * include/grub/script_sh.h (struct grub_lexer_param): Add
8021 getline_data member.
8022 (grub_script_parse): Update prototype. Update all callers to pass
8023 appropriate getline data.
8024 (grub_script_lexer_init): Likewise.
8025 (grub_normal_parse_line): Likewise.
8027 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8029 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8030 static instead of nested. Rename to ...
8031 (grub_parser_execute_getline): ... this.
8032 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8034 * grub-core/normal/main.c (read_config_file: getline): Make static
8035 instead of nested. Rename to ...
8036 (read_config_file_getline): ... this.
8037 (grub_normal_read_line): Add unused data argument.
8038 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8039 getline): Make static instead of nested. Rename to ...
8040 (grub_script_execute_sourcecode_getline): ... this.
8041 * util/grub-script-check.c (main: get_config_line): Make static
8044 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8046 Remove nested functions from memory map iterators.
8048 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8049 argument, passed to hook.
8050 * grub-core/kern/i386/coreboot/mmap.c
8051 (grub_linuxbios_table_iterate): Likewise.
8052 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8054 (grub_machine_mmap_iterate): Add hook_data argument.
8055 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8056 Add hook_data argument, passed to hook.
8057 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8059 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8061 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8063 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8065 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8067 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8069 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8070 (grub_machine_mmap_iterate): Likewise.
8071 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8072 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8074 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8075 Remove NESTED_FUNC_ATTR from here and from all users.
8076 (grub_mmap_iterate): Update prototype.
8077 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8078 pass appropriate hook data.
8079 (grub_machine_mmap_iterate): Likewise.
8081 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8082 static instead of nested.
8083 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8085 (lsmmap_hook): ... this.
8086 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8088 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8089 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8090 heap_init): Likewise.
8091 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8093 (mmap_iterate_hook): ... this.
8094 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8096 * grub-core/lib/ieee1275/relocator.c
8097 (grub_relocator_firmware_get_max_events: count): Likewise.
8098 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8100 (grub_relocator_firmware_fill_events_iter): ... this.
8101 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8102 hook): Likewise. Rename to ...
8103 (grub_relocator_alloc_chunk_align_iter): ... this.
8104 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8106 (generate_e820_mmap_iter): ... this.
8107 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8109 (count_hook): ... this.
8110 (grub_linux_boot: hook): Likewise. Rename to ...
8111 (grub_linux_boot_mmap_find): ... this.
8112 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8113 (grub_linux_boot_mmap_fill): ... this.
8114 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8115 hook): Likewise. Rename to ...
8116 (grub_fill_multiboot_mmap_iter): ... this.
8117 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8118 hook): Likewise. Rename to ...
8119 (count_hook): ... this.
8120 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8121 hook): Likewise. Rename to ...
8122 (grub_fill_multiboot_mmap_iter): ... this.
8123 * grub-core/loader/powerpc/ieee1275/linux.c
8124 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8125 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8126 Likewise. Rename to ...
8127 (alloc_phys_choose): ... this.
8128 (determine_phys_base: get_physbase): Likewise.
8129 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8130 find_hook): Likewise.
8131 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8132 (malloc_hook: count_hook): Likewise.
8133 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8134 Likewise. Rename to ...
8135 (lower_hook): ... this.
8136 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8137 (upper_hook): ... this.
8138 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8139 (post64_hook): ... this.
8140 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8141 Likewise. Rename to ...
8142 (lower_hook): ... this.
8143 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8144 (upper_hook): ... this.
8145 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8146 (grub_mmap_iterate: fill_hook): Likewise.
8147 (fill_mask): Pass addr and mask within a single struct.
8148 (grub_cmd_badram: hook): Make static instead of nested. Rename
8150 (badram_iter): ... this.
8151 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8152 (cutmem_iter): ... this.
8154 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8156 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8157 delimit path in strings using quotes.
8158 * util/getroot.c (grub_guess_root_devices): Likewise.
8159 (grub_make_system_path_relative_to_its_root): Likewise.
8160 * util/grub-probe.c (probe): Likewise.
8161 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8162 (xrealpath): Likewise.
8164 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8166 Fix compilation with older compilers.
8168 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8169 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8171 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8172 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8173 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8175 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8176 * include/grub/crypto.h: Add type defines.
8177 * util/import_gcrypth.sed: Remove duplicate type defines.
8179 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8181 New command list_trusted.
8183 * grub-core/commands/verify.c (grub_cmd_list): New function.
8185 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8187 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8190 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8192 Remove nested functions from PCI iterators.
8194 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8195 passed to hook. Update all callers to pass appropriate hook data.
8196 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8197 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8198 Remove NESTED_FUNC_ATTR from here and from all users.
8199 (grub_pci_iterate): Update prototype.
8200 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8201 instead of nested. Rename to ...
8202 (grub_cs5536_find_iter): ... this.
8203 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8204 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8206 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8208 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8210 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8212 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8213 * grub-core/video/radeon_fuloong2e.c
8214 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8215 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8216 find_card): Likewise.
8217 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8220 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8222 * grub-core/commands/verify.c: Mark messages for translating.
8224 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8226 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8229 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8231 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8234 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8236 * autogen.sh: Do not try to delete nonexistant files.
8237 * util/import_gcrypth.sed: Add some missing header removals.
8239 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8241 Clean up dangling references to grub-setup.
8242 Fixes Ubuntu bug #1082045.
8244 * docs/grub.texi (Images): Refer generally to grub-install rather
8245 than directly to grub-setup.
8246 (Installing GRUB using grub-install): Remove direct reference to
8248 (Device map) Likewise.
8249 (Invoking grub-install): Likewise.
8250 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8251 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8252 * util/grub-install.in (usage): Likewise.
8254 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8255 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8257 * configure.ac: Remove grub_setup output variable.
8259 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8261 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8262 grub-setup to grub-sparc64-setup.
8264 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8266 Import gcrypt public-key cryptography and implement signature checking.
8268 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8270 * grub-core/fs/ntfs.c: Ue more appropriate types.
8271 * grub-core/fs/ntfscomp.c: Likewise.
8272 * include/grub/ntfs.h: Likewise.
8274 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8276 Support Apple FAT binaries on non-Apple platforms.
8278 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8279 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8281 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8284 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8286 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8289 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8291 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8292 explicitly zeroing elements.
8293 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8294 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8295 of elements in a structure already allocated using grub_zalloc.
8296 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8298 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8300 * docs/grub.texi (grub_cpu): New subsection.
8301 (grub_platform): Likewise.
8303 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8305 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8307 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8309 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8312 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8314 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8315 * grub-core/fs/ntfscomp.c: Likewise.
8316 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8317 (grub_ntfs_comp): Likewise.
8319 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8321 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8323 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8324 of groups_per_block. All users updated.
8326 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8328 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8329 grub_error properly.
8330 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8331 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8333 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8335 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8336 always in /boot/zfs.
8337 Reported by: Yuta Satoh.
8339 2013-01-03 Yuta Satoh <nigoro>
8341 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8344 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8346 * configure.ac: Extend -Wno-trampolines to host.
8348 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8350 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8353 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8355 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8356 (Invoking grub-script-check): Likewise.
8358 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8360 * docs/grub.texi (Invoking grub-mount): New section.
8361 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8363 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8365 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8366 test failures, so that a failing unit test correctly causes 'make
8369 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8371 Fix failing printf test.
8373 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8374 '$' in the correct order when collecting type information.
8376 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8378 * docs/grub.texi (configfile): Explain environment variable
8380 (source): New section.
8381 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8383 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8385 Remove several trivially-unnecessary uses of nested functions.
8387 * grub-core/commands/i386/pc/sendkey.c
8388 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8390 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8392 (legacy_file_getline): ... this.
8393 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8395 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8396 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8398 (probe_dummy_iter): ... this.
8399 * grub-core/kern/i386/coreboot/mmap.c
8400 (grub_linuxbios_table_iterate: check_signature): Likewise.
8401 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8402 check_varstate): Likewise. Mark inline.
8403 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8404 an additional parameter.
8405 (find_long: fnd_long): Likewise. Pass two additional parameters.
8406 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8407 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8408 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8409 Likewise. Rename to ...
8410 (grub_cmos_find_port_iter): ... this.
8411 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8413 (find_rtc_iter): ... this.
8415 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8416 function directly into the function body, since it is only called
8419 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8421 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8422 __attribute__ ((unused)).
8423 * grub-core/video/bochs.c (find_card): Likewise.
8424 * grub-core/video/cirrus.c (find_card): Likewise.
8425 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8426 * grub-core/video/sis315pro.c (find_card): Likewise.
8427 * grub-core/video/sm712.c (find_card): Likewise.
8429 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8431 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8432 Fixes Savannah bug #37821.
8434 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8436 Apply program name transformations at build-time rather than at
8437 run-time. Fixes Debian bug #696465.
8439 * acinclude.m4 (grub_TRANSFORM): New macro.
8440 * configure.ac: Create output variables with transformed names for
8442 * util/bash-completion.d/grub-completion.bash.in: Use
8443 pre-transformed variables for program names.
8444 * util/grub-install.in: Likewise.
8445 * util/grub-kbdcomp.in: Likewise.
8446 * util/grub-mkconfig.in: Likewise.
8447 * util/grub-mkconfig_lib.in: Likewise.
8448 * util/grub-mknetdir.in: Likewise.
8449 * util/grub-mkrescue.in: Likewise.
8450 * util/grub-mkstandalone.in: Likewise.
8451 * util/grub-reboot.in: Likewise.
8452 * util/grub-set-default.in: Likewise.
8453 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8454 * tests/util/grub-shell-tester.in: Remove unused assignment.
8455 * tests/util/grub-shell.in: Likewise.
8456 * util/grub.d/00_header.in: Likewise.
8458 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8460 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8462 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8464 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8466 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8468 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8469 Reported by: Eriks Latosheks <foresterlv>.
8471 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8473 * docs/grub.texi (Network): Update instructions on generating netboot
8476 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8478 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8479 around device name if necessarry.
8481 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8483 * util/grub-install.in: Follow the symbolic link parameter added
8484 to the file command.
8486 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8488 * util/grub-install.in: Remove stale TODO.
8490 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8492 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8493 dynamic allocation for the bootpath buffer.
8495 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8497 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8500 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8502 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8503 argument rather than font name. All users updated.
8504 (grub_gfxterm_set_window): Likewise.
8506 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8508 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8511 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8513 * util/getroot.c (convert_system_partition_to_system_disk): Support
8516 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8518 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8519 infinite loop on corrupted FS.
8521 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8523 Fix big-endian mtime.
8525 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8526 together sec and usec.
8527 (grub_ufs_dir): Use correct byteswapping for UFS time.
8529 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8531 Support big-endian UFS1.
8533 * Makefile.util.def (libgrubmods): Add ufs_be.c
8534 * grub-core/Makefile.core.def (ufs1_be): New module.
8535 * grub-core/fs/ufs_be.c: New file.
8536 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8539 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8541 * include/grub/types.h: Fix functionality unaffecting typo in
8542 GRUB_TARGET_WORDSIZE conditional macro.
8544 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8546 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8548 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8550 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8551 that /netbsd appears first (when it exists).
8553 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8555 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8556 Fixes Savannah bug #37558.
8558 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8560 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8561 description of extract_entries_configfile.
8563 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8565 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8567 (grub_cmd_linux): Likewise.
8568 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8569 preferred_lifetime. Update all users.
8571 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8573 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8574 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8576 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8578 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8579 errors from grub-probe to /dev/null, not stdout.
8581 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8583 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8586 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8588 * util/grub-install.in: Make the error message if $source_dir
8589 doesn't exist more useful.
8591 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8593 Fix grub-emu build on FreeBSD.
8595 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8596 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8598 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8599 implementation is currently Linux-specific.
8600 * util/getroot.c (exec_pipe): Define only on Linux or when either
8601 libzfs or libnvpair is unavailable.
8602 (find_root_devices_from_poolname): Remove unused path variable.
8604 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8606 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8607 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8608 should fit before end == 63.
8610 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8612 * util/grub-setup.c (write_rootdev): Remove unused core_img
8613 parameter. Update all callers.
8614 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8615 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8618 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8620 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8621 (grub_add_tab): New function.
8622 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8623 * util/grub.d/10_illumos.in: Likewise.
8624 * util/grub.d/10_kfreebsd.in: Likewise.
8625 * util/grub.d/10_linux.in: Likewise.
8626 * util/grub.d/10_netbsd.in: Likewise.
8627 * util/grub.d/10_windows.in: Likewise.
8628 * util/grub.d/10_xnu.in: Likewise.
8629 * util/grub.d/20_linux_xen.in: Likewise.
8630 * util/grub.d/30_os-prober.in: Likewise.
8632 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8634 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8635 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8636 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8637 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8638 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8640 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8641 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8643 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8645 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8647 Reported by: BURETTE, Bernard.
8649 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8651 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8654 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8656 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8657 IEEE1275 machines. Fixes powerpc-emu compilation.
8658 * include/grub/terminfo.h: Likewise.
8660 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8662 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8664 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8666 (efiemu_set_variable): Make vendor_guid a const pointer.
8668 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8670 Don't require grub-mkconfig_lib to generate manpages for programs.
8672 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8673 dependencies, don't add grub-mkconfig_lib.
8674 (program): Pass empty adddeps.
8675 (script): Pass grub-mkconfig_lib as adddeps.
8677 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8679 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8680 * util/getroot.c (grub_find_device): Likewise.
8681 (get_mdadm_uuid): Likewise.
8682 (grub_util_is_imsm): Likewise.
8683 (grub_util_pull_device): Likewise.
8684 * util/grub-probe.c (probe): Likewise.
8686 2012-09-10 Benoit Gschwind <gschwind>
8688 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8689 (devs): Add devpath_8.
8691 2012-09-08 Peter Jones <pjones@redhat.com>
8693 * grub-core/Makefile.core.def (efifwsetup): New module.
8694 * grub-core/commands/efi/efifwsetup.c: New file.
8695 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8696 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8698 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8700 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8702 * configure.ac: Add SuSe path.
8704 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8708 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8710 * util/import_gcry.py: Sort cipher_files, to make build system
8711 generation more deterministic.
8713 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8715 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8716 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8717 (grub_set_datetime): Likewise.
8719 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8721 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8724 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8726 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8728 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8730 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8732 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8734 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8735 required for checkouts from bzr, but it may be useful for users or
8736 distributors wishing to update translations against a tarball
8737 distribution, and it can be helpful for the tarball to be a superset
8740 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8742 * Makefile.am (EXTRA_DIST): Add
8743 grub-core/tests/boot/linux.init-mips.S,
8744 grub-core/tests/boot/linux.init-ppc.S, and
8745 grub-core/tests/boot/linux-ppc.cfg.
8747 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8749 * grub-core/mmap/mips/loongson: Remove empty directory.
8751 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8753 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8756 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8758 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8761 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8763 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8765 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8767 * po/POTFILES.in: Regenerated.
8769 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8771 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8772 (NetBSD): New subsection.
8774 2012-07-22 Ales Nesrsta <starous@volny.cz>
8776 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8777 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8779 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8781 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8782 * util/grub.d/10_hurd.in: Add missing quoting.
8783 * util/grub.d/10_illumos.in: Likewise.
8784 * util/grub.d/10_kfreebsd.in: Likewise.
8785 * util/grub.d/10_linux.in: Likewise.
8786 * util/grub.d/20_linux_xen.in: Likewise.
8788 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8790 New command `lsefi'.
8792 * grub-core/Makefile.core.def (lsefi): New module.
8793 * grub-core/commands/efi/lsefi.c: New file.
8794 * include/grub/efi/api.h: Add more GUIDs.
8796 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8798 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8799 (grub_bsd_elf32_hook): Likewise.
8800 (grub_bsd_elf64_size_hook): Likewise.
8801 (grub_bsd_elf64_hook): Likewise.
8802 (grub_bsd_load_elf): Likewise.
8804 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8806 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8807 if hash function is unavailable.
8808 (dec_stream_header): Likewise.
8810 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8812 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8815 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8817 Fix coreboot compilation.
8819 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8820 (grub_vga_text_init_real): ... this.
8821 (grub_vga_text_fini): Rename to ...
8822 (grub_vga_text_fini_real): ... this.
8824 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8826 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8828 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8830 * grub-core/lib/legacy_parse.c: Support clear and testload.
8832 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8834 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8836 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8838 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8840 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8842 * grub-core/net/tftp.c (ack): Fix endianness problem.
8843 (tftp_receive): Likewise.
8844 Reported by: Michael Davidsaver.
8846 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8848 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8850 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8852 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8853 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8854 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8856 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8858 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8860 Reported by: Stuart Hayes.
8862 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8864 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8866 * grub-core/Makefile.core.def (mda_text): New module.
8867 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8868 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8869 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8870 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8872 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8873 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8874 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8876 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8878 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8880 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8882 * grub-core/term/i386/vga_common.c: Removed.
8883 * include/grub/i386/vga_common.h: Likewise.
8884 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8885 (grub_vga_cr_bw_read): Likewise.
8886 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8887 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8888 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8889 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8890 grub_vga_cr_read/grub_vga_cr_write.
8891 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8893 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8895 * configure.ac: Bump version to 2.00.
8896 * grub-core/normal/main.c (features): Add feature_200_final.
8898 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8899 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8901 * NEWS: Fix unclarity and language mistakes.
8903 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8905 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8906 additional size to 3 pages.
8907 Reported by: Stuart Hayes.
8909 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8911 * NEWS: Add 2.00 entry.
8913 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8915 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8916 put explicit "/" for empty path.
8917 (wildcard_expand): Improve dprintf.
8919 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8921 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8922 it's equal to currnode. This can happen with "" symlink.
8924 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8926 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8927 echo shell command by printf command.
8929 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8931 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8932 the value returned by firmware is the maximal position, not diumension.
8933 (grub_terminfo_output_state): Use a more sane fallback.
8935 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8937 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8939 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8941 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8942 frequency to 150 MHz.
8944 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8948 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8950 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8952 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8954 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8956 Handle slash in HFS label.
8958 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8959 (grub_hfs_dir): Tanslate slash.
8960 (grub_hfs_label): Don't translate slash.
8962 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8964 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8965 network protocol listing since it introduces problematic dependency on
8968 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8970 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8972 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8974 Init video early on yeeloong to avoid being rebooted by watchdog.
8976 * grub-core/Makefile.am (gensm712): New target.
8977 (sm712_start.S): Likewise.
8978 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8979 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8980 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8982 * include/grub/vga.h: Move registry definitions to...
8983 * include/grub/vgaregs.h: ... here.
8985 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8987 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8990 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8992 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8993 platforms with firmware disk drivers in the core.
8995 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8997 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8998 informative verbose message.
8999 (read_lv): Handle 64-bit segment size.
9001 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9003 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
9005 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9007 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
9008 character but still remove trainling spaces.
9009 (grub_fat_label): Ignore archive flag.
9011 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9013 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9014 cast between linux_kernel_header and linux_kernel_params.
9016 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9018 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9020 (grub_raid6_recover_func_t): Likewise.
9021 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9022 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9024 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9026 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9028 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9032 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9033 [__NetBSD__]: Add explicit cast before bitshift.
9035 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9037 * configure.ac: Bump to 2.00~rc1.
9039 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9041 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9044 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9045 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9047 * docs/grub.texi: Fix search syntax.
9048 (Multi-boot manual config): Put msdos rather than GPT example.
9049 Grammar corrections.
9051 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9053 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9055 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9057 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9059 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9061 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9062 message on double free. Put the value of magic in case of mismatch.
9064 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9066 Speed-up video on yeeloong.
9068 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9070 (grub_video_sm712_video_fini): Unmap cached_ptr.
9071 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9072 (grub_video_sm712_set_active_render_target): Removed.
9073 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9074 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9077 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9079 Avoid flushing the same line multiple times on loongson.
9081 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9082 Step in 32 bytes and not 1 byte.
9083 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9086 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9088 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9091 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9093 Implement flow control for http.
9095 * grub-core/net/http.c (parse_line): Handle response 206.
9096 (http_receive): Stall if too many packets are in the queue.
9097 (http_establish): Fix range header.
9098 (http_seek): Fix double free.
9099 (http_close): Likewise.
9100 (http_packets_pulled): New function.
9101 (grub_http_protocol): Set http_seek
9102 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9103 (ack_real): Set window depending on i_stall.
9104 (grub_net_send_tcp_packet): Likewise.
9105 (grub_net_tcp_stall): New function.
9106 (grub_net_tcp_unstall): Likewise.
9107 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9108 (grub_net_tcp_unstall): Likewise.
9110 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9112 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9114 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9116 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9118 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9120 * tests/util/grub-shell.in: Fix a typo.
9122 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9124 Implement flow control for tftp.
9126 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9127 packets but stop only if stop condition is satisfied.
9128 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9129 `stall' instead of `eof' as stop condition.
9130 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9131 (http_err): Likewise.
9132 * grub-core/net/tftp.c (ack): Replace the first argument with data
9134 (tftp_receive): Stall if too many packets are in wait queue.
9135 (tftp_packets_pulled): New function.
9136 (grub_tftp_protocol): Set packets_pulled.
9137 * include/grub/net.h (grub_net_packets): New field count.
9138 (grub_net_put_packet): Increment count.
9139 (grub_net_remove_packet): Likewise.
9140 (grub_net_app_protocol): New field `packets_pulled'.
9141 (grub_net): New field `stall'.
9143 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9145 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9146 sync part to handle them.
9148 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9150 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9151 * grub-core/net/drivers/ieee1275/ofnet.c
9152 (grub_ieee1275_net_config_real): Likewise.
9154 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9156 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9157 the direct route for server/gateway.
9159 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9161 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9162 IP address to server name since we may not hame the DNS.
9164 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9166 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9167 freeing random buffer on failure.
9168 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9170 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9172 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9174 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9176 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9178 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9179 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9180 Handle malloc error correctly.
9182 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9184 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9187 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9189 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9192 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9194 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9195 none is explicitly specified.
9197 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9199 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9202 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9204 Respect netmask from bootp/dhcp.
9206 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9207 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9208 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9210 (grub_net_add_ipv4_local): ... this.
9211 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9212 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9213 (grub_net_add_ipv4_local): New proto.
9215 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9217 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9218 determining EFI memory map size.
9220 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9222 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9224 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9226 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9227 when looking for partition separator.
9229 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9231 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9234 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9236 Restructure FAT driver to avoid hook in label reading as it hits a
9239 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9240 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9241 (grub_fat_iterate_dir): Split into ...
9242 (grub_fat_iterate_init): ... this, ...
9243 (grub_fat_iterate_fini): ... this, ...
9244 (grub_fat_iterate_dir_next): ... and this. All users updated.
9246 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9248 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9249 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9250 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9251 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9252 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9253 New fields last_key and last_key_time.
9254 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9255 extended key-esc into extended key-extended key.
9257 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9259 Avoid unnecessary memcpy of whole video buffer.
9261 * grub-core/video/fb/video_fb.c (dirty): New struct.
9262 (framebuffer): Add members current_dirty and previous_dirty.
9263 (dirty): New function.
9264 (grub_video_fb_fill_rect): Update dirty.
9265 (common_blitter): Likewise.
9266 (grub_video_fb_scroll): Likewise.
9267 (doublebuf_blit_update_screen): Copy only dirty part.
9268 (doublebuf_pageflipping_update_screen): Likewise.
9269 (grub_video_fb_doublebuf_blit_init): Init dirty.
9270 (doublebuf_pageflipping_init): Likewise.
9271 (grub_video_fb_setup): Likewise.
9273 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9275 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9278 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9280 Fix wildcard regexp dot and other special characters handling.
9281 Reported by: Robert Mabee.
9283 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9284 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9285 (split_path): Trigger expansion on '?'.
9286 (unescape): New function.
9287 (wildcard_expand): Unescape parts copied without globbing.
9288 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9289 (grub_script_arglist_to_argv): Don't unescape expansions.
9291 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9293 * include/grub/net.h (grub_net_card): New member txbufsize.
9294 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9295 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9296 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9297 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9299 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9300 compatible property to check for macs. Set
9301 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9302 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9303 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9304 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9305 (send_card_buffer): Use txbuf.
9306 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9307 nested function out of the parent while on it.
9309 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9311 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9313 (grub_ieee1275_net_config_real): Fix config pointer.
9315 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9317 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9318 filename parsing to non-block devices.
9320 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9322 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9324 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9326 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9329 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9331 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9332 UUID search command even if hints probing failed.
9334 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9336 * po/POTFILES.in: Regenerated.
9338 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9340 Speed-up video on fuloong.
9342 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9344 (grub_pci_device_unmap_range): Handle non-cached address.
9345 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9347 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9348 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9349 (grub_video_sis315pro_set_active_render_target): Removed.
9350 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9351 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9352 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9354 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9357 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9359 * docs/grub.texi (Multi-boot manual config): New section.
9361 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9363 Avoid slow read-back from VRAM.
9365 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9367 * grub-core/video/fb/video_fb.c
9368 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9369 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9370 (front_target): Remove front_target. Add pages.
9371 (grub_video_fb_init): Skip setting front_pages.
9372 (grub_video_fb_fini): Likewise.
9373 (doublebuf_blit_update_screen): Use pages.
9374 (grub_video_fb_doublebuf_blit_init): Likewise.
9375 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9376 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9377 (grub_video_fb_setup): Prefer doublebuffing.
9379 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9381 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9384 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9388 * tests/util/grub-shell.in: Handle loongson.
9389 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9391 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9392 Reboot instead of shutdown if REBOOT is defined.
9394 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9396 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9397 sized ports since unlike on real hardware qemu supports only 32-bit
9400 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9402 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9403 * util/grub-mkrescue.in: Handle loongson.
9405 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9407 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9408 Set is_part appropriately.
9409 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9410 names. Canonicalize partition without full disk.
9412 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9414 Revert usb-quiesce since it's wrong.
9416 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9417 (grub_ofdisk_init): Don't do quiesce.
9419 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9421 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9422 PowerMac workaround to Xserves as well.
9423 Information supplied by: Benjamin Herrenschmidt.
9425 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9427 Don't assume that beginning address is also the entry point on ppc.
9429 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9430 (grub_linux_boot): Use linux_entry.
9431 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9432 (grub_linux_load64): Likewise.
9434 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9436 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9438 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9440 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9441 needlessly lose the console.
9443 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9445 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9448 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9450 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9451 than current grub_get_rtc() not implemented when booted with
9452 coreboot without TSC.
9454 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9455 Add machine/time.h to kernel headers on loongson.
9456 * grub-core/Makefile.core.def (kernel): Remove
9457 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9458 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9459 (grub_get_rtc): Likewise.
9460 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9461 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9462 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9463 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9464 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9465 rather than installing known non-working time source.
9466 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9467 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9468 * include/grub/time.h: Don't include machine/time.h.
9469 * include/grub/efi/time.h: Removed.
9470 * include/grub/i386/efi/time.h: Likewise.
9471 * include/grub/i386/ieee1275/time.h: Likewise.
9472 * include/grub/powerpc/ieee1275/time.h: Likewise.
9473 * include/grub/sparc64/ieee1275/time.h: Likewise.
9474 * include/grub/x86_64/efi/time.h: Likewise.
9476 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9478 Remove dot on i and j when combining with above diacritics.
9480 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9482 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9483 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9484 with dotless variants when any combining above is present.
9486 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9488 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9489 text and not binary.
9491 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9493 Stop polling as soon as we have the packet we were waiting for.
9495 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9497 * grub-core/net/arp.c (have_pending): New var.
9498 (pending_req): Likewise.
9499 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9501 (grub_net_arp_receive): Set have_pending.
9502 * grub-core/net/dns.c (recv_data): New field stop.
9503 (recv_hook): Set stop.
9504 (grub_net_dns_lookup): Init stop and use as stop condition.
9505 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9507 * grub-core/net/net.c (grub_net_poll_cards): New argument
9508 stop_condition. Stop when it goes true.
9509 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9511 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9513 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9515 Keep TX and RX buffers on EFI rather than always allocate new ones.
9517 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9518 card. All users updated.
9519 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9520 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9521 (get_card_packet): Likewise.
9522 (grub_efinet_findcards): Init new fields.
9524 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9526 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9527 compilation error on sparc64.
9529 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9531 Use ITC on IA64 rather than broken routine based on daytime.
9533 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9535 (grub_get_rtc) [__ia64__]: Likewise.
9536 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9537 (get_itc): New function.
9538 (grub_rtc_get_time_ms): Likewise.
9539 (grub_machine_init): Calibrate ITC.
9540 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9541 Keep only on non-ia64. Don't export since it's broken and used only
9542 if TSC is unavailable.
9544 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9546 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9548 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9549 Skip if parent is unused.
9551 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9553 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9555 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9557 Fix wildcard escaping.
9559 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9560 * grub-core/script/execute.c (wildcard_escape): .. to here.
9562 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9563 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9565 * grub-core/script/execute.c (gettext_append): Always escape.
9566 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9567 * grub-core/script/yylex.l: Don't cut away the escaping.
9568 * tests/grub_script_echo1.in: Add tests with wildcard.
9570 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9572 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9573 (ftdi_hw_configure): Likewise.
9574 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9576 (real_config): Handle 1.5 stop bits.
9577 (pl2303_hw_configure): Likewise.
9579 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9581 * Makefile.am: Add ppc linux bootcheck.
9582 * grub-core/tests/boot/linux-ppc.cfg: New file.
9583 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9585 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9587 * tests/grub_script_expansion.in: Skip network protocols.
9589 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9591 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9593 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9595 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9599 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9601 ESCC serial driver for conducting sautomated tests in qemu.
9602 Not tested on real hardware.
9604 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9605 * grub-core/term/ieee1275/escc.c: New file.
9606 * grub-core/Makefile.core.def (escc): New module.
9608 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9610 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9612 (serial_hw_fetch): Don't read invalid handle.
9613 (serial_hw_put): Don't write into invalid handle.
9615 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9617 Add a 1.5 stop bits value.
9619 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9620 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9621 GRUB_SERIAL_STOP_BITS_1_5.
9623 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9625 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9626 value rather than let it uninited.
9628 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9630 * grub-core/commands/wildcard.c (+check_file): New function.
9631 (wildcard_expand): Don't expand to non-existing files, expand with
9632 suffix and not attempt to expand if not needed.
9634 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9636 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9637 out of partitions containing other partitions.
9639 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9641 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9642 on some qemu versions with GRUB.
9644 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9646 (grub_openbsd_bootarg_pcibios): New struct.
9647 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9650 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9652 * tests/util/grub-shell.in: Trim firmware output on EFI.
9654 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9656 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9657 and coreboot since it's already in kernel.
9659 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9661 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9662 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9663 to here. New return value start. All users updated.
9664 Recursively scan linear mappings.
9665 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9667 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9668 Use grub_util_get_dm_node_linear_info.
9669 * util/getroot.c (convert_system_partition_to_system_disk): Use
9670 grub_util_info rather than grub_dprintf.
9671 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9673 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9675 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9677 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9678 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9680 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9682 * include/grub/types.h (grub_set_unaligned64): New function.
9683 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9686 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9688 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9689 (grub_ofdisk_fini): Quiesce USB devices.
9691 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9693 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9696 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9698 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9700 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9702 * grub-core/disk/pata.c (grub_pata_pio_read)
9703 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9704 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9706 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9708 Extend automated tests to qemu-mips.
9710 * Makefile.am: reorganise tests and enable qemu-mips.
9711 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9712 * grub-core/tests/boot/linux.init-mips.S: New file.
9713 * tests/partmap_test.in: Handle ata0 disks.
9714 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9717 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9719 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9721 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9724 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9726 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9727 (grub_halt): Likewise.
9728 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9730 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9732 * grub-core/term/serial.c (grub_serial_register)
9733 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9734 the behaviour in line with x86 platforms.
9736 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9738 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9739 (grub_ata_strncpy): Likewise.
9740 (grub_ata_identify): Add missing byteswaps.
9742 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9744 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9746 (screen_read_char): Likewise.
9747 (grub_vga_text_cls): Likewise.
9749 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9751 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9753 (make_file_path): Likewise.
9755 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9757 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9759 Tested by: Paulo Flabiano Smorigo.
9760 Crucial information about API supplied by: Coleen <Last name unknown>.
9761 Reviewed by: Coleen <Last name unknown>.
9763 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9765 * util/grub-mkimage.c: Disable -Wcast-align.
9767 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9769 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9772 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9774 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9776 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9778 * util/grub-probe.c (escape_of_path): Fix double free.
9780 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9782 * grub-core/commands/videoinfo.c (hook): Show pitch.
9784 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9786 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9788 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9790 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9791 (probe): Add ieee1275 to OFW devices.
9793 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9795 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9797 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9799 Handle IBM OFW path.
9801 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9803 (of_path_of_scsi): Handle vdevice.
9805 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9807 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9808 Allocate in multiples of 16 to avoid adding a few bytes free region the
9811 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9813 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9814 Allocate in multiples of 16 to avoid adding a few bytes free region the
9816 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9818 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9820 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9822 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9823 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9825 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9827 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9829 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9831 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9832 resulted in \\ at the end of the line.
9834 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9836 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9837 (grub_parser_cmdline_state): Likewise.
9838 (grub_parser_split_cmdline): Likewise.
9840 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9842 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9843 /dev/root and /dev/dm-*.
9845 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9847 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9848 fix partially stale display.
9850 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9852 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9855 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9857 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9858 Fix MBR remapping workaround.
9859 (grub_util_biosdisk_read) [__linux__]: Likewise.
9861 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9863 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9865 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9867 * configure.ac: Bump to beta6.
9869 2012-05-31 Christer Weinigel <christer@weinigel.se>
9871 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9873 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9875 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9876 (grub_cmd_linux): Likewise.
9878 2012-05-31 Christer Weinigel <christer@weinigel.se>
9882 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9883 (GRUB_EHCI_MULT_TWO): Likewise.
9884 (GRUB_EHCI_MULT_THREE): Likewise.
9885 (GRUB_EHCI_CMASK_MASK): New enum value.
9886 (GRUB_EHCI_SMASK_MASK): Likewise.
9887 (GRUB_EHCI_CMASK_OFF): Likewise.
9888 (GRUB_EHCI_SMASK_OFF): Likewise.
9889 (grub_ehci_pci_iter): Enable periodic schedule.
9890 (grub_ehci_parse_notrun): Likewise.
9891 (grub_ehci_restore_hw): Likewise.
9892 (grub_ehci_setup_qh): Set flags for low speed transfers.
9893 (grub_ehci_find_qh): Use periodic list for low speed.
9894 (grub_ehci_setup_transfer): Check periodic queue as well.
9895 (grub_ehci_check_transfer): Likewise.
9896 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9898 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9900 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9903 2012-05-31 Peter Jones <pjones@redhat.com>
9905 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9906 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9907 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9909 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9911 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9912 uninited variable. Allocate at least setup_sects.
9914 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9916 Fix handling of EFI with big memory maps.
9918 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9919 (real_mode_mem): Likewise.
9920 (real_mode_target): Likewise.
9921 (real_mode_pages): Likewise.
9922 (prot_mode_pages): Likewise.
9923 (linux_params): New var.
9924 (linux_cmdline): Likewise.
9925 (free_pages): Don't set real mode variables.
9926 (allocate_pages): Don't allocate real mode memory.
9927 (grub_e820_add_region): Remove the limit.
9928 (grub_linux_boot): Allocate and copy real mode memory.
9929 (grub_linux_unload): Free linux_cmdline.
9930 (grub_cmd_linux): Use temporary storage for parameters.
9931 (grub_cmd_initrd): Likewise.
9932 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9933 (linux_kernel_params): Make it 1K big.
9935 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9937 * Makefile.util.def: Remove -Wno-format.
9938 * grub-core/Makefile.core.def: Likewise.
9940 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9942 * tests/cmp_unit_test.c: Add missing failure message.
9943 * tests/example_unit_test.c: Likewise.
9944 * tests/printf_unit_test.c: Likewise.
9946 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9948 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9949 relaxation of protective MBR requirements.
9951 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9953 * configure.ac: Add condition for COND_HOST_XNU.
9954 * Makefile.util.def (10_xnu): New script.
9955 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9957 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9959 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9962 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9964 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9965 Binary on other platforms stays identical.
9967 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9969 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9972 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9974 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9976 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9978 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9979 rather than defining size_t ourselves to avoid conflict.
9981 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9983 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9984 initialisation to avoid __bzero reference.
9986 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9988 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9990 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9991 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9992 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9993 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9994 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9996 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9998 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9999 * grub-core/kern/misc.c: Likewise.
10000 * grub-core/loader/i386/xnu.c: Likewise.
10001 * include/grub/i386/tsc.h: Likewise.
10002 * include/grub/symbol.h: Likewise.
10004 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10006 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
10007 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10010 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10012 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10013 Implement Apple flavour.
10014 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10016 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10018 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10019 (memmove) [__APPLE__]: Likewise.
10020 (memcpy) [__APPLE__]: Likewise.
10021 (memset) [__APPLE__]: Likewise.
10022 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10023 (memmove) [__APPLE__]: Likewise.
10024 (memcpy) [__APPLE__]: Likewise.
10025 (memset) [__APPLE__]: Likewise.
10027 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10029 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10030 dependency discard.
10032 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10034 * grub-core/normal/main.c (read_config_file): Provide config_file and
10036 * util/grub.d/41_custom.in: Use config_directoy when available.
10038 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10040 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10041 (grub_bfs_dir): Likewise.
10043 2012-05-27 Peter Jones <pjones@redhat.com>
10045 The old code gives arguments to a printf function which can't work
10046 correctly, and the compiler complains.
10048 * grub-core/tests/example_functional_test.c (example_test): Add
10050 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10051 * include/grub/test.h (grub_test_assert_helper): New declaration.
10052 (grub_test_assert): Use grub_test_assert_helper.
10054 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10056 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10057 (exfctest): ... this to avoid overlong filenames.
10060 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10062 Handle "." and ".." on squashfs.
10064 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10065 Make inode numbers into stack.
10066 (grub_squash_read_symlink): Use stack.
10067 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10068 (make_root_node): Fill stack.
10069 (grub_squash_open): Use stack.
10071 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10073 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10076 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10078 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10079 stderr on test calls.
10081 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10083 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10085 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10087 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10089 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10091 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10094 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10096 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10097 (grub_hfsplus_iterate_dir): Add "." and "..".
10099 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10101 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10102 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10104 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10106 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10107 (find_path): Handle "." and "..".
10109 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10111 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10112 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10113 (grub_affs_iterate_dir): Handle hardlinks.
10115 2012-05-26 Matthew Garrett <mjg@redhat.com>
10117 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10118 (grub_efi_console_fini): Likewise.
10119 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10120 (grub_video_gop_fill_mode_info): Rename to ...
10121 (grub_video_gop_fill_real_mode_info): ... this.
10122 (grub_video_gop_fill_mode_info): New function.
10123 (grub_video_gop_setup): Setup double framebuffer.
10124 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10126 (grub_video_gop_swap_buffers): Copy framebuffer.
10127 (grub_video_gop_fini): Free offscreen buffer.
10128 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10130 (grub_efi_gop_blt_pixel): New struct.
10132 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10134 * gentpl.py: Remove error disabling for objconv.
10136 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10138 * configure.ac: Remove -Wunitialized as it's not available on older
10141 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10143 Fix extent overflow comparator.
10145 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10146 (grub_hfsplus_read_block): Set type.
10147 (grub_hfsplus_cmp_extkey): Compare type.
10149 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10151 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10153 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10155 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10158 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10160 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10161 (dejavu_bold_14.pf2): New target.
10163 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10165 * configure.ac: Fix djvu font detection.
10167 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10169 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10170 ext* instead of ext2.
10172 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10174 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10177 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10179 * docs/grub-dev.texi: Remove dot from .png.
10181 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10183 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10184 protective entry in any slot.
10185 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10186 if protective entry is found in any slot.
10188 Protective entry in non-first slot make no sense but is a widespread
10191 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10193 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10195 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10197 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10199 (grub_reiserfs_open): Don't free root.
10201 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10203 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10204 after freeing for safety.
10206 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10208 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10209 Reported by: Jordan Uggla.
10211 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10213 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10214 actual implementation. Specifically, clarify that the grub menu will
10215 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10218 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10220 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10223 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10225 Remove unjustified hard dependency of normal.mod on gfxterm.
10227 * include/grub/term.h (grub_term_output): New member fullscreen.
10228 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10229 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10230 (grub_gfxterm): Set .fullscreen.
10231 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10232 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10234 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10236 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10237 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10238 Mention case-insensitive AFFS, SFS and JFS.
10240 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10242 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10244 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10246 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10249 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10251 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10252 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10254 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10256 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10257 (grub_jfs_mount): Fill caseins.
10258 (grub_jfs_find_file): Respect caseins.
10260 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10262 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10265 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10267 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10268 New argument origpath. All users updated.
10270 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10272 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10273 (read_attr): Ensure that we read start of possibly compressed block.
10275 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10277 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10278 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10281 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10283 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10284 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10285 (dejavu.pf2): Replace with ...
10286 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10289 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10291 * util/grub.d/20_linux_xen.in: Add missing line.
10293 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10295 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10296 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10297 (grub_utf16_to_utf8): Likewise.
10299 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10301 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10302 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10303 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10304 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10305 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10306 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10308 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10310 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10313 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10315 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10316 (grub_udf_read_symlink): Handle read_string failure.
10318 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10320 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10323 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10325 Fix handling of UDF symlinks.
10327 * grub-core/fs/udf.c (read_string): New argument outbuf.
10329 (grub_ufs_read_symlink): Rename to ...
10330 (grub_udf_read_symlink): ... this. All users updated.
10331 Handle symlinks with more than one component.
10333 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10335 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10336 symlinks. Replace leading colon with a slash.
10338 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10340 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10343 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10345 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10346 match in inner node.
10348 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10350 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10351 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10352 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10353 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10354 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10355 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10356 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10357 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10358 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10360 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10362 Use grub-probe and not cmp to check that disk is empty.
10364 * util/grub-install.in: Use grub-probe for zero-check.
10365 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10366 (probe): Handle PRINT_ZERO_CHECK.
10367 (argp_parser): Handle -t zero_check.
10369 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10371 Flush block cache on adding disk to device map.
10373 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10374 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10376 (read_device_map): Likewise.
10377 (open_device): Flush on opening.
10379 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10381 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10382 (handle_symlink): Fix off-by-one error.
10383 Canonicalize the target.
10384 (grub_cpio_dir): Canonicalize the name.
10387 (grub_cpio_open): Canonicalize the name.
10389 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10391 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10394 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10396 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10397 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10399 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10401 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10402 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10405 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10407 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10410 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10412 Fix UFS1 big file support.
10414 * grub-core/fs/ufs.c (INODE): Removed.
10415 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10417 (INODE_MODE): Simplify.
10418 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10419 (grub_ufs_lookup_symlink): Don't use INODE.
10421 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10423 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10425 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10426 (grub_minix_data): Replace log_block_size with block_size.
10427 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10428 (grub_minix_mount): Fill block_size.
10430 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10432 * configure.ac: Bump to beta5.
10434 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10436 Fix wrapped HFS+ handling.
10438 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10439 blocks_start. All users updated.
10440 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10442 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10444 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10446 Fix long symlinks on reiserfs.
10448 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10449 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10450 (grub_reiserfs_iterate_dir): Save size for non-directories.
10451 (grub_reiserfs_open): Don't reread stat block as we already know the
10453 (grub_reiserfs_read): Split into...
10454 (grub_reiserfs_read_real): ... and ...
10455 (grub_reiserfs_read): ...this.
10457 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10459 Fix non-indexed JFS.
10461 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10462 (grub_jfs_data): New field namecomponentlen.
10463 (grub_jfs_mount): Fill namecomponentlen.
10464 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10466 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10468 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10469 * tests/grub_script_echo1.in: Add tests.
10471 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10473 * util/grub-install.in: Ignore empty devicetree directory.
10475 2012-05-08 Bean <bean123ch@gmail.com>
10477 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10479 (free_rsm): Free header as well.
10480 (free_old_fragments): Fix memory leak.
10481 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10482 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10483 (destroy_pq): Likewise.
10484 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10486 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10488 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10489 resulting hash as a precaution.
10491 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10493 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10494 '_' in variable names.
10495 * grub-core/net/net.c (grub_net_network_level_interface_register):
10498 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10500 Fix AFFS with non-512B blocks.
10502 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10503 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10504 (grub_affs_data): Replace blocksize with log_blocksize.
10505 (grub_affs_read_block): Fix non-512B blocks.
10506 (grub_affs_read_symlink): Likewise.
10507 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10508 (grub_affs_read): Fix non-512B blocks.
10509 (grub_affs_label): Likewise.
10510 (grub_affs_mtime): Likewise.
10511 (grub_affs_mount): Fix block detection routine.
10513 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10515 Add filesystem mtime to AFFS.
10517 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10518 (aftime2ctime): New function.
10519 (grub_affs_dir): Use aftime2ctime.
10520 (grub_affs_label): Fix return value.
10521 (grub_affs_mtime): New function.
10522 (grub_affs_fs): Add mtime.
10524 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10526 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10529 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10531 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10534 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10536 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10538 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10540 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10542 (FLAGS_CASE_SENSITIVE): New enum value.
10543 (cache_entry): New struct.
10544 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10545 cache_size and cache.
10546 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10547 Add log_blocksize and fshelp_flags.
10548 (grub_sfs_read_extent): Handle non-512 blocks.
10549 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10550 (grub_sfs_read_file): Handle non-512 blocks.
10551 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10553 (grub_sfs_read_symlink): Handle non-512 blocks.
10554 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10555 (grub_sfs_dir): Free cache.
10556 (grub_sfs_close): Likewise.
10558 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10560 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10563 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10565 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10567 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10569 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10571 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10573 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10574 (grub_sfs_read_extent): Likewise.
10575 (grub_sfs_read_block): Likewise.
10576 (grub_sfs_mount): Likewise.
10577 (grub_sfs_iterate_dir): Likewise.
10578 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10579 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10581 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10583 Fix errors on compressed NTFS with 512B clusters.
10585 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10587 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10589 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10590 Relax check for inline extents.
10591 (ntfscomp): Return correct -1 on error and not 0.
10593 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10595 * util/grub-install.in: Fix handling of prefix containing spaces.
10597 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10599 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10600 (grub_squash_read_data): Fix offset byte-swapping.
10602 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10604 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10605 per common usage and preffered in several parts of code.
10606 (grub_memcmp): Likewise.
10607 (grub_strncmp): Likewise.
10608 * include/grub/misc.h (grub_strcasecmp): Likewise.
10609 (grub_strncasecmp): Likewise.
10610 * Makefile.util.def (cmp_test): New test.
10611 (grub_script_strcmp): Likewise.
10612 * tests/cmp_unit_test.c: New file.
10613 * tests/grub_script_strcmp.in: Likewise.
10614 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10616 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10618 * include/grub/pci.h: Move enums into no-asm part.
10620 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10622 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10624 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10626 * util/getroot.c (find_hurd_root_device): Try to make error message
10627 and comments to translators clearer.
10629 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10631 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10633 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10635 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10638 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10640 * docs/grub.cfg: Update.
10642 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10644 * docs/grub.texi (PXE): Remove not present variables.
10646 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10648 * grub-core/net/net.c (defserver_set_env): New function.
10649 (defserver_get_env): Likewise.
10650 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10652 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10654 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10657 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10659 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10660 * grub-core/kern/emu/hostdisk.c: Likewise.
10662 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10664 Handle hurd userspace partitions.
10666 * util/getroot.c (find_hurd_root_device): New function.
10667 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10669 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10671 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10673 Reported by: Bastian Blank.
10675 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10677 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10678 crossing page boundary.
10680 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10682 Fix B-tree search in BFS, especially in presence of non-ASCII
10685 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10686 (find_in_b_tree): Use standard bsearch + btree algorithm.
10688 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10690 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10693 2012-05-03 Matthew Garrett <mjg@redhat.com>
10694 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10696 Suspend broadcom cards in order to stop their DMA.
10698 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10699 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10700 (pci): Don't build on x86 EFI.
10701 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10702 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10704 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10705 stop_broadcom if running on EFI.
10706 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10707 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10708 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10709 (grub_pci_find_capability): New proto.
10711 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10713 * docs/grub.texi: Remove dot from the extension as it apparently
10714 doesn't work with some makeinfo versions.
10716 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10718 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10719 with GRUB expectance.
10721 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10723 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10725 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10727 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10728 zero after directory block since last entry may be not 0-terminated if
10729 it ends on block boundary. Use continue instead of if spanning whole
10732 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10734 Support 4K sectors UDF inline files.
10736 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10737 (grub_udf_extended_file_entry): Likewise.
10738 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10740 (get_fshelp_size): New function.
10741 (grub_udf_read_icb): Read whole block.
10742 (grub_udf_iterate_dir): Likewise.
10743 (grub_udf_dir): Likewise.
10744 (grub_udf_open): Likewise.
10746 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10748 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10750 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10752 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10753 inline symlinks in addition to workaround.
10755 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10757 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10759 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10761 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10763 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10765 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10767 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10769 Fix reiserfs big seek times.
10771 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10772 exact. All users updated.
10773 (grub_reiserfs_read): Use nearest btree search for seeking.
10774 Fix return value on error.
10776 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10778 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10780 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10781 * docs/grub.texi: Update menuentry description.
10783 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10785 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10786 crash when embedding onto filesystem.
10788 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10790 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10793 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10795 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10797 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10799 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10802 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10803 2012-05-01 Bean <bean123ch@gmail.com>
10805 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10807 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10809 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10810 Special behaviour for len = 0 to read whole file isn't used anywhere and
10811 can cause buffer ovewrflows in several places.
10813 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10815 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10817 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10819 Handle RAIDZ on non-512B sectors.
10821 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10822 max_children_ashift.
10823 (fill_vdev_info_real): Fill max_children_ashift.
10824 (read_device): Use max_children_ashift.
10826 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10828 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10830 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10832 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10834 * docs/grub.texi: Update device.map parts.
10836 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10838 Don't scan into non-diskfilter devices having diskfilter names.
10840 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10841 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10843 (scan_disk_hook): New function.
10845 2012-04-29 Bean <bean123ch@gmail.com>
10847 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10850 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10852 * configure.ac: Detect starfield theme font path
10853 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10855 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10857 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10858 geometry on serial consoles.
10860 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10862 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10863 because of network consoles.
10865 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10867 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10870 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10872 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10873 falls on Q syndrom.
10875 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10877 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10878 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10880 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10882 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10883 Allocate at lest 8192 for temporary buffer as required for lzo.
10885 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10887 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10888 to cluster_bits, since it's already added in.
10889 (grub_fat_read_data): Likewise.
10891 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10893 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10894 as long as cluster size is multiple of 512 bytes.
10896 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10898 * util/grub-mkrescue.in: Fix locale directory.
10900 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10902 * grub-core/kern/emu/hostdisk.c (map): Make static.
10904 2012-04-23 Bean <bean123ch@gmail.com>
10906 * util/grub-fstest.c (fstest): Add missing break.
10908 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10912 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10913 not define nr variable.
10914 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10915 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10916 grub_find_device): Do not define.
10918 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10920 Fix kfreebsd compile and behaviour.
10922 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10924 * util/getroot.c: Fix wait.h include.
10925 (grub_guess_root_devices): Error if grub_find_device fails.
10926 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10927 (grub_util_get_dev_abstraction): Likewise.
10928 (grub_util_pull_device): Likewise.
10929 (grub_util_get_grub_dev): Likewise.
10930 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10932 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10934 Fix and unify wholedisk detection.
10936 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10937 is_part. All users updated.
10938 (device_is_wholedisk): Removed.
10939 (grub_util_biosdisk_get_grub_dev): Use is_part.
10941 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10943 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10946 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10948 * configure.ac: Bump to beta4.
10950 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10952 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10953 --fs-uuid --set UUID syntax.
10955 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10957 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10960 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10962 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10964 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10966 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10968 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10970 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10972 2012-04-18 Bean <bean123ch@gmail.com>
10974 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10977 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10979 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10981 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10982 corresponding to GRUB partitions.
10983 (grub_util_biosdisk_write): Likewise.
10985 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10987 Scan mdraid before LVM.
10989 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10990 (grub_diskfilter_register_front): ... this.
10991 (grub_diskfilter_register_back): New function.
10992 All users of grub_diskfilter_register updated.
10994 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10996 * util/grub-install.in: Fix an automatic target detection bug.
10998 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
11000 * util/grub-install.in: New option --efi-directory.
11002 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
11004 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
11005 boot services if we have no other choice.
11007 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
11009 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11011 * tests/util/grub-shell.in: Update to --directory.
11013 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11015 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11017 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11019 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11020 (grub_minix_read_file): Likewise.
11021 (grub_minix_read_inode): Likewise.
11022 (grub_minix_find_file): Likewise.
11023 (grub_minix_dir): Likewise.
11025 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11027 * util/grub-setup.c (setup): Fix partition handling and blocklist
11030 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11032 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11033 redundant buggy overlap check.
11035 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11037 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11040 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11042 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11043 kh.loadflags on pre-2.00 kernels.
11045 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11047 Terminate UNDI and PXE before launching the payload to avoid problems
11050 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11051 (grub_loader_flags): ... this. All users updated.
11052 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11053 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11054 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11055 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11057 (grub_pxe_restore): Likewise.
11058 (fini_hnd): New var.
11059 (GRUB_MOD_INIT): Register shutdown hook.
11060 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11061 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11062 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11063 (grub_loader_set): Rename second argument to flags.
11065 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11067 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11069 (grub_get_num_of_utf8_bytes): New function.
11070 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11071 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11073 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11074 (grub_ucs4_to_utf8): Change return type.
11076 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11078 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11080 * grub-core/fs/bfs.c (hop_level): Likewise.
11081 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11083 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11085 * grub-core/lib/adler32.c: Recode due to license unclearness.
11087 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11089 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11090 (test_header): Likewise.
11092 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11094 Fix --help formatting.
11096 * util/grub-mkconfig_lib.in (print_option_help): New function.
11097 (grub_fmt): Likewise.
11098 * util/grub-install.in: Use print_option_help and grub_fmt.
11099 * util/grub-kbdcomp.in: Likewise.
11100 * util/grub-mkconfig.in: Likewise.
11101 * util/grub-mknetdir.in: Likewise.
11102 * util/grub-mkrescue.in: Likewise.
11103 * util/grub-mkstandalone.in: Likewise.
11104 * util/grub-reboot.in: Likewise.
11105 * util/grub-set-default.in: Likewise.
11106 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11108 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11110 * linguas.sh: Remove autogenerated *.po.
11112 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11114 * po/README: Move language fetcing to ...
11115 * linguas.sh: ... here.
11116 * po/README: Point to linguas.sh.
11118 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11120 * po/README: Exclude ko.po due to disclaimer problems.
11122 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11124 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11126 (grub_gettext_translate_real): Handle 0th string.
11127 (grub_gettext_translate): Ensure that "" isn't translated.
11129 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11131 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11132 TRANSLATORS comment.
11133 (grub_diskfilter_print_partmap): Propagate changing of error into
11136 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11138 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11139 to uint64_t to prevent overflow.
11140 (grub_diskfilter_lv): Increase start_extent and extent_count
11141 to uint64_t to prevent overflow.
11143 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11145 * configure.ac: Increase version.
11147 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11149 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11151 * po/Rules-translit: New file.
11152 * po/arabic.sed: Likewise.
11153 * po/cyrillic.sed: Likewise.
11154 * po/greek.sed: Likewise.
11155 * po/hebrew.sed: Likewise.
11156 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11157 * po/Makefile.in.in: Add extra_dist4.
11159 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11161 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11163 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11164 modify names. Introduce MODE_BIGENDIAN.
11165 * grub-core/fs/minix_be.c: New file.
11166 * grub-core/fs/minix2_be.c: Likewise
11167 * grub-core/fs/minix3_be.c: Likewise.
11168 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11170 * grub-core/Makefile.core.def (minix_be): New module.
11171 (minix2_be): Likewise.
11172 (minix3_be): Likewise.
11174 2012-04-01 Felix <email@hamburg.de>
11176 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11177 (devs): Add MBP 2011.
11179 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11181 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11183 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11185 * grub-core/normal/cmdline.c (print_completion): New field
11187 (grub_cmdline_get): Handle width properly.
11189 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11191 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11193 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11195 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11196 after 29th of February.
11198 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11200 Fix exfat endianness handling.
11202 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11203 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11204 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11205 Byte-swap utf16 when necessary.
11206 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11208 2012-03-31 Anton Blanchard <anton@samba.org>
11209 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11211 Fix btrfs endianness handling.
11213 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11214 (lower_bound): Make root uint64_t. Use root in le.
11215 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11216 (find_path): Fix template key init.
11217 (grub_btrfs_dir): Fix mtime byteswap.
11218 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11220 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11222 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11223 recursion_depth. Break infinite resursions. All users updated.
11225 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11227 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11229 Reported by: Peter Jones.
11231 2012-03-31 Anton Blanchard <anton@samba.org>
11233 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11236 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11238 * util/grub-install.in: Fix nvram call for PreP.
11240 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11242 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11243 the error when some elements are missing into a warning.
11245 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11247 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11249 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11251 * docs/grub.texi (Invoking grub-probe): New section.
11252 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11254 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11256 Fix tab and wide character handling in editor and menu.
11258 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11259 agglomerate control characters with combining marks.
11260 (bidi_line_wrap): Allow break on tab.
11261 (grub_unicode_get_comb_start): New function.
11262 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11264 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11266 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11267 fixed_tab_size. All users updated.
11268 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11269 (grub_term_getcharwidth): Handle \t.
11270 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11273 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11275 Handle big-endian mdraid.
11277 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11278 * grub-core/Makefile.core.def (mdraid09_be): New module.
11279 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11280 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11281 * grub-core/disk/mdraid_linux_be.c: New file.
11283 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11285 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11287 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11289 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11290 missing quotes which caused confusion among translators.
11292 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11294 * util/grub-mkconfig_lib.in: Fix typo.
11296 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11298 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11300 * tests/grub_script_leading_whitespace.in: New file.
11301 * Makefile.util.def (grub_script_leading_whitespace): New test.
11303 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11305 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11308 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11310 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11311 starts with control character.
11313 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11315 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11317 (grub_gdb_outbuf): Likewise.
11319 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11321 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11322 zero terminator. Fixes a crash.
11324 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11326 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11328 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11329 images independently of preffered adderss field.
11331 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11333 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11334 * grub-core/commands/regexp.c: Likewise.
11335 * grub-core/loader/i386/linux.c: Likewise.
11336 * grub-core/partmap/msdos.c: Likewise.
11337 * grub-core/script/execute.c: Likewise.
11338 * grub-core/term/gfxterm.c: Likewise.
11340 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11342 Add variable parsing in $"..." and fix several mismatches with bash.
11344 * Makefile.util.def (grub_script_gettext): New test.
11345 * grub-core/script/execute.c (parse_string): New function.
11346 (gettext_append): Likewise.
11347 (grub_script_arglist_to_argv): Use gettext_append.
11348 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11349 * tests/grub_script_gettext.in: New file.
11351 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11353 Fix handling of leading spaces in scripts.
11355 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11357 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11358 other than skipping \r. All users updated.
11359 * tests/grub_script_echo1.in: Add space-related tests.
11360 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11362 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11364 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11366 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11368 * configure.ac: Bump up the version to beta2.
11370 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11372 Fix gettext reload bugs (e.g. inability to disable gettext
11375 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11376 main_context and secondary_context. All functions updated.
11377 (grub_gettext_translate): Rename to ...
11378 (grub_gettext_translate_real): ... this. Return NULL on failed
11380 (grub_gettext_translate): Handle secondary context.
11381 (grub_gettext_delete_list): Close file and zero-out the context.
11382 (grub_mofile_open): Don't call grub_gettext_delete_list.
11384 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11385 if locale="" to avoid pointless error message.
11386 (grub_gettext_env_write_lang): Update lang even if load fails.
11387 Handle secondary context.
11388 (grub_gettext_reread_prefix): New function.
11389 (read_main): Likewise.
11390 (read_secondary): Likewise.
11391 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11392 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11393 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11394 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11396 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11398 * configure.ac: Decrease warning level to avoid spurious warnings and
11399 to be able to compile with GCC 4.2.
11400 * Makefile.util.def: Remove -Wno-error=logical-op.
11402 2012-03-10 William Bittner <william.bittner@gmail.com>
11404 * util/import_unicode.py: Add missing brackets around string for
11407 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11409 Fix efi chainloader on network root.
11411 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11413 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11416 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11418 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11419 unused show_text member.
11420 * docs/grub.texi: Document "text" property.
11422 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11424 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11427 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11429 Fix IMSM handling on Fedora.
11431 * util/getroot.c (grub_util_is_imsm): New function.
11432 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11434 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11436 * Makefile.am: Strip gold section.
11437 * conf/Makefile.common: Likewise.
11438 * gentpl.py: Likewise.
11439 * grub-core/Makefile.core.def: Likewise.
11440 * grub-core/genmod.sh.in: Likewise.
11442 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11444 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11445 * util/grub.d/20_linux_xen.in: Likewise.
11446 Based on Debian patch.
11448 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11450 * util/grub.d/10_linux.in: Fix syntax error resulting in
11451 Richard Laager's patch.
11452 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11454 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11456 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11459 2012-03-10 Richard Laager <rlaager@wiktel.com>
11461 * util/grub.d/10_linux.in: Fix ZFS root passing.
11463 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11465 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11466 * grub-core/commands/xnu_uuid.c: Likewise.
11467 * grub-core/loader/efi/appleloader.c: Likewise.
11468 * grub-core/script/execute.c: Likewise.
11469 * grub-core/script/main.c: Likewise.
11470 * util/grub-mkfont.c: Likewise.
11472 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11474 * util/grub-mkfont.c (options): Use more appropriate "select" that
11475 "set" for face index.
11477 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11479 * util/grub-editenv.c (options): Gettextize command summaries.
11481 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11483 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11484 "out of memory" error messagge.
11486 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11488 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11489 of diskfilter for diskfilter on diskfilter support.
11491 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11493 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11495 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11497 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11500 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11502 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11504 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11506 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11508 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11510 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11513 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11515 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11517 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11519 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11521 * util/grub-install.in: Fix and gettextize error message.
11523 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11525 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11527 * util/grub-mount.c (options): Likewise.
11529 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11531 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11533 * grub-core/commands/search_wrap.c (options): Likewise.
11535 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11537 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11539 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11541 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11543 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11546 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11548 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11549 "temporary" since it's used in identifier and is limited in space.
11551 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11553 * po/POTFILES.in: Regenerate. Include *.h since they contain
11554 translatable strings as well.
11556 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11558 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11559 byte-swap on big-endian.
11560 Reported by: Lennart Sorensen
11562 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11564 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11565 (allocate_pages): Improve dprintf.
11566 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11567 code32_start. Fill code32_start and kernel_alignment in params.
11568 (grub_cmd_initrd): Use prot_init_space.
11570 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11572 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11574 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11576 * util/grub-install.in: Add missing dot at the end of sentence.
11578 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11580 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11581 * grub-core/commands/videotest.c: Likewise.
11582 * grub-core/loader/i386/linux.c: Likewise.
11584 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11586 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11588 Reported by: Milo Casagrande.
11590 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11592 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11593 * grub-core/commands/gptsync.c: Likewise.
11594 * grub-core/commands/hashsum.c: Likewise.
11595 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11596 * grub-core/commands/legacycfg.c: Likewise.
11597 * grub-core/io/gzio.c: Likewise.
11598 * grub-core/net/net.c: Likewise.
11599 * grub-core/term/gfxterm.c: Likewise.
11600 * grub-core/term/terminfo.c: Likewise.
11601 * grub-core/tests/test_blockarg.c: Likewise.
11602 * grub-core/video/video.c: Likewise.
11603 * util/grub-install.in: Likewise.
11604 * util/grub-mkfont.c: Likewise.
11606 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11608 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11610 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11612 * grub-core/commands/search_wrap.c (options): Fix a typo.
11613 Reported by: David Prévot.
11615 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11617 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11620 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11622 * util/grub-script-check.c (main): Fix a syntax error message which was
11625 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11627 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11629 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11631 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11634 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11636 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11638 * util/grub-mount.c (options): Likewise.
11640 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11642 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11644 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11646 * grub-core/net/http.c: Add TRANSLATORS comments.
11647 * grub-core/normal/cmdline.c: Likewise.
11648 * grub-core/normal/misc.c: Likewise.
11649 * grub-core/partmap/msdos.c: Likewise.
11650 * grub-core/parttool/msdospart.c: Likewise.
11651 * grub-core/script/execute.c: Likewise.
11652 * grub-core/script/main.c: Likewise.
11653 * grub-core/term/terminfo.c: Likewise.
11654 * grub-core/video/bitmap.c: Likewise.
11655 * util/grub-install.in: Likewise.
11656 * util/grub-mkimage.c: Likewise.
11657 * util/grub-mklayout.c: Likewise.
11658 * util/grub-setup.c: Likewise.
11660 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11662 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11663 with similar messages in grub-fstest.
11665 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11667 * util/grub-install.in: Unify "option requires an argument" message
11668 with similar messages in other files.
11669 * util/grub-mkconfig.in: Likewise.
11671 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11673 * util/grub-set-default.in: Replace printf with gettext_printf (the
11674 string in in question is already translated from grub-reboot)
11676 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11678 * configure.ac: Bump up the version to beta1.
11680 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11682 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11683 case when min_align = 0.
11685 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11687 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11688 and fix a case when line_start overflows.
11690 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11692 * util/grub-reboot.in (usage): Mention id posibility.
11693 * util/grub-set-default.in (usage): Likewise.
11695 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11697 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11698 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11699 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11700 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11701 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11702 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11703 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11705 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11707 * grub-core/commands/menuentry.c (options): Remove
11708 GRUB_ARG_OPTION_REPEATABLE.
11709 Reported by: Andreas Vogel
11711 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11713 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11715 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11717 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11720 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11722 Use sort -V by the idea of Georgi Georgiev.
11724 * util/grub-mkconfig_lib.in (version_sort): New function.
11725 (version_test_numeric): Use version_sort.
11727 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11729 Use submenus in grub-mkconfig.
11731 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11732 * util/grub-mkconfig_lib.in (grub_quote): New function.
11733 (gettext_printf): Use gettext and not gettext_quoted to fix several
11735 * util/grub.d/10_hurd.in: Use submenus.
11736 * util/grub.d/10_kfreebsd.in: Likewise.
11737 * util/grub.d/10_linux.in: Likewise.
11738 * util/grub.d/10_netbsd.in: Likewise.
11739 * util/grub.d/20_linux_xen.in: Likewise.
11740 * util/grub.d/30_os-prober.in: Likewise.
11741 * util/grub.d/10_illumos.in: Add missing quoting.
11742 * util/grub.d/10_windows.in: Likewise.
11744 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11746 Fix menu title instability bug.
11748 * grub-core/commands/menuentry.c (options): New option --id.
11749 (grub_normal_add_menu_entry): New argument id. All users updated.
11750 (grub_cmd_menuentry): Handle --id.
11751 (grub_menu_init): Accept unknown arguments.
11752 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11753 feature_menuentry_options.
11754 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11756 (get_entry_number): Match with id as well.
11757 * include/grub/menu.h (grub_menu_entry): New member id.
11758 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11759 * util/grub.d/00_header.in: Define menuentry_id_option.
11760 * util/grub.d/10_hurd.in: Define id.
11761 * util/grub.d/10_illumos.in: Likewise.
11762 * util/grub.d/10_kfreebsd.in: Likewise.
11763 * util/grub.d/10_linux.in: Likewise.
11764 * util/grub.d/10_netbsd.in: Likewise.
11765 * util/grub.d/10_windows.in: Likewise.
11766 * util/grub.d/20_linux_xen.in: Likewise.
11767 * util/grub.d/30_os-prober.in: Likewise.
11769 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11771 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11772 "scope" with "body".
11774 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11776 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11777 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11778 prot_size and prot_file_size.
11780 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11782 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11783 All users updated. If easily=1 require raid-5/-6 to be full.
11784 (is_node_readable): Likewise.
11785 (scan_devices): Scan incomplete but readable LVs at the end.
11786 (grub_diskfilter_memberlist): Pull missing devices.
11787 (insert_array): Skip scanning until device is complete or scan is
11789 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11791 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11792 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11794 2012-03-03 Matthew Garrett <mjg@redhat.com>
11795 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11797 Avoid EFI boot services when loading Linux.
11799 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11800 avoid_efi_bootservices. All users updated.
11801 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11802 argument avoid_efi_bootservices. All users updated.
11803 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11804 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11805 align, min_align, relocatable, prefered_address. All users updated.
11806 Allocate avoiding boot services if kernel is relocatable.
11807 (grub_cmd_linux): Check if kernel is relocatable.
11808 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11809 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11810 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11811 avoid_efi_boot_services.
11812 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11813 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11814 (linux_kernel_params): Likewise.
11816 2012-03-03 Matthew Garrett <mjg@redhat.com>
11817 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11821 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11823 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11824 modes. Set gop_handle.
11825 (grub_video_gop_get_edid): New function.
11826 (grub_gop_get_preferred_mode): Likewise.
11827 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11828 (grub_video_efi_gop_adapter): Set .get_edid.
11829 * include/grub/efi/edid.h: New file.
11830 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11832 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11834 * util/grub-install.in: Load efivars unconditionally.
11836 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11838 * po/Rules-piglatin: Change suffix from .po-update-en to
11839 .po-update-en-piglatin.
11841 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11845 * po/piglatin.sed: New file.
11846 * po/en@piglatin.header: Likewise.
11847 * po/Rules-piglatin: Likewise.
11848 * po/README: Add en@piglatin to autogenerated languages.
11850 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11852 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11854 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11855 "Check" since we don't check anything.
11856 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11858 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11859 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11860 (grub_md_sha512_real): Likewise.
11862 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11864 * grub-core/commands/gptsync.c: Fix typographic quoting.
11865 * grub-core/commands/ieee1275/suspend.c: Likewise.
11866 * grub-core/commands/parttool.c: Likewise.
11867 * grub-core/commands/search_wrap.c: Likewise.
11868 * grub-core/commands/videoinfo.c: Likewise.
11869 * grub-core/gfxmenu/gui_label.c: Likewise.
11870 * grub-core/hello/hello.c: Likewise.
11871 * grub-core/kern/emu/main.c: Likewise.
11872 * grub-core/net/net.c: Likewise.
11873 * grub-core/normal/menu.c: Likewise.
11874 * grub-core/normal/menu_text.c: Likewise.
11875 * grub-core/normal/misc.c: Likewise.
11876 * util/grub-editenv.c: Likewise.
11877 * util/grub-install.in: Likewise.
11878 * util/grub-kbdcomp.in: Likewise.
11879 * util/grub-mkconfig.in: Likewise.
11880 * util/grub-mknetdir.in: Likewise.
11881 * util/grub-mkrescue.in: Likewise.
11882 * util/grub-mkstandalone.in: Likewise.
11883 * util/grub-reboot.in: Likewise.
11884 * util/grub-set-default.in: Likewise.
11885 * util/grub-setup.c: Likewise.
11886 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11888 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11890 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11891 * grub-core/commands/keystatus.c: Likewise.
11892 * grub-core/commands/loadenv.c: Likewise.
11893 * grub-core/commands/probe.c: Likewise.
11894 * grub-core/commands/regexp.c: Likewise.
11895 * grub-core/commands/true.c: Likewise.
11896 * grub-core/commands/videoinfo.c: Likewise.
11897 * grub-core/disk/cryptodisk.c: Likewise.
11898 * grub-core/disk/ldm.c: Likewise.
11899 * grub-core/disk/loopback.c: Likewise.
11900 * grub-core/disk/luks.c: Likewise.
11901 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11902 * grub-core/kern/disk.c: Likewise.
11903 * grub-core/kern/emu/hostdisk.c: Likewise.
11905 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11907 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11908 * util/grub-install.in: Add missing quote in the comment.
11910 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11912 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11913 * grub-core/commands/lsmmap.c: Likewise.
11914 * grub-core/commands/minicmd.c: Likewise.
11915 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11916 * grub-core/commands/regexp.c: Likewise.
11917 * grub-core/gdb/gdb.c: Likewise.
11918 * grub-core/term/gfxterm.c: Likewise.
11919 * util/grub-mkconfig.in: Likewise.
11920 * util/grub-mkfont.c: Likewise.
11921 * util/grub-mklayout.c: Likewise.
11922 * util/grub-mknetdir.in: Likewise.
11923 * util/grub-mkrescue.in: Likewise.
11924 * util/grub.d/30_os-prober.in: Likewise.
11926 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11928 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11929 with "Direct color" and "Packed" with "Packed pixel".
11930 (grub_cmd_videoinfo): Simplify legend.
11932 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11934 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11935 absolutely unclear error message.
11937 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11939 * util/grub-mkstandalone.in: Remove confusing leftover print.
11941 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11943 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11945 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11946 (GRUB_MOD_INIT): Likewise.
11947 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11949 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11951 * util/grub-install.in (usage): Likewise.
11952 Spell ID in whole letters.
11953 Add missing ending dot.
11955 * util/grub-reboot.in: Fix capitalisation.
11956 * util/grub-set-default.in: Likewise.
11958 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11960 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11961 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11962 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11963 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11964 Disable -Werror for -Wdeprecated-declarations.
11965 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11966 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11967 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11968 (grub_util_get_grub_dev): Make luks handling dependent on
11969 HAVE_DEVICE_MAPPER and not __linux__.
11970 (get_win32_path): Fix format security.
11971 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11972 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11973 Don't try grub_find_zpool_from_dir.
11974 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11975 #ifdef-out paresdir.
11977 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11979 * util/grub-pe2elf.c (usage): Add missing noreturn.
11980 (write_section_data): Rename name to shname to avoid shadowing.
11981 (write_symbol_table): Rename name to symname to avoid shadowing.
11982 Fix write_reloc_section call.
11984 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11986 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11987 to ensure that it's after the last byte of .text.
11989 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11991 * util/ieee1275/ofpath.c (my_isdigit): New function.
11992 (trailing_digits): Use my_isdigit.
11993 (strip_trailing_digits): Likewise.
11995 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11997 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11998 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
12000 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12002 * grub-core/kern/i386/pc/startup.S: Define __start.
12004 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12006 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
12007 strip already transforms he format.
12009 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12011 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12013 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12015 * util/grub-install.in: Add missing gettext init.
12016 * util/grub-kbdcomp.in: Likewise.
12017 * util/grub-mkconfig.in: Likewise.
12018 * util/grub-mknetdir.in: Likewise.
12019 * util/grub-mkrescue.in: Likewise.
12020 * util/grub-mkstandalone.in: Likewise.
12021 * util/grub-reboot.in: Likewise.
12022 * util/grub-set-default.in: Likewise.
12023 * util/grub.d/00_header.in: Likewise.
12024 * util/grub.d/10_hurd.in: Likewise.
12025 * util/grub.d/10_windows.in: Likewise.
12026 * util/grub.d/30_os-prober.in: Likewise.
12027 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12029 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12031 * po/Rules-swiss: Fix header comment.
12033 2012-02-29 Andreas Vogel <anvoit>
12035 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12036 resulted in leak of arguments.
12038 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12040 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12041 reed_solomon_size const definition instead of computing it since
12042 Apple assembler doesn't support the later.
12044 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12046 * gentpl.py (kernel): Rewrite Apple part.
12048 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12050 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12052 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12054 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12056 (load_image): Likewise.
12058 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12060 * configure.ac: Fix a typo in previous commit.
12062 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12064 Don't add -Wl,-N on Apple platform.
12066 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12067 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12069 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12071 * grub-core/Makefile.core.def (lzma_decompress): Use
12072 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12074 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12076 * grub-core/genmod.sh.in: Rewrite the Apple part.
12078 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12080 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12083 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12085 * acinclude.m4 (grub_CHECK_PIC): New test.
12086 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12088 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12090 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12091 to avoid the warning.
12093 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12095 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12096 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12097 after. All users updated.
12099 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12101 Use the common size routine in hostfs so we can read disks as well.
12103 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12104 (grub_util_get_fd_size): ... this. Return size in bytes.
12106 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12107 grub_util_get_fd_size.
12109 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12111 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12112 Add blocksize retrieval.
12114 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12116 * configure.ac: Restore CFLAGS after efiemu check.
12118 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12120 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12123 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12125 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12127 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12129 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12130 (grub_cmd_halt): Likewise.
12132 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12134 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12135 for local arithmetics.
12136 Break %sp init into 2 instructions.
12137 Add 0 byte at the end.
12139 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12141 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12144 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12146 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12149 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12151 * grub-core/disk/ldm.c (make_vg): Init part.name.
12152 (grub_ldm_detect): Silence spurious warning.
12153 (grub_util_is_ldm): Likewise.
12155 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12157 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12158 sane value to avoid a spurious warning.
12160 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12162 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12163 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12165 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12167 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12168 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12170 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12172 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12173 hardcoding the relevant info.
12175 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12177 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12178 missing const qualifiers.
12179 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12181 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12183 * util/getroot.c [__APPLE__]: Add missing includes.
12184 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12186 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12188 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12190 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12192 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12195 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12197 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12199 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12201 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12202 and grub_file_close call.
12204 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12206 Add LZSS Mach-O support (needed for new xnu kernelcache).
12208 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12209 * grub-core/loader/lzss.c: New file.
12210 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12211 on Mach-O open failure.
12212 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12213 Don't free cmdsXX in uncompressedXX is set.
12214 (grub_macho_file): Init new fields.
12215 New argument is_64bit. All users updated.
12216 Handle compressed. Error out if no suitable architecture is found.
12218 (grub_macho_open): New argument is_64bit. All users updated.
12219 * grub-core/loader/macho32.c: Add defines for new fields.
12220 * grub-core/loader/macho64.c: Likewise.
12221 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12222 (grub_macho_parse): Handle compressed.
12223 Defer actual processing if compressed.
12224 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12225 "filename". All users updated.
12226 (grub_macho_size): New argument "filename". All users updated.
12227 (grub_macho_get_entry_point): Likewise.
12228 (grub_macho_load): Handle compressed.
12229 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12230 (GRUB_MACHO_LZSS_OFFSET): New define.
12231 (grub_decompress_lzss): New proto.
12232 * include/grub/machoload.h (grub_macho_file): New fields to handle
12234 (grub_macho_contains_macho64): Remove proto.
12235 (grub_macho_contains_macho32): Likewise.
12236 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12238 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12240 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12242 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12246 * Makefile.am (starfield_theme_files): New var.
12247 (starfield_DATA): Use starfield_theme_files.
12248 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12249 Add bootcheck-related files.
12250 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12251 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12252 and font_char_metrics.txt.
12253 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12254 (setjmp): Add lib/ia64/longjmp.S.
12255 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12256 * po/POTFILES.in: Regenerate.
12257 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12258 DISTFILES.common.extra1.
12259 * util/devicemap.c: Removed.
12260 * grub-core/lib/i386/relocator_backward.S: Likewise.
12261 * util/import_gcry.py: Remove unused files. Add extra_dist for
12264 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12266 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12267 grub_gettext_delete_list before changing grub_gettext_max to avoid
12268 running out of array bounds.
12270 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12272 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12273 grub_vga_text_init/grub_vga_text_fini.
12275 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12277 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12279 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12281 * configure.ac: Bump to 2.00~beta0.
12283 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12285 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12286 missing initialisation.
12288 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12290 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12292 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12294 Support v2 xnu boot arguments.
12296 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12297 New argument fsbfreq_out.
12298 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12299 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12301 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12303 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12304 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12305 (grub_xnu_boot_params): Rename to ...
12306 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12307 (grub_xnu_boot_params_v2): New struct.
12309 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12311 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12312 zeroing of CRC field before computing CRC.
12314 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12316 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12317 Change order of allocations to decrease fragmentation.
12319 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12321 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12323 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12325 Use write-combining MTRR to speed up video with buggy BIOSes.
12327 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12328 (cpuid): New define.
12331 (mtrr_base): Likewise.
12332 (mtrr_mask): Likewise.
12333 (grub_vbe_enable_mtrr_entry): New function.
12334 (grub_vbe_enable_mtrr): Likewise.
12335 (grub_vbe_disable_mtrr): Likewise.
12336 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12337 control off to BIOS.
12338 (grub_video_vbe_init): Fill mtrr.
12339 (grub_video_vbe_fini): Disable mtrr.
12340 (grub_video_vbe_get_info_and_fini): Likewise.
12341 (grub_video_vbe_setup): Enable mtrr.
12343 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12345 * include/grub/partition.h (grub_partition_map): Change prototype of
12346 embed to take a maximum value for nsectors.
12347 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12348 * include/grub/fs.h (grub_fs): Likewise.
12349 * grub-core/partmap/msdos.c (embed_signatures): New array.
12350 (pc_partition_map_embed): Check for and avoid sectors matching any
12351 of the signatures in embed_signatures, up to max_nsectors.
12352 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12353 returned sector map to max_nsectors.
12354 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12355 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12356 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12357 * util/grub-setup.c (setup): Allow for the embedding area being
12358 split into multiple blocklists. Tell dest_partmap->embed the
12359 maximum number of sectors we care about.
12361 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12363 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12364 Specify blocklist_install and reserver_first_sector for all fs.
12365 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12368 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12370 * util/grub-install.in: Clarify strings.
12371 Fix source dir check.
12373 2012-02-27 Richard Laager <rlaager@wiktel.com>
12375 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12376 "zfs" and "fuse.zfs" as synonyms.
12378 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12380 * configure.ac: Put platform and target_cpu substitutions back since
12381 they are used for directories.
12383 2012-02-27 Richard Laager <rlaager@wiktel.com>
12384 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12386 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12387 * util/grub.d/20_linux_xen.in: Likewise.
12389 2012-02-27 Richard Laager <rlaager@wiktel.com>
12391 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12394 2012-02-27 Richard Laager <rlaager@wiktel.com>
12396 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12399 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12401 Don't use insecure popen in getroot.
12403 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12404 (exec_pipe): ... here.
12405 (find_root_devices_from_poolname): Use exec_pipe.
12407 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12409 Remove platform and target_cpu replacement.
12411 * configure.ac: Remove platform and target_cpu substitutions.
12412 * tests/util/grub-shell.in: Use modinfo.
12413 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12416 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12418 Autodetect platform in grub-install but allow override.
12420 * util/grub-install.in: Autodetect platform. Support --target and
12421 --directory. Read platform from modinfo.sh.
12423 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12425 Support btrfs multi-volume probe.
12427 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12428 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12429 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12430 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12431 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12432 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12433 grub_find_root_devices_from_btrfs if on btrfs.
12435 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12437 Remove any awareness of *.c util files about target.
12439 * Makefile.util.def (grub-setup): Split to ...
12440 (grub-bios-setup): ... and this.
12441 (grub-sparc64-setup): ... and this.
12442 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12443 * docs/man/grub-setup.h2m: Split into ...
12444 * docs/man/grub-sparc64-setup.h2m: ... this.
12445 * docs/man/grub-bios-setup.h2m: ... and this.
12446 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12447 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12448 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12449 (grub_target_addr_t): Remove.
12450 (grub_target_size_t): Remove.
12451 (grub_target_ssize_t): Remove.
12452 * util/grub-install.in: Use new grub-*-setup.
12453 * util/grub-mkimagexx.c (Elf_Word): New define.
12454 (Elf_Half): Likewise.
12455 (Elf_Section): Likewise.
12456 (ELF_ST_TYPE): Likewise.
12457 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12458 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12460 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12462 Replace grub_target_addr with more appropriate types.
12464 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12465 grub_target_addr with grub_addr.
12466 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12467 grub_target_addr with grub_port.
12468 (grub_cmd_write): Likewise.
12469 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12470 grub_target_addr with grub_addr.
12471 (grub_cmd_write): Likewise.
12472 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12474 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12476 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12477 const qualifier for vendor_guid.
12479 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12481 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12483 (efiemu_memequal): Likewise.
12484 (find_variable): Likewise.
12486 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12488 Fix missing console prototype on qemu-mips.
12490 * include/grub/mips/qemu_mips/console.h: New file.
12492 2012-02-27 Matthew Garrett <mjg@redhat.com>
12493 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12495 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12496 * include/grub/efi/efi.h: Likewise.
12497 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12498 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12499 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12500 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12501 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12502 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12504 2012-02-27 Matthew Garrett <mjg@redhat.com>
12506 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12508 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12510 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12513 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12515 * configure.ac: Remove inappropriate use of program_transform_name
12516 on grubdir and bootdir but allow explicit specification of those
12519 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12521 * util/grub-mknetdir.in (grub_prefix): Removed.
12522 (subdir): Use @bootdirname@ and @grubdirname@.
12524 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12526 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12528 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12530 * po/POTFILES.in: Regenerated.
12532 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12534 Remove improper use of program_transform_name on pkglibrootdir.
12536 * configure.ac (pkglibrootdir): Removed.
12537 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12538 * util/grub-mkimage.c: Likewise.
12540 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12542 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12545 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12547 * util/grub-install.in: Use file identifier if no UUID is available
12548 or user explicitly prompted for it.
12550 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12552 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12553 (freebsd_get_zfs): New function.
12554 (grub_freebsd_boot): Pass zfs UUID.
12555 (grub_cmd_freebsd): Set zfs UUID.
12557 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12559 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12562 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12564 Add configure flag to control libzfs integration.
12566 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12568 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12570 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12572 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12575 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12577 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12578 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12579 be used on non-modules.
12581 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12582 Rename to grub_boot_init.
12583 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12584 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12585 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12586 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12587 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12588 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12589 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12590 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12592 (grub_machine_init): Remove empty inits.
12593 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12595 (grub_machine_init): Remove empty inits.
12596 * grub-core/term/arc/console.c: Remove explicit proto.
12597 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12598 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12599 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12600 grub_at_keyboard_fini.
12601 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12602 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12603 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12605 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12606 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12607 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12609 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12610 * grub-core/term/serial.c (GRUB_MOD_INIT)
12611 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12612 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12614 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12615 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12616 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12617 grub_terminfo_fini.
12618 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12619 (GRUB_MOD_FINI): Likewise.
12620 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12621 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12622 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12623 grub_video_radeon_fuloong2e_fini.
12624 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12625 [LOONGSON]: Rename to grub_video_sis315pro_init.
12626 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12627 grub_video_sis315pro_fini.
12628 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12629 [LOONGSON]: Rename to grub_video_sm712_init.
12630 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12631 grub_video_sm712_fini.
12632 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12633 (grub_at_keyboard_fini): Likewise.
12634 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12635 Don't declare grub_{modname}_init.
12636 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12637 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12639 (grub_keylayouts_fini) [!EMU]: Likewise.
12640 * include/grub/serial.h (grub_serial_init) [!EMU]:
12642 (grub_serial_fini) [!EMU]: Likewise.
12643 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12645 (grub_terminfo_fini) [!EMU]: Likewise.
12646 * include/grub/video.h (grub_font_init) [!EMU]:
12648 (grub_font_fini) [!EMU]: Likewise.
12649 (grub_gfxterm_init) [!EMU]: Likewise.
12650 (grub_gfxterm_fini) [!EMU]: Likewise.
12651 (grub_video_sm712_init) [!EMU]: Likewise.
12652 (grub_video_sm712_fini) [!EMU]: Likewise.
12653 (grub_video_sis315pro_init) [!EMU]: Likewise.
12654 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12655 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12656 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12658 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12660 Make nand a prefix for nand devices.
12662 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12664 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12666 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12667 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12669 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12671 * include/grub/env.h (grub_env_find): Remove prototype.
12672 * grub-core/kern/env.c (grub_env_find): Make static.
12673 (grub_env_set): Remove useless set.
12675 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12677 * grub-core/kern/i386/realmode.S: Remove useless align.
12679 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12681 * include/grub/dl.h (grub_dl_load_file): Don't export.
12683 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12685 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12688 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12690 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12692 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12693 not reloading whole superblock but only the part which is really needed.
12694 Remove useless grub_errors.
12695 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12698 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12700 Don't export grub_get_rtc.
12702 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12703 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12705 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12707 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12709 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12711 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12712 argument since it can be deduced from diskfilter. All users updated.
12714 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12718 * include/grub/list.h (grub_prio_list): Removed.
12719 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12720 GRUB_COMMAND_PRIO_MASK.
12721 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12722 GRUB_COMMAND_FLAG_ACTIVE.
12723 (grub_prio_list_insert): Removed.
12724 (grub_prio_list_remove): Likewise.
12725 (GRUB_AS_PRIO_LIST): Likewise.
12726 (GRUB_AS_PRIO_LIST_P): Likewise.
12727 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12728 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12729 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12730 * grub-core/kern/command.c (grub_register_command_prio): Inline
12731 the prio_list code.
12732 (grub_unregister_command): Likewise.
12734 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12736 Fix interrupt mixup from previous commit.
12738 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12739 (grub_realidt): New var.
12740 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12742 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12744 (grub_relocator16_boot): Set grub_relocator16_idt.
12745 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12746 (LOCAL(realidt)): ... this.
12747 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12748 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12749 (grub_realidt): New variable.
12751 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12753 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12754 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12755 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12756 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12758 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12759 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12760 * po/POTFILES.in: Regenerate.
12762 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12764 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12767 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12769 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12771 (add_length): Likewise.
12773 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12774 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12776 GDB serial and backtrace support.
12778 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12779 (prot_to_real): Likewise.
12780 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12781 * grub-core/Makefile.core.def (backtrace): New module.
12783 * grub-core/gdb/cstub.c: New file.
12784 * grub-core/gdb/gdb.c: Likewise.
12785 * grub-core/gdb/i386/idt.c: Likewise.
12786 * grub-core/gdb/i386/machdep.S: Likewise.
12787 * grub-core/gdb/i386/signal.c: Likewise.
12788 * grub-core/lib/i386/backtrace.c: Likewise.
12789 * grub-core/lib/backtrace.c: Likewise.
12790 * include/grub/backtrace.h: Likewise.
12791 * include/grub/gdb.h: Likewise.
12792 * include/grub/i386/gdb.h: Likewise.
12794 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12796 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12798 (add_length): Likewise.
12799 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12800 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12802 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12803 __argp_get_display_len.
12805 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12807 $"..." support in scripts.
12809 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12810 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12811 * grub-core/script/yylex.l: Likewise.
12812 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12815 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12817 * gentpl.py: Remove obsolete pkglib_DATA handling.
12819 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12821 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12824 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12825 * util/grub-kbdcomp.in: Likewise.
12826 * util/grub-mkconfig.in: Likewise.
12827 * util/grub-mkconfig_lib.in: Likewise.
12828 * util/grub-mknetdir.in: Likewise.
12829 * util/grub-mkrescue.in: Likewise.
12830 * util/grub-mkstandalone.in: Likewise.
12831 * util/grub-reboot.in: Likewise.
12832 * util/grub-set-default.in: Likewise.
12833 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12835 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12837 Remove GRUB_PREFIX.
12839 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12840 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12841 used for backward compatibility.
12843 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12845 Add new all_video module.
12847 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12848 * grub-core/Makefile.core.def (all_video): New module.
12849 * grub-core/genmoddep.awk: Generate dependency of all_video from
12851 * grub-core/lib/fake_module.c: New file.
12852 * grub-core/normal/main.c (features): Add feature_all_video_module.
12853 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12854 don't do explicit search again.
12855 insmod all_video in load_video if available.
12857 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12859 Another round of string clarification and adding TRANSLATORS comments.
12861 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12863 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12865 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12867 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12869 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12870 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12872 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12874 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12875 trailing newline implicitly. All users updated.
12877 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12879 Implement serial on IEEE1275 and EFI.
12881 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12882 on emu. Mention arc and emu as the only platforms without serial
12884 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12885 ieee1275 platforms.
12886 * grub-core/term/efi/serial.c: New file.
12887 * grub-core/term/ieee1275/serial.c: Likewise.
12888 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12889 specification if no ns8250 driver is available.
12890 (grub_cmd_serial): Likewise.
12891 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12892 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12893 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12894 (grub_efi_parity_type_t): New type.
12895 (grub_efi_stop_bits_t): Likewise.
12896 (grub_efi_serial_io_interface): New struct.
12897 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12898 available for all interfaces.
12899 Add EFI and IEEE1275 fields.
12900 (grub_ofserial_init): New proto.
12901 (grub_efiserial_init): Likeiwse.
12902 * util/grub.d/00_header.in: Don't check for the presence of serial
12905 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12907 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12908 name as if it was an alias.
12910 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12912 * grub-core/commands/lsacpi.c (options): Fix typo.
12914 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12916 Convert grub-emu to argp.
12918 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12920 * util/argp_common.c: Rename to ...
12921 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12922 Add missing includes.
12923 * grub-core/kern/emu/main.c: Convert to argp.
12924 * po/POTFILES.in: Regenerate.
12925 * util/grub-install.in (usage): Make first letter lowcase in messages
12927 * util/grub-setup.c (options): Likewise.
12929 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12931 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12932 Put back accidently commented-out code.
12934 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12936 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12937 loop check using Brent algorithm.
12938 (grub_hfsplus_btree_search): Likewise.
12940 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12942 * util/grub-install.in: Fix usage of wrong device for PreP install.
12944 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12946 * conf/Makefile.common (CFLAGS_GNULIB): Add
12947 -Wno-unsafe-loop-optimizations.
12948 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12950 * grub-core/commands/legacycfg.c: Add pragma to skip
12951 -Wunsafe-loop-optimizations.
12952 (check_password_md5_real): Fix loop counter type.
12953 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12955 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12956 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12958 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12959 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12960 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12962 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12963 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12964 avoid possible infinite loops.
12965 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12966 and -Wunsafe-loop-optimizations.
12967 * grub-core/script/yylex.l: Likewise.
12968 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12969 (print_glyphs): Avoid infinite loops.
12970 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12972 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12974 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12975 to avoid infinite loop.
12976 (disp_acpi_rsdt_table): Likewise.
12978 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12980 * grub-core/font/font.c (grub_font_load): Add support for default
12981 path for fonts ($prefix/fonts).
12982 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12983 for checking if string is a path.
12984 * grub-core/normal/main.c (features): Add feature_default_font_path.
12985 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12986 * util/grub.d/00_header.in: Use default directory if possible.
12987 * util/grub-install.in: Install unicode.pf2.
12989 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12991 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12992 * po/Rules-swiss: New file.
12993 * po/swiss.sed: Likewise.
12995 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12997 * grub-core/fs/btrfs.c (find_device): Fix typos.
12998 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12999 * util/grub-mkrelpath.c (argp_parser): Likewise.
13000 Reported by: Yuri Chornoivan.
13002 2012-02-23 Dalet Omega <daletomega@gmail.com>
13004 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
13005 for usual informative messages.
13007 2012-02-23 Dalet Omega <daletomega@gmail.com>
13011 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13012 * conf/Makefile.common: Define starfielddir.
13013 * configure.ac: Configure starfield.
13014 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13015 * themes/starfield/README: Likewise.
13016 * themes/starfield/blob_w.png: Likewise.
13017 * themes/starfield/boot_menu_c.png: Likewise.
13018 * themes/starfield/boot_menu_e.png: Likewise.
13019 * themes/starfield/boot_menu_n.png: Likewise.
13020 * themes/starfield/boot_menu_ne.png: Likewise.
13021 * themes/starfield/boot_menu_nw.png: Likewise.
13022 * themes/starfield/boot_menu_s.png: Likewise.
13023 * themes/starfield/boot_menu_se.png: Likewise.
13024 * themes/starfield/boot_menu_sw.png: Likewise.
13025 * themes/starfield/boot_menu_w.png: Likewise.
13026 * themes/starfield/slider_c.png: Likewise.
13027 * themes/starfield/slider_n.png: Likewise.
13028 * themes/starfield/slider_s.png: Likewise.
13029 * themes/starfield/src/blob_nw.xcf: Likewise.
13030 * themes/starfield/src/bootmenu/: Likewise.
13031 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13032 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13033 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13034 * themes/starfield/src/slider_c.xcf: Likewise.
13035 * themes/starfield/src/slider_n.xcf: Likewise.
13036 * themes/starfield/src/slider_s.xcf: Likewise.
13037 * themes/starfield/src/terminalbox/: Likewise.
13038 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13039 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13040 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13041 * themes/starfield/starfield.png: Likewise.
13042 * themes/starfield/terminal_box_c.png: Likewise.
13043 * themes/starfield/terminal_box_e.png: Likewise.
13044 * themes/starfield/terminal_box_n.png: Likewise.
13045 * themes/starfield/terminal_box_ne.png: Likewise.
13046 * themes/starfield/terminal_box_nw.png: Likewise.
13047 * themes/starfield/terminal_box_s.png: Likewise.
13048 * themes/starfield/terminal_box_se.png: Likewise.
13049 * themes/starfield/terminal_box_sw.png: Likewise.
13050 * themes/starfield/terminal_box_w.png: Likewise.
13051 * themes/starfield/theme.txt: Likewise.
13053 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13055 * util/grub.d/00_header.in: Add missing export theme.
13057 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13059 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13061 Reported by: Eren D.
13063 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13065 * conf/Makefile.common (grubdatadir): Removed.
13066 (Makefile.am): Move eveything grubdata to pkgdata.
13068 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13070 * grub-core/commands/acpihalt.c (get_sleep_type):
13071 Remove unused variable.
13073 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13075 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13076 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13077 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13078 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13079 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13080 i18n with gettext no-op.
13081 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13082 GRUB_ACPI_OPCODE_STRING_CONST.
13083 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13084 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13086 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13088 * po/POTFILES.in: Regenerate.
13090 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13092 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13093 -Wno-error=missing-noreturn.
13095 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13097 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13098 condition to avoid possibly infinite loops.
13099 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13100 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13102 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13104 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13105 condition to avoid possibly infinite loops.
13107 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13109 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13112 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13114 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13116 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13118 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13120 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13122 * util/bin2h.c (usage): Add missing attribute noreturn.
13124 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13126 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13127 if the size isn't divisible by 512.
13129 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13131 Make list_push and list_remove functions rather than inline functions
13132 to decrease size and avoid aliasing violations.
13134 * include/grub/list.h (grub_list_push): Move to ...
13135 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13136 * include/grub/list.h (grub_list_remove): Move to ...
13137 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13139 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13141 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13142 and -Wunused-result.
13144 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13146 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13147 Reported by: Seth Goldberg
13149 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13151 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13153 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13155 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13156 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13158 * docs/grub.texi (Simple configuration): Document
13159 GRUB_CMDLINE_GNUMACH.
13161 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13163 * conf/Makefile.common (platform_SCRIPTS): New variable.
13164 (platform_PROGRAMS): Likewise.
13165 * gentpl.py: Mark *,module and *.image for install.
13166 * grub-core/gdb_grub.in: Add a notice of expected environment.
13167 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13168 (gmodule.pl): Likewise.
13170 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13172 Replace grub_checkkey with grub_getkey_noblock.
13174 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13175 (grub_getkey_noblock): ... this. All users updated.
13177 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13179 * grub-core/kern/emu/console.c: Move to ...
13180 * grub-core/term/emu/console.c: ...here.
13181 (grub_ncurses_getkey): Fix return value if no key is detected.
13183 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13185 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13186 (grub_unit_test_fini): Likewise.
13187 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13189 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13191 * include/grub/test.h (GRUB_UNIT_TEST)
13193 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13195 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13196 Better error handling.
13197 (grub_script_return): Likewise.
13198 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13200 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13202 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13203 rimplicit redifinition.
13205 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13207 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13210 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13212 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13213 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13216 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13218 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13219 as GRUB_ERR_BUG. Don't malloc if no device is available.
13221 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13223 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13224 Mark calling with invalid term as GRUB_ERR_BUG.
13226 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13228 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13229 packets rather than raising an error.
13231 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13233 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13236 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13238 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13239 diagnostic to dprintf.
13240 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13242 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13244 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13247 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13249 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13250 (grub_ntfs_iterate_dir): Likewise.
13252 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13254 Efiemu stylistic fixes and gettext.
13256 * grub-core/efiemu/i386/loadcore32.c
13257 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13258 * grub-core/efiemu/i386/loadcore64.c
13259 (grub_arch_efiemu_relocate_symbols64): Likewise.
13260 * grub-core/efiemu/i386/pc/cfgtables.c
13261 (grub_machine_efiemu_init_tables): Likewise.
13262 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13263 (grub_efiemu_loadcore_initXX): Add a filename argument.
13265 Improved error message.
13266 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13267 Add a filename argument.
13269 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13270 Reclassify double relocation as GRUB_ERR_BUG.
13272 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13274 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13277 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13279 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13282 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13284 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13286 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13288 Improve string. Gettextize.
13290 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13292 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13294 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13296 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13298 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13299 [GRUB_UTIL]: New function.
13300 (insert_array) [GRUB_UTIL]: Store partmaps.
13301 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13303 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13304 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13305 (probe_abstraction): Print diskfilter and not raid.
13306 Reported by: Lennart Sorensen
13308 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13310 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13311 * util/grub-mkimagexx.c (MASK3): New define.
13312 (add_value_to_slot_20b): Use MASK3.
13313 (add_value_to_slot_21): Likewise.
13314 (relocate_addresses): Fix format specification.
13315 (load_image): Explicitly init symtab_section.
13317 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13319 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13320 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13322 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13324 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13326 Reported by: Lennart Sorensen
13328 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13330 * gentpl.py: Add missing license header.
13331 * docs/grub.texi: Update copyright year.
13333 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13335 Source grub-mkconfig_lib from the build directory at build time.
13336 Suggested by: Vladimir Serbinenko.
13338 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13339 * util/grub-install.in: Define pkgdatadir if not already set, and source
13340 grub-mkconfig_lib from there.
13341 * util/grub-kbdcomp.in: Likewise.
13342 * util/grub-mkconfig.in: Likewise.
13343 * util/grub-mknetdir.in: Likewise.
13344 * util/grub-mkrescue.in: Likewise.
13345 * util/grub-mkstandalone.in: Likewise.
13346 * util/grub-reboot.in: Likewise.
13347 * util/grub-set-default.in: Likewise.
13348 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13350 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13352 Increase warning level.
13354 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13355 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13356 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13357 (TARGET_CFLAGS): Likewise.
13358 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13359 * grub-core/Makefile.core.def (decompressor_xz): Add
13360 -Wno-unreachable-code.
13361 (normal): Add -Wno-redundant-decls.
13362 (xzio): Add -Wno-unreachable-code.
13363 (lzopio): Add -Wno-redundant-decls -Wno-error.
13364 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13365 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13366 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13367 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13368 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13369 * grub-core/kern/i386/coreboot/init.c: Add exception to
13370 -Wsuggest-attribute=noreturn.
13371 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13372 * grub-core/kern/ia64/dl_helper.c: Likewise.
13373 * grub-core/kern/mips/dl.c: Likewise.
13374 * grub-core/kern/sparc64/dl.c: Likewise.
13375 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13376 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13377 (memcmp): Likewise.
13378 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13379 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13380 * grub-core/loader/mips/linux.c: Likewise.
13381 * grub-core/loader/multiboot_elfxx.c: Likewise.
13382 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13383 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13384 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13385 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13387 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13388 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13391 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13393 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13396 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13398 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13399 Avoid improper use of strings.
13400 (grub_cmd_legacy_initrdnounzip): Likewise.
13402 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13404 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13406 (grub_util_info): Likewise.
13407 (grub_util_error): Likewise.
13409 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13411 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13412 * util/grub-fstest.c (fstest): Likewise.
13414 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13416 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13417 (grub_md_sha512_real): Likewise.
13418 (grub_util_get_geli_uuid): Likewise.
13419 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13420 (grub_util_biosdisk_open): Fix format specification.
13421 Respect format security.
13422 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13423 (xrealloc): Likewise.
13424 (xasprintf): Likewise.
13426 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13428 * util/import_gcry.py: Include grub/crypto.h in init.c.
13430 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13432 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13433 (generate_image): Make prefix a const char *.
13434 Fix format specifications. Respect format security.
13435 Avoid void * arithmetics.
13437 (argp_parser): Remove unused variable. Respect format security.
13438 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13439 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13440 (count_funcs): Remove unused variable.
13441 (relocate_addresses): Fix format specification.
13442 Disable x86-64 with elf32. Remove unused variables.
13443 (add_fixup_entry): Avoid shadowing.
13444 (make_reloc_section): Fix format specification.
13446 (locate_sections): Fix format specifications.
13447 (load_image): Avoid shadowing.
13449 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13451 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13452 Fix format specifications. Respect format security.
13453 Don't translate already translated grub_errmsg.
13454 (argp_parser): Remove unused variable
13456 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13458 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13460 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13462 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13463 (main): Likewise. Use xmalloc. Respect format security.
13465 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13467 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13469 (argp_parser): Remove unused variable.
13471 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13473 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13474 (add_pixel): Make static.
13475 (add_font): Likewise.
13476 (write_string_section): Make name and str a const char *.
13477 (write_be16_section): Make name a const char *.
13478 (print_glyphs): Make static.
13479 (write_font_ascii_bitmap): Likewise.
13480 (write_font_width_spec): Likewise.
13481 (write_font_pf2): Likewise.
13482 (argp_parser): Remove unused variable.
13483 Respect format security.
13484 (main): Avoid shadowing. Respect format security.
13486 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13488 * util/grub-editenv.c (argp_parser): Make static.
13489 (create_envblk_file): Use xmalloc.
13490 (open_envblk_file): Likewise.
13491 Resepect format security.
13492 (set_variables): Respect format security.
13494 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13496 * util/getroot.c (grub_find_device): Respect format security.
13497 (get_mdadm_uuid): Remove unused variable.
13498 (grub_util_pull_device): Dont call gettext on already translated
13500 (find_system_device): Remove unused variable.
13501 (grub_util_get_grub_dev): Likewise.
13502 (grub_make_system_path_relative_to_its_root): Respect format security.
13504 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13506 * util/grub-fstest.c (execute_command): Make first argument
13508 (read_file): Avoid shadowing.
13509 Reuse underlying error message if device open fails.
13510 (cmd_cmp): Respect format security.
13511 (root): Make const char *.
13512 (fstest): Remove args argument and use global copy.
13513 Respect format security.
13514 (argp_parser): Make static.
13515 (main): Make default_root const char *.
13517 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13519 * util/grub-mount.c (root): Make const char *.
13520 (execute_command): Make first argument a const char *.
13521 (fuse_init): Respect format security.
13522 (argp_parser): Make static. Remove unused variable.
13523 (main): Make default_root a const char *.
13524 Respect format security.
13526 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13528 * util/grub-probe.c (probe): Don't call gettext on already translated
13530 Remove unused variables.
13531 (argp_parser): Remove unused variable.
13533 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13535 * util/grub-script-check.c (argp_parser): Remove unused variable.
13536 (main): Rename read to curread to avoid shadowing.
13538 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13540 * util/misc.c (grub_util_write_image_at): Fix format specification.
13541 (grub_util_write_image): Likewise.
13542 (grub_script_execute_argument_to_string): Removed (unused).
13543 (grub_script_execute_menuentry): Likewise.
13544 (grub_putchar): Likewise.
13546 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13548 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13549 (FUNCTION) [GRUB_UTIL]: Likewise.
13550 (VARIABLE) [GRUB_UTIL]: Likewise.
13552 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13554 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13555 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13557 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13559 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13562 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13564 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13565 (LzmaEnc_SaveState): Removed (unused).
13566 (LzmaEnc_RestoreState): Likewise.
13567 (LzmaEnc_InitPriceTables): Made static.
13568 (LzmaEnc_Construct): Likewise.
13569 (LzmaEnc_FreeLits): Likewise.
13570 (LzmaEnc_Destruct): Likewise.
13571 (LzmaEnc_Init): Likewise.
13572 (LzmaEnc_InitPrices): Likewise.
13573 (LzmaEnc_Finish): Likewise.
13574 (LzmaEnc_PrepareForLzma2): Removed (unused).
13575 (LzmaEnc_MemPrepare): Likewise.
13576 (LzmaEnc_GetNumAvailableBytes): Likewise.
13577 (LzmaEnc_GetCurBuf): Likewise.
13578 (LzmaEnc_CodeOneMemBlock): Likewise.
13580 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13582 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13583 (grub_util_ldm_embed): Likewise.
13585 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13587 * util/grub-editenv.c (print_var): Rename name to varname to
13589 (main): Rename index to curindex to avoid shadowing.
13590 Make filename a const char *.
13592 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13594 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13595 to arg_getline to avoid shadowing.
13597 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13599 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13600 disk_ to avoid shadowing.
13602 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13604 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13605 curindex to avoid shadowing.
13607 (MatchFinder_GetNumAvailableBytes): Make static.
13609 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13611 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13614 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13616 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13617 argument from encrypt to do_encrypt to avoid shadowing.
13619 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13621 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13622 incorrect nesting of #if's.
13624 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13626 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13627 checks which are always false on some platforms.
13628 (grub_cmd_lsacpi): Likewise.
13629 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13630 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13633 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13635 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13636 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13638 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13640 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13641 re_dfa_t to avoid breaking alignment invariants.
13642 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13643 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13645 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13647 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13648 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13650 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13652 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13655 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13657 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13658 conserve alignment invariants.
13659 (grub_ehci_ehcc_read16): Likewise.
13660 (grub_ehci_oper_read32): Likewise.
13661 (grub_ehci_oper_write32): Likewise.
13662 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13663 Conserve alignment invariants.
13665 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13667 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13668 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13671 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13673 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13674 Remove unused variable.
13676 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13678 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13681 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13683 * include/grub/net.h: Remove double declarations.
13685 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13687 Remove "payload" command in ia64 Linux loader since I couldn't
13688 find any evidence of it being used for anything.
13689 Replace "relocate" command with an environment variable
13691 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13693 (ia64_boot_payload): Removed.
13694 (last_payload): Likewise.
13695 (RELOCATE_OFF): Likewise.
13696 (RELOCATE_ON): Likewise.
13697 (RELOCATE_FORCE): Likewise.
13698 (relocate): Likewise.
13699 (free_pages): Don't free payloads.
13700 (grub_load_elf64): Use common error messages.
13701 Use "linux_relocate" variable.
13702 Increase the space after boot_params.
13703 (grub_cmd_payload): Removed.
13704 (grub_cmd_relocate): Likewise.
13705 (grub_cmd_fpswa): Improve messages.
13706 (cmd_payload): Removed.
13707 (cmd_relocate): Likewise.
13708 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13709 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13711 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13713 Convert UHCI to DMA framework.
13715 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13716 (grub_uhci_pci_iter): Fill new members
13717 (grub_alloc_td): Use P2V and V2P functions.
13718 (grub_free_queue): Likewise.
13719 (grub_alloc_qh): Likewise.
13720 (grub_uhci_setup_transfer): Likewise.
13721 (grub_uhci_check_transfer): Likewise.
13723 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13725 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13726 Remove assignment in if while on it.
13728 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13730 * util/grub-mkstandalone.in: Fix modules directory.
13732 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13734 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13736 (argp_parser): Accept "auto" as compression specification.
13738 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13740 Fix `help' with unloaded modules.
13742 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13743 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13744 (grub_dyncmd_dispatcher): Small stylistic fix.
13745 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13746 explicit help is requested.
13748 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13750 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13751 Explicitly init restart while on it.
13753 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13755 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13758 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13760 * util/grub-mknetdir.in: Use . rather than source for POSIX
13763 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13765 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13767 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13769 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13772 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13774 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13777 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13779 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13781 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13783 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13784 iteration of partitions.
13786 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13788 Improve gettext support. Stylistic fixes and error handling fixes while
13791 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13793 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13794 part. Instead setup the correct stack in RM.
13795 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13797 * include/grub/i386/relocator_private.h: New file.
13799 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13801 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13803 * util/grub-fstest.c (options): Add missing DEVICE part.
13805 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13807 Clarify and unify messages.
13809 * grub-core/commands/hashsum.c (options): Unify messages.
13810 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13811 literal-only message as translatable.
13812 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13813 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13814 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13816 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13817 key, not the key used to unlock. Clarify what it's used for.
13818 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13819 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13820 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13821 * util/grub-editenv.c (options): Unify "verbose" message.
13822 * util/grub-fstest.c (read_file): Unify error message.
13823 (fstest): Add quotes around commands.
13824 (options): Unify "verbose" message.
13825 * util/grub-install.in: Add quotes around variable name.
13826 * util/grub-kbdcomp.in: Unify error message.
13827 * util/grub-mkfont.c (main): Likewise.
13828 * util/grub-mkrescue.in: Likewise.
13829 * util/grub-mklayout.c (options): Unify "verbose" message.
13830 * util/grub-mkstandalone.in: Unify help and verbose messages.
13831 * util/grub-mount.c (options): Unify "verbose" message.
13832 * util/grub-probe.c (options): Likewise.
13833 * util/grub-script-check.c (options): Likewise.
13834 * util/grub-setup.c (setup): Unify no-terminator message.
13835 (options): Use DEVICE and not DEV.
13836 Unify "verbose" message.
13837 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13839 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13841 Improve and unify messages.
13843 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13844 name. All users updated.
13845 Print filename in error.
13846 (read_device_map): Print filename in error.
13847 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13848 (grub_util_get_os_disk): Likewise.
13849 (grub_util_biosdisk_get_grub_dev): Likewise.
13850 (grub_util_check_block_device): Likewise.
13851 (grub_util_check_char_device): Likewise.
13852 (grub_make_system_path_relative_to_its_root): Likewise.
13853 * util/grub-editenv.c (create_envblk_file): Likewise.
13854 (open_envblk_file): Likewise.
13855 (write_envblk): Likewise.
13856 * util/grub-fstest.c (cmd_cp): Likewise.
13857 (cmd_cat): Likewise.
13858 (cmd_cmp): Likewise.
13859 * util/grub-menulst2cfg.c (main): Likewise.
13860 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13861 (write_font_width_spec): Likewise.
13862 (write_font_pf2): Likewise.
13863 * util/grub-mkimage.c (generate_image): New argument outname.
13865 Remove unreacheable message.
13866 (options): Unify messages.
13867 (help_filter): Likewise.
13868 * util/grub-mklayout.c (usage): Removed (unused).
13869 (main): Print filename in error.
13870 * util/grub-mkrescue.in: Fix wrong quoting.
13871 * util/grub-setup.c (setup): Print filename in error.
13872 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13873 (check_sas): Likewise.
13874 * util/misc.c (grub_util_get_fp_size): Removed.
13875 (grub_util_get_image_size): Print filename in error.
13876 (grub_util_read_at): Removed.
13877 (grub_util_read_image): Print filename in error.
13878 (grub_util_load_image): Likewise.
13879 (grub_util_write_image_at): New argument filename. All users updated.
13880 Print filename in error.
13881 (grub_util_write_image): New argument filename. All users updated.
13882 Print filename in error.
13883 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13884 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13886 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13888 * grub-core/Makefile.core.def (pxechain): New module.
13889 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13890 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13892 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13893 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13895 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13897 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13898 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13899 * include/grub/err.h (grub_error_saved): New struct.
13900 (grub_errmsg): Make array size explicit.
13901 * include/grub/misc.h (grub_error_save): New function.
13902 (grub_error_load): Likewise.
13903 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13904 (grub_error_push): Update `errno' member name.
13905 (grub_error_pop): Likewise
13906 * grub-core/net/tftp.c (tftp_data): New member save_err.
13907 (tftp_receive): Save error.
13908 (tftp_open): Restore error.
13910 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13912 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13913 to real mode down to execute A20-related code in protected mode as
13916 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13918 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13919 NULL when the argument `level' has an unexpected value.
13921 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13923 Move platform-dependent files from $prefix to $prefix/$platform.
13925 * config.h.in (GRUB_TARGET_CPU): New definition.
13926 (GRUB_PLATFORM): Likewise.
13927 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13928 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13929 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13930 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13931 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13932 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13933 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13934 * grub-core/normal/term.c (read_terminal_list): Likewise.
13935 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13937 (grub_gettext_init_ext): Likewise.
13938 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13940 * util/grub-install.in: Update directories.
13941 * util/grub-mknetdir.in: Likewise.
13942 * util/grub-mkrescue.in: Likewise.
13944 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13946 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13947 grub_error framework. All users updated.
13949 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13951 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13952 lists (by always binsearching), improve caching (cache strings
13953 used for binsearch, not only results), improve
13954 maintainability (by using more structured binary search) and correct
13957 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13959 * grub-core/script/execute.c (grub_script_return): Fix warning.
13961 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13963 * grub-core/script/execute.c (grub_script_return): Fix potential
13965 Reported by: Jim Meyering.
13967 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13969 * po/POTFILES.in: Regenerate.
13970 * util/grub-install.in: Gettextize the strings missed in first pass.
13972 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13974 * Makefile.util.def (grub-mkdevicemap): Removed.
13975 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13976 * include/grub/util/deviceiter.h: Removed.
13977 * util/deviceiter.c: Likewise.
13978 * util/getroot.c (grub_util_get_os_disk): New function.
13979 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13980 replacement for EFI.
13981 * util/grub-mkdevicemap.c: Removed.
13982 * util/grub-probe.c (probe): Handle PRINT_DISK.
13983 (argp_parser): Handle -t disk.
13985 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13987 * util/grub-mkfont.c: Migrate to argp.
13988 * util/grub-mklayout.c: Likewise.
13989 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13990 * util/grub-mkrelpath.c: Likewise.
13991 * util/grub-probe.c: Likewise.
13992 * util/grub-script-check.c: Likewise.
13994 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13996 * util/grub-reboot.in: Add missing datarootdir.
13997 Add missing newline.
13998 * util/grub-set-default.in: Add missing datarootdir.
13999 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
14000 * util/grub-mkrescue.in: Likewise.
14002 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14004 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
14006 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14008 * util/grub-kbdcomp.in: Add decent help and gettextize.
14009 * docs/man/grub-kbdcomp.h2m: New file.
14011 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14013 Migrate grub-mkimage.c to argp.
14015 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14016 (grub-setup): Likewise.
14017 * util/grub-setup.c (print_version): Move to ...
14018 * util/argp_common.c (print_version): ... here.
14019 * util/grub-setup.c (argp_program_version_hook): Move to ...
14020 * util/argp_common.c (argp_program_version_hook): ... here.
14021 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14023 * util/grub-mkimage.c (main): Migrate to argp.
14025 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14027 * util/grub-mkrescue.in: Use same message as
14028 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14029 for better translations.
14031 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14033 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14034 options with generic grub-mkrescue.in with the goal of future
14037 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14039 * grub-core/kern/mm.c: Add missing include of i18n.h
14040 * grub-core/lib/relocator.c: Likewise.
14042 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14044 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14046 (allocate_pages): Check return value.
14047 Replace fatal with error.
14048 (grub_linux_boot): Replace printf with dprintf.
14049 Check find_mmap_size return value.
14050 Replace fatal with error.
14051 Don't call grub_machine_fini.
14052 (grub_load_elf64): Replace printf with dprintf.
14053 (grub_cmd_linux): Likewise.
14054 (grub_cmd_initrd): Likewise.
14055 (grub_cmd_payload): Likewise.
14057 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14059 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14061 * grub-core/video/radeon_fuloong2e.c
14062 (grub_video_radeon_fuloong2e_setup): Likewise.
14063 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14064 * grub-core/video/video.c (grub_video_set_mode): Don't override
14065 standard out of memory message.
14067 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14069 NetBSD disk wedge support.
14071 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14072 [__NetBSD__]: Handle NetBSD disk wedges.
14073 * util/getroot.c (convert_system_partition_to_system_disk)
14074 [__NetBSD__]: Likewise.
14076 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14078 * util/grub-mkconfig.in: Use umask rather than chmod to create
14079 grub.cfg.new to avoid insecure grub.cfg.
14081 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14083 * grub-core/commands/ls.c: Gettextize.
14084 * grub-core/commands/setpci.c: Likewise.
14085 * grub-core/commands/videotest.c: Likewise.
14086 * grub-core/disk/geli.c: Likewise.
14087 * grub-core/kern/mm.c: Likewise.
14088 * grub-core/lib/relocator.c: Likewise.
14089 * grub-core/loader/efi/appleloader.c: Likewise.
14090 * grub-core/loader/i386/xnu.c: Likewise.
14091 * grub-core/loader/ia64/efi/linux.c: Likewise.
14092 * grub-core/loader/xnu.c: Likewise.
14093 * grub-core/net/dns.c: Likewise.
14094 * grub-core/net/net.c: Likewise.
14095 * grub-core/script/lexer.c: Likewise.
14096 * grub-core/script/parser.y: Likewise.
14097 * grub-core/script/yylex.l: Likewise.
14098 * util/getroot.c: Likewise.
14099 * util/grub-setup.c: Likewise.
14101 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14103 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14106 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14108 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14110 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14112 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14114 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14115 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14117 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14119 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14120 * util/grub-install.in: Gettextize.
14121 * util/grub-mkconfig.in: Likewise.
14122 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14124 (grub_warn): Gettextize.
14125 * util/grub-mknetdir.in: Gettextize.
14126 * util/grub-mkrescue.in: Likewise.
14127 * util/grub-mkstandalone.in: Likewise.
14128 * util/grub-reboot.in: Likewise.
14129 * util/grub-set-default.in: Likewise.
14130 * util/grub.d/00_header.in: Likewise.
14131 * util/grub.d/10_hurd.in: Likewise.
14132 * util/grub.d/10_kfreebsd.in: Likewise.
14133 * util/grub.d/10_linux.in: Likewise.
14134 * util/grub.d/10_netbsd.in: Likewise.
14135 * util/grub.d/10_windows.in: Likewise.
14136 * util/grub.d/20_linux_xen.in: Likewise.
14137 * util/grub.d/30_os-prober.in: Likewise.
14138 * po/POTFILES-shell.in: Regenerate.
14140 2012-02-03 Richard Laager <rlaager@wiktel.com>
14142 * util/grub-mkimage.c (main): Fix format-security warning.
14143 * util/grub-mkrelpath.c (main): Likewise.
14144 * util/grub-probe.c (main): Likewise.
14146 2012-02-03 Richard Laager <rlaager@wiktel.com>
14148 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14150 Put back lost PRINT_DRIVE.
14152 2012-02-03 Richard Laager <rlaager@wiktel.com>
14154 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14155 (grub_guess_root_devices): Replace strlen with sizeof.
14157 (find_root_devices_from_poolname): Remove unused variable.
14160 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14162 Support install on multi-device filesystems.
14164 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14165 (grub_guess_root_devices): ...this. Return char **. All users updated.
14166 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14168 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14169 (find_root_devices_from_poolname): ... here.
14170 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14172 (grub_guess_root_device): Rename to ...
14173 (grub_guess_root_devices): ... this. Return char **. All users updated.
14174 * util/grub-install.in: Handle multi-device filesystems.
14175 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14176 argument. All users updated.
14177 Handle multi-device filesystems.
14178 Use 'delim' as separator.
14179 Remove device check to allow filesystems on file.
14180 (main): Support -0 argument. Handle multi-device.
14181 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14182 Fix a cross-device check while on it.
14183 (arguments): Remove root_dev.
14184 (argp_parser): Remove -r.
14185 (main): Remove root_dev.
14187 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14189 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14191 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14193 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14195 Reported by: NODA, Kai <nodakai>.
14197 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14201 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14203 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14204 (grub_ehci_setup_qh): Likewise.
14205 (grub_ehci_find_qh): Likewise.
14206 (grub_ehci_transaction): Likewise.
14207 (grub_ehci_setup_transfer): Likewise.
14208 (grub_ehci_check_transfer): Likewise.
14209 (grub_ehci_portstatus): Likewise.
14210 (grub_ehci_detect_dev): Likewise.
14211 (grub_ehci_transfer_controller_data): New field td_last_phys.
14212 (grub_ehci_setup_transfer): Fill td_last_phys.
14213 (grub_ehci_check_transfer): Use td_last_phys.
14215 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14217 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14218 if no submenu is present.
14220 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14224 * include/grub/usb.h (grub_usbms_protocol_t): New values
14225 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14226 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14227 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14228 (grub_usbms_dev): Add subclass, protocol and intrpt.
14229 Remove in_maxsz and out_maxsz.
14230 (grub_usbms_reset): Rename to ...
14231 (grub_usbms_bo_reset): .. this.
14232 (grub_usbms_cbi_cmd): New function.
14233 (grub_usbms_cbi_reset): Likewise.
14234 (grub_usbms_reset): Likewise.
14235 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14236 (grub_usbms_transfer): Rename to ...
14237 (grub_usbms_transfer_bo): ... this.
14238 (grub_usbms_transfer_cbi): Likewise.
14239 (grub_usbms_transfer): Likewise.
14241 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14242 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14244 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14245 the support for the CS5536 modification thereos and few bugfixes.
14247 * grub-core/Makefile.core.def (ehci): New module.
14248 * grub-core/bus/usb/ehci.c: New file.
14249 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14250 port and hubaddr. All users updated.
14251 Save port and hubaddr into dev structure.
14252 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14254 * include/grub/pci.h (grub_dma_phys2virt): New function.
14255 (grub_dma_virt2phys): Likewise.
14256 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14258 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14260 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14261 check as some mkfs implementations omit it.
14263 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14265 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14267 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14269 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14270 Add new member volname2.
14271 (grub_jfs_label): Use volname2 if available.
14273 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14275 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14276 over last_mounted as seen in image generated by mkfs.nilfs2.
14277 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14279 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14281 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14282 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14283 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14285 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14287 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14290 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14292 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14293 subvolume name (by removing a bogus and useless check).
14295 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14297 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14298 sizeof while on it.
14300 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14302 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14303 (grub_scsi_read_capacity10): ... this.
14304 (grub_scsi_read_capacity16): New function.
14305 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14307 Fix off-by-one error.
14308 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14310 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14311 (grub_scsi_read_capacity10): ... this.
14312 (grub_scsi_read_capacity_data): Rename to ...
14313 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14314 (grub_scsi_read_capacity16): New struct.
14315 (grub_scsi_read_capacity16_data): Likewise.
14316 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14317 grub_scsi_cmd_read_capacity10.
14318 New command grub_scsi_cmd_read_capacity16.
14320 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14322 SCSI >2TiB support.
14324 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14325 (grub_scsi_write16): Likewise.
14326 (grub_scsi_read): Use read16 when necessary.
14327 (grub_scsi_write): Likewise.
14328 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14329 (grub_scsi_write16): Likewise.
14330 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14332 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14334 SCSI write support (for usbms mainly).
14336 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14338 (grub_scsi_write): Implement.
14339 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14341 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14343 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14346 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14348 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14350 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14352 * po/POTFILES.in: Regenerate.
14354 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14356 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14357 with grub_printf to avoid unnecessary fatal failure.
14359 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14361 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14362 (INT_MAX): Likewise.
14363 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14364 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14365 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14366 (strcpy): Likewise.
14367 (strstr): Likewise.
14368 (strchr): Likewise.
14369 (strncpy): Likewise.
14370 (strcat): Likewise.
14371 (strncat): Likewise.
14372 (strcoll): Likewise.
14373 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14374 (GRUB_INT_MAX): Likewise.
14376 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14378 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14380 (optimize_utf8): Likewise.
14381 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14383 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14385 * grub-core/boot/i386/pc/lnxboot.S: Use
14386 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14387 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14389 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14391 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14393 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14395 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14396 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14397 now to avoid double free.
14398 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14400 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14401 * util/grub-probe.c (escape_of_path): Always return a new copy.
14402 (print_full_name): Escape path.
14403 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14404 Fix hints on abstractions.
14406 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14408 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14409 Don't add "root" line if no compatibility hont is available.
14410 Suggested by: Seth Goldberg.
14412 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14414 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14415 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14416 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14417 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14419 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14421 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14423 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14425 * util/grub-pe2elf.c (ehdr): Make static.
14427 (num_sections): Likewise.
14428 (offset): Likewise.
14430 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14432 Eliminate ofpath limits and possible overflows.
14434 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14435 (OF_PATH_MAX): Removed.
14436 (MAX_DISK_CAT): New const.
14437 (find_obppath): Use allocated rather than preallocated buffer.
14438 Return result. Argument of_path removed. All users updated.
14439 Add missing fdstat.
14440 (xrealpath): New function.
14441 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14442 Allocate rather than use preallocated buffer. All users updated.
14443 (__of_path_common): Use allocated rather than preallocatecd buffer.
14444 Return result. Argument of_path removed. All users updated.
14445 (vendor_is_ATA): Read only needed part form the file.
14446 (check_sas): Allocate depending on contents rather than fixed.
14447 (main) [STANDALONE]: Handle NULL result.
14449 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14451 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14453 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14455 Cryptodisk write support.
14457 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14458 (grub_cryptodisk_decrypt): Moved logic to ...
14459 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14460 (grub_cryptodisk_write): Implement.
14461 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14462 (grub_util_fd_write): ... this. Make global.
14463 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14465 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14467 * include/grub/list.h (grub_list_remove): Don't crash if element is
14470 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14472 Rename ofconsole to console.
14474 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14475 as sysnonym to console.
14476 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14477 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14478 Rename grub_ofconsole_ to grub_console_. All users updated
14479 (grub_console_term_output): Rename "ofconsole" to "console".
14480 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14483 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14485 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14487 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14488 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14489 GRUB_DISK_DEVICE_FILE_ID.
14491 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14493 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14494 and improve performance.
14496 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14498 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14499 missing ieee1275/ prefix on whole disk.
14501 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14503 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14504 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14506 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14508 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14510 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14512 Merge common RAID and LVM logic to an abstract diskfilter.
14513 Add LDM support using the same framework.
14515 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14516 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14517 (libgrubmods): Remove grub-core/disk/raid.c and
14518 grub-core/partmap/gpt.c.
14519 * grub-core/Makefile.core.def (ldm): New module.
14520 (raid): Renamed to diskfilter. All users updated.
14521 * grub-core/disk/raid.c: Moved to ...
14522 * grub-core/disk/diskfilter.c: ... here.
14523 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14525 (find_array): Renamed to ...
14526 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14527 (grub_is_array_readable): Renamed to ...
14528 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14529 (insert_array): New argument id.
14530 (is_node_readable): New function.
14531 (scan_device): Rename to ...
14532 (scan_disk): .. this. Restrict to one disk.
14533 (scan_devices): New function.
14534 (grub_diskfilter_iterate): Support multi-LV.
14535 Skip invisible and nameless LVs.
14536 (grub_diskfilter_memberlist): Support multi-LV.
14537 (grub_diskfilter_read_node): New function.
14538 (grub_raid_read): Most of logic moved to ...
14539 (read_segment): ... here
14540 (read_lv): New function.
14541 (grub_diskfilter_get_vg_by_uuid): New function.
14542 (grub_diskfilter_make_raid): Likewise.
14543 * grub-core/disk/ldm.c: New file.
14544 * grub-core/disk/lvm.c (vg_list): Removed.
14545 (lv_count): Likewise.
14546 (scan_depth): Likewise.
14547 (is_lv_readable): Likewise.
14548 (grub_lvm_getvalue): Advance pointer past the number.
14549 (find_lv): Removed.
14550 (do_lvm_scan): Refactored into ...
14551 (grub_lvm_detect): ... this. Support raid.
14552 (grub_lvm_iterate): Removed.
14553 (grub_lvm_memberlist): Likewise.
14554 (grub_lvm_open): Likewise.
14555 (grub_lvm_close): Likewise.
14556 (read_lv): Likewise.
14557 (read_node): Likewise.
14558 (is_node_readable): Likewise.
14559 (is_lv_readable): Likewise.
14560 (grub_lvm_read): Likewise.
14561 (grub_lvm_write): Likewise.
14562 (grub_lvm_dev): Use diskfilter
14563 (GRUB_MOD_INIT): Likewise.
14564 (GRUB_MOD_FINI): Likewise.
14565 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14567 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14568 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14569 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14570 grub_diskfilter_read_node.
14571 Fix a bug with xor.
14572 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14573 grub_diskfilter_read_node.
14574 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14575 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14576 (grub_disk_dev_iterate): Move from here...
14577 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14578 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14580 (grub_hostdisk_find_partition_start): Likewise.
14581 (grub_hostdisk_os_dev_to_grub_drive): New function.
14582 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14583 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14584 * util/getroot.c (make_device_name): ... here.
14585 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14587 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14588 * grub-core/kern/emu/hostdisk.c
14589 (convert_system_partition_to_system_disk): Move to ...
14590 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14591 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14592 * util/getroot.c (device_is_wholedisk): ... here.
14593 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14594 * util/getroot.c (find_system_device): ... here.
14595 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14597 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14598 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14600 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14602 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14604 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14605 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14606 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14608 * include/grub/raid.h: Renamed to ...
14609 * include/grub/diskfilter.h: ... this.
14610 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14611 (GRUB_RAID_LAYOUT_*): Make into array.
14612 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14613 (grub_diskfilter_vg): New struct.
14614 (grub_diskfilter_pv_id): Likewise.
14615 (grub_raid_member): Removed.
14616 (grub_raid_array): Likewise.
14617 (grub_diskfilter_pv): New struct.
14618 (grub_diskfilter_lv): Likewise.
14619 (grub_diskfilter_segment): Likewise.
14620 (grub_diskfilter_node): Likewise.
14621 (grub_diskfilter_get_vg_by_uuid): New proto.
14622 (grub_raid_register): Inline.
14623 (grub_diskfilter_unregister): Likewise.
14624 (grub_diskfilter_make_raid): New proto.
14625 (grub_diskfilter_vg_register): Likewise.
14626 (grub_diskfilter_read_node): Likewise.
14627 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14628 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14629 (grub_util_is_ldm): Likewise.
14630 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14631 (grub_hostdisk_find_partition_start): Likewise.
14632 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14633 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14635 (grub_gpt_partition_map_iterate): New proto.
14636 * include/grub/lvm.h (grub_lvm_vg): Removed.
14637 (grub_lvm_pv): Likewise.
14638 (grub_lvm_lv): Likewise.
14639 (grub_lvm_segment): Likewise.
14640 (grub_lvm_node): Likewise.
14641 * util/getroot.c [...]
14642 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14643 (probe_abstraction): Likewise.
14644 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14645 (main): Remove dead logic.
14647 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14649 Simplify root device discover and don't fail when trying to open
14652 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14654 (get_diskname_from_path): Likewise.
14655 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14658 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14660 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14662 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14664 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14667 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14669 * util/grub-install.in: Add missing \.
14670 Reported by: gentoofan
14672 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14674 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14675 (direct_read): Use correct compressed size.
14676 (grub_squash_read_data): Likewise.
14678 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14680 * docs/grub.texi (Platform limitations): New section.
14681 (Platform-specific operations): Likewise.
14682 * docs/grub-dev.texi (Porting): Likewise.
14684 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14686 IEEE1275 disk write support.
14688 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14690 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14691 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14692 and seek loginc to ...
14693 (grub_ofdisk_prepare): ... here.
14694 (grub_ofdisk_write): Implement.
14696 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14698 ARC disk write support.
14700 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14701 (reopen): New argument writable. All users updated.
14702 Handle required access mode.
14703 (grub_arcdisk_write): Implement.
14704 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14705 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14707 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14709 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14710 (read_sblock): Don't attempt to read superblocks outside the disk size.
14712 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14714 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14715 first superblock to find the second one when possible.
14717 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14719 * util/grub-install.in: Fix an ARC bug.
14720 Print a warning if no platform-specific setup is available.
14722 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14724 Use static allocation rather than scratch pointer in reed_solomon.
14725 It decreases its size significantly and avoids a variable in .text.
14727 * grub-core/lib/reed_solomon.c (scratch): Removed.
14728 (chosenstat): New const or static array.
14730 (errpot): Likewise.
14731 (errpos): Likewise.
14734 (errvals): Likewise.
14735 (eqstat): Likewise.
14736 (pol_evaluate): Replace x with log_x argument. All users updated.
14737 (syndroms): Removed.
14738 (gauss_solve): Use statically allocated arrays.
14739 (rs_recover): Likewise.
14740 Calculate syndroms directly.
14741 (decode_block): Use statically allocated arrays.
14742 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14743 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14745 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14747 Eliminate fixed limit on reed solomon decoder length.
14749 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14750 rather than hardcoding the address.
14751 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14752 no_reed_solomon_length.
14753 Move gate_a20 to no-reed-solomon part.
14754 Don't force a particular size of no reed-solomon part.
14755 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14757 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14758 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14760 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14762 * grub-core/commands/wildcard.c (match_files): Handle filenames
14763 without explicit device.
14764 (wildcard_expand): Don't add explicit device if not already present.
14765 * tests/grub_script_echo1.in: Add a new expansion test.
14767 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14769 Replace single-linked with double-linked lists. It results in more
14770 compact and more efficient code.
14772 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14773 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14774 (grub_list_remove): Moved from here ...
14775 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14776 (grub_prio_list_insert): Set prev.
14777 * include/grub/list.h (grub_list): Add prev. All users updated.
14779 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14781 Handle newer autotools. Add some missing quotes while on it.
14783 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14784 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14785 (pkgdata_DATA): ... here.
14786 * Makefile.util.def (update-grub_lib): Removed.
14787 * conf/Makefile.common (pkglib_DATA): Removed.
14788 (pkglib_SCRIPTS): Likewise.
14789 (pkgdata_DATA): New variable.
14790 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14792 Add missing quotes.
14793 Remove unused variable while on it.
14794 * tests/util/grub-shell.in: Likewise.
14795 * util/grub-install.in: Likewise.
14796 * util/grub-mkconfig.in: Likewise.
14797 * util/grub-mknetdir.in: Likewise.
14798 * util/grub-mkrescue.in: Likewise.
14799 * util/grub-mkstandalone.in: Likewise.
14800 * util/grub.d/00_header.in: Likewise.
14801 * util/grub.d/10_hurd.in: Likewise.
14802 * util/grub.d/10_illumos.in: Likewise.
14803 * util/grub.d/10_kfreebsd.in: Likewise.
14804 * util/grub.d/10_linux.in: Likewise.
14805 * util/grub.d/10_netbsd.in: Likewise.
14806 * util/grub.d/10_windows.in: Likewise.
14807 * util/grub.d/20_linux_xen.in: Likewise.
14808 * util/grub.d/30_os-prober.in: Likewise.
14809 * util/update-grub_lib.in: Removed.
14811 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14813 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14814 a workaround for intel problem.
14816 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14817 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14818 2012-01-23 pfsmorigo
14820 * util/grub-install.in: Support dd'in into PreP partition.
14821 * util/grub-probe.c (probe): Support discovering partition type.
14822 (main): Support -t msdos_parttype.
14824 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14826 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14827 infinite recursion using counter.
14828 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14829 init to skip it if the magic check fails.
14830 (dec_stream_header): Init s->crc32.
14832 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14833 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14834 2012-01-22 Richard Laager <rlaager@wiktel.com>
14836 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14838 (find_bestub): Determine correct size.
14839 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14840 (scan_disk): Align the size down.
14841 Call check pool before find_bestub to have ashift.
14843 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14845 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14846 dprintf in no-malloc zone.
14848 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14850 * configure.ac: Add back in test for limits.h.
14852 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14854 Support 4K-sector NTFS.
14856 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14857 (grub_ntfs_data): Remove blocksize.
14858 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14859 Remove data argument. All users updated.
14861 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14863 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14864 being in .text to avoid dprel references.
14865 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14866 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14867 (grub_arch_highmemsize): Likewise.
14868 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14869 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14870 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14872 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14874 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14876 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14877 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14879 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14881 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14883 (grub_set_datetime_cmos): Likewise.
14885 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14887 Make XZ compression parameters dependent on target and not host CPU.
14889 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14890 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14892 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14894 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14895 set but not used variable.
14897 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14899 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14900 created when no uuid support is compiled into mkfs.reiser.
14902 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14904 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14905 (utf8_to_macroman): Do the opposite.
14906 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14908 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14910 * configure.ac: Refise build qemu_mips w/o unifont.
14912 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14914 Eliminate grub_min/grub_max prone to overflow usage.
14916 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14917 (poll_nonroot_hub): Likewise.
14918 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14919 (grub_affs_label): Likewise.
14920 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14921 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14922 (grub_hfs_label): Likewise.
14923 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14924 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14925 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14926 (zap_leaf_array_get): Likewise.
14927 (dnode_get_path): Likewise.
14928 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14929 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14930 * grub-core/script/execute.c (grub_script_break): Likewise.
14931 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14933 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14934 * include/grub/misc.h (grub_min): Removed.
14935 (grub_max): Likewise.
14937 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14939 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14942 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14944 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14946 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14948 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14950 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14952 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14953 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14955 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14957 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14958 rather than a hack for grub_strncasemap.
14960 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14962 Support multiple initrds
14963 Note: part of this was accidently committed in r3739.
14965 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14967 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14968 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14969 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14970 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14971 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14973 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14975 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14976 disks with unknown size.
14977 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14979 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14981 Remove defines pertaining to arbitrary limits not affecting GRUB
14984 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14985 (EXT2_MAX_SYMLINKCNT): Likewise.
14986 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14987 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14988 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14989 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14990 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14991 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14992 (DN_MAX_OBJECT_SHIFT): Likewise.
14993 (DN_MAX_OFFSET_SHIFT): Likewise.
14994 (DN_MAX_OBJECT): Likewise.
14995 (DNODES_PER_LEVEL_SHIFT): Likewise.
14996 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14997 (SPA_MAXBLOCKSIZE): Likewise.
14998 (SPA_BLOCKSIZES): Likewise.
14999 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
15000 (MZAP_MAX_BLKSZ): Likewise.
15002 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
15004 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
15005 handle NULL appropriately.
15008 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15012 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15014 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15015 * configure.ac: Fix efiemu check.
15017 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15019 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15021 Reported by: adamwill
15023 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15025 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15027 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15029 Fix handling of wide characters in gfxterm.
15031 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15032 (clear_char): Likewise.
15033 (paint_char): Skip code == NULL chars.
15034 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15036 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15038 * grub-core/normal/charset.c: Move comment to right place.
15040 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15042 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15043 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15044 (grub_affs_mount): Revert the correct version checking.
15046 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15048 * docs/grub.texi (Unicode): Mention several other unsupported features.
15050 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15052 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15053 case statements as compile-time one.
15054 (direct_read): Prevent spurious warnings.
15055 (grub_squash_read_data): Likewise.
15057 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15059 Various squash4 fixes and LZO and XZ support.
15061 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15062 Add xzembed source files.
15063 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15064 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15065 (grub_squash_inode): New subtype long_dir.
15066 (SQUASH_TYPE_LONG_DIR): New inode type.
15067 (COMPRESSION): New enum.
15068 (XZBUFSIZ): New const.
15069 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15070 (read_chunk): Use data->decompress.
15071 (zlib_decompress): New function.
15072 (lzo_decompress): Likewise.
15073 (xz_decompress): Likewise.
15074 (squash_mount): Set new data fields.
15075 (grub_squash_iterate_dir): Handle long dir.
15076 (squash_unmount): Free xzdec and xzbuf.
15077 (grub_squash_open): Check ino type.
15078 (direct_read): Stylistic fixes. Use data->decompress.
15079 (grub_squash_read_data): Likewise.
15080 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15081 (get_byte): Likewise.
15082 (grub_zlib_disk_read): Removed.
15083 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15084 (GRUB_POSIX_BOOL_DEFINED): New define.
15085 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15086 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15087 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15088 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15090 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15092 Don't override more informative errors.
15094 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15095 * grub-core/font/font.c (open_section): Likewise.
15096 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15097 filename. Don't override errors.
15098 (grub_cmd_openbsd_ramdisk): Don't override errors.
15099 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15100 (grub_cmd_initrd): Likewise.
15101 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15102 (grub_cmd_initrd): Likewise.
15103 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15104 (grub_cmd_linux): Likewise.
15105 (grub_cmd_initrd): Likewise.
15106 (grub_cmd_payload): Likewise.
15107 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15108 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15109 (grub_cmd_module): Likewise.
15110 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15111 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15112 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15113 (grub_cmd_xnu_mkext): Likewise.
15114 (grub_cmd_xnu_ramdisk): Likewise.
15115 (grub_xnu_check_os_bundle_required): Likewise.
15116 (grub_xnu_load_kext_from_dir): Likewise.
15117 (grub_cmd_xnu_kextdir): Likewise.
15118 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15120 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15122 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15123 as 1024 in block size field. Found on one of my test images.
15124 Small optimisation while on it.
15126 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15128 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15129 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15130 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15131 performance fixes while on it.
15132 (grub_sfs_close): Fix memory leak while on it.
15133 (grub_sfs_label): Convert Latin1 to UTF-8.
15135 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15137 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15138 space to avoid overflows.
15139 (grub_hfs_label): Convert from macroman to UTF-8.
15141 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15143 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15145 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15147 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15149 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15151 * unicode: Import Unicode 6.0 data.
15153 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15155 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15158 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15160 Avoid cutting in the middle of UTF-8 character.
15162 * include/grub/charset.h (grub_getend): New function.
15163 * grub-core/script/function.c (grub_script_function_find): Use
15165 * grub-core/normal/completion.c (add_completion): Likewise.
15167 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15169 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15170 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15171 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15172 (GRUB_UNICODE_TAG_END): Likewise.
15173 (GRUB_UNICODE_LAST_VALID): Likewise.
15175 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15177 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15178 len and make it smaller. All users updated.
15179 * util/import_unicode.py: Put length and not end character.
15182 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15184 Make better Unicode-compliant and unify some UTF-8 code pathes.
15186 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15188 (grub_is_valid_utf8): Use grub_utf8_process.
15189 Check resulting code range.
15190 (grub_utf8_to_ucs4): Use grub_utf8_process.
15191 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15194 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15196 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15198 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15200 * docs/grub.texi (Filesystems): Mention AFS.
15202 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15204 * docs/grub.texi (Filesystems): Clarify restrictions.
15205 (Regexp): Mention non-Unicode regexp behaviour.
15206 (Other): Mention non-Unicode matching behaviour.
15208 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15210 Make HFS implementation use MacRoman.
15212 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15213 (macroman): New const array.
15214 (macroman_to_utf8): New function.
15215 (utf8_to_macroman): Likewise.
15216 (grub_hfs_find_dir): Use utf8_to_macroman.
15217 (grub_hfs_dir): Use macroman_to_utf8.
15218 Set case_insensitive.
15220 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15222 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15224 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15226 Integrate hints into autogeneration scripts.
15228 * docs/grub.texi (Filesystems): Add a hostdisk example.
15229 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15230 (grub-probe): Add ofpath.
15231 * gentpl.py: Remove group nosparc64.
15232 * grub-core/commands/search.c (cache_entry): New struct.
15234 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15235 * grub-core/commands/search_wrap.c (options): Add platform-specific
15237 (grub_cmd_search): Handle platform-specific hints.
15238 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15239 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15240 (grub_util_biosdisk_data): Likewise.
15241 (grub_util_biosdisk_open): Set device_map.
15242 (read_device_map): Handle "" as indication of no map.
15244 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15245 (grub_util_biosdisk_get_compatibility_hint): New function.
15246 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15247 * include/grub/emu/hostdisk.h
15248 (grub_util_biosdisk_get_compatibility_hint): New proto.
15249 * util/grub-install.in: Don't call grub-mkdevicemap.
15250 Add platform-specific hint to load.cfg.
15251 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15252 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15253 hints. Set root preliminary to compatibility hint, not to OS name.
15254 * util/grub-probe.c (PRINT_*): Add hints.
15255 (print): Make static.
15256 (escape_of_path): New function.
15257 (guess_bios_drive): Likewise.
15258 (guess_efi_drive): Likewise.
15259 (guess_baremetal_drive): Likewise.
15260 (print_full_name): Likewise.
15261 (probe): Handle hints.
15263 * util/ieee1275/devicemap.c: Removed.
15264 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15266 (grub_util_devname_to_ofpath): Return NULL on failure.
15268 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15270 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15272 * po/POTFILES.in: Regenerated.
15274 Allow purely long options
15276 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15277 (SHORT_ARG_USAGE): Likewise.
15278 (grub_arg_show_help): Compare opt with help_options.
15279 (parse_option): Receive opt as argument. If makes big simplificatons.
15282 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15284 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15285 Restructure to avoid warning.
15287 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15289 * util/grub-install.in: Account for possible escaped comma in device
15292 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15294 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15297 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15299 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15300 allocation and zero-setting.
15301 (grub_ieee1275_get_devname): Check that alias is complete.
15303 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15305 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15306 unaligned segments.
15308 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15310 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15312 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15313 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15314 Add ieee1275 prefix.
15316 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15318 * docs/grub.texi (Filesystems): Update.
15320 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15322 Support odc, newc and bigendian cpio formats.
15324 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15325 * grub-core/Makefile.core.def (newc): New module.
15327 (cpio_be): Likewise.
15328 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15330 (MAGIC2): Likewise.
15331 (head) [MODE_ODC]: Adapt for the format.
15332 (head) [MODE_NEWC]: Likewise.
15333 (head) [!MODE_*]: Write fields of interest as arrays.
15334 (MAGIC_USTAR): Removed.
15335 (read_number) [MODE_NEWC]: Change to hex.
15336 (read_number) [!MODE_*]: Parse binary arrays.
15337 (grub_cpio_find_file): Factor out the code for better structure and
15338 always use read_number.
15339 (grub_cpio_mount): Use MAGIC and MAGIC2.
15340 (grub_cpio_dir): Exit on first hook non-0 return.
15341 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15342 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15343 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15344 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15345 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15346 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15347 * grub-core/fs/newc.c: New file.
15348 * grub-core/fs/odc.c: Likewise.
15349 * grub-core/fs/cpio_be.c: Likewise.
15351 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15353 Fix handling of tar numbers occupying the whole field.
15355 * grub-core/fs/cpio.c (read_number): New function.
15356 (grub_cpio_find_file): Use read_number instead of strtoull.
15358 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15360 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15361 occupying the whole field size.
15363 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15365 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15367 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15369 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15371 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15373 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15374 TARGET_IMG_LDFLAGS.
15376 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15378 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15379 (mountinfo_entry): Increase the field size to take escaping into
15381 (find_root_device_from_libzfs): Add one byte to size of strings for
15384 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15386 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15388 * util/grub-setup.c (setup): Likewise.
15390 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15392 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15395 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15397 * docs/grub.texi (Internationalisation): New section.
15399 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15401 * docs/grub.texi (Loopback booting): New section.
15403 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15405 * util/grub-mkstandalone.in: Fix minor typo errors.
15407 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15409 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15411 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15412 net/icmp.c and net/icmp6.c.
15413 (http): New module.
15414 (priority_queue): Likewise.
15415 * grub-core/io/bufio.c: Rewritten.
15416 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15417 TYPE_WITH_CONFIGFILE_OPTION.
15418 (legacy_commands): Add bootp and dhcp.
15419 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15420 (grub_legacy_parse): Likewise.
15421 * grub-core/lib/priority_queue.c: New file.
15422 * grub-core/net/arp.c: Add missing license header.
15423 (arp_find_entry): Removed.
15424 (arp_find_entry): Likewise.
15425 (grub_net_arp_resolve): Rename to ...
15426 (grub_net_arp_send_request): ...this.
15427 (grub_net_arp_receive): New card argument.
15428 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15429 Set router and DNS server.
15430 (grub_net_configure_by_dhcp_ack): Handle routing information.
15431 (grub_cmd_bootp): Set checksum.
15432 (grub_bootp_init): Remove net_dhcp.
15433 * grub-core/net/dns.c: New file.
15434 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15436 (get_card_packet): Handle allocation.
15437 (grub_efinet_findcards): Set mtu.
15438 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15439 (get_card_packet): Handle allocation.
15440 (emucard): Set mtu.
15441 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15442 (GRUB_MOD_INIT): Set mtu.
15443 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15445 (get_card_packet): Handle allocation.
15446 (grub_ofnet_findcards): Set mtu.
15447 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15449 (grub_net_recv_ethernet_packet): Handle IPv6.
15450 * grub-core/net/http.c: New file.
15451 * grub-core/net/icmp.c: Likewise.
15452 * grub-core/net/icmp6.c: Likewise.
15453 * grub-core/net/ip.c (ip6addr): New type.
15454 (ip6hdr): Likewise.
15455 (reassemble): Likewise.
15456 (cmp): New function.
15457 (reassembles): New variable.
15458 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15459 (id): New variable.
15460 (send_fragmented): New function.
15461 (grub_net_send_ip_packet): Rename to ...
15462 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15464 (grub_net_recv_ip_packets): Rename to ...
15465 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15466 (free_rsm): New function.
15467 (free_old_fragments): Likewise.
15468 (grub_net_recv_ip4_packets): New function.
15469 (grub_net_send_ip6_packet): Likewise.
15470 (grub_net_send_ip_packet): Likewise.
15471 (grub_net_recv_ip6_packets): Likewise.
15472 (grub_net_recv_ip_packets): Likewise.
15473 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15474 (LINK_LAYER_CACHE_SIZE): New const.
15475 (link_layer_find_entry): New function.
15476 (grub_net_link_layer_add_address): Likewise.
15477 (grub_net_link_layer_resolve_check): Likewise.
15478 (grub_net_link_layer_resolve): Likewise.
15479 (grub_net_ipv6_get_slaac): Likewise.
15480 (grub_net_ipv6_get_link_local): Likewise.
15481 (grub_cmd_ipv6_autoconf): Likewise.
15482 (parse_ip): Handle one number representation.
15483 (parse_ip6): New functoion.
15484 (match_net): Handle IPv6.
15485 (grub_net_resolve_address): Handle IPv6 and DNS.
15486 (grub_net_resolve_net_address): Handle IPv6.
15487 (route_cmp): New function.
15488 (grub_net_route_address): Find best route.
15489 (grub_net_addr_to_str): Handle IPv6.
15490 (grub_net_addr_cmp): New function.
15491 (grub_net_add_addr): Register local route.
15492 (print_net_address): Handle net address.
15493 (grub_net_poll_cards): Retransmit TCP.
15494 (grub_net_poll_cards_idle_real): Likewise.
15495 (have_ahead): New function.
15496 (grub_net_seek_real): Use underlying seek.
15497 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15498 * grub-core/net/tcp.c: New file.
15499 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15500 (cmp): New function.
15502 (tftp_receive): Handle unordered input.
15503 (destroy_pq): New function.
15504 (tftp_close): Close pq.
15505 * grub-core/net/udp.c: Put missing license header.
15506 (grub_net_udp_socket): New function.
15507 (udp_socket_register): Likewise.
15508 (grub_net_udp_close): Likewise.
15509 (grub_net_recv_udp_packet): Check checksum.
15510 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15511 * include/grub/misc.h (grub_memchr): New function.
15512 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15513 (grub_net_card_driver): Return buf in recv.
15514 (grub_net_slaac_mac_list): New struct.
15515 (grub_network_level_protocol_id): Add ipv6.
15516 (grub_net_network_level_addr): Likewise.
15517 (grub_net_network_level_net_addr): Likewise.
15518 (grub_net_app_protocol): Add seek.
15519 (grub_net_socket): Removed.
15520 (grub_net_sockets): Likewise.
15521 (grub_net_socket_register): Likewise.
15522 (grub_net_socket_unregister): Likewise.
15523 (FOR_NET_SOCKETS): Likewise.
15524 (grub_net_add_addr): Add const.
15525 (GRUB_NET_BOOTP_*): New enum.
15526 (grub_net_addr_cmp): New proto.
15527 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15528 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15529 (grub_net_hwaddr_to_str): NEw proto.
15530 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15531 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15532 (grub_dns_init): New proto.
15533 (grub_dns_fini): Likewise.
15534 (grub_net_tcp_retransmit): Likewise.
15535 (grub_net_link_layer_add_address): Likewise.
15536 (grub_net_link_layer_resolve_check): Likewise.
15537 (grub_net_link_layer_resolve): Likewise.
15538 (grub_net_dns_lookup): Likewise.
15539 (grub_net_add_dns_server): Likewise.
15540 (grub_net_remove_dns_server): Likewise.
15541 (GRUB_NET_TRIES): New const.
15542 (GRUB_NET_INTERVAL): Likewise.
15543 * include/grub/net/arp.h: Mostly rewritten.
15544 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15545 * include/grub/net/ip.h: Mostly rewritten.
15546 * include/grub/net/netbuff.h: Indent.
15547 * include/grub/net/tcp.h: New file.
15548 * include/grub/net/udp.h: Mostly rewritten.
15549 * include/grub/priority_queue.h: New file.
15550 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15551 (grub_swap_bytes64_compile_time): Likewise.
15552 (grub_cpu_to_be16_compile_time): Likewise.
15553 (grub_cpu_to_be32_compile_time): Likewise.
15554 (grub_cpu_to_be64_compile_time): Likewise.
15555 (grub_be_to_cpu64_compile_time): Likewise.
15557 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15559 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15560 UINT_TO_PTR with cast.
15562 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15564 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15567 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15569 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15572 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15574 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15577 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15579 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15580 Add missing const attribute.
15581 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15583 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15586 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15588 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15590 (serpent_setkey): Likewise.
15591 (serpent_encrypt_internal): Likewise.
15592 (serpent_decrypt_internal): Likewise.
15593 (serpent_encrypt): Don't put an alignment-increasing cast.
15594 (serpent_decrypt): Likewise.
15595 (serpent_test): Likewise.
15597 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15599 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15601 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15603 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15605 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15607 (PTR_TO_UINT64): Likewise.
15608 (PTR_TO_UINT32): Likewise.
15610 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15612 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15614 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15617 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15619 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15620 text_width > available width a bit more gracefully.
15622 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15624 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15625 current address calculation.
15627 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15629 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15631 (encode_block): Likewise.
15633 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15635 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15638 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15640 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15641 non-RS part to avoid RS messing with GDT.
15642 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15643 Increase to suit in realmode routines.
15645 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15647 * grub-core/kern/i386/realmode.S: Increase alignment.
15648 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15650 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15652 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15654 (syndroms): Compute 0 syndrom.
15655 (rs_recover): Use 0 syndrom.
15657 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15659 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15661 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15663 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15666 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15668 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15670 (get_top_pad): Likewise.
15671 (get_right_pad): Likewise.
15672 (get_bottom_pad): Likewise.
15674 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15676 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15678 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15680 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15681 attribute as the structure isn't guaranteed to be properly aligned.
15682 (grub_efi_pci_device_path): Likewise.
15683 (grub_efi_pccard_device_path): Likewise.
15684 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15685 specify the size of `memory_type'.
15686 (grub_efi_vendor_device_path): Likewise.
15687 (grub_efi_controller_device_path): Likewise.
15688 (grub_efi_acpi_device_path): Likewise.
15689 (grub_efi_expanded_acpi_device_path): Likewise.
15690 (grub_efi_atapi_device_path): Likewise.
15691 (grub_efi_scsi_device_path): Likewise.
15692 (grub_efi_fibre_channel_device_path): Likewise.
15693 (grub_efi_1394_device_path): Likewise.
15694 (grub_efi_usb_device_path): Likewise.
15695 (grub_efi_usb_class_device_path): Likewise.
15696 (grub_efi_i2o_device_path): Likewise.
15697 (grub_efi_mac_address_device_path): Likewise.
15698 (grub_efi_ipv4_device_path): Likewise.
15699 (grub_efi_ipv6_device_path): Likewise.
15700 (grub_efi_infiniband_device_path): Likewise.
15701 (grub_efi_uart_device_path): Likewise.
15702 (grub_efi_vendor_messaging_device_path): Likewise.
15703 (grub_efi_hard_drive_device_path): Likewise.
15704 (grub_efi_cdrom_device_path): Likewise.
15705 (grub_efi_vendor_media_device_path): Likewise.
15706 (grub_efi_file_path_device_path): Likewise.
15707 (grub_efi_protocol_device_path): Likewise.
15708 (grub_efi_piwg_device_path): Likewise.
15709 (grub_efi_bios_device_path): Likewise.
15711 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15713 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15714 (grub_ucs4_to_utf8_alloc): Likewise.
15715 (grub_ucs4_to_utf8): Likewise.
15716 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15717 (grub_ucs4_to_utf8_alloc): Likewise.
15719 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15721 AFFS never uses unicode.
15723 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15724 (grub_latin1_to_utf8): New inline function.
15725 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15727 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15729 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15732 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15734 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15735 (grub_squash_dirent_header): Likewise.
15736 (read_chunk): Don't double swap.
15737 (grub_squash_iterate_dir): Fix swap sizes.
15739 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15741 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15743 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15745 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15746 (grub_hfs_iterate_dir): Likewise.
15748 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15750 Fix video on platforms where unaligned access is forbidden.
15751 Make several optimisations while on it.
15753 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15754 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15755 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15756 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15758 (grub_video_fbblit_replace_16bit_1bit):
15759 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15760 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15761 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15762 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15763 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15764 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15765 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15766 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15767 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15768 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15769 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15770 (grub_video_fbblit_replace_index_RGB888): Likewise.
15771 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15772 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15773 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15774 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15775 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15776 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15777 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15779 (grub_video_fbblit_blend_XXX565_1bit):
15780 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15781 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15782 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15784 * grub-core/video/fb/video_fb.c (common_blitter)
15785 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15786 (grub_video_fb_create_render_target_from_pointer)
15787 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15788 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15789 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15791 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15793 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15795 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15796 HH22 and HM10 relocations.
15798 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15800 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15802 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15804 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15805 allocation succeeded.
15807 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15809 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15810 argument a u8 pointer. All users updated.
15811 Handle unaligned buffers.
15813 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15815 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15816 add_part to workaround compiler bug.
15818 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15820 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15822 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15824 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15825 Reserve alignment invariants.
15826 (grub_multiboot_load): Likewise.
15827 (retrieve_video_parameters): Likewise.
15828 (grub_multiboot_make_mbi): Likewise.
15830 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15832 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15835 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15837 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15838 (grub_pata_pio_write): Likewise.
15840 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15842 Add noreturn attributes and remove unreachable code.
15844 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15846 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15847 code. Mark as noreturn.
15848 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15849 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15850 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15852 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15853 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15854 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15855 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15856 * include/grub/kernel.h (grub_main): Mark as noreturn.
15857 * include/grub/reader.h (grub_rescue_run): Likewise.
15859 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15861 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15862 redundant declaration.
15864 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15866 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15867 redundant declaration.
15868 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15870 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15872 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15873 to ensure alignment.
15874 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15875 alignment. Ensure tmp alignment.
15876 (grub_cmd_hdparm): Ensure buf alignment.
15877 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15878 to ensure alignment.
15879 (grub_ata_dumpinfo): Ensure text alignment.
15880 (grub_atapi_identify): Preserve alignment invariant.
15881 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15883 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15885 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15886 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15887 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15888 * include/grub/misc.h (grub_reboot)
15889 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15890 (grub_halt) [__mips__]: Likewise.
15892 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15894 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15895 Remove redundant declaration.
15896 (grub_mmap_get_post64): Likewise.
15897 (grub_mmap_get_upper): Likewise.
15898 (grub_mmap_get_lower): Likewise.
15900 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15902 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15903 uint32_t * to ensure alignment.
15904 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15906 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15908 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15909 uint16_t * to ensure alignment.
15910 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15913 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15915 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15916 to ensure alignment.
15917 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15919 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15921 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15922 Handle unaligned pointers.
15925 (fixup): Use byte access instead of v16at.
15926 (find_attr): Fix imporper usage of v32at.
15927 (read_data): Likewise.
15928 (list_file): Handle byte-swapping and unaligned strings.
15929 (grub_ntfs_label): Likewise.
15931 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15933 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15934 as it's not necessarily aligned.
15936 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15938 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15939 redundant declaration.
15940 (grub_serial_init): Likewise.
15941 (grub_terminfo_init): Likewise.
15943 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15945 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15947 (ZAP_HASH_IDX): Likewise.
15948 (ZAP_LEAF_HASH_SHIFT): Likewise.
15949 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15950 (LEAF_HASH): Likewise.
15951 (ZAP_LEAF_NUMCHUNKS): Likewise.
15952 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15953 alignment invariants. Return pointer. All users updated.
15954 (ZAP_LEAF_ENTRY): Make into inline function.
15957 (xor_out): Use grub_crypto_xor.
15958 (dnode_get_path): Use grub_get_unaligned.
15959 (nvlist_find_value): Likewise.
15960 (grub_zfs_nvlist_lookup_uint64): Likewise.
15961 (grub_zfs_nvlist_lookup_string): Likewise.
15962 (get_nvlist_size): Likewise.
15963 (grub_zfs_open): Likewise.
15964 (fill_fs_info): Likewise.
15965 (grub_zfs_dir): Likewise.
15966 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15967 alignment invariants.
15968 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15969 necessarily aligned.
15971 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15973 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15975 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15977 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15978 arithmetic to conserve alignment invariants.
15980 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15982 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15983 redundant declaration.
15984 (grub_efiemu_mm_obtain_request): Likewise.
15985 (grub_efiemu_prepare): Likewise.
15987 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15989 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15992 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15994 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15995 case of aunaligned recptr.
15996 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15998 (grub_hfsplus_btree_search): Handle unaligned index.
16000 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16002 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
16003 to get freetag and skip.
16005 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16007 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
16009 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16010 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16012 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16014 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16015 name for checksum and fix allocation algorithm.
16017 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16019 * include/grub/types.h (grub_properly_aligned_t): New type.
16020 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16021 (grub_get_unaligned16): Add explicit casts.
16022 (grub_get_unaligned32): Likewise.
16023 (grub_get_unaligned64): Likewise.
16024 (grub_set_unaligned16): New function.
16025 (grub_set_unaligned32): Likewise.
16027 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16029 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16031 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16033 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16034 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16035 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16037 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16039 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16042 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16044 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16045 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16047 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16049 Unify and improve RAID and crypto xor.
16051 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16052 changed to grub_crypto_xor
16053 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16054 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16055 Use bigger types when possible.
16057 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16059 * grub-core/disk/raid.c (scan_devices): Fix condition.
16061 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16063 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16064 Make name a const ptr.
16066 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16068 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16069 first argument a const pointer.
16070 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16071 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16073 (grub_children_iterate): Likewise.
16074 (grub_machine_mmap_iterate): Remove redundant declaration.
16076 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16078 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16079 (grub_cmd_acpi) [!x86]: Disable EBDA.
16081 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16083 Enable UTF8 in gnulib regexp.
16085 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16086 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16087 (isupper): Use grub_isupper.
16088 (isascii): New inline function.
16089 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16090 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16091 * grub-core/normal/charset.c (grub_utf8_process): New function.
16092 (grub_utf8_to_utf16): Use grub_utf8_process.
16093 (grub_encode_utf8_character): New function.
16094 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16095 * include/grub/charset.h (grub_utf8_process): New declaration.
16096 (grub_encode_utf8_character): Likewise.
16097 * include/grub/misc.h (grub_islower): New inline function.
16098 (grub_isupper): Likewise.
16099 (grub_strchrsub): Moved down to fix the definitions.
16101 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16103 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16106 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16108 * include/grub/loader.h (grub_loader_register_preboot_hook):
16109 Use struct preboot * and not void * for handle. All users updated.
16110 (grub_loader_unregister_preboot_hook): Likewise.
16112 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16114 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16115 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16116 UTF-16-BE. All users updated.
16117 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16118 (grub_hfsplus_iterate_dir): Likewise.
16119 (grub_hfsplus_label): Likewise.
16121 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16123 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16125 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16127 Add missing const qualifiers.
16129 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16130 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16131 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16132 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16133 (grub_lvm_check_flag): Likewise.
16134 * grub-core/efiemu/i386/coredetect.c
16135 (grub_efiemu_get_default_core_name): Likewise
16136 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16137 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16138 * grub-core/fs/ntfs.c (fixup): Likewise.
16139 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16140 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16141 (fzap_lookup): Likewise.
16142 (zap_lookup): Likewise.
16143 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16144 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16145 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16146 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16147 (grub_freebsd_add_meta_module): Likewise.
16148 (grub_cmd_freebsd_module): Likewise.
16149 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16150 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16151 (grub_xnu_writetree_get_size): Likewise.
16152 (grub_xnu_writetree_toheap_real): Likewise.
16153 (grub_xnu_find_key): Likewise.
16154 (grub_xnu_create_key): Likewise.
16155 (grub_xnu_create_value): Likewise.
16156 (grub_xnu_register_memory): Likewise.
16157 (grub_xnu_check_os_bundle_required): Likewise.
16158 (grub_xnu_scan_dir_for_kexts): Likewise.
16159 (grub_xnu_load_kext_from_dir): Likewise.
16160 * grub-core/normal/color.c (color_list): Likewise.
16161 * grub-core/normal/completion.c (current_word): Likewise.
16162 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16163 * grub-core/term/serial.c (grub_serial_find): Likewise.
16164 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16165 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16167 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16168 (grub_freebsd_add_meta_module): Likewise.
16169 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16170 * include/grub/net.h (grub_net_card_driver): Likewise.
16171 (grub_net_card): Likewise.
16172 (grub_net_app_protocol): Likewise.
16173 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16174 * include/grub/serial.h (grub_serial_find): Likewise.
16175 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16176 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16177 (grub_xnu_create_value): Likewise.
16178 (grub_xnu_find_key): Likewise.
16179 (grub_xnu_scan_dir_for_kexts): Likewise.
16180 (grub_xnu_load_kext_from_dir): Likewise.
16182 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16183 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16184 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16185 Moved from here ...
16186 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16188 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16190 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16192 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16194 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16195 (read_device): Fix size calculation.
16197 2011-11-25 Robert Millan <rmh@gnu.org>
16199 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16200 (find_root_device_from_libzfs): Add zpool output parser to be used
16201 as fallback when libzfs isn't available.
16203 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16205 * po/Makefile.in.in: Add missing escape-continuation.
16207 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16209 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16211 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16213 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16215 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16217 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16219 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16221 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16223 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16225 * grub-core/lib/adler32.c: Add missing license specification.
16226 * grub-core/lib/crc64.c: Likewise.
16227 * grub-core/loader/i386/pc/plan9.c: Likewise.
16228 * grub-core/partmap/plan.c: Likewise.
16230 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16232 Add facility to debug GRUB with gdb under qemu.
16234 * grub-core/gdb_grub.in: New file.
16235 * grub-core/gmodule.pl.in: Likewise.
16236 * grub-core/Makefile.core.def (gmodule.pl): New script.
16237 (gdb_grub): Likewise.
16239 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16241 * util/grub-mount.c (argp_parser): Accept relative pathes.
16242 * util/grub-fstest.c (argp_parser): Likewise.
16244 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16248 * Makefile.util.def (libgrubmods): Add
16249 grub-core/partmap/plan.c.
16250 * docs/grub.texi: Notice Plan9 support.
16251 * grub-core/Makefile.core.def (plan9): New module.
16252 (part_plan): Likewise.
16253 * grub-core/loader/i386/pc/plan9.c: New file.
16254 * grub-core/partmap/plan.c: Likewise.
16255 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16257 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16258 * include/grub/mm.h (grub_extend_alloc): New inline function.
16260 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16262 Make Reed-Solomon faster by using power of generator representation of
16265 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16266 (gf_double_t): Likewise.
16267 (gf_invert): Removed.
16268 (gf_powx): New array.
16269 (gf_powx_inv): Likewise.
16270 (scratch): Move higher.
16271 (gf_reduce): Removed.
16272 (gf_mul): Use powx.
16273 (gf_invert): Likewise.
16274 (init_inverts): Replaced with ...
16275 (init_powx): ...this. All users updated.
16276 (pol_evaluate): Replace multiplications with additions.
16277 (rs_encode): Likewise.
16278 (gauss_eliminate): Call gf_invert.
16279 (grub_reed_solomon_add_redundancy): Call init_powx.
16280 (grub_reed_solomon_recover): Call init_powx unconditionally.
16282 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16284 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16286 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16288 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16289 disk->partiton for safety.
16291 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16293 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16295 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16297 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16299 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16301 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16303 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16305 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16307 Fix spaces handling in proc/self/mountinfo.
16309 * util/getroot.c (unescape): New function.
16310 (grub_find_root_device_from_mountinfo): Use unescape.
16312 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16314 Support ZFS embedding.
16316 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16317 (grub_zfs_fs): Register grub_zfs_embed.
16319 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16321 Fix MIPS compilation.
16323 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16324 * include/grub/offsets.h: Rename decompressor fields from
16325 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16326 * util/grub-mkimage.c (image_targets): Use new names.
16328 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16330 Defer multiboot device parsing until we're in compressed part.
16332 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16333 bsd_part. setdevice has fallen into disuse.
16334 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16335 (bsd_part): Likewise.
16336 (boot_dev): New variable.
16337 (multiboot_trampoline): Don't parse multiboot device.
16338 Pass multiboot device in %edx.
16339 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16341 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16343 * grub-core/kern/i386/pc/startup.S: Save edx.
16344 (grub_boot_drive): Removed.
16345 (grub_install_dos_part): Likewise.
16346 (grub_install_bsd_part): Likewise.
16347 (grub_boot_device): New variable.
16348 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16349 (grub_install_bsd_part): Likewise.
16350 (grub_boot_drive): Likewise.
16351 (grub_boot_device): New variable.
16352 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16354 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16355 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16356 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16357 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16358 * util/grub-install.in: Remove redundant condition.
16360 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16362 Fix bug introduced by previous commit.
16364 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16366 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16368 Use decompressors framework on i386-pc. It increases core size
16369 by 46 bytes but improves compatibility and maintainability.
16371 * grub-core/Makefile.core.def (lzma_decompress): New image.
16372 (kernel): Add i386_pc_ldflags.
16373 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16374 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16375 to real_to_prot, prot_to_real and device info.
16376 * include/grub/offsets.h: Renamed decompressor offsets.
16377 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16378 (image_target_desc): Remove raw_size and rename decompressor fields.
16379 (compress_kernel): Handle lzma.
16380 (generate_image): Handle decompressors on i386-pc.
16382 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16384 * configure.ac: Add -fno-asynchronous-unwind-tables.
16386 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16388 Move assembly code to C by using intwrap. It increases core size
16389 by 88 bytes but improves compatibility and maintainability.
16391 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16392 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16393 ... here. Translated to C.
16394 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16395 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16396 ... here. Translated to C.
16397 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16398 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16399 ... here. Translated to C.
16400 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16401 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16402 ... here. Translated to C.
16403 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16404 * grub-core/term/i386/pc/console.c (grub_console_cls):
16405 ... here. Translated to C.
16406 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16407 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16408 ... here. Translated to C.
16409 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16410 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16412 * grub-core/term/i386/pc/console.c (int10_9): New function.
16413 (grub_console_putchar): Likewise.
16414 * include/grub/i386/pc/console.h: Removed the not anymore shared
16417 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16419 Move grub_chainloader_real_boot out of the kernel.
16421 * grub-core/Makefile.am: Remove machine/loader.h.
16422 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16424 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16426 (grub_relocator16_keep_a20_enabled): Likewise.
16427 (grub_relocator16_boot): Fill new variables.
16428 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16429 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16431 (grub_chainloader_unload): Likewise.
16432 (grub_chainloader_cmd): Likewise.
16433 * include/grub/i386/pc/loader.h: Removed.
16434 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16435 and esi. All initialisers updated.
16437 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16438 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16440 * Makefile.util.def (grub-mount): New util.
16441 * .bzrignore: Add grub-mount.
16442 * configure.ac: Check for fuse and enable grub-mount if available.
16443 * docs/man/grub-mount.h2m: New file.
16444 * util/grub-mount.c: Likewise.
16446 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16448 * grub-core/commands/efi/fixvideo.c: Gettextize.
16449 * grub-core/commands/hashsum.c: Likewise.
16450 * grub-core/commands/i386/cmostest.c: Likewise.
16451 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16452 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16453 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16454 * grub-core/commands/lsmmap.c: Likewise.
16455 * grub-core/commands/menuentry.c: Likewise.
16456 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16457 * grub-core/commands/setpci.c: Likewise.
16458 * grub-core/loader/i386/bsd.c: Likewise.
16459 * grub-core/loader/i386/linux.c: Likewise.
16460 * util/getroot.c: Likewise.
16461 * util/grub-editenv.c: Likewise.
16462 * util/grub-fstest.c: Likewise.
16463 * util/grub-mkfont.c: Likewise.
16464 * util/grub-mkimage.c: Likewise.
16465 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16466 * util/grub-pe2elf.c: Likewise.
16467 * util/grub-probe.c: Likewise.
16468 * util/grub-setup.c: Likewise.
16469 * util/ieee1275/ofpath.c: Likewise.
16470 * util/misc.c: Likewise.
16471 * util/raid.c: Likewise.
16473 2011-11-11 Robert Millan <rmh@gnu.org>
16475 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16476 __attribute__((unused)) from `os_dev', which *is* being used.
16478 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16480 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16482 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16483 GRUB_IA64_DL_GOT_ALIGN.
16484 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16485 GRUB_IA64_DL_TRAMP_ALIGN.
16487 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16489 Replace grub_fatal with normal errors in i386 linux loader.
16491 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16492 (allocate_pages): Check find_efi_mmap_size return value.
16493 (grub_e820_add_region): Return error.
16494 (grub_linux_boot): Check mmap return value.
16496 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16498 * grub-core/commands/acpihalt.c: Gettextized.
16499 * grub-core/commands/cacheinfo.c: Likewise.
16500 * grub-core/commands/cmp.c: Likewise.
16501 * grub-core/commands/efi/loadbios.c: Likewise.
16502 * grub-core/commands/gptsync.c: Likewise.
16503 * grub-core/commands/ieee1275/suspend.c: Likewise.
16504 * grub-core/commands/legacycfg.c: Likewise.
16505 * grub-core/commands/memrw.c: Likewise.
16506 * grub-core/commands/minicmd.c: Likewise.
16507 * grub-core/commands/parttool.c: Likewise.
16508 * grub-core/commands/time.c: Likewise.
16509 * grub-core/commands/videoinfo.c: Likewise.
16510 * grub-core/disk/geli.c: Likewise.
16511 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16512 * grub-core/disk/luks.c: Likewise.
16513 * grub-core/disk/lvm.c: Likewise.
16514 * grub-core/font/font_cmd.c: Likewise.
16515 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16516 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16517 * grub-core/gfxmenu/view.c: Likewise.
16518 * grub-core/kern/emu/hostdisk.c: Likewise.
16519 * grub-core/kern/emu/main.c: Likewise.
16520 * grub-core/kern/emu/misc.c: Likewise.
16521 * grub-core/kern/emu/mm.c: Likewise.
16522 * grub-core/kern/mips/arc/init.c: Likewise.
16523 * grub-core/kern/mips/loongson/init.c: Likewise.
16524 * grub-core/kern/partition.c: Likewise.
16525 * grub-core/lib/i386/halt.c: Likewise.
16526 * grub-core/lib/mips/arc/reboot.c: Likewise.
16527 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16528 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16529 * grub-core/loader/i386/xnu.c: Likewise.
16530 * grub-core/loader/multiboot.c: Likewise.
16531 * grub-core/net/bootp.c: Likewise.
16532 * grub-core/net/net.c: Likewise.
16533 * grub-core/normal/term.c: Likewise.
16534 * grub-core/partmap/bsdlabel.c: Likewise.
16535 * grub-core/parttool/msdospart.c: Likewise.
16536 * grub-core/term/gfxterm.c: Likewise.
16537 * grub-core/term/terminfo.c: Likewise.
16538 * grub-core/video/i386/pc/vbe.c: Likewise.
16539 * util/grub-menulst2cfg.c: Likewise.
16540 * util/grub-mkdevicemap.c: Likewise.
16541 * util/grub-mklayout.c: Likewise.
16542 * util/grub-mkrelpath.c: Likewise.
16543 * util/grub-script-check.c: Likewise.
16544 * util/ieee1275/grub-ofpathname.c: Likewise.
16545 * util/resolve.c: Likewise.
16547 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16549 Support %1$d syntax.
16551 * tests/printf_unit_test.c: New file.
16552 * Makefile.util.def (printf_test): New test.
16553 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16555 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16557 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16560 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16562 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16564 * grub-core/font/font.c (grub_font_load): Likewise.
16566 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16568 * util/grub-macho2img.c: Add comment concerning gettext.
16569 * grub-core/lib/legacy_parse.c: Likewise.
16571 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16573 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16574 (grub_xvasprintf): Likewise.
16576 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16578 Add const keyword to grub_env_get and gettextize week days.
16580 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16581 (grub_read_hook_datetime): Return const char *.
16582 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16584 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16586 (grub_get_weekday_name): Return const char *. Call gettext.
16587 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16588 char * and len as the argument. All users updated.
16589 (grub_script_argv_split_append): Receive const char *.
16590 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16591 * include/grub/env.h (grub_env_get): Likewise.
16592 (grub_env_read_hook_t): Return const char *.
16593 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16594 (grub_script_argv_split_append): Likewise.
16596 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16598 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16600 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16602 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16603 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16605 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16607 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16610 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16612 Fix mips compilation.
16614 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16616 (hashes): Use in embed decoder as well (for sizes).
16617 (dec_stream_header): Fix embed decompressor logic.
16618 (dec_stream_footer): Likewise.
16620 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16622 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16623 an error and not a fatal on unrecognised relocation types.
16625 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16627 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16628 Issue error rather than printf on unknown arguments.
16630 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16632 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16635 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16637 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16640 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16642 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16643 leftover debug printf.
16645 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16647 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16649 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16651 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16654 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16656 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16658 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16660 Allow all modules to perform serial IO
16662 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16663 * include/grub/serial.h (grub_serial_port_configure): New inline
16665 (grub_serial_port_fetch): Likewise.
16666 (grub_serial_port_put): Likewise.
16667 (grub_serial_port_fini): Likewise.
16668 (grub_serial_find): New proto.
16670 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16672 Put symlink at the end of the node and fix a potential
16675 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16676 Make symlink into an array.
16677 (set_rockridge): Set have_symlink and alloc_dirents.
16678 (grub_iso9660_read_symlink): Use new layout.
16679 (grub_iso9660_iterate_dir): Fix memory corruption.
16681 (grub_iso9660_dir): Set have_symlink.
16682 (grub_iso9660_open): Likewise.
16684 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16686 Remove local keyword.
16688 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16689 (version_test_gt): Likewise.
16690 (version_find_latest): Likewise.
16691 (gettext_printf): Likewise.
16692 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16694 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16696 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16698 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16700 Fix ZFS memory and resource leaks.
16702 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16705 (fill_vdev_info): New parameter inserted. All users updated.
16706 (check_pool_label): Likewise.
16707 (scan_disk): Likewise.
16708 (scan_devices): Close non-inserted disks.
16709 (fzap_iterate): Free l.
16710 (unmount_device): Free children descripto memory.
16712 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16714 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16715 argument (access out of bounds).
16717 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16719 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16722 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16724 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16727 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16729 Fix several memory leaks.
16731 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16732 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16733 (grub_cpio_dir): Likewise.
16734 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16735 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16736 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16737 (grub_romfs_label): Likewise.
16738 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16739 (squash_unmount): New function.
16740 (grub_squash_dir): Fix memory leak.
16741 (grub_squash_open): Likewise.
16742 (grub_squash_read): Likewise.
16743 (grub_squash_mtime): Likewise.
16744 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16745 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16746 * util/grub-fstest.c (fstest): Likewise.
16748 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16750 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16751 avoid accessing beyond the array.
16753 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16755 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16757 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16759 Several AFFS fixes.
16761 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16762 (GRUB_AFFS_FLAG_FFS): Removed.
16763 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16764 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16765 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16766 (grub_fshelp_node): Make block 32-bit.
16767 Add block_cache and last_block_cache.
16768 (grub_affs_read_block): Fill and use block cache.
16769 (grub_affs_read_file): Removed.
16770 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16772 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16774 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16776 (grub_affs_close): Free block cache.
16777 (grub_affs_read): Use grub_fshelp_read_file directly.
16779 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16781 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16784 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16786 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16788 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16791 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16793 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16795 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16796 byteswap when needed.
16798 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16800 Fix FreeBSD compilation.
16802 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16803 to avoid circular dependency.
16804 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16805 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16806 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16808 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16810 Fix ZFS crypto error types.
16812 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16813 (grub_gcm_decrypt): Likewise.
16814 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16817 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16821 * Makefile.util.def (10_illumos): New script.
16822 * configure.ac: Set COND_HOST_ILLUMOS.
16823 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16824 Support Illumos calls.
16825 (find_partition_start) [__sun__]: Likewise.
16826 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16827 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16828 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16829 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16831 * util/grub-probe.c (probe) [__sun__]: Do character check.
16832 * util/grub.d/10_illumos.in: New file.
16834 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16836 Support escaped commas in hostdisk.
16838 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16839 (find_grub_drive): Use unescape_cmp.
16840 (make_device_name): Escape commas.
16842 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16844 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16846 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16848 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16851 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16853 Support trampoline jumps on powerpc.
16855 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16857 (grub_dl_load_segments): Set mod->sz.
16858 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16860 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16862 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16864 (trampoline): New struct.
16865 (trampoline_template): New const.
16866 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16867 * include/grub/dl.h (grub_dl): Add sz element.
16868 [__powerpc__]: Follow __ia64__.
16869 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16870 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16871 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16872 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16874 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16876 ZFS crypto support.
16878 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16879 * grub-core/Makefile.core.def (zfscrypt): New module.
16880 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16881 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16882 it. All users updated.
16883 (grub_zfs_decrypt): New var.
16884 (grub_zfs_load_key): Likewise.
16885 (zio_checksum_functions): Add SHA256+MAC.
16886 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16887 (zio_read): Handle encrypted blocks.
16888 (zap_verify): Remove incorrect check.
16889 (fzap_iterate): Handle non-standard fzap.
16890 (zap_iterate): Likewise.
16891 (zap_iterate_u64): New function.
16892 (dnode_get_fullpath): Load keys.
16893 * grub-core/fs/zfs/zfscrypt.c: New file.
16894 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16895 (grub_crypto_ecb_encrypt): Make input const.
16896 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16897 (grub_crypto_ecb_encrypt): Make input const.
16898 (GRUB_CIPHER_AES): New macro.
16899 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16900 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16901 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16902 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16903 prefix. All users updated.
16904 (grub_zfs_add_key): New proto.
16905 (grub_zfs_decrypt): Likewise.
16906 (grub_zfs_load_key): Likewise.
16907 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16908 * util/grub-fstest.c (options): Add -K option.
16909 (argp_parser): Likewise.
16911 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16913 Support zle compression on ZFS.
16915 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16916 (decomp_table): Add zle.
16917 * include/grub/zfs/zio.h (zio_compress): Add zle.
16919 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16921 Support BtrFS embedding.
16923 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16924 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16925 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16926 * util/grub-setup.c (setup): Use fs embedding if available.
16927 Add additional sanity check.
16929 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16931 * util/grub-install.in: Fix condition for config_opt.
16933 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16935 Support third redundancy strip on raidz3.
16937 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16938 Return error on singularity. All users updated.
16939 (read_device): Don't stop on 3rd failure on raidz3.
16941 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16943 Support case-insensitive ZFS subvolumes.
16945 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16947 (zap_hash): Likewise.
16948 (name_cmp): New function.
16949 (zap_leaf_array_equal): New parameter case_insensitive.
16951 (zap_leaf_lookup): Likewise.
16952 (fzap_lookup): Likewise.
16953 (zap_lookup): Likewise.
16954 (dnode_get_path): New parameter case_insensitive. Retrieve case
16955 sensitiviness of a volume. All users updated.
16956 (dnode_get_fullpath): New parameter case_insensitive.
16958 (grub_zfs_dir): Set info.case_insensitiveness.
16960 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16962 Support second redundancy strip on raidz(2,3).
16964 * grub-core/fs/zfs/zfs.c (powx): New array.
16965 (powx_inv): Likewise.
16967 (xor_out): New function.
16968 (gf_mul): Likewise.
16969 (recovery): Likewise.
16970 (read_device): Use second redundancy strip.
16972 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16974 Use a power of generator representation of GF(256) multiplication group
16975 to save space time and complexity.
16977 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16978 (raid6_table2): Likewise.
16980 (powx_inv): Likewise.
16982 (grub_raid_block_mul): Replace with ...
16983 (grub_raid_block_mulx): ...this.
16984 (grub_raid6_init_table): Rewritten.
16985 (grub_raid6_recover): Use power of generator representation.
16987 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16989 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16990 for the right device.
16992 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16994 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16995 expected by grub-mkimage and it's more clear since there is no implicit
16998 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
17000 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
17002 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17004 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
17006 * util/grub-mkrescue.in: Fix handling xorriso option.
17008 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17010 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17013 2011-11-03 crocket <crockabiscuit@gmail.com>
17015 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17017 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17019 XZ CRC64 and SHA256 support.
17021 * Makefile.util.def (libgrubmods): Add crc64.c.
17022 * grub-core/Makefile.core.def (crc64): New module.
17023 * grub-core/lib/crc64.c: New file.
17024 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17025 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17027 (MAX_HASH_SIZE): New define.
17028 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17029 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17030 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17031 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17032 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17033 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17034 Handle non-crc32 hashes.
17035 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17036 (dec_stream_header): Handle non-crc32 hashes.
17037 (dec_stream_footer): Likewise.
17038 (dec_block_header): Likewise.
17039 (dec_main): Likewise.
17040 (xz_dec_init): Likewise.
17041 (xz_dec_reset): Likewise.
17042 (xz_dec_end): Likewise.
17043 * util/import_gcry.py: Add CRC64 line.
17045 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17047 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17050 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17052 Make reiserfs label retrieval similar to other *_label functions.
17054 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17055 (REISERFS_MAX_LABEL_LENGTH): Removed.
17056 (REISERFS_LABEL_OFFSET): Likewise.
17057 (grub_reiserfs_label): Rewritten.
17059 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17061 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17064 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17066 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17068 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17070 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17071 drive failure on both raidz and raidz2.
17073 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17075 Fix RAIDZ(2) for >= 5 devices.
17077 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17078 asize argument. All users updated.
17080 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17084 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17085 (fill_vdev_info_real): Set ashift.
17086 (read_device): Rewrite RAIDZ part based on reverse engineering.
17088 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17090 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17091 don't report potentially unavialiable fields in debug output.
17092 (find_path): Fix double-free and memory leak.
17094 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17096 Read label on UFS1.
17098 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17099 (grub_ufs_fs): Always set .label.
17101 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17105 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17106 (grub_ufs_data): New field log2_blksz.
17107 (grub_ufs_read_file): Use shifts.
17108 (grub_ufs_mount): Check block size and logarithm it.
17110 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17112 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17115 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17117 Handle symlinks and long names on tar and cpio.
17119 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17120 (ATTR_FILE): Likewise.
17121 (ATTR_DIR): Likewise.
17122 (ATTR_LNK): Likewise.
17123 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17124 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17126 (grub_cpio_mount): Zero-fill data.
17127 (handle_symlink): New function.
17128 (grub_cpio_dir): Handle symlinks.
17129 (grub_cpio_open): Likewise.
17130 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17132 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17134 Fix iso9660 filename limitations and fix memory leaks.
17136 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17137 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17139 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17141 Fix JFS file name length limitations.
17143 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17144 (grub_jfs_diropen): Fix maximum filename length.
17145 (grub_jfs_getent): Fix filename length.
17146 (grub_jfs_lookup_symlink): Fix size checks.
17148 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17150 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17153 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17155 Leverage BFS implementation to read AFS.
17157 * Makefile.util.def (libgrubmods): Add afs.c.
17158 * grub-core/Makefile.core.def (afs): New module
17159 * grub-core/fs/afs.c: New file.
17160 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17162 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17164 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17166 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17168 * grub-core/fs/bfs.c: Run indent.
17170 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17172 BFS implementation based on the specification.
17174 * grub-core/fs/bfs.c: New file.
17175 * Makefile.util.def (libgrubmods): Add bfs.c.
17176 * grub-core/Makefile.core.def (bfs): New module.
17178 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17180 * util/grub-fstest.c (cmd_cp): Clarify error message.
17181 (cmd_cmp): Likewise.
17183 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17185 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17188 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17190 Remove afs and befs because of copyright problem.
17192 * grub-core/fs/afs.c: Removed.
17193 * grub-core/fs/afs_be.c: Removed.
17194 * grub-core/fs/befs.c: Removed.
17195 * grub-core/fs/befs_be.c: Removed.
17196 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17197 * grub-core/Makefile.core.def (afs): Removed.
17198 (afs_be): Likewise.
17200 (befs_be): Likewise.
17202 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17204 Prefer rockridge over Joliet.
17206 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17208 (set_rockridge): ... here.
17209 (grub_iso9660_mount): Check rockridge on the primary label when
17210 discovering. Ignore Joliet if Rockridge is present.
17212 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17214 Use shifts in nilfs2.
17216 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17217 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17218 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17219 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17220 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17221 (grub_nilfs2_entries_per_block): Replaced with ...
17222 (grub_nilfs2_log_entries_per_block_log): ... this.
17223 (grub_nilfs2_blocks_per_group): Replaced with ...
17224 (grub_nilfs2_blocks_per_group_log): ... this.
17225 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17226 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17227 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17228 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17229 (grub_nilfs2_palloc_entry_offset): Replaced ...
17230 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17231 (grub_nilfs2_dat_translate): Use shifts.
17232 (grub_nilfs2_read_inode): Likewise.
17233 (GRUB_MOD_INIT): Ensure that logs are correct.
17235 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17237 Use shifts in minix filesystem.
17239 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17240 (GRUB_MINIX_ZONE2SECT): Likewise.
17241 (grub_minix_data): Replace block_size with log_block_size.
17242 (grub_minix_read_file): Use shifts.
17243 (grub_minix_mount): Check block size and take a logarithm.
17245 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17247 Use shifts in squash4.
17249 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17250 (squash_mount): Check block size and take logarithm.
17251 (direct_read): Use shifts.
17253 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17255 Correct befs block counting logic.
17257 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17258 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17259 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17260 (grub_afs_read_inode): Use block_shift.
17261 (RANGE_SHIFT): New definition.
17262 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17263 unexpected conditions, use shifts and appropriate types.
17264 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17266 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17268 * grub-core/disk/raid.c (scan_devices): Check partition.
17269 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17271 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17273 Support BFS (befs) UUID.
17275 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17276 (grub_afs_small_data_element_header): New struct.
17277 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17278 (grub_afs_read_attribute) [MODE_BFS]: New function.
17279 (grub_afs_iterate_dir): Allocate for complete inode.
17280 (grub_afs_mount): Likewise.
17281 (grub_afs_uuid) [MODE_BFS]: New function.
17282 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17284 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17286 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17287 (zfs_unmount): Fix memory leak.
17289 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17291 Support NTFS reparse points.
17293 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17294 (symlink_descriptor): New struct.
17295 (grub_ntfs_read_symlink): New function.
17296 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17297 (grub_ntfs_open): Likewise.
17299 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17301 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17303 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17305 fstest xnu_uuid subcommand.
17307 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17308 grub-core/commands/xnu_uuid.c.
17309 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17310 (fstest): Handle xnu_uuid.
17311 (options): Document xnu_uuid.
17312 (argp_parser): Parse xnu_uuid.
17314 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17316 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17317 -l argument. Add newline at the end if printing.
17318 (GRUB_MOD_INIT): Document -l.
17320 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17322 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17324 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17326 ZFS multi-device and version 33 support.
17328 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17329 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17330 (grub_zfs_data): Add multidev-ice-related fields.
17331 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17332 (dva_get_offset): Make dva const.
17333 (zfs_fetch_nvlist): New function.
17334 (fill_vdev_info_real): Likewise.
17335 (fill_vdev_info): Likewise.
17336 (check_pool_label): Likewise.
17337 (scan_disk): Likewise.
17338 (scan_devices): Likewise.
17339 (read_device): Likewise.
17340 (read_dva): Likewise.
17341 (zio_read_gang): Use read_dva.
17342 (zio_read_data): Likewise.
17343 (zap_leaf_lookup): Add missing endian conversion.
17344 (zap_verify): Add missing endian conversion. All users updated.
17345 (fzap_lookup): Likewise.
17346 (fzap_iterate): Likewise.
17347 (dnode_get_path): Handle SA bonus.
17348 (nvlist_find_value): Make input const. All users updated.
17349 (unmount_device): New function.
17350 (zfs_unmount): Use unmount_device.
17351 (zfs_mount): Use scan_disk.
17352 (zfs_mtime): New function.
17353 (grub_zfs_open): Handle system attributes.
17354 (fill_fs_info): Likewise.
17355 (grub_zfs_dir): Likewise.
17356 (grub_zfs_fs): Add mtime.
17357 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17358 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17359 (SA_MTIME_OFFSET): Likewise.
17360 (SA_SYMLINK_OFFSET): Likewise.
17361 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17362 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17363 (fstest): Support zfsinfo.
17364 (argp_parser): Likewise.
17366 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17368 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17371 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17375 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17376 sharing the same block. Iterate over correct number of indices.
17377 (dnode_get_path): Handle symlinks correctly.
17379 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17381 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17383 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17385 Read label on HFS+.
17387 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17388 (grub_hfsplus_btree_search): Fix types.
17389 (grub_hfsplus_label): Implement.
17391 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17393 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17395 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17397 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17399 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17401 Fix symlink handling on iso9660.
17403 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17405 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17406 (grub_iso9660_read_symlink): Moved most of code ...
17407 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17409 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17411 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17412 Use union to avoid breaking strict-aliasing rules.
17414 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17416 Support multi-extent iso files.
17418 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17420 (grub_fshelp_node): Revamp. All users updated.
17421 (FLAG_*): New enum.
17422 (read_node): New function.
17423 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17425 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17426 (get_node_size): New function.
17427 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17429 Fix memory leak on . and ..
17430 (grub_iso9660_read): Use read_node.
17431 (grub_iso9660_close): Free node.
17433 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17435 Fix tar 4G limit and handle paths containing dot.
17437 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17438 (canonicalize): New function.
17439 (grub_cpio_find_file): Use canonicalize. Store offs in
17441 (grub_cpio_dir): Use grub_disk_addr_t.
17442 (grub_cpio_open): Likewise.
17444 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17446 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17448 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17450 (grub_squash_inode): Add long_file and block_size.
17451 (grub_squash_cache_inode): New struct.
17452 (grub_squash_dirent): Make types into enum.
17453 (SQUASH_TYPE_LONG_REGULAR): New type.
17454 (grub_squash_frag_desc): Add field size.
17455 (SQUASH_BLOCK_FLAGS): New enum.
17456 (grub_squash_data): Use grub_squash_cache_inode.
17457 (grub_fshelp_node): Make ino_chunk 64-bit.
17458 (read_chunk): Minor argument change. All users updated.
17459 (squash_mount): Use correct le_to_cpu.
17460 (grub_squash_open): Handle LONG_REGULAR.
17461 (direct_read): New function.
17462 (grub_squash_read_data): Handle blocks correctly.
17464 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17466 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17468 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17470 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17472 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17474 Fix 2G limit on ZFS.
17476 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17478 (uberblock_verify): Likewise.
17479 (dmu_read): Likewise.
17480 (grub_zfs_read): Likewise. Remove invalid cast.
17482 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17484 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17485 (grub_jfs_blkno): Fix incorrect shift.
17486 (grub_jfs_read_file): Use more appropriate types.
17488 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17490 Support triple indirect on minix2 and minix3.
17492 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17493 Declare triple_indir_zone.
17494 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17497 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17501 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17502 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17503 Rename ctime to mtime. All users updated.
17504 (grub_minix_get_file_block): Fix types and double indirect computations.
17506 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17508 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17509 if no label is found.
17510 (grub_fat_iterate_dir): Fix file size type.
17511 (grub_fat_iterate_dir): Likewise.
17513 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17515 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17517 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17518 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17520 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17522 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17524 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17526 * util/import_gcry.py: Accept space between # and include.
17528 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17530 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17532 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17534 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17536 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17537 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17539 * grub-core/script/yylex.l: Add fine-grained #pragma.
17541 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17543 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17544 New inline function.
17545 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17547 (memset) [GRUB_UTIL]: Likewise.
17548 (memcmp) [GRUB_UTIL]: Likewise.
17550 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17552 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17553 inline function rather than a define.
17555 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17557 * util/grub-setup.c: Add missing include.
17559 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17561 * util/ieee1275/grub-ofpathname.c: Add missing include.
17563 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17565 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17566 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17569 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17571 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17574 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17576 * util/grub-install.in: Add datarootdir as per automake manual
17578 * util/grub-mknetdir.in: Likewise.
17580 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17582 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17584 * util/grub.d/10_kfreebsd.in: Likewise.
17585 * util/grub.d/10_linux.in: Likewise.
17586 * util/grub.d/10_netbsd.in: Likewise.
17587 * util/grub.d/10_windows.in: Likewise.
17588 * util/grub.d/20_linux_xen.in: Likewise.
17590 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17592 Remove redundant grub_kernel_image_size.
17594 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17596 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17597 the small code. It moves it only by few bytes but simplifies the code.
17598 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17600 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17601 (grub_kernel_image_size): Removed.
17602 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17603 (grub_kernel_image_size): Removed.
17604 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17605 compiled with Apple toolchain.
17606 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17607 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17608 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17609 (grub_total_module_size): Likewise.
17610 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17612 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17613 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17614 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17615 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17616 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17617 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17618 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17619 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17621 (grub_total_module_size): Removed.
17622 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17623 (image_targets): Likewise.
17624 Set .compressed_size to no field on sparc.
17625 (generate_image): Remove kernel_image_size handling.
17627 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17629 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17630 NULL pointer dereference.
17632 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17634 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17635 done with a dedicated section.
17637 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17638 Ensure the correct position of boot_path.
17639 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17640 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17642 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17643 * include/grub/boot.h: Removed. All references removed.
17644 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17646 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17648 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17650 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17653 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17655 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17657 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17659 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17660 Don't add the bogus brackets.
17662 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17666 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17667 * grub-core/Makefile.core.def (exfat): New module.
17668 * grub-core/fs/exfat.c: New file.
17669 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17670 (GRUB_FAT_ATTR_*): Make into an enum.
17671 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17672 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17673 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17674 (GRUB_FAT_MAXFILE): Removed.
17675 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17676 (grub_current_fat_bpb_t): New type.
17677 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17678 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17679 (grub_fat_dir_node_t): New type.
17680 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17681 (fat_log2) [MODE_EXFAT]: Removed.
17682 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17683 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17684 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17685 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17686 (grub_fat_label) [MODE_EXFAT]: New function.
17687 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17688 reserved_first_sector to 0.
17690 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17692 Move grub_reboot out of the kernel.
17694 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17695 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17696 * grub-core/lib/efi/reboot.c: ... here.
17697 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17698 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17699 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17700 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17701 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17702 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17703 * grub-core/lib/ieee1275/reboot.c: ... here.
17704 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17705 * grub-core/lib/mips/arc/reboot.c: ... here.
17706 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17707 * grub-core/lib/mips/loongson/reboot.c: ...here.
17708 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17709 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17710 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17711 * include/grub/i386/reboot.h: New file.
17712 * include/grub/mips/loongson/ec.h: Fix includes.
17713 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17714 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17715 * grub-core/lib/i386/reboot.c: New file.
17717 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17719 Make grub_prefix into module to fix the arbitrary limit and save
17722 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17723 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17724 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17725 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17726 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17727 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17728 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17729 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17730 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17731 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17732 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17733 * include/grub/ia64/efi/kernel.h: Removed.
17734 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17735 (grub_prefix): Removed.
17736 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17737 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17738 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17739 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17740 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17741 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17742 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17743 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17744 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17745 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17746 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17747 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17748 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17749 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17750 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17751 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17752 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17753 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17754 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17755 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17756 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17757 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17758 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17759 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17760 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17761 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17762 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17763 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17764 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17766 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17768 (image_targets): Likewise.
17769 (generate_image): Put prefix as a module.
17771 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17773 Replace grub_module_iterate with FOR_MODULES.
17775 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17776 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17777 (grub_efi_modules_addr): ...this.
17778 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17779 (grub_efi_init): Set grub_modbase.
17780 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17781 (grub_modbase): New variable.
17782 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17783 (grub_modbase): New variable.
17784 (grub_machine_init): Set grub_modbase.
17785 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17786 (grub_modbase): New variable.
17787 (grub_machine_init): Set grub_modbase.
17788 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17789 (grub_modbase): New variable.
17790 (grub_machine_init): Set grub_modbase.
17791 * grub-core/kern/main.c (grub_module_iterate): Remove.
17792 (grub_modules_get_end): Use grub_modbase.
17793 (grub_load_modules): Use FOR_MODULES.
17794 (grub_load_config): Likewise.
17795 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17796 (grub_modbase): New variable.
17797 (grub_machine_init): Set grub_modbase.
17798 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17799 (grub_modbase): New variable.
17800 (grub_machine_init): Set grub_modbase.
17801 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17803 (grub_modbase): New variable.
17804 (grub_machine_init): Set grub_modbase.
17805 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17806 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17807 (grub_module_iterate): Likewise.
17808 (grub_modbase): New variable declaration.
17809 (FOR_MODULES): New macro.
17811 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17813 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17814 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17816 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17818 Fix few obvious type discrepancies.
17820 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17821 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17822 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17824 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17825 and connected types.
17826 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17828 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17829 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17830 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17831 and connected types.
17833 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17835 Fix python 3.x incompatibilities.
17837 * gentpl.py: Put brackets around print strings.
17838 * util/import_gcry.py: Open explicitly as utf-8.
17839 Use in instead of has_key.
17841 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17843 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17844 (GRUB_XFS_INO_AGBITS): Make into inline function.
17845 (GRUB_XFS_INO_INOINAG): Likewise.
17846 (GRUB_XFS_INO_AG): Likewise.
17847 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17848 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17849 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17850 (GRUB_XFS_EXTENT_SIZE): Likewise.
17851 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17852 (GRUB_XFS_NEXT_DIRENT): Likewise.
17853 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17854 (grub_xfs_read_file): Fix offset type.
17856 2011-10-15 Robert Millan <rmh@gnu.org>
17858 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17860 2011-10-15 Robert Millan <rmh@gnu.org>
17862 Fix build problem on FreeBSD and GNU/kFreeBSD.
17864 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17866 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17868 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17870 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17872 (grub_hfsplus_btree_recoffset): Likewise.
17873 (grub_hfsplus_btree_recptr): Likewise.
17874 (grub_hfsplus_find_block): Likewise.
17875 (grub_hfsplus_btree_search): Likewise.
17876 (grub_hfsplus_read_block): Likewise.
17877 (grub_hfsplus_read_file): Likewise.
17878 (grub_hfsplus_mount): Likewise.
17879 (grub_hfsplus_btree_iterate_node): Likewise.
17880 (grub_hfsplus_btree_search): Likewise.
17881 (grub_hfsplus_iterate_dir): Likewise.
17882 (grub_hfsplus_read): A small code simplification.
17884 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17886 * grub-core/kern/emu/hostdisk.c
17887 (convert_system_partition_to_system_disk): Don't assume that children
17888 of mapper nodes are mapper nodes.
17890 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17892 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17893 * include/grub/misc.h (grub_isxdigit): New function.
17894 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17895 switched to grub_isxdigit.
17896 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17897 number starting with a letter.
17899 2011-10-09 Robert Millan <rmh@gnu.org>
17901 LVM support for FreeBSD and GNU/kFreeBSD.
17903 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17905 (LVM_DEV_MAPPER_STRING): Move from here ...
17906 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17907 * util/getroot.c: Include `<grub/util/lvm.h>'.
17908 (grub_util_get_dev_abstraction): Enable
17909 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17910 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17911 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17912 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17914 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17916 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17917 when LVM abstraction is required for ${GRUB_DEVICE}.
17919 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17921 Add support for LZO compression in GRUB:
17922 - import of minilzo library,
17923 - LZO decompression for btrfs,
17924 - lzop files decompression.
17926 * grub-core/io/lzopio.c: New file.
17927 * grub-core/lib/adler32.c: Likewise.
17928 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17929 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17930 * grub-core/lib/minilzo/minilzo.c: Likewise.
17931 * grub-core/lib/minilzo/minilzo.h: Likewise.
17932 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17933 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17934 grub-core/lib/minilzo/minilzo.c to common.
17935 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17936 cflags in cppflags.
17937 * grub-core/Makefile.core.def (btrfs): Likewise.
17938 * grub-core/Makefile.core.def (lzopio): New module.
17939 (adler32): Likewise.
17940 * grub-core/fs/btrfs.c: Include minilzo.h.
17941 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17942 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17943 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17944 (grub_btrfs_lzo_decompress): New function.
17945 (grub_btrfs_extent_read): Add support for LZO compression type.
17946 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17947 (GRUB_USHRT_MAX): Likewise.
17948 (GRUB_UINT_MAX): Likewise.
17949 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17950 (UINT_MAX): Likewise.
17951 (CHAR_BIT): Likewise.
17952 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17953 grub-core/lib/posix_wrap/limits.h
17954 (UCHAR_MAX): Likewise.
17955 * include/grub/file.h (grub_file_filter_id): New compression filter
17956 GRUB_FILE_FILTER_LZOPIO.
17957 * include/grub/file.h (grub_file_filter_id): Set
17958 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17959 * include/grub/types.h (grub_get_unaligned16): New function.
17960 (grub_get_unaligned32): Likewise.
17961 (grub_get_unaligned64): Likewise.
17962 * util/import_gcry.py (cryptolist): Add adler32.
17964 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17966 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17967 in perspective decreases the complexity of build system and fixes
17968 compilation right now.
17970 2011-10-01 Ales Nesrsta <starous@volny.cz>
17972 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17973 (fixed problem related to using UHCI with coreboot).
17975 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17977 * gentpl.py: Use Autogen macros so that the output template file
17978 (Makefile.tpl) size is reduced.
17980 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17982 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17985 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17987 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17988 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17990 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17992 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17995 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17997 Remove extra declaration of sleep for mingw32.
17999 * util/misc.c (sleep) [__MINGW32__]: Removed.
18000 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
18002 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
18004 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
18006 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
18008 (NETBSD_BTINFO_BOOTWEDGE): New definition.
18009 (grub_netbsd_btinfo_bootwedge): New struct.
18010 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18012 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18014 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18016 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18019 2011-09-28 Andreas Born <futur.andy@googlemail.com>
18021 Fix incorrect identifiers in bash-completion.
18023 * util/bash-completion.d/grub-completion.bash.in
18024 (_grub_mkpasswd-pbkdf2): Rename to ...
18025 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18026 (_grub_script-check): Rename to ...
18027 (_grub_script_check): ... this. All users updated.
18029 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18031 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18032 Return 0 if disk isn't biosdisk.
18034 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18036 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18038 * Makefile.util.def (grub-fstest): Likewise.
18040 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18042 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18043 Get sector size from disk label.
18045 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18047 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18048 */README* as well as README*.
18049 Reported by: Axel Beckert.
18051 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18053 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18054 case of less than 256 MiB of RAM.
18056 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18058 * grub-core/commands/wildcard.c (make_regex): Handle @.
18060 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18062 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18064 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18066 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18067 AC_LANG_CONFTEST macros.
18069 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18071 Add grub-fstest option to uncompress data for commands.
18073 * util/grub-fstest.c (uncompress): New var.
18074 (options): New option -u.
18076 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18078 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18079 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18081 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18083 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18084 file type was not recognized correctly (not gzip or corrupted).
18086 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18088 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18089 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18091 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18093 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18095 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18096 video_radeon_fuloong2e.
18097 * grub-core/video/radeon_fuloong2e.c: New file.
18098 * include/grub/video.h (grub_video_id_t): Add new ID
18099 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18101 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18103 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18105 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18106 that PRID matches the detected subplatform and reset the subplatform
18109 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18111 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18113 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18115 Fix PCI iterating on functions >= 4.
18117 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18118 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18120 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18121 (grub_pci_read): Fix bitmask.
18122 (grub_pci_read_word): Likewise.
18123 (grub_pci_read_byte): Likewise.
18124 (grub_pci_write): Likewise.
18125 (grub_pci_write_word): Likewise.
18126 (grub_pci_write_byte): Likewise.
18128 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18130 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18131 can still be specified in TARGET_CFLAGS)
18133 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18135 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18137 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18138 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18139 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18140 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18141 (FULOONG): Rename to ...
18142 (FULOONG2F): ... this. All users updated.
18143 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18144 (machtype_fuloong2f_str): ... this.
18145 (machtype_fuloong2e_str): New string.
18146 Check for machtype_fuloong2e_str.
18147 * grub-core/loader/mips/linux.c (loongson_machtypes)
18148 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18149 * grub-core/term/serial.c (loongson_defserial)
18150 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18151 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18152 loongson_defserial.
18153 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18155 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18156 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18157 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18158 to IMAGE_FULOONG2F_FLASH. All users updated.
18159 (image_targets): Rename images.
18160 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18162 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18164 Make enable of disk cache statistics code configurable.
18166 * configure.ac: --enable-cache-stats added.
18167 * config.h.in (DISK_CACHE_STATS): New define.
18168 * grub-core/Makefile.core.def (cacheinfo): New command.
18169 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18170 * grub-core/commands/cacheinfo.c: New file.
18171 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18172 moved to cacheinfo.c.
18173 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18175 * include/grub/disk.h: Likewise.
18177 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18179 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18180 * grub-core/Makefile.am: Likewise.
18182 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18184 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18187 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18189 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18191 (grub_jfs_lookup_symlink): Use correct starting inode.
18193 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18195 * util/grub-setup.c (main): Add missing gcry initialisation.
18197 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18199 Don't accept text modes on EFI when booting Linux.
18201 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18202 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18204 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18205 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18207 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18208 use of "/path/.." as in grub-install for EFI as well as handling
18209 symlinks correctly.
18210 Fixes Debian bug #637768.
18212 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18214 * util/grub-probe.c: Remove duplicate #include.
18216 2011-08-10 Robert Millan <rmh@gnu.org>
18218 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18220 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18222 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18223 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18225 2011-08-03 Robert Millan <rmh@gnu.org>
18227 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18228 la_array as packed.
18229 Reported by: Zachary Bedell
18231 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18233 * configure.ac: The Loongson port requires grub-mkfont due to its
18234 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18237 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18239 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18240 processing arguments (otherwise help2man fails when GRUB has not yet
18243 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18245 New script grub-mkstandalone.
18247 * Makefile.util.def (grub-mkstandalone): New script.
18248 * docs/man/grub-mkstandalone.h2m: New file.
18249 * util/grub-mkstandalone.in: Likewise.
18251 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18253 Support ATA disks with 4K sectors.
18255 * include/grub/ata.h (grub_ata): New member log_sector_size.
18256 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18257 (grub_ata_identify): Read sector size.
18258 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18260 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18262 * util/grub-install.in: Don't use uhci outside of x86.
18264 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18266 * util/grub-mkrescue.in: Add missing quotes.
18268 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18270 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18273 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18275 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18277 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18279 * include/grub/video.h: add missing EXPORT_FUND on
18280 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18282 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18284 * include/grub/mips/kernel.h: Fix define conflict.
18286 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18288 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18291 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18293 Preferred resolution detection for VBE.
18295 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18296 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18297 the Flat Panel extension, in line with the X.org VESA driver.
18298 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18300 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18301 (grub_vbe_bios_read_edid): Likewise.
18302 (grub_vbe_get_preferred_mode): Likewise.
18303 (grub_video_vbe_setup): When the mode is "auto", try to get the
18304 preferred mode from VBE, and use the largest mode that is no larger
18305 than the preferred mode (some BIOSes expose a preferred mode that is
18306 not in their mode list!). If this fails, fall back to 640x480 as a
18307 safe conservative choice.
18308 (grub_video_vbe_get_edid): New function.
18309 (grub_video_vbe_adapter): Add get_edid.
18310 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18311 (struct grub_video_adapter): Add get_edid.
18312 (grub_video_edid_checksum): Add prototype.
18313 (grub_video_edid_preferred_mode): Likewise.
18314 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18317 * grub-core/commands/videoinfo.c (print_edid): New function.
18318 (grub_cmd_videoinfo): Print EDID if available.
18320 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18321 is more appropriate on a wider range of platforms than 640x480.
18322 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18325 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18327 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18329 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18331 * po/POTFILES.in: Regenerate.
18333 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18335 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18336 incorrect memory usage.
18338 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18340 * util/grub-install.in: Source grub-mkconfig_lib.
18342 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18344 Remove getroot.c from core on emu platform.
18346 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18348 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18350 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18351 * util/getroot.c (get_win32_path): ... here.
18352 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18353 * util/getroot.c (fini_libzfs): ... here.
18354 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18355 * util/getroot.c (grub_get_libzfs_handle): ... here.
18356 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18358 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18359 * grub-core/kern/emu/misc.c
18360 (grub_make_system_path_relative_to_its_root): Moved from here...
18361 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18362 * grub-core/kern/emu/getroot.c: Moved from here ...
18363 * util/getroot.c: ... here. All users updated.
18364 * grub-core/kern/emu/raid.c: Moved from here ...
18365 * util/raid.c: ... here. All users updated.
18367 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18369 * po/POTFILES.in: Regenerate.
18371 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18373 Fix compilation on GNU/Linux.
18375 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18377 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18378 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18379 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18381 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18382 2011-07-07 Michael Gorven <michael@gorven.za.net>
18383 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18385 LUKS and GELI support.
18387 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18388 grub-core/disk/luks.c, grub-core/disk/geli.c,
18389 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18390 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18391 grub-core/lib/arg.c.
18392 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18393 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18394 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18395 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18396 (grub-bin2h): Add libgcry.a.
18397 (grub-mkimage): Likewise.
18398 (grub-mkrelpath): Likewise.
18399 (grub-script-check): Likewise.
18400 (grub-editenv): Likewise.
18401 (grub-mkpasswd-pbkdf2): Likewise.
18402 (grub-pe2elf): Likewise.
18403 (grub-fstest): Likewise.
18404 (grub-mkfont): Likewise.
18405 (grub-mkdevicemap): Likewise.
18406 (grub-probe): Likewise.
18407 (grub-ofpath): Likewise.
18408 (grub-mklayout): Likewise.
18409 (example_unit_test): Likewise.
18410 (grub-menulst2cfg): Likewise.
18411 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18412 * grub-core/Makefile.core.def (cryptodisk): New module.
18415 * grub-core/disk/AFSplitter.c: New file.
18416 * grub-core/disk/cryptodisk.c: Likewise.
18417 * grub-core/disk/geli.c: Likewise.
18418 * grub-core/disk/luks.c: Likewise.
18419 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18421 (grub_util_get_dm_abstraction): New function.
18422 (grub_util_follow_gpart_up): Likewise.
18423 (grub_util_get_geom_abstraction): Likewise.
18424 (grub_util_get_dev_abstraction): Use new functions.
18425 (grub_util_pull_device): Pull GELI and LUKS.
18426 (grub_util_get_grub_dev): Handle LUKS and GELI.
18427 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18428 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18429 (follow_geom_up): Removed.
18430 (grub_util_fd_seek): New function.
18431 (open_device): Use grub_util_fd_seek.
18432 (nread): Rename to ..
18433 (grub_util_fd_read): ... this. All users updated.
18434 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18435 (grub_crypto_cbc_decrypt): Likewise.
18436 (grub_crypto_hmac_write): Likewise.
18437 (grub_crypto_hmac_buffer): Likewise.
18438 (grub_password_get): Extend to util.
18439 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18440 New member modname.
18441 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18442 * include/grub/cryptodisk.h: New file.
18443 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18444 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18446 (grub_util_follow_gpart_up): New proto.
18447 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18448 (grub_util_fd_read): Likewise.
18449 (grub_cryptodisk_cheat_mount): Likewise.
18450 (grub_util_cryptodisk_print_uuid): Likewise.
18451 (grub_util_get_fd_sectors): Likewise.
18452 * util/grub-fstest.c (mount_crypt): New var.
18453 (fstest): Mount crypto if requested.
18454 (options): New option -C.
18455 (argp_parser): Parse -C.
18456 (main): Init and fini gcry.
18457 * util/grub-install.in: Support cryptodisk install.
18458 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18459 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18461 (prepare_grub_to_access_device): Likewise.
18462 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18463 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18464 (probe_cryptodisk_uuid): New function.
18465 (probe_abstraction): Likewise.
18466 (probe): Use new functions.
18467 * util/import_gcry.py: Create Makefile.utilgcry.def.
18468 Add modname member.
18470 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18472 Lazy device scanning.
18474 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18475 (grub-setup): Remove util/raid.c.
18476 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18477 * grub-core/disk/lvm.c (scan_depth): New variable.
18478 (grub_lvm_iterate): Rescan if necessary.
18479 (find_lv): New function based on grub_lvm_open.
18480 (grub_lvm_open): Use find_lv. Rescan on error.
18481 (is_node_readable): New function.
18482 (is_lv_readable): Likewise.
18483 (grub_lvm_scan_device): Skip already found disks.
18484 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18485 Stop if searched device is found and readable.
18486 * grub-core/disk/raid.c (inscnt): New variable.
18487 (scan_depth): Likewise.
18488 (scan_devices): New function based on grub_raid_register. Abort if
18489 looked for device is found.
18490 (grub_raid_iterate): Rescan if needed.
18491 (find_array): NEw function based on -grub_raid_open.
18492 (grub_raid_open): Use find_array and rescan.
18493 (insert_array): Set became_readable_at.
18494 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18495 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18497 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18498 (grub_util_pull_device): New function.
18499 (grub_util_get_grub_dev): Call grub_util_pull_device.
18500 * util/raid.c: Moved to ..
18501 * grub-core/kern/emu/raid.c: ... here.
18502 (grub_util_raid_getmembers): New parameter "bootable".
18503 All users updated. Support 1.x.
18504 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18506 * include/grub/disk.h (grub_disk_pull_t): New enum.
18507 (grub_disk_dev): Change iterate prototype.
18509 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18511 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18512 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18513 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18514 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18516 * include/grub/util/raid.h: Removed.
18518 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18520 * po/POTFILES.in: Regenerate.
18522 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18524 Unify sparc init with other ieee1275.
18526 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18527 instead of kern/sparc64/ieee1275/init.c.
18528 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18529 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18530 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18531 grub/machine/kernel.h.
18532 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18533 (grub_claim_heap) [__sparc__]: Use sparc version.
18534 (grub_machine_init): Moved args parsing to
18535 (grub_parse_cmdline): ...this.
18536 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18537 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18539 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18541 Move BOOTP to separate file.
18543 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18544 * grub-core/net/net.c: Move all BOOTP functions to
18545 * grub-core/net/bootp.c: ... here.
18547 Use frame interface on PXE.
18549 * grub-core/Makefile.core.def (pxecmd): Removed.
18550 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18551 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18552 * grub-core/i386/pc/pxe.c: Moved from here ...
18553 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18554 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18555 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18557 EFI network support.
18559 * grub-core/Makefile.core.def (efinet): New module.
18560 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18562 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18564 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18565 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18566 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18567 * grub-core/net/drivers/efi/efinet.c: New file.
18568 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18569 (grub_efi_net_config): New extern var.
18571 Various cleanups and bugfixes.
18573 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18575 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18576 disk declared as partition.
18577 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18579 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18580 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18581 (grub_debug_zalloc): Likewise.
18582 (grub_debug_realloc): Likewise.
18583 (grub_debug_memalign): Likewise.
18584 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18585 Check that target is IPv4.
18586 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18587 local-mac-address as fallback.
18588 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18590 * grub-core/net/ip.c (ipchksum): Rename to ...
18591 (grub_net_ip_chksum): ... this. All users updated.
18592 (grub_net_recv_ip_packets): Special handling for DHCP.
18593 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18595 Unify prefix handling
18597 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18598 (grub_machine_get_bootlocation): ... this.
18599 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18600 (grub_machine_get_bootlocation): ... this.
18601 (grub_prefix): New variable.
18603 (root_dev): New variable.
18605 (main): Use new variables.
18606 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18608 (grub_machine_get_bootlocation): ... this.
18609 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18610 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18611 (grub_machine_get_bootlocation): ... this.
18612 (grub_machine_set_prefix): Removed.
18613 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18614 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18616 (grub_machine_get_bootlocation): ... this.
18617 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18618 (grub_set_prefix_and_root): ... this. All users updated.
18619 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18621 (grub_machine_get_bootlocation): ... this.
18622 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18623 (grub_machine_get_bootlocation): New proto.
18624 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18626 Less intrusive and more reliable seek on network implementation.
18628 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18629 (grub_file_seek): Don't call grub_file_net_seek.
18630 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18631 (grub_net_fs_read_real): .. this.
18632 (grub_net_seek_real): Use net->offset.
18633 (grub_net_fs_read): Seek if necessary.
18635 Unify IEEE1275 netwotk config with the other platforms.
18637 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18639 (grub_machine_get_bootlocation): Support network.
18640 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18641 Support type and device parsing.
18642 (grub_ieee1275_get_device_type): New function.
18643 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18645 (grub_ieee1275_net_config_real): ... this.
18646 (grub_ofnet_probecards): Removed.
18647 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18648 * include/grub/ieee1275/ofnet.h: Removed.
18649 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18651 (grub_ieee1275_get_device_type): New function.
18653 Unify network device closing across platforms and make more robust.
18655 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18657 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18659 * grub-core/net/net.c (grub_net_network_level_interface_register):
18661 (grub_net_card_unregister): Close all interfaces.
18662 (receive_packets): Don't poll if no iterfaces are registered.
18664 (grub_net_fini_hw): New function.
18665 (grub_net_restore_hw): Likewise.
18666 (fini_hnd): New variable.
18667 (GRUB_MOD_INIT): Register preboot hook.
18668 (GRUB_MOD_FINI): Run and unregister preboot hook.
18670 Poll network cards when idle.
18672 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18673 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18674 * grub-core/net/net.c (receive_packets): Save last poll time.
18675 (grub_net_poll_cards_idle_real): New function.
18676 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18677 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18678 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18680 Rename ofnet interfaces.
18682 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18683 (grub_ofnet_findcards): Use ofnet_%s names.
18685 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18687 Cleanup socket opening.
18689 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18690 (grub_net_fs_close): Likewise.
18691 (grub_net_fs_read_real): Use eof member.
18692 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18693 (+grub_net_udp_close): New inline function.
18695 * include/grub/net/tftp.h: Moved to the top of ...
18696 * grub-core/net/tftp.c: ... here.
18697 * include/grub/net/ip.h: Moved mostly to the top of ...
18698 * grub-core/net/ip.c: ... here.
18699 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18700 * grub-core/net/ethernet.c: ... here.
18702 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18704 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18707 * include/grub/net/ip.h (ipv4_ini): Removed.
18708 (ipv4_fini): Likewise.
18710 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18711 (grub_net_send_ip_packets): Likewise.
18713 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18715 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18716 grub_read_cmos prototype.
18718 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18720 VGA text support in qemu-mips
18722 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18723 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18724 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18726 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18727 * grub-core/kern/vga_init.c: ... this.
18728 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18729 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18730 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18732 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18733 GRUB_MACHINE_PCI_IO_BASE.
18735 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18737 MIPS qemu flash support.
18739 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18741 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18742 (grub_machine_init): Probe memory if its size isn't known.
18743 * util/grub-mkimage.c (image_targets): Add flash targets.
18744 (generate_image): Handle flash targets.
18746 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18748 MIPS qemu at_keyboard support.
18750 * gentpl.py (videoinkernel): Add qemu-mips.
18751 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18752 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18753 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18755 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18756 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18757 * grub-core/term/serial.c (grub_serial_register)
18758 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18760 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18762 CMOS support on sparc.
18764 * gentpl.py (cmos): Add powerpc and sparc.
18765 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18767 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18768 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18769 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18770 grub_set_datetime_cmos.
18771 * grub-core/lib/ieee1275/cmos.c: New file.
18772 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18773 (find_rtc): Set no_ieee1275_rtc on error.
18774 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18775 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18776 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18777 fail. Move value to argument. All users updated
18778 (grub_cmos_write): Likewise.
18779 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18780 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18781 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18782 grub_get_datetime_cmos and grub_set_datetime_cmos.
18784 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18786 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18787 sourcing grub-mkconfig_lib.
18788 * util/update-grub_lib.in: Likewise.
18789 * util/grub.d/00_header.in: Likewise.
18790 * util/grub.d/10_hurd.in: Likewise.
18791 * util/grub.d/10_kfreebsd.in: Likewise.
18792 * util/grub.d/10_linux.in: Likewise.
18793 * util/grub.d/10_netbsd.in: Likewise.
18794 * util/grub.d/10_windows.in: Likewise.
18795 * util/grub.d/20_linux_xen.in: Likewise.
18796 * util/grub.d/30_os-prober.in: Likewise.
18798 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18800 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18801 default_bg_color rather than black.
18802 (grub_gfxterm_fullscreen): Likewise.
18803 (grub_gfxterm_background_color_cmd): Save new background color in
18806 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18808 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18810 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18812 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18815 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18817 Chainloading on coreboot support.
18819 * grub-core/Makefile.core.def (chain): Add coreboot.
18820 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18822 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18824 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18827 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18829 Implement time command.
18831 * grub-core/Makefile.core.def (time): New module.
18832 * grub-core/commands/time.c: New file.
18833 * grub-core/script/parser.y: Remove "time" keyword.
18834 * grub-core/script/yylex.l: Likewise.
18836 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18838 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18840 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18842 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18843 when handling leftovers.
18845 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18847 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18848 so that help2man doesn't fail.
18850 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18852 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18853 type in pointers on sparc64.
18854 (get_card_packet): Likewise.
18856 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18858 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18860 (grub_cmd_videoinfo): Fetch current video mode.
18862 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18864 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18865 because of underlying system restrictions.
18867 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18869 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18872 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18874 Coreboot video support.
18876 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18878 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18879 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18881 * grub-core/kern/i386/int.S: ... here.
18882 * grub-core/video/i386/pc/vbe.c: Updated includes.
18883 * grub-core/video/i386/pc/vga.c: Likewise.
18884 * include/grub/i386/coreboot/memory.h
18885 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18886 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18887 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18888 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18889 Disable interrupts.
18890 * include/grub/i386/pc/vga.h: Removed. All users updated.
18892 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18894 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18895 definitions for dprintf.
18896 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18898 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18900 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18902 (get_card_packet): Likewise.
18904 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18906 Display the path of the file when file is not found
18908 * grub-core/fs/fat.c: Display the filename when file is not found.
18909 * grub-core/fs/fshelp.c: Likewise.
18910 * grub-core/fs/hfs.c: Likewise.
18911 * grub-core/fs/jfs.c: Likewise.
18912 * grub-core/fs/minix.c: Likewise.
18913 * grub-core/fs/ufs.c: Likewise.
18914 * grub-core/fs/btrfs.c: Likewise.
18915 * grub-core/commands/i386/pc/play.c: Likewise.
18917 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18919 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18920 pointer checks before calling grub_free().
18921 * grub-core/commands/wildcard.c (match_devices): Likewise.
18922 * grub-core/commands/wildcard.c (match_files): Likewise.
18923 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18924 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18925 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18926 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18927 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18928 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18929 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18930 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18931 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18933 2011-06-25 Patrick <p55@mailinator.com>
18935 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18937 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18939 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18940 (grub_pxe_send): Likewise.
18941 (GRUB_MOD_INIT): Fix types.
18943 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18945 * grub-core/io/xzio.c: Fix code style issues
18947 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18948 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18950 Network infrastructure.
18951 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18953 * include/grub/net/arp.h: New file.
18954 * include/grub/net/device.h: Likewise.
18955 * include/grub/net/ethernet.h: Likewise.
18956 * include/grub/net/ip.h: Likewise.
18957 * include/grub/net/netbuff.h: Likewise.
18958 * include/grub/net/tftp.h: Likewise.
18959 * include/grub/net/udp.h: Likewise.
18960 * include/grub/ieee1275/ofnet.h: Likewise.
18961 * include/grub/emu/export.h: Likewise.
18962 * include/grub/net.h: Likewise.
18963 * grub-core/net/arp.c: Likewise.
18964 * grub-core/net/ethernet.c: Likewise.
18965 * grub-core/net/ip.c: Likewise.
18966 * grub-core/net/udp.c: Likewise.
18967 * grub-core/net/tftp.c: Likewise.
18968 * grub-core/net/netbuff.c: Likewise.
18969 * grub-core/net/net.c: Likewise.
18970 * grub-core/net/drivers/emu/emunet.c: Likewise.
18971 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18972 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18974 * grub-core/Makefile.core.def (net): New module.
18977 (emunet): Likewise.
18978 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18980 * grub-core/kern/device.c (grub_net_open) : New variable.
18981 (grub_device_open): Handle network device.
18982 (grub_device_close): Likewise.
18983 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18984 (grub_grubnet_fini): Likewise.
18985 (grub_file_seek): Seek in network device.
18986 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18987 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18989 (grub_machine_fini): Call grub_grubnet_fini.
18990 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18992 (grub_ieee1275_get_aliasdevname): New function.
18993 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18994 Add unofficial Solaris network info.
18995 (grub_multiboot_make_mbi): Likewise.
18996 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18997 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18998 * include/grub/device.h (grub_fs): Removed.
18999 * include/grub/err.h (grub_err_t): Add network-related values.
19000 * include/grub/i386/pc/pxe.h: Removed bootp parts.
19001 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
19002 (grub_ieee1275_get_aliasdevname): New proto.
19003 * include/grub/net.h: Rewritten.
19005 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19007 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19010 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19012 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19013 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19014 it truncates the output.
19015 Reported by: Ximin Luo.
19017 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19019 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19021 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19023 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19024 partmap before abstraction.
19026 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19028 * util/grub-mkconfig_lib.in: Add missing quotes.
19030 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19032 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19033 old method if mountinfo would return /dev/root and /dev/root doesn't
19036 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19040 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19041 (decomp_table): Add zlib entries.
19042 (zio_read): USe 8 bits for compression function rather than 3.
19043 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19045 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19047 * grub-core/disk/ahci.c: Add missing license statements.
19048 * grub-core/fs/romfs.c: Likewise.
19049 * grub-core/lib/ia64/setjmp.S: Likewise.
19050 * grub-core/loader/i386/pc/freedos.c: Likewise.
19051 * grub-core/loader/ia64/efi/linux.c: Likewise.
19052 * grub-core/video/colors.c: Likewise.
19053 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19055 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19059 * grub-core/Makefile.core.def (ata_pthru): Removed.
19060 (ahci): New module.
19062 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19064 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19066 (grub_hdparm_do_check_powermode_cmd): Likewise.
19067 (grub_hdparm_do_smart_cmd): Likewise.
19068 (grub_hdparm_set_val_cmd): Likewise.
19069 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19070 * grub-core/disk/ahci.c: New file.
19071 * grub-core/disk/ata.c: Factor out the low-level part into ...
19072 * grub-core/disk/pata.c: ... here.
19073 * grub-core/disk/ata_pthru.c: Contents moved to ...
19074 * grub-core/disk/pata.c: ... here.
19075 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19076 (grub_scsi_iterate): Use grub_scsi_names.
19077 (grub_scsi_open): Likewise.
19078 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19079 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19080 (grub_ata_regs_t): New struct.
19081 (grub_disk_ata_pass_through_parms): Likewise.
19082 (grub_ata_device): Renamed to ...
19083 (grub_ata): ... this.
19084 (grub_ata_dev): New struct.
19085 Removed all low-level inline functions.
19086 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19087 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19088 iterate hooks and open. All users updated.
19089 * util/grub-install.in: Handle AHCI disk module.
19091 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19093 Add support for DRI and RSTn markers in JPEG files.
19095 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19096 (JPEG_MARKER_RST0): Likewise.
19097 (JPEG_MARKER_RST1): Likewise.
19098 (JPEG_MARKER_RST2): Likewise.
19099 (JPEG_MARKER_RST3): Likewise.
19100 (JPEG_MARKER_RST4): Likewise.
19101 (JPEG_MARKER_RST5): Likewise.
19102 (JPEG_MARKER_RST6): Likewise.
19103 (JPEG_MARKER_RST7): Likewise.
19104 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19105 (grub_jpeg_decode_dri): New function.
19106 (grub_jpeg_decode_sos): Move image data related part into
19107 grub_jpeg_decode_data function.
19108 (grub_jpeg_decode_data): New function.
19109 (grub_jpeg_reset): New function.
19110 (grub_jpeg_decode_jpeg): Handle new markers.
19112 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19114 * util/ieee1275/ofpath.c (check_sas): Close fd.
19115 (main): Free of_path.
19116 Reported by: David Volgyes <dvolgyes>.
19118 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19120 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19121 Reported by: David Volgyes <dvolgyes>.
19123 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19125 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19127 Reported by: David Volgyes <dvolgyes>.
19129 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19131 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19133 Reported by: David Volgyes <dvolgyes>.
19135 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19137 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19138 Prevent memory leak.
19140 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19142 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19143 (main): Close file.
19144 Reported by: David Volgyes <dvolgyes>.
19146 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19148 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19149 to continue if allocation is failed.
19151 Reported by: David Volgyes <dvolgyes>.
19153 2011-06-23 David Volgyes <dvolgyes>
19155 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19158 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19160 Fix spurious warning.
19162 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19163 (acorn_partition_map_find): Use .bin member.
19165 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19167 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19168 /dev/root as a valid device.
19170 2011-06-23 Jim Meyering <meyering@redhat.com>
19172 Avoid NULL deref in grub_device_open.
19174 * grub-core/kern/device.c (grub_device_open): Don't dereference
19175 a NULL pointer upon failed grub_env_get.
19177 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19179 Support non-512B sectors and agglomerate reads.
19181 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19182 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19183 (disk_io_guid): Removed.
19184 (make_devices): Locate solely by BlockIO.
19185 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19186 (grub_efidisk_read): Use read_blocks.
19187 (grub_efidisk_write): Use write_blocks.
19188 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19190 (get_safe_sectors): Handle non-512B sectors.
19191 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19193 (grub_biosdisk_write): Handle non-512B sectors.
19194 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19195 (grub_scsi_read): Remove special non-512B block handling (now handled
19197 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19198 and do sanity checks.
19199 (grub_disk_adjust_range): Handle non-512B sectors.
19200 (transform_sector): New function.
19201 (grub_disk_read_small): Likewise.
19202 (grub_disk_read): Rewritten.
19203 (grub_disk_write): Handle non-512B sectors.
19204 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19206 (open_device): Use log_sector_size.
19207 (grub_util_biosdisk_read): Likewise.
19208 (grub_util_biosdisk_write): Likewise.
19209 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19211 (pc_partition_map_embed): Likewise.
19212 * include/grub/disk.h (grub_disk): New field log_sector_size.
19213 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19214 (GRUB_DISK_CACHE_BITS): Increased to 6.
19215 * util/grub-fstest.c (fstest): New command testload.
19216 (argp_parser): Likewise.
19218 2011-06-16 Robert Millan <rmh@gnu.org>
19220 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19221 `ata' driver on kernel of FreeBSD 9.
19223 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19224 (get_ataraid_disk_name): New functions.
19225 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19226 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19227 get_ataraid_disk_name() and get_ada_disk_name().
19229 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19231 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19234 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19236 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19237 `ftp.gnu.org' for `alpha.gnu.org'.
19239 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19241 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19242 partitions under /dev/disk/by-id/.
19244 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19246 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19247 after ten consecutive open failures. Scanning all the way up to
19248 10000 is excessive and can cause serious performance problems in
19249 some configurations.
19250 Fixes Ubuntu bug #787461.
19252 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19254 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19257 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19258 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19260 Don't stat devices unless we have to.
19262 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19263 dir == /dev/mapper.
19264 (grub_guess_root_device): Use already known os_dev if possible.
19265 * grub-core/kern/emu/hostdisk.c
19266 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19267 if device is known to be a dm one.
19269 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19271 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19272 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19273 Reported by: Pawel Tecza.
19275 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19277 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19278 (lsefisystab): Likewise.
19280 (lsefimmap): Likewise.
19281 (hdparm): Enable on qemu-mips.
19282 (setjmp): Add ia64 nodist.
19283 (serial): Simplify tags.
19285 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19287 * Makefile.util.def (grub-ofpathname): Install manual page.
19289 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19291 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19293 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19295 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19297 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19299 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19302 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19304 Use full 64-bit division.
19306 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19307 (grub_divmod64): ... this.
19308 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19311 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19313 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19316 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19318 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19319 to avoid accidents when debugging with 'sh -x'.
19320 * grub-core/gensyminfo.sh.in: Likewise.
19321 * tests/example_scripted_test.in: Likewise.
19322 * tests/grub_cmd_regexp.in: Likewise.
19323 * tests/grub_script_blanklines.in: Likewise.
19324 * tests/grub_script_dollar.in: Likewise.
19325 * tests/grub_script_expansion.in: Likewise.
19326 * tests/grub_script_final_semicolon.in: Likewise.
19327 * tests/partmap_test.in: Likewise.
19328 * tests/util/grub-shell-tester.in: Likewise.
19329 * tests/util/grub-shell.in: Likewise.
19331 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19333 Move gfxmenu color handling to video, so that gfxterm can use it
19336 * grub-core/gfxmenu/named_colors.c: Move to ...
19337 * grub-core/video/colors.c: ... here. Rename
19338 grub_gui_get_named_color to grub_video_get_named_color.
19339 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19340 * grub-core/video/colors.c (my_isxdigit): ... here.
19341 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19343 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19344 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19346 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19348 * include/grub/gui.h (grub_gui_color_t): Move to ...
19349 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19350 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19351 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19352 * include/grub/gui.h (grub_gui_map_color): Move to ...
19353 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19354 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19356 * include/grub/video.h (grub_video_get_named_color): ... here.
19357 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19358 * include/grub/video.h (grub_video_parse_color): ... here.
19360 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19362 (gfxmenu): Remove gfxmenu/named_colors.c.
19363 (video) [videomodules]: Add video/colors.c.
19365 Add a background_color command.
19367 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19369 (GRUB_MOD_INIT): Register background_color command.
19370 (GRUB_MOD_FINI): Unregister background_color command.
19371 (redraw_screen_rect): Allow blend/replace of text layer to be
19372 controlled independently from whether there is a background bitmap.
19373 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19376 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19378 Patch BPB in ntldr and chainloader --bpb.
19380 * grub-core/fs/fat.c: Include grub/fat.h.
19381 (grub_fat_bpb): Moved to ...
19382 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19383 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19385 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19387 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19389 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19391 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19392 (GRUB_MOD_INIT): Show --bpb.
19393 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19394 * grub-core/normal/main.c (features): New variable.
19395 (GRUB_MOD_INIT): Set feature_* variables.
19396 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19398 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19400 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19402 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19405 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19407 FreeDOS direct loading support.
19409 * docs/grub.texi (Supported OS): Add FreeDOS.
19410 * grub-core/Makefile.core.def (freedos): New module.
19411 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19413 (grub_relocator16_boot): Handle %ebx.
19414 * grub-core/lib/i386/relocator16.S: Likewise.
19415 * grub-core/loader/i386/pc/freedos.c: New file.
19417 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19419 Long Linux command line support.
19421 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19422 (maximal_cmdline_size): New variable.
19423 (allocate_pages): Use maximal_cmdline_size.
19424 (grub_cmd_linux): Set and use maximal_cmdline_size.
19425 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19426 (allocate_pages): Use maximal_cmdline_size.
19427 (grub_cmd_linux): Set and use maximal_cmdline_size.
19428 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19429 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19432 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19433 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19435 Improve devmapper support
19437 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19438 (grub_util_is_lvm): New function.
19439 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19440 than lvm if not dmraid.
19441 Handle mapped md nodes.
19442 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19443 (grub_util_device_is_mapped): ... this. Make always available. All users
19445 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19446 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19448 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19450 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19452 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19454 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19455 * grub-core/modinfo.sh.in: New file.
19456 * grub-core/Makefile.core.def (modinfo.sh): New script.
19457 * util/grub-mknetdir.in: Use modinfo.sh.
19458 * util/grub-mkrescue.in: Likewise.
19460 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19462 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19463 Fix potential usage of Elf32 instead of Elf64 when compiling on
19464 32-bit architecture. Add endianness macros while on it.
19466 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19468 Use mipsel- rather than mips- in directories involving mipsel ports to
19469 allow both endiannesses coexist.
19471 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19472 mips. All conditions adjusted.
19473 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19475 * util/grub-install.in: Adjust conditions to take renaming into account.
19476 * util/grub-mkimage.c (image_targets): Likewise. New target
19477 mips-qemu_mips-elf for bigendian mips.
19479 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19481 Avoid unnecessary copying on MIPS.
19483 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19484 early if src == dest.
19485 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19486 compression is none.
19488 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19490 Reduce memory footprint on SGI by putting modules before the kernel
19491 as opposed to after.
19493 * grub-core/Makefile.core.def (kernel): Increase linking address.
19494 (none_decompress): Likewise.
19495 (xz_decompress): Likewise.
19496 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19498 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19500 (grub_arch_modules_addr): New function.
19501 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19502 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19503 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19505 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19506 (grub_total_modules_size): ... this. Make global.
19507 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19508 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19510 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19511 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19512 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19513 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19514 * util/grub-mkimage.c (image_target_desc): New flag
19515 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19516 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19517 (generate_image): Handle images with modules before kernel.
19519 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19521 Prevent potential loss of memory map by overwrite on qemu-mips.
19523 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19524 Save ram size in $s4.
19525 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19526 All users changed to grub_arch_memsize.
19527 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19529 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19530 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19531 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19534 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19536 * .bzrignore: Remove grub-dumpbios.
19538 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19540 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19541 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19542 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19543 existing options which append).
19544 * docs/grub.texi (Simple configuration): Document new options.
19545 Reported by: Ian Jackson. Fixes Debian bug #617538.
19547 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19549 * util/grub-fstest.c (cmd_cat): New function.
19550 (fstest): Handle CMD_CAT.
19551 (options): Add cat.
19552 (argp_parser): Handle cat.
19554 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19556 * Makefile.util.def (grub-bin2h): Don't install.
19557 * docs/man/grub-bin2h.h2m: Remove.
19559 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19561 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19564 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19566 Reenable qemu-mips port.
19568 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19569 Fix small arc bug while on it.
19570 * gentpl.py: Handle qemu_mips.
19571 * grub-core/Makefile.am: Likewise.
19572 * grub-core/Makefile.core.def: Likewise.
19573 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19574 inappropriate includes.
19575 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19576 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19577 * grub-core/kern/main.c (grub_modules_get_end)
19578 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19579 * grub-core/kern/mips/qemu-mips: Moved to ..
19580 * grub-core/kern/mips/qemu_mips: ... this.
19581 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19582 (grub_machine_init): Call terminfo_init and serial_init.
19583 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19584 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19586 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19588 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19589 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19590 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19591 * include/grub/mips/qemu_mips/cmos.h: New file.
19592 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19593 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19595 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19596 Use correct mips-style address.
19597 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19598 (GRUB_TICKS_PER_SECOND): Removed.
19599 (grub_get_rtc): Likewise.
19600 (grub_cpu_idle): Likewise.
19601 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19603 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19604 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19605 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19606 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19607 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19608 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19609 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19610 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19612 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19616 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19617 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19619 * configure.ac: New target mips-arc.
19620 * gentpl.py: Likewise.
19621 * grub-core/Makefile.am: Likewise.
19622 * grub-core/Makefile.core.def: Likewise.
19623 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19624 (none_decompress): Likewise.
19625 (lsdev): New module.
19626 (datetime): Use lib/arc/datetime.c on ARC.
19627 (part_dvh): New module.
19628 * grub-core/commands/arc/lsdev.c: New file.
19629 * grub-core/disk/arc/arcdisk.c: Likewise.
19630 * grub-core/kern/mips/arc/init.c: Likewise.
19631 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19633 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19635 (grub_arch_dl_relocate_symbols): Likewise.
19636 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19637 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19638 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19640 * grub-core/lib/arc/datetime.c: New file.
19641 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19642 pci.h on non-loongson.
19643 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19644 (grub_linux_boot): Set unused registers to 0.
19645 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19646 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19647 * grub-core/mmap/mips/uppermem.c: ...here.
19648 * grub-core/partmap/dvh.c: New file.
19649 * grub-core/term/arc/console.c: Likewise.
19650 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19651 (grub_terminfo_set_current): Add terminal "arc".
19652 (grub_terminfo_readkey): Support ARC sequences.
19653 * include/grub/arc/arc.h: New file.
19654 * include/grub/arc/console.h: Likewise.
19655 * include/grub/disk.h (grub_disk_dev_id): Add
19656 GRUB_DISK_DEVICE_ARCDISK_ID.
19657 * include/grub/mips/arc/kernel.h: New file.
19658 * include/grub/mips/arc/memory.h: Likewise.
19659 * include/grub/mips/arc/time.h: Likewise.
19660 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19661 * include/grub/mips/kernel.h (grub_halt): ... here.
19662 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19664 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19665 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19666 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19667 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19669 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19671 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19672 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19673 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19674 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19675 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19676 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19677 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19678 (grub_phys_addr_t): Moved from here ...
19679 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19680 (grub_vtop): Moved from here ...
19681 * include/grub/mips/memory.h (grub_vtop): ... here.
19682 (grub_map_memory): Moved from here ...
19683 * include/grub/mips/memory.h (grub_map_memory): ... here.
19684 (grub_unmap_memory): Moved from here ...
19685 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19686 (grub_machine_mmap_iterate): Moved from here ...
19687 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19688 (grub_mmap_get_lower): Moved from here ...
19689 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19690 (grub_mmap_get_upper): Moved from here ...
19691 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19692 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19694 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19695 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19697 * include/grub/mips/time.h (grub_get_rtc): ... here.
19698 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19700 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19701 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19703 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19704 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19706 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19707 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19708 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19709 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19710 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19711 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19712 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19713 (GRUB_MACHINE_LINK_ADDR): Likewise.
19714 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19716 * util/grub-install.in: Run dvhtool on ARC.
19717 * util/grub-mkimage.c (image_targets): Add mips-arc.
19718 (generate_image): Handle ECOFF output for mips-arc.
19720 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19722 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19725 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19727 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19728 after enabling port.
19730 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19732 Skip incorrect USB devices.
19734 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19736 * include/grub/usb.h (grub_usb_err_t): New enum value
19737 GRUB_USB_ERR_BADDEVICE.
19739 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19741 Fuloong video init support.
19743 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19745 (grub_vga_read_arx): New function.
19746 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19748 (framebuffer): New members io, mmioptr and mmiobase.
19749 (read_sis_cmd): New function.
19750 (write_sis_cmd): Likewise.
19751 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19752 rather than 640x400.
19753 * grub-core/video/sis315_init.c: New file.
19755 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19757 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19759 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19760 to grub_dl_register_symbol.
19762 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19764 Fix compilation errors.
19766 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19767 potentially unused.
19768 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19769 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19770 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19771 to loongson machines.
19773 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19775 Several FS mtime support.
19777 * grub-core/fs/affs.c (grub_affs_time): New struct.
19778 (grub_affs_file): New field mtime.
19779 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19780 type. Removed 'size'. New field 'di'. All users updated.
19781 (grub_affs_mount): Simplify checsum checking.
19782 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19783 (grub_affs_dir): Handle mtime.
19784 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19785 (grub_cpio_dir): Likewise.
19786 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19787 (grub_hfs_filerec): New field mtime.
19788 (grub_hfs_dir): Handle mtime.
19789 (grub_hfs_mtime): New function.
19790 (grub_hfs_fs): Register grub_hfs_mtime.
19791 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19792 (grub_iso9660_dir): New field mtime.
19793 (grub_fshelp_node): New field dirent.
19794 (iso9660_to_unixtime): New function.
19795 (iso9660_to_unixtime2): Likewise.
19796 (grub_iso9660_read_symlink): Use node->dirent.
19797 (grub_iso9660_iterate_dir): Likewise.
19798 (grub_iso9660_dir): Set mtime.
19799 (grub_iso9660_mtime): New function.
19800 (grub_iso9660_fs): Register grub_iso9660_mtime.
19801 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19802 (grub_jfs_inode): New fields atime, ctime and mtime.
19803 (grub_jfs_dir): Set mtime.
19804 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19805 * grub-core/fs/ntfs.c (list_file): Set mtime.
19806 (grub_ntfs_dir): Likewise.
19807 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19808 (grub_reiserfs_iterate_dir): Set mtime.
19809 (grub_reiserfs_dir): Likewise.
19810 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19811 (grub_fshelp_node): Likewise.
19812 (grub_sfs_iterate_dir): Set mtime.
19813 (grub_sfs_dir): Likewise.
19814 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19815 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19816 (grub_xfs_inode): New fields atime, mtime, ctime.
19817 (grub_xfs_dir): Set mtime.
19818 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19819 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19820 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19822 Support UDF symlinks.
19824 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19825 (grub_ufs_read_symlink): New function. All users updated.
19827 Check amiga partmap checksum.
19829 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19830 (grub_amiga_partition): Likewise.
19831 (amiga_partition_map_checksum): New function.
19832 (amiga_partition_map_iterate): Check checksum.
19834 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19838 * Makefile.util.def (libgrubmods.a): Add romfs.
19839 * grub-core/Makefile.core.def (romfs): New module.
19840 * grub-core/fs/romfs.c: New file.
19842 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19844 Squashfs v4 support.
19846 * Makefile.util.def (libgrubmods.a): Add squash4.
19847 * grub-core/Makefile.core.def (squash4): New module.
19848 * grub-core/fs/squash4.c: New file.
19849 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19850 disk_input_start, disk_input.
19851 (get_byte): Handle disk_input.
19852 (grub_zlib_disk_read): New function.
19853 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19855 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19856 2011-05-15 Feiran Zheng <famcool@gmail.com>
19858 * Makefile.util.def (libgrubmods.a): Add minix3.
19859 * grub-core/Makefile.core.def (minix3): New module.
19860 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19861 (GRUB_MINIX_BSIZE): Removed.
19862 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19863 (grub_minix_ino_t): New type.
19864 (grub_minix_le_to_cpu_ino): New macro.
19865 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19866 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19867 (grub_minix_data): New field block_size.
19868 (grub_minix_read_file): Handle 64-bit correctly.
19869 * grub-core/fs/minix3.c: New file.
19871 2011-05-15 Tristan Gingold <gingold@free.fr>
19872 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19873 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19877 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19878 * configure.ac: Add ia64-efi target.
19879 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19880 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19881 * gentpl.py: Add ia64_efi platform.
19882 Rename x86_efi to efi and Add ia64-efi. All users updated.
19883 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19884 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19885 Remove kern/generic/rtc_get_time_ms.c on EFI.
19886 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19887 kern/ia64/dl_helper.c on ia64-efi.
19888 Add kern/emu/cache.c on emu.
19889 (linux): Use on loader/ia64/efi/linux.c on ia64.
19890 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19891 whether symbol is a function.
19892 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19893 (grub_symbol): New field 'isfunc'.
19894 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19895 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19896 (grub_dl_load_segments): Place all sections into the same region.
19897 [__ia64__]: Create trampolines and got.
19898 [GRUB_MACHINE_EMU]: Call mprotect.
19899 (grub_dl_resolve_symbols): Resolve symbol type as well.
19900 [__ia64__]: Create function descriptors.
19901 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19902 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19903 (grub_get_rtc): New function.
19904 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19905 * grub-core/kern/emu/cache.S: Renamed to ...
19906 * grub-core/kern/emu/cache_s.S: ... this.
19907 [__ia64__]: Add a nop.
19908 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19909 [__ia64__]: New function.
19910 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19911 * grub-core/kern/ia64/dl.c: New file.
19912 * grub-core/kern/ia64/dl_helper.c: Likewise.
19913 * grub-core/kern/ia64/efi/init.c: New file.
19914 * grub-core/kern/ia64/efi/startup.S: Likewise.
19915 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19916 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19917 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19918 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19919 * grub-core/loader/ia64/efi/linux.c: New file.
19920 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19921 (GRUB_MOD_DEP): Likewise.
19922 (grub_dl) [__ia64__]: New fields got and tramp.
19923 (grub_dl): New field 'base'.
19924 (grub_dl_register_symbol): New argument isfunc. All users updated.
19925 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19926 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19927 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19928 (grub_ia64_dl_get_tramp_got_size): New proto.
19929 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19930 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19931 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19932 * include/grub/efi/api.h: Skip call wrappers on ia64.
19933 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19934 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19935 * include/grub/elf.h (ELF_ST_INFO): New definition.
19936 * include/grub/ia64/efi/kernel.h: New file.
19937 * include/grub/ia64/efi/memory.h: Likewise.
19938 * include/grub/ia64/efi/time.h: Likewise.
19939 * include/grub/ia64/kernel.h: Likewise.
19940 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19941 * include/grub/ia64/time.h: New file.
19942 * include/grub/ia64/types.h: Likewise.
19943 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19944 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19946 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19947 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19948 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19949 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19951 (EFI64_HEADER_SIZE): New definition. All users updated.
19952 (image_targets): Add ia64-efi.
19953 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19954 jumpers_addr. All users updated.
19955 Create function descriptors.
19956 (count_funcs): New function.
19957 (unaligned_uint32): New struct.
19958 (MASK20): New definition.
19959 (MASK19): Likewise.
19960 (MASKF21): Likewise.
19961 (add_value_to_slot_20b): New function.
19962 (add_value_to_slot_21_real): Likewise.
19963 (add_value_to_slot_21): Likewise.
19964 (ia64_kernel_trampoline): New struct.
19965 (nopm): New variable.
19967 (make_trampoline): New function.
19968 (relocate_addresses): Handle ia64.
19969 (make_reloc_section): Likewise.
19970 (load_image): Likewise.
19972 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19974 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19975 warning. Move variables before code while on it.
19977 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19981 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19982 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19983 * grub-core/boot/mips/loongson/fuloong.S: New file.
19984 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19985 Explicitly init CS5536.
19986 [FULOONG]: Don't use serial until CS5536 is available.
19987 Set GPIO based on dumps.
19988 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19989 [FULOONG]: Handle GPIO and memory controller differences.
19990 Parse machine type in $a2.
19991 * grub-core/boot/mips/startup_raw.S: Determine and save the
19993 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19994 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19995 init on architecture type.
19996 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19997 SIS315E. Don't init at_keyboard on fuloong.
19998 (grub_halt): Support Fuloong.
19999 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
20000 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
20001 (loongson_machtypes): New array.
20002 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
20004 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
20005 config. All users updated. Handle CS5536 serial.
20006 * grub-core/term/serial.c (grub_serial_register): Conditionalise
20007 default port on machine type. Register serial as inactive.
20008 * grub-core/video/sis315pro.c: New file.
20009 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20011 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20012 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20013 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20014 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20015 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20016 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20018 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20019 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20021 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20022 (grub_arch_machine): New extern var.
20023 * include/grub/mips/loongson/serial.h
20024 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20025 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20026 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20027 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20028 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20029 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20030 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20031 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20032 * include/grub/term.h (grub_term_register_input_inactive): New inline
20034 (grub_term_register_output_inactive): Likewise.
20035 * include/grub/video.h (grub_video_driver_id): New value
20036 GRUB_VIDEO_DRIVER_SIS315PRO.
20037 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20038 New field "names". All users updated.
20039 New field value IMAGE_FULOONG_FLASH.
20040 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20042 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20044 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20045 and add some clarification.
20047 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20049 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20050 platforms if kernel is compressed.
20052 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20054 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20055 unused modules since currently referrence counter isn't reliable and
20056 there isn't much memory to recover there anyway.
20058 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20060 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20061 rather than resetting it to allow modules to reference themselves
20064 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20066 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20067 counter on dependencies since grub_dl_unref already handles this.
20069 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20071 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20072 on error if not already done.
20074 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20076 Fix few potential memory misusage.
20078 * grub-core/font/font.c (load_font_index): Don't free char_index to
20080 (grub_font_load): Zero-fill font at alloc for safety.
20081 Close file on error.
20082 (free_font): Free bmp_idx.
20084 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20086 * docs/grub.texi (Installation): Fix several outdated claims.
20088 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20090 Handle module_license on windows.
20092 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20094 (insert_string): Make argument const char * instead of char *.
20095 (write_section_data): Handle long section names.
20096 Handle module_license.
20098 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20100 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20101 handle class-free menuentries.
20102 (grub_normal_add_menu_entry): Add a check to be sure.
20104 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20106 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20109 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20111 * configure.ac: Bump version to 1.99.
20113 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20115 Give ATA device a bit more time on first try in order to allow disks
20118 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20119 if dev->present is 1. Reset dev->present on failure.
20120 (grub_ata_device_initialize): Set dev->present to 1.
20121 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20122 (grub_ata_device): New member 'present'.
20124 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20126 * util/grub-mkimage.c (generate_image): Update hash.
20128 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20130 Flush caches on DMA memory.
20132 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20133 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20134 (grub_dma_free): Likewise.
20135 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20137 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20139 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20140 to avoid asm treating ld and sd as macros.
20142 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20144 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20147 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20149 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20150 grub_decompress_core since later would fail if grub_decompress_core
20153 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20155 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20156 R_MIPS_JALR since it's used by newer compiler.
20158 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20160 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20162 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20164 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20165 file_path to 0 for surety.
20166 (grub_chainloader_boot): Set exit_data to NULL.
20167 Unset the loader once done.
20168 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20170 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20172 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20173 unknown key into a dprintf.
20175 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20177 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20178 on first non-existant partition.
20180 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20182 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20184 Reported by: Mark Korenberg.
20186 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20188 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20191 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20193 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20194 before closing to ensure that it will be readable by grub-setup.
20196 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20198 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20199 (devpath_1): Use MAKE_PIWG_PATH.
20200 (devpath_2): Likewise.
20201 (devpath_3): Likewise.
20202 (devpath_4): Likewise.
20203 (devpath_5): Likewise.
20204 (devpath_6): Likewise.
20206 The appleldr.mod was checked that to be binary identical to previous
20209 2011-05-05 Zach <mikezackles>
20211 Support 2010 Macbooks.
20213 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20214 (devs): Add devpath_6.
20216 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20218 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20219 /dev/random. /dev/urandom is good enough for our purposes (salting).
20221 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20223 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20225 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20227 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20230 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20232 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20233 and not 0 on failure.
20235 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20237 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20238 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20239 disk; otherwise grub_fs_probe will not fall back to the next
20241 (grub_pxefs_open): Likewise, for consistency.
20242 Reported and tested by: Ezekiel Grave.
20244 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20246 * tests/partmap_test.in: Don't hardcode path to parted.
20247 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20249 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20251 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20252 of `ls' to find out which devices are available.
20254 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20256 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20257 than source address for efi mmap buffer.
20259 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20261 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20262 wrong action on non-detecting the magic.
20264 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20266 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20267 already supplied by another part of the module (fixes compilation on
20270 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20272 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20273 match the one used by mdadm.
20275 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20277 * po/README: Add instructions for creating po/LINGUAS.
20279 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20281 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20284 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20285 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20286 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20287 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20288 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20289 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20290 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20291 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20292 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20293 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20294 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20295 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20296 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20297 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20298 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20299 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20300 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20301 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20302 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20303 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20304 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20305 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20307 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20309 * grub-core/kern/emu/getroot.c
20310 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20311 test that was incorrectly reintroduced in r3214.
20312 Reported by: Ian Dall. Fixes Savannah bug #33133.
20314 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20316 Fix stack pointer handling in 16-bit relocator.
20318 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20319 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20320 Fixes Ubuntu bug #683904.
20322 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20324 * configure.ac: Bump version to 1.99~rc2.
20326 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20328 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20329 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20330 * grub-core/lib/x86_64/setjmp.S: Likewise.
20331 * grub-core/lib/mips/setjmp.S: Likewise.
20332 * grub-core/lib/powerpc/setjmp.S: Likewise.
20333 * grub-core/lib/sparc64/setjmp.S: Likewise.
20335 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20337 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20338 * grub-core/lib/efi/datetime.c: Likewise.
20340 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20342 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20344 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20345 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20346 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20348 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20350 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20352 (grub_gfxterm_term_init): Likewise.
20354 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20356 Take into account the decorations the computing menu entry width.
20358 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20359 (grub_gfxmenu_create_box): Register get_border_width.
20360 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20362 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20365 2011-04-18 Endres Puschner <code@e7p.de>
20367 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20368 Don't skip first class.
20370 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20372 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20374 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20376 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20378 Complete 64-bit division support.
20380 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20381 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20382 * include/grub/misc.h (grub_divmod64): Rename to ...
20383 (grub_divmod64_full): ... this.
20384 (grub_divmod64): New inline function.
20386 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20388 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20390 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20392 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20393 performing the necessary test.
20395 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20397 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20398 (kfreebsd.elf): Likewise.
20399 (pc-chainloader.elf): Likewise.
20400 (ntldr.elf): Likewise.
20402 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20404 Identify RAID by its UUID rather than (guessed) name.
20406 * grub-core/disk/raid.c (ascii2hex): New function.
20407 (grub_raid_open): Accept mduuid/%s specification.
20408 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20409 (get_mdadm_uuid): ... this.
20410 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20412 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20414 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20417 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20419 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20421 * util/grub.d/20_linux_xen.in: Likewise.
20423 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20425 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20426 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20428 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20429 Build a list of relevant visible mounts using the mnt_id and
20430 parent_mnt_id fields, and then scan that list at the end.
20432 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20434 * docs/grub.texi (normal): New section.
20435 (normal_exit): New section.
20436 (Embedded configuration): Add reference to normal.
20437 (GRUB only offers a rescue shell): Likewise.
20438 * docs/grub-dev.texi (Error Handling): Fix typo.
20440 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20442 * NEWS: Drop obsolete entry about probe-only btrfs support.
20444 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20446 * util/import_gcry.py: Fix typo.
20448 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20450 * NEWS: Add btrfs support.
20452 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20453 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20455 BtrFS support. Written by me (Vladimir) with important bugfixes and
20456 even more important testing by Colin.
20458 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20459 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20460 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20461 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20462 mem_input_off and mem_input. All users updated to accept in-RAM input.
20463 (gzio_seek): New function.
20464 (test_zlib_header): Likewise.
20465 (grub_gzio_read): Likewise.
20466 (grub_zlib_decompress): Likewise.
20467 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20468 Accept partial and non-virtual mounts.
20469 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20470 avoid receiving /dev/dm-X as device.
20471 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20472 Handle bind and partial mounts.
20473 * grub-core/lib/crc.c: New file.
20474 * include/grub/deflate.h: Likewise.
20475 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20477 * include/grub/lib/crc.h: New file.
20479 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20481 Implement automatic module license checking according to new GNU
20484 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20485 (grub_dl_load_core): Use grub_dl_check_license.
20486 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20487 (GRUB_MOD_LICENSE): Likewise.
20488 (GRUB_MOD_DUAL_LICENSE): Likewise.
20489 All modules updated.
20491 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20493 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20494 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20496 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20498 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20500 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20502 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20504 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20507 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20509 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20510 parenthesis in the middle of the filename.
20512 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20514 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20515 rather than trying to put initrd way too high.
20516 Reported by: Ryan Lortie <desrt@desrt.ca>
20518 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20520 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20521 improperly removed string.
20523 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20525 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20527 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20528 (open_device) Likewise.
20529 (grub_util_biosdisk_close): Likewise.
20530 Reported by: Mark Korenberg.
20532 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20534 * util/grub-mkconfig_lib.in: Add missing quotes.
20536 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20538 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20541 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20543 Dynamically count the number of lines for the lower banner.
20545 * grub-core/normal/menu_entry.c (per_term_screen): New member
20547 (print_down): Use num_entries.
20548 (update_screen): Likewise.
20549 (grub_menu_entry_run): Set num_entries.
20550 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20552 (grub_print_message_indented): Move real part to ...
20553 (grub_print_message_indented_real): ... here. Additional argument
20555 (draw_border): Additional argument num_entries.
20556 (print_message): Additional argument dry_run.
20557 (print_entries): Receive menu viewer data.
20558 (grub_menu_init_page): New argment num_entries.
20559 (menu_text_set_chosen_entry): Use num_entries.
20560 (grub_menu_try_text): Likewise.
20561 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20563 (grub_ucs4_count_lines): New function.
20564 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20565 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20566 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20567 (grub_term_border_height): Likewise.
20568 (grub_term_num_entries): Likewise.
20570 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20572 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20573 Remove now unused string.
20575 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20577 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20579 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20581 (Comment): Fix typo.
20582 (Getting started): General copy-editing.
20583 (Typical Development Experience): Likewise.
20584 (Error Handling): Likewise.
20585 (Video API): Likewise.
20587 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20589 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20592 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20594 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20597 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20599 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20600 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20603 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20605 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20606 grub_strcpy since the lines aren't necessarily 0-terminated.
20608 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20610 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20613 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20615 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20616 (GRUB_MOD_INIT): DEVICE isn't optional.
20618 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20620 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20621 word on new line if it's too long anyway. Fixes a hang.
20623 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20625 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20627 * util/grub-setup.c (main): Reuse md device name if available.
20628 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20629 not GRUB name as argument.
20630 Based on patch by: Florian Wagner <fwagner>.
20632 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20634 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20635 Place mbi on low memory for better compatibility.
20637 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20639 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20641 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20642 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20644 * autogen.sh: Ensure that collate and ctype locale is C.
20645 * conf/Makefile.common: Likewise.
20647 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20649 * grub-core/normal/menu.c: Add missing include.
20651 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20653 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20655 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20657 * util/grub-mkconfig.in: Ignore emacsen backup.
20659 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20661 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20663 (grub_util_biosdisk_close): Likewise.
20665 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20667 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20668 const attribute and use grub_isdigit.
20670 2011-04-06 Andrey <dev_null@ukr.net>
20672 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20675 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20677 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20678 useful grub_dprintf's.
20680 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20682 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20684 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20686 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20688 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20690 Output errors if theme loading failed.
20692 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20693 grub_gfxterm_fullscreen on error paths to ...
20694 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20695 theme loading error.
20697 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20699 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20700 space for older compilers.
20701 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20703 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20705 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20706 and report them as not RAID members since they are useless for GRUB.
20707 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20709 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20711 Increase LVM implementation robustness in order not to crash on
20712 configurations like pvmove. Previously code assumed that in some places
20713 only lvs or only pvs are used whereas it seems that they are used
20716 * grub-core/disk/lvm.c (read_node): New function.
20717 (read_lv): Use read_node.
20718 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20719 Match volumes only at the end when all lvs are found. Take both
20720 pvs (first) and lvs (second) into account.
20721 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20722 mirror_* into node_*. All users updated.
20723 (grub_lvm_stripe): Merge this ...
20724 (grub_lvm_mirror): ... and this ...
20725 (grub_lvm_node): ... into this. All users updated.
20727 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20729 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20730 of function to allow further scanning for LVMs.
20732 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20734 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20735 on failed seek as it breaks open fd reusage.
20737 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20739 * util/grub-install.in: Add a recommendation to use --recheck before
20742 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20744 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20747 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20749 GRUB developper manual based on existing Internals section and
20750 contributions by the various authors with active copyright assignment.
20752 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20753 * docs/font_char_metrics.png: New file.
20754 * docs/font_char_metrics.txt: Likewise.
20755 * docs/grub-dev.texi: Likewise.
20756 * docs/grub.texi (Internals): Move from here ...
20757 * docs/grub-dev.texi: ... here.
20759 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20761 Store the loopback device as data on loopback grub_disk structures,
20762 rather than the file it points to. This fixes use of freed memory
20763 if an existing loopback device is replaced.
20765 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20766 disk->data, not dev->file.
20767 (grub_loopback_read): Adjust file assignment to match.
20768 Fixes Ubuntu bug #742967.
20770 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20772 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20773 when replacing an existing device.
20775 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20777 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20778 memory corruptions.
20780 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20782 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20783 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20784 (grub_jfs_read_inode): Likewise.
20785 (grub_jfs_opendir): Likewise. Remove now useless casts.
20786 (grub_jfs_getent): Likewise.
20787 Make ino a grub_uint32_t rather than int.
20788 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20789 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20790 division and module with bit operations.
20791 (grub_jfs_find_file): Make ino a grub_uint32_t.
20792 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20794 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20796 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20797 warning. (This was in fact always initialised before use, but GCC
20798 wasn't smart enough to prove that.)
20799 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20801 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20803 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20805 (efi_wrap_1): Likewise.
20806 (efi_wrap_2): Likewise.
20807 (efi_wrap_3): Likewise.
20808 (efi_wrap_4): Likewise.
20809 (efi_wrap_5): Likewise.
20810 (efi_wrap_6): Likewise.
20811 (efi_wrap_10): Likewise.
20812 Based on information by: Red Hat/Peter Jones.
20814 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20816 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20817 set-but-not-used variable.
20819 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20821 * docs/grub.texi (Simple configuration): Be more explicit about
20822 GRUB_DEFAULT, and add an example.
20823 Reported by: Leslie Rhorer.
20825 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20827 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20830 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20832 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20833 * util/grub.d/20_linux_xen.in: Likewise.
20835 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20837 * util/grub.d/10_linux.in: Try alternative config filenames where
20838 we parse config file.
20839 * util/grub.d/20_linux_xen.in: Likewise.
20841 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20843 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20844 * util/grub.d/20_linux_xen.in: Likewise.
20846 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20848 * grub-core/disk/raid.c (insert_array): Add few potentially
20849 useful grub_util_info.
20850 (grub_raid_register): Likewise.
20852 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20854 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20855 Preserve partition number in mdadm code path.
20857 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20859 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20860 few potentially useful grub_util_info.
20862 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20864 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20866 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20868 * docs/grub.texi (default): Use @example rather than nested
20869 itemized lists to avoid breaking gendocs.
20871 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20873 * docs/grub.texi (Future): Update.
20875 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20877 * docs/grub.texi (Environment): New chapter.
20878 (Changes from GRUB Legacy): Link to "Environment block" section for
20879 details of limitations.
20880 (Simple configuration): Likewise. Link to documentation of gfxmode
20881 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20883 (Shell-like scripting): Note that normal variables are stored in the
20885 (gettext): Link to documentation of lang and locale_dir.
20886 (list_env): New section.
20887 (load_env): New section.
20888 (save_env): New section.
20890 (Reporting bugs): Fix typo.
20892 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20894 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20897 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20899 * grub-core/term/at_keyboard.c (set_scancodes)
20900 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20902 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20904 * docs/grub.texi (Menu-specific commands): Remove some semantics
20905 that were true in GRUB Legacy but not in GRUB 2.
20906 (submenu): New section.
20907 (false): New section.
20908 (read): New section.
20909 (true): New section.
20911 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20913 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20915 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20917 * docs/grub.texi (Simple configuration): Explain some of the
20918 current limitations of grub-mkconfig.
20919 Reported by: Leslie Rhorer.
20921 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20923 Old macs search for boot.efi rather than for bootia32.efi.
20925 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20926 * util/grub-mkrescue.in: Likewise.
20927 Suggested by: Peter Jones.
20929 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20931 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20933 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20935 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20936 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20937 (grub_lvm_mirror): New struct.
20938 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20939 (grub_lvm_iterate): Iterate only visible volumes.
20940 (grub_lvm_read): Factor out to ..
20941 (read_lv): ... this. Support mirrors.
20942 (grub_lvm_read): New wrapper function.
20943 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20944 stripped or mirrored.
20946 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20948 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20950 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20952 * docs/grub.texi (loopback): New section.
20954 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20956 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20959 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20961 * docs/grub.texi (BIOS installation): New section, partly based on
20962 previous text in other sections.
20963 (Installing GRUB using grub-install): Replace BIOS discussion with a
20965 (Images): Likewise.
20967 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20969 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20970 [HAVE_DIOCGDINFO]: Add safety checks.
20972 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20974 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20975 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20977 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20979 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20980 real_sb->size is zero (e.g. RAID-0), get the disk size from
20981 real_sb->data_size instead.
20982 Fixes Ubuntu bug #743136.
20984 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20986 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20987 printf clauses for printing size and start.
20989 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20991 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20992 Reported and tested by: Timothy Nikkel.
20994 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20996 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20997 (dirty_region_add_real): ... this.
20998 (dirty_region_add): Don't discard margin refresh when performing
21001 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
21003 * grub-core/lib/relocator.c (allocate_regstart)
21004 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
21005 terminals are capabple of malloc-free operation.
21006 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21007 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
21009 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21011 * util/grub-setup.c: Copy the partition table zone if floppy support
21012 is disabled, even if no partition table is found.
21014 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21015 during POST if an invalid partition table is contained in the PBR
21016 of the active partition when GRUB is installed to a partition.
21018 2011-03-28 Colin Watson <cjwatson@debian.org>
21020 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21023 2011-03-28 Colin Watson <cjwatson@debian.org>
21025 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21026 to be specific about what kind of RAID device we're scanning for.
21028 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21030 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21031 return freed string.
21033 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21035 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21037 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21039 Use libgeom on FreeBSD to detect partitions.
21041 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21042 (grub-mkrelpath): Likewise.
21043 (grub-script-check): Likewise.
21044 (grub-editenv): Likewise.
21045 (grub-mkpasswd-pbkdf2): Likewise.
21046 (grub-fstest): Likewise.
21047 (grub-mkfont): Likewise.
21048 (grub-mkdevicemap): Likewise.
21049 (grub-probe): Likewise.
21050 (grub-setup): Likewise.
21051 (grub-ofpathname): Likewise.
21052 (grub-mklayout): Likewise.
21053 (example_unit_test): Likewise.
21054 (grub-menulst2cfg): Likewise.
21055 * grub-core/Makefile.core.def (grub-emu): Likewise.
21056 (grub-emu-lite): Likewise.
21057 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21058 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21059 define HAVE_DIOCGDINFO.
21060 (follow_geom_up) [FreeBSD]: New function.
21061 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21062 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21063 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21064 unconditionally of HAVE_DIOCGDINFO.
21066 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21068 Fix FreeBSD compilation problem.
21070 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21071 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21073 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21075 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21076 Switch back to page zero before loading a kernel, since some kernel
21077 drivers expect that.
21078 Thanks to: Felix Kuehling.
21080 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21082 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21083 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21084 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21086 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21088 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21089 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21091 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21093 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21094 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21095 malloc is disabled.
21097 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21099 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21100 for modules headers when counting the needed allocation size.
21102 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21104 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21105 if no ASCII character is found to prevent crash.
21107 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21109 * grub-core/video/bitmap.c (match_extension): Ignore case.
21111 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21113 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21115 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21117 * grub-core/script/parser.y: Declare "time" as valid argument.
21119 2011-03-23 Peter Jones <pjones@redhat.com>
21121 Fix incorrect assert failure reporting.
21123 * grub-core/tests/example_functional_test.c (example_test): Add
21125 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21126 (failure_start): ...this. Check that malloc succeeded.
21127 Don't call xvasprintf. Return failure struct.
21128 (failure_append_vtext): New function.
21129 (failure_append_text): Likewise.
21130 (add_failure): Likewise.
21131 (grub_test_assert_helper): Likewise.
21132 * include/grub/test.h (grub_test_assert_helper): New declaration.
21133 (grub_test_assert): Macro rewritten.
21135 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21137 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21139 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21141 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21143 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21145 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21146 into GRUB-style one.
21148 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21150 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21151 error and not grub_errno.
21152 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21154 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21156 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21157 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21159 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21161 * grub-core/efiemu/i386/pc/cfgtables.c
21162 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21163 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21164 (grub_xnu_unlock): Likewise.
21165 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21167 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21169 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21170 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21171 * grub-core/commands/hashsum.c (aliases): Likewise.
21172 * grub-core/commands/setpci.c (pci_registers): Likewise.
21173 * grub-core/disk/usbms.c (attach_hook): Likewise.
21174 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21175 (zio_checksum_table): Likewise.
21176 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21177 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21178 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21179 * grub-core/lib/relocator.c (leftovers): Likewise.
21180 (extra_blocks): Likewise.
21181 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21182 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21183 (modules_last): Likewise.
21184 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21185 (devices): Likewise.
21186 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21187 (modules_last): Likewise.
21188 * grub-core/normal/auth.c (users): Likewise.
21189 * grub-core/normal/context.c (initial_menu): Likewise.
21190 (current_menu): Likewise.
21191 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21192 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21193 (grub_serial_terminfo_input_template): Likewise.
21194 (grub_serial_terminfo_output_template): Likewise.
21195 (grub_serial_terminfo_input): Likewise.
21196 (grub_serial_terminfo_output): Likewise.
21197 (registered): Likewise.
21198 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21200 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21202 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21203 grub_video_mode_type_t.
21204 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21205 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21206 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21208 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21210 * util/grub-install.in: Correct the x86-64 name as x86_64.
21212 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21214 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21215 initial chunk read from the kernel always includes GRUB's multiboot
21216 header, which is now outside the first sector.
21218 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21220 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21221 cached mmap_size, so that this works correctly when called multiple
21223 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21225 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21227 * docs/grub.texi (Simple configuration): Tidy up formatting.
21229 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21231 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21232 Set-but-not-used variable removed.
21234 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21236 Workaround yet another IEEE1275 bug.
21238 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21239 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21240 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21241 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21243 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21244 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21246 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21248 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21251 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21253 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21254 empty, since in that case we can only generate either nothing or a
21255 syntactically invalid configuration file.
21256 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21258 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21260 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21261 (Making a GRUB bootable CD-ROM): Likewise.
21262 (Invoking grub-mkrescue): New section.
21263 Reported by: Yann Dirson. Fixes Debian bug #612585.
21265 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21267 * util/grub-install.in: Remove unnecessary brackets from tr
21269 * util/grub.d/10_hurd.in: Likewise.
21270 * util/grub.d/10_kfreebsd.in: Likewise.
21271 * util/grub.d/10_linux.in: Likewise.
21272 * util/grub.d/20_linux_xen.in: Likewise.
21273 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21275 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21277 * include/grub/file.h (not_easly_seekable): Rename to ...
21278 (not_easily_seekable): ... this. Update all users.
21280 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21282 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21285 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21287 * util/grub-mkimage.c (generate_image): Refuse to create the images
21288 bigger than the actual flash (512K) in Loongson machines. 512K is also
21289 the biggest chip supported by them.
21291 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21293 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21295 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21297 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21298 super_offset field.
21300 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21302 * util/grub-install.in: Ignore install device on platforms
21303 where it doesn't make sense. Always use UUIDs except on pc, efi and
21305 Reported by: Daniel Kahn Gillmor.
21307 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21309 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21311 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21313 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21314 (iterate_real): Don't rely on partition being non-NULL.
21316 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21318 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21319 supported platforms. Put a compile time assert for this rather than
21320 generate a warning with 32-bit shift.
21322 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21324 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21325 logical expression more readable.
21327 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21329 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21330 even if some elements have a name.
21331 Reported by: Alexander GQ Gerasiov.
21333 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21335 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21336 path unreadable if `grub-probe -t abstraction' fails, for example if
21337 memberlist fails on an LVM volume group.
21338 Reported by: Darius Jahandarie.
21340 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21342 * docs/grub.texi (Simple configuration): Document
21343 GRUB_PRELOAD_MODULES.
21345 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21347 * .bzrignore: Remove nonexistent grub-pbkdf2.
21349 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21351 * configure.ac: Bump version to 1.99~rc1.
21353 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21355 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21358 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21360 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21363 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21365 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21367 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21369 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21372 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21374 Fix compilation on cygwin.
21376 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21377 -R .drectve on cygwin.
21378 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21379 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21380 (COND_CYGWIN): New condition.
21381 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21382 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21383 not @TARGET_OBJ2ELF@.
21384 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21385 type to determine whether aux is to be used.
21387 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21389 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21390 realpath'ed device string.
21391 Handle floppy (somewhat).
21392 Issue error in unknown case rather than garbage.
21393 Reported by: Axel Beckert.
21395 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21397 * util/grub.d/00_header.in (load_video): Handle the case when no video
21399 Thanks to: Axel Beckert.
21401 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21403 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21404 variable. Fixes problem on big endian platforms.
21406 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21408 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21409 It doesn't work well there.
21411 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21413 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21415 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21416 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21419 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21421 Use alias->path rather than buggy "canon".
21423 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21424 (ofdisk_hash_add): New argument curcan. All users updated.
21426 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21428 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21430 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21432 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21433 loadmask before doing any calculations. Use correct type for offset.
21434 (grub_linux_load64): Likewise.
21436 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21438 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21440 (console_grub_equivalences_unshift): Likewise.
21441 Reported by: Daniel Dehennin.
21443 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21445 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21446 (set_env_limn_ro): Likewise.
21447 (GRUB_MOD_INIT): Likewise.
21448 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21449 ARRAY_SIZE while on it.
21450 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21451 * grub-core/normal/context.c (grub_env_export): Move from here ...
21452 * grub-core/kern/env.c (grub_env_export): ... here.
21453 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21455 * grub-core/kern/main.c (grub_main): Export root and prefix.
21456 * include/grub/env.h (grub_env_export): Export.
21457 Reported by: Seth Goldberg.
21459 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21461 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21462 Take into account space used by ELF sections and multiboot palette.
21463 Reported by: Grégoire Sutre.
21465 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21469 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21471 Pass more appropriate video id to Linux.
21473 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21474 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21476 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21477 shift params->lfb_size.
21478 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21480 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21482 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21484 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21486 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21487 separator and pass bootpath/devid even if only one of them is available.
21488 Reported by: Seth Goldberg.
21490 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21492 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21493 implementations bug on them.
21495 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21497 (filter_memory_map): Likewise.
21499 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21501 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21502 Reported by: nebuchadnezzar.
21504 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21506 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21507 Reported by: nebuchadnezzar.
21509 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21511 Submenu default support.
21513 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21514 auto_boot. All users updated.
21516 Handle chosen and default with submenus.
21517 (grub_menu_execute_with_fallback): Declared static.
21518 Don't notify failure if autobooted. Upper level does it.
21519 (menuentry_eq): New function.
21520 (get_entry_number): Use menuentry_eq.
21521 (show_menu): New parameter "autobooted". All users updated.
21522 (grub_show_menu): Likewise.
21523 * include/grub/normal.h (grub_show_menu): Likewise.
21524 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21525 (grub_menu_execute_with_fallback): Likewise.
21527 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21529 * util/grub-mklayout.c (usage): Update help text.
21531 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21533 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21535 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21537 * util/grub-menulst2cfg.c (main): Trim the line.
21539 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21541 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21542 (grub_machine_init): Don't check amount of low memory as reportedly
21543 INT 12h can be broken and if low memory is too low we wouldn't have
21544 gotten into grub_machine_init anyway.
21546 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21548 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21549 (grub_machine_mmap_iterate): Take low memory into account
21551 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21553 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21555 Reported by: TiCPU.
21557 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21559 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21562 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21564 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21565 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21567 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21569 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21570 openbsd and netbsd types being in part_bsd module.
21572 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21574 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21575 (_FILE_OFFSET_BITS): Likewise.
21576 Reported by: Seth Goldberg.
21578 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21580 * configure.ac: Check for libdevmapper header.
21582 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21584 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21586 (fzap_lookup): Likewise.
21587 (dnode_get): Likewise.
21588 (make_mdn): Likewise.
21589 (zfs_mount): Likewise.
21590 (fzap_iterate): Use temporary pointer to avoid aliasing.
21591 (grub_zfs_read): Likewise.
21592 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21593 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21594 pointers to avoid aliasing.
21595 (grub_cmd_xnu_kernel64): Likewise.
21596 (grub_xnu_load_driver): Likewise.
21598 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21600 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21602 (grub_cmd_terminal_output): Likewise.
21603 Reported and tested by: Grégoire Sutre.
21605 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21607 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21609 Reported and tested by: Grégoire Sutre.
21611 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21613 * configure.ac: Do CPU substitution even if it's specified explicitly.
21614 Reported and tested by: Alain Greppin.
21616 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21618 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21619 Reported and tested by: Alain Greppin.
21621 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21623 Satisfy some bison versions need for inttypes.h.
21625 * grub-core/lib/posix_wrap/inttypes.h: New file.
21626 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21627 (int16_t): Likewise.
21628 (int32_t): Likewise.
21629 (int64_t): Likewise.
21630 Reported and tested by: Alain Greppin.
21632 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21634 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21635 Silence spurious warning.
21636 Reported and tested by: Alain Greppin.
21638 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21640 * docs/grub.texi (Support automatic decompression): Update with xz
21641 decompression support.
21643 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21645 Improve loaders' kernel command line handling.
21647 * grub-core/lib/cmdline.c: New file.
21648 * include/grub/lib/cmdline.h: Likewise.
21649 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21650 grub_create_loader_cmdline to create kernel command line.
21651 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21652 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21653 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21654 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21655 (linux): Add lib/cmdline.c on common.
21657 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21659 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21660 inopos might be unaligned.
21662 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21664 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21665 endian transformations.
21666 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21667 Based on report by: Doug Nazar.
21669 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21671 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21672 array->members[i].start_sector.
21673 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21675 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21677 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21678 Reported and tested by: Grégoire Sutre.
21680 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21682 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21683 avoid causing test failures by clearing the screen.
21685 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21687 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21688 Fix prefix check to handle the case where dir ends with a slash
21689 (most significantly, "/" itself).
21690 Reported by: Michael Vogt.
21692 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21694 Run terminfo_cls on initing terminfo output to clear the screen and
21695 move the cursor to (0,0).
21697 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21698 Call grub_terminfo_output_init.
21699 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21700 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21701 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21703 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21705 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21708 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21710 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21713 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21715 The E820 type 5 is BADRAM, not EXEC_CODE.
21717 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21718 (GRUB_E820_BADRAM): New define.
21719 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21720 into reserved. Propagate BADRAM.
21721 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21722 (GRUB_E820_BADRAM): New define.
21724 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21726 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21727 Ignore the memory post-4G.
21728 (grub_relocator_firmware_alloc_region): Additional debug statement.
21730 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21732 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21734 Reported by: David Pravec.
21736 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21738 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21741 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21743 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21745 (grub_reed_solomon_recover): Likewise.
21747 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21749 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21751 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21753 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21756 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21758 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21759 descriptions of extract_legacy_entries_source and
21760 extract_legacy_entries_configfile.
21761 Reported by: Seung Soo, Ha.
21763 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21765 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21766 on devices that do not implement function 0.
21768 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21770 * grub-core/fs/hfsplus.c: Make parent unsigned.
21771 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21773 (grub_hfsplus_cmp_extkey): Likewise
21775 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21777 * util/grub-install.in: Correctly use bootloader_id and not
21778 GRUB_DISTRIBUTOR on efibootmgr line.
21780 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21782 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21784 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21786 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21787 Xen and reorder menu item wording to make it clearer that this entry
21788 will launch Xen. Print separate messages when loading Xen and
21791 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21793 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21794 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21795 loop in case of incorrect amiga partmap.
21797 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21799 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21800 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21803 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21805 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21807 Reported by: crocket
21809 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21811 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21813 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21815 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21817 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21819 (grub_cmd_xnu_kextdir): Likewise.
21820 (grub_cmd_xnu_splash): Likewise.
21822 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21824 Avoid using Reed-Solomon with 0 redundancy.
21826 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21827 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21829 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21830 (grub_reed_solomon_recover): Likewise.
21832 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21834 Don't use disk subsystem in freebsd_boot.
21836 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21837 (freebsd_biosdev): Likewise.
21838 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21839 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21841 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21843 Handling of files of unknown size is currently limited. They can't be
21844 used e.g. for initrd or modules. Moreover gzip handling of not
21845 easily seekable files is buggy. Disable unknown file size for now. May
21846 be inefficient but works.
21848 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21849 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21851 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21853 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21856 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21858 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21860 2010-12-25 Shea Levy <shlevy>
21862 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21864 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21866 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21867 Windows Server 2008.
21868 Reported by: Devin Giddings.
21870 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21872 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21873 writing an error message because of async power management.
21874 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21875 (grub_reboot): Likewise.
21877 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21879 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21880 keep unit tests from failing when they shouldn't.
21882 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21884 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21885 previous patch increased the size of the RS code by 20 bytes (at
21886 least with gcc-4.4), so increase this by 20 bytes to match.
21887 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21889 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21891 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21892 scratch area. Make sure to initialise chosen in standalone mode as
21893 well as non-standalone.
21894 Reported by: Robert Hooker and Andy Whitcroft.
21895 Tested by: Andy Whitcroft.
21897 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21899 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21900 constructing a new unescaped string and passing it to grub_xputs in
21901 one go, rather than passing characters to grub_printf one at a time.
21903 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21905 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21906 initialising utf16.
21908 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21910 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21911 comment. Add an extra layer of quotation, requiring the output of
21912 this function to be used in a printf format string.
21913 (gettext_printf): New function.
21914 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21915 Extract translatable strings from here-documents and use a temporary
21916 variable instead, so that xgettext can find them.
21917 * util/grub.d/10_kfreebsd.in: Likewise.
21918 * util/grub.d/10_linux.in: Likewise.
21919 * util/grub.d/20_linux_xen.in: Likewise.
21921 * po/grub.d.sed: New file.
21922 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21923 arguments. Set c-format flags on all strings extracted from
21924 util/grub.d/ (xgettext refuses to include these itself for strings
21925 it extracted from a shell file, but these really are c-format).
21927 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21929 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21930 Avoid next pointing to nowhere.
21932 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21934 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21935 rather than assuming than rootblock is exactly in the middle.
21936 (grub_affs_label): Likewise.
21938 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21940 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21941 reserved_first_sector to 0.
21942 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21943 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21944 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21946 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21948 Fix handling of UTF-16 UDF labels.
21950 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21951 (read_string): .. here.
21952 (grub_udf_label): Use read_string.
21954 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21956 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21957 editor under argument scope.
21958 Reported by: Jordan Uggla
21960 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21962 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21964 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21966 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21967 line, and other keys scroll an entire page (previous handling was
21968 for \r and \n to scroll a page and other keys to scroll two lines).
21970 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21972 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21973 Set ptrdest to correct get_physical_target_address rather than
21974 incorrect get_virtual_current_address.
21976 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21978 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21979 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21981 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21983 * .bzrignore: Ignore grub-core/rs_decoder.S.
21985 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21987 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21988 .mo/.mo.gz opening sequence to ...
21989 (grub_mofile_open_lang): ... here.
21990 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21991 * util/grub.d/00_header.in (grub_lang): Include country part of
21993 Reported by: Mario Limonciello.
21995 2010-12-09 Robert Millan <rmh@gnu.org>
21997 * NEWS: Document addition of ZFS support.
21999 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
22001 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
22002 rather than `/ 2', as the latter requires -Wa,--divide which would
22003 require bumping our minimum binutils version.
22005 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
22007 * util/grub-script-check.c (main): Print script line number on
22010 2010-12-01 Robert Millan <rmh@gnu.org>
22012 * grub-core/fs/zfs/zfs.c: New file.
22013 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22014 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22015 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22016 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22018 * include/grub/zfs/dmu.h: Likewise.
22019 * include/grub/zfs/dmu_objset.h: Likewise.
22020 * include/grub/zfs/dnode.h: Likewise.
22021 * include/grub/zfs/dsl_dataset.h: Likewise.
22022 * include/grub/zfs/dsl_dir.h: Likewise.
22023 * include/grub/zfs/sa_impl.h: Likewise.
22024 * include/grub/zfs/spa.h: Likewise.
22025 * include/grub/zfs/uberblock_impl.h: Likewise.
22026 * include/grub/zfs/vdev_impl.h: Likewise.
22027 * include/grub/zfs/zap_impl.h: Likewise.
22028 * include/grub/zfs/zap_leaf.h: Likewise.
22029 * include/grub/zfs/zfs.h: Likewise.
22030 * include/grub/zfs/zfs_acl.h: Likewise.
22031 * include/grub/zfs/zfs_znode.h: Likewise.
22032 * include/grub/zfs/zil.h: Likewise.
22033 * include/grub/zfs/zio.h: Likewise.
22034 * include/grub/zfs/zio_checksum.h: Likewise.
22036 * Makefile.util.def: Build ZFS into libgrubmods.
22037 * grub-core/Makefile.core.def: Build zfs.mod.
22039 2010-11-30 Szymon Janc <szymon@janc.net.pl>
22041 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22043 * grub-core/commands/wildcard.c (match_files): Likewise.
22045 2010-11-30 Robert Millan <rmh@gnu.org>
22047 * grub-core/loader/i386/bsd.c
22048 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22049 whether kernel is loaded using grub_loader_is_loaded(), rather
22050 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22051 certain error conditions.
22053 2010-11-30 Robert Millan <rmh@gnu.org>
22055 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22056 (grub_cmd_echo): Call grub_refresh() after printing a message.
22058 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22060 Avoid using tricks for initialising endian variables.
22062 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22064 (GRUB_MOD_INIT): Don't byte-swap.
22065 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22066 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22067 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22068 (grub_swap_bytes32_compile_time): Likewise.
22069 (grub_cpu_to_le32_compile_time): Likewise.
22070 (grub_cpu_to_le16_compile_time): Likewise.
22072 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22074 * util/grub-setup.c (setup): Stop recommending --force. People who
22075 understand the dangers of blocklists are able to find this option
22076 anyway and the ones who don't shouldn't use it anyway.
22078 2010-11-26 Robert Millan <rmh@gnu.org>
22080 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22083 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22085 Fix LVM-on-RAID probing.
22087 * util/grub-probe.c (probe): Remember which disk was detected as
22088 RAID (perhaps an LVM physical volume). Use that disk's raidname
22089 rather than that of the top-level disk.
22091 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22093 Fix cmdline argument quotes for setparams command of menuentry
22096 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22097 quotes for arguments.
22098 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22099 grub_strchrsub function instead.
22101 * include/grub/misc.h (grub_strchrsub): New function.
22103 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22105 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22106 effort by skipping "." and ".." entries up-front.
22107 Suggested by: Michael Lazarev.
22109 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22111 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22112 ldflags to ldadd, to fix link line ordering.
22113 (none_decompress): Likewise.
22115 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22117 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22119 (grub-emu-lite): Remove kern/emu/cache.S.
22121 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22123 * util/deviceiter.c (compare_devices): If the by-id link for a
22124 device couldn't be resolved, fall back to sorting by the by-id link
22125 rather than segfaulting.
22126 Reported and tested by: Daniel Mierswa.
22128 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22130 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22131 ldflags, to fix link line ordering.
22133 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22135 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22136 linkers are picky about this.
22138 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22140 * grub-core/Makefile.am (command.lst): Adjust sed expression
22141 ordering so that extended and priority commands aren't treated as
22144 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22146 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22147 Remove byte-swapping function calls, which are not valid in
22148 structure initialisers.
22149 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22151 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22152 grub_gpt_partition_type_bios_boot.
22154 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22156 Fix test program build on GNU/kFreeBSD.
22158 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22159 $(LIBNVPAIR)' library dependencies.
22161 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22163 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22165 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22167 * util/grub-install.in: Remove excessive quoting that broke
22168 installations to RAID devices.
22170 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22172 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22173 bootloader version instead of 0.
22175 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22177 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22180 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22182 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22183 retrieve the metadat sector if size isn't known.
22184 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22186 2010-11-18 Robert Millan <rmh@gnu.org>
22188 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22189 with grub_memcmp().
22191 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22193 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22195 Reported by: Jordan Uggla.
22197 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22199 Make better UTF compliant.
22201 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22202 sequences as incorrect.
22203 (grub_is_valid_utf8): Likewise.
22204 (grub_utf8_to_ucs4): Likewise.
22205 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22206 (grub_ucs4_to_utf8_alloc): Likewise.
22207 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22209 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22211 Make legacy_source behave like source.
22213 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22215 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22217 2010-11-16 Colin Watson <cjwatson@debian.org>
22219 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22220 (-Wunused implies -Wunused-parameter, but not vice versa).
22222 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22224 * configure.ac: Make error messages less confusing by testing for
22225 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22226 accepted, but produces a diagnostic if something else is wrong).
22228 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22230 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22231 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22233 (grub_keyboard_controller_init)
22234 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22235 read the initial state since controller isn't inited yet.
22237 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22239 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22240 allocate_regbeg may need to create new chunk header.
22242 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22244 Fix quoting in legacy parser.
22246 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22248 (grub_legacy_parse): Likewise.
22249 Reported by: Jordan Uggla.
22250 Tested by: Jordan Uggla.
22252 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22254 Don't add -lgcc on i386 and x86_64.
22256 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22257 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22258 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22260 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22262 * configure.ac: Add -Wno-trampolines when supported.
22264 2010-11-14 Modestas Vainius <modax@debian.org>
22266 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22269 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22271 Add generic logical block size support for UDF.
22273 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22274 (GRUB_UDF_BLKSZ): Removed.
22275 (struct grub_udf_data): New field "lbshift" to hold the logical block
22276 size of the file system in log2 format. All users updated.
22277 (sblocklist): Change type to unsigned.
22278 (grub_udf_mount): Change type of "sblklist" to unsigned.
22279 Move AVDP search before VRS recognition, because the latter requires
22280 knowledge of the logical block size, which is detected during the
22282 Detect and validate logical block size during AVDP search, adding
22283 support for block sizes 512, 1024 and 4096.
22284 Make VRS recognition independent of block size.
22286 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22288 Properly handle deleted files on UDF.
22290 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22291 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22294 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22296 Support reading files larger than 2 GiB.
22298 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22299 "offset" to grub_off_t.
22300 (grub_udf_read_file): Likewise for parameter "pos".
22302 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22304 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22306 (Simple configuration): Refer to Changes from GRUB Legacy about
22307 save_env availability.
22309 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22311 * util/grub-install.in: Ignore empty partition table detection
22312 instead of trying to include part_ module.
22314 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22316 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22317 LVM on RAID support.
22319 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22321 Properly define WORDS_BIGENDIAN in wrapped environments.
22323 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22325 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22327 Reported by: Manoel Rebelo Abranches.
22328 Tested by: Manoel Rebelo Abranches.
22330 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22332 * util/grub-mkconfig.in: Fix quoting.
22334 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22336 Support big ext2 files.
22338 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22339 (grub_ext2_read_block): Support triple indirect blocks.
22340 (grub_ext2_read_file): Use 64-bit types and read size_high.
22341 (grub_ext2_open): Read size_high.
22342 Reported by: Ximin Luo.
22343 Tested by: Manoel Rebelo Abranches.
22345 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22347 * util/grub-install.in: Handle filenames containing spaces.
22348 Reported by: Jordan Uggla.
22349 Tested by: Jordan Uggla.
22351 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22353 * util/grub-mkconfig.in (grub_script_check): New variable.
22354 Use grub_script_check instead of grub-script-check.
22355 Reported by: Barry Jackson.
22357 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22359 * docs/grub.texi (menu): Correct the order.
22360 Reported by: D. Hugh Redelmeier.
22362 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22364 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22367 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22369 * include/grub/elfload.h (grub_elf32_size): New parameter.
22371 Return maximum segments alignment.
22372 (grub_elf64_size): Likewise.
22373 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22374 Return maximum segments alignment.
22375 (grub_elf64_size): Likewise.
22376 * grub-core/loader/powerpc/ieee1275/linux.c:
22377 (grub_linux_claimmap_iterate): New function. Uses the
22378 "available" property in the "memory" node for memory allocation
22379 for kernel in the PowerPC loader.
22380 (grub_linux_load32): Correctly find linux entry point offset.
22381 (grub_linux_load64): Likewise.
22383 2010-11-07 Robert Millan <rmh@gnu.org>
22385 On mips-yeeloong, build with -march=loongson2f when this flag is
22386 available (GCC >= 4.4).
22387 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22389 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22390 or otherwise add -march=mips3.
22392 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22394 Suppress shell expansion on echo '*' and echo "*" like cases.
22395 Reported by: Jordan Uggla.
22397 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22398 string arguments before shell expansion.
22399 * tests/grub_cmd_echo.in: New testcases.
22401 2010-11-07 Robert Millan <rmh@gnu.org>
22403 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22406 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22408 * grub-core/kern/emu/hostdisk.c
22409 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22411 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22413 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22414 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22415 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22417 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22419 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22421 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22423 * util/grub-install.in: Replace useless recomendation to pass
22424 --modules with a recomendation to report a bug.
22426 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22428 Properly register serial terminfo.
22429 Reported by: Jordan Uggla
22431 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22433 (grub_serial_terminfo_output_template): Likewise.
22434 (grub_cmd_serial): Register "serial" with terminfo.
22435 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22436 grub_serial_terminfo_output.
22438 2010-11-05 Robert Millan <rmh@gnu.org>
22440 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22443 2010-11-05 Robert Millan <rmh@gnu.org>
22445 On Yeeloong, pass machine type information to Linux.
22447 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22448 (LOONGSON_MACHTYPE): New macro, set to
22449 "machtype=lemote-yeeloong-2f-8.9inches".
22450 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22451 additional argument to Linux.
22453 2010-11-04 Robert Millan <rmh@gnu.org>
22455 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22456 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22457 (its SATA disks are detected as slaveless IDE master drives on
22459 Reported by Carsten Aulbert.
22461 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22463 * util/bin2h.c (main): Fix spelling error in generated output.
22465 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22467 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22469 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22471 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22472 vga= option is supplied.
22474 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22476 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22477 * util/grub.d/10_kfreebsd.in: Likewise.
22478 * util/grub.d/10_linux.in: Likewise.
22479 * util/grub.d/20_linux_xen.in: Likewise.
22481 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22483 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22484 argument as an argument to no-argument option.
22486 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22488 * util/grub.d/10_linux.in: Add missing load_video with explicit
22489 GRUB_GFXPAYLOAD_LINUX.
22491 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22493 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22495 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22497 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22498 elements with invlid index.
22499 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22500 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22502 * include/grub/raid.h (grub_raid_member): New struct.
22503 (grub_raid_array): Transform devices and start_sector into usage of
22504 grub_raid_member. All users updated
22505 (allocated_devs): New member.
22507 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22509 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22512 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22514 NetBSD build fix for getline function conflict from gnulib.
22516 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22517 components that depend on gnulib headers.
22518 (libgrubmods.a): Renamed from earlier libgrub.a.
22519 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22521 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22523 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22524 install rather than creating a broken install.
22526 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22528 * util/grub-setup.c (argp): Remove misleading example of installing to
22531 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22533 * util/grub-setup.c (setup): Clarify the error message.
22535 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22537 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22539 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22541 * grub-core/kern/emu/misc.c
22542 (grub_make_system_path_relative_to_its_root)
22543 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22545 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22547 * grub-core/kern/emu/misc.c
22548 (grub_make_system_path_relative_to_its_root): Revert r2882.
22550 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22552 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22553 useless field head. All users updated.
22554 (free_subchunk): Correct handling of IN_REGION subchunk.
22556 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22558 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22559 (Supported kernels): Likewise.
22561 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22563 Make mktemp invocations portable.
22565 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22566 exit if mktemp fails.
22567 * tests/grub_script_blockarg.in: Likewise.
22568 * tests/partmap_test.in: Likewise.
22569 * tests/util/grub-shell-tester.in: Likewise.
22570 * tests/util/grub-shell.in: Likewise.
22571 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22572 * Makefile.am: Likewise, and chain shell commands with `&&'
22574 * util/grub-mkrescue.in: Use the same explicit template as above, and
22575 exit if mktemp fails.
22577 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22579 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22580 Linux kernel, reported by Dennis Schridde.
22582 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22584 * grub-core/normal/auth.c (grub_auth_check_authentication):
22585 Set-but-not-used variable removed.
22587 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22589 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22590 32-bit linux protocol.
22592 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22594 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22595 cursor shape for sanity.
22597 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22599 * docs/grub.texi (Installation): Document buggy BIOS install.
22601 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22603 * docs/grub.texi (Installation): Indent.
22605 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22607 * util/grub-setup.c (setup): New parameter allow_floppy.
22608 (arguments): New member allow_floppy.
22609 (argp_parser): Handle --allow-floppy.
22610 (main): Pass allow_floppy.
22611 * util/grub-install.in: New option --allow-floppy passed though to
22614 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22616 * util/grub-install.in: Handle partitionless disks.
22618 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22620 * util/grub-setup.c (setup): Don't clean blocklists before readability
22623 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22625 * docs/grub.texi (Installation): Document embedding zone. Remove
22626 obsolete grub-install example.
22628 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22630 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22631 Set-but-not-used variable ifdef'ed.
22632 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22633 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22635 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22636 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22637 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22638 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22639 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22640 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22641 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22642 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22643 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22644 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22645 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22648 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22650 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22651 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22654 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22656 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22657 synonym to _S5_. Needed for some DSDTs.
22659 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22661 Userspace ACPI parser debugging.
22663 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22664 headers and add relevant defines. Don't include standard headers.
22665 (main) [GRUB_DSDT_TEST]: New function.
22666 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22667 Don't declare functions.
22669 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22671 Remove dead grub_efi_mm_fini.
22673 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22674 (ALLOCATED_PAGES_SIZE): Likewise.
22675 (MAX_ALLOCATED_PAGES): Likewise.
22676 (allocated_pages): Likewise.
22677 (grub_efi_allocate_pages): Don't record allocated pages.
22678 (grub_efi_free_pages): Likewise.
22679 (grub_efi_mm_init): Likewise.
22680 (grub_efi_mm_fini): Removed.
22682 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22684 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22685 (grub_efi_mm_init): Take into account the memory map size increase.
22687 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22689 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22690 (serial_hw_put): Wait based on real time rather than port reads. Don't
22692 * include/grub/serial.h (grub_serial_port): New field broken.
22694 2010-10-16 Robert Millan <rmh@gnu.org>
22696 * grub-core/kern/emu/misc.c
22697 (grub_make_system_path_relative_to_its_root): Fix premature return
22698 when processing non-root ZFS filesystems.
22699 Reported by Sergio Talens-Oliag.
22701 2010-10-15 Robert Millan <rmh@gnu.org>
22703 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22704 guarantee compressed ones are processed first.
22706 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22708 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22709 grub_efiemu_autocore.
22711 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22713 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22715 (grub_console_getkey): Use correct jae opcode rather than ja.
22717 2010-10-12 Robert Millan <rmh@gnu.org>
22719 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22720 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22721 variable. All references updated.
22723 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22725 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22727 Correctly distinguish mdraid flavours.
22729 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22730 (insert_array): New argument raid.
22731 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22732 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22733 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22735 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22737 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22738 handling of special keys.
22740 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22742 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22743 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22745 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22747 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22748 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22750 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22751 Use right endpoint when querying descriptor.
22753 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22755 Clear out 0x80 color bit on EFI.
22757 Reported by: decoder and meta tech.
22759 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22760 (grub_console_setcolorstate): Clear out 0x80 bit.
22761 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22762 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22763 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22765 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22767 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22770 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22772 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22773 mo_file after freeing.
22775 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22777 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22779 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22781 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22784 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22786 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22789 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22791 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22793 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22794 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22795 and terminfo.h when needed.
22796 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22797 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22798 (terminfo): Enable only on terminfokernel.
22799 (extcmd): Likewise.
22800 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22801 * include/grub/lib/arg.h: Likewise.
22802 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22803 incorrect usage of ->.
22805 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22807 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22808 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22810 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22812 Fix coreboot compilation.
22814 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22815 Take VBE info into account even if only text is supported.
22816 (fill_vbe_info): Take into account the case when only VGA text
22818 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22819 on coreboot, multiboot and qemu.
22821 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22823 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22825 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22827 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22829 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22832 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22834 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22835 if they were BSD-style.
22837 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22839 * grub-core/boot/i386/pc/lnxboot.S: Replace
22840 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22841 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22843 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22845 Write embedding zone using Reed-Solomon.
22847 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22848 * grub-core/Makefile.am (rs_decoder.S): New target.
22849 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22850 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22851 (multiboot): Move to RS part.
22852 (post_reed_solomon): New label.
22853 (grub_boot_drive): Move to non-RS part since it's modified in memory
22855 Include rs_decoder.S.
22856 * grub-core/lib/reed_solomon.c: New file.
22857 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22859 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22860 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22861 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22862 * include/grub/partition.h (grub_partition_map): Change prototype of
22863 embed to allow returning additional sectors.
22864 * include/grub/reed_solomon.h: New file.
22865 * util/grub-setup.c (setup): Handle Reed-Solomon.
22867 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22869 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22870 i386 and x86-64 definedness tests.
22872 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22874 Fix generation of kernel_syms.lst
22876 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22879 2010-09-26 Robert Millan <rmh@gnu.org>
22881 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22883 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22884 the pool is an array of devices, iterate through it and return the
22885 first device that passes a stat() test (instead of blindly returning
22888 2010-09-26 Robert Millan <rmh@gnu.org>
22890 Build fixes for GNU/kFreeBSD.
22892 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22893 to programs that require ZFS conversion.
22894 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22895 kernels that don't have FLOPPY_MAJOR.
22897 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22899 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22901 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22903 Fix grub-emu build.
22905 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22906 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22907 mdraid09 and mdraid1x.
22909 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22911 Re-enable grub-extras.
22913 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22914 avoid confusing Automake. Run autogen only twice, once for the top
22915 level and once for grub-core. Add Makefile.util.def and
22916 Makefile.core.def from extra modules to the appropriate autogen
22917 invocations. If Makefile.common exists in an extra module, include
22918 it in both Makefile.util.am and grub-core/Makefile.core.am;
22919 similarly, include any Makefile.util.common file in Makefile.util.am
22920 and any Makefile.core.common file in grub-core/Makefile.core.am.
22921 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22922 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22923 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22924 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22926 * gentpl.py (gvar_add): Turn GVARS into a set.
22927 (global_variable_initializers): Sort global variables on output.
22928 (vars_init): New function.
22929 (first_time): Likewise.
22930 (library): Ensure that non-global variable initialisations are
22931 emitted before the first time we emit code for a library block.
22932 Append to variables rather than setting them. Only emit
22933 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22934 each conditional path.
22935 (program): installdir() emits an Autogen macro, so must be passed to
22936 var_add rather than gvar_add.
22938 (script): Likewise.
22939 (rules): New function, centralising handling for different target
22940 types. Set up Guile association lists for first_time and vars_init,
22941 and send most output to a diversion so that variable initialisations
22942 can be emitted first.
22943 (module_rules): Use new rules function.
22944 (kernel_rules): Likewise.
22945 (image_rules): Likewise.
22946 (library_rules): Likewise.
22947 (program_rules): Likewise.
22948 (script_rules): Likewise.
22949 (data_rules): Likewise.
22951 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22953 * .bzrignore: Add contrib and grub-core/contrib. Remove
22954 grub-core/Makefile.gcry.am.
22956 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22958 * grub-core/lib/LzFind.c: Add missing include.
22959 * grub-core/lib/LzmaEnc.c: Likewise.
22960 * grub-core/script/lexer.c: Likewise.
22961 * grub-core/script/yylex.l: Likewise.
22962 * util/grub-macho2img.c: Likewise.
22963 * util/grub-menulst2cfg.c: Likewise.
22964 * util/grub-mklayout.c: Likewise.
22965 * util/grub-mkpasswd-pbkdf2.c
22966 * util/grub-mkrelpath.c: Likewise.
22967 * util/resolve.c: Likewise.
22969 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22971 * Makefile.util.def (example_unit_test): Add
22972 grub-core/gnulib/libgnu.a.
22974 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22976 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22978 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22980 Support xz compression on yeeloong.
22982 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22983 * configure.ac: Check for LZMA.
22984 * grub-core/Makefile.core.def (xz_decompress): New target.
22985 (none_decompress): Likewise.
22986 * grub-core/boot/decompressor/minilib.c: New file.
22987 * grub-core/boot/decompressor/none.c: Likewise.
22988 * grub-core/boot/decompressor/xz.c: Likewise.
22989 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22990 * grub-core/kern/mips/cache_flush.S: Likewise.
22991 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22992 * grub-core/kern/mips/startup.S: Move first stage to ...
22993 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22995 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22996 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22997 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22998 Allocate statically.
22999 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
23000 Allocate statically or use scratch. Don't check CRC32.
23001 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
23002 Allocate statically. Don't check CRC32.
23003 * include/grub/decompressor.h: New file.
23004 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
23006 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
23007 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
23008 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
23009 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23010 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23011 * util/grub-mkimage.c (grub_compression_t): New type.
23012 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23013 (image_target_desc): New field default_compression.
23014 (image_targets): Adjust yeeloong targets.
23015 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23016 (compress_kernel): New parameter comp.
23017 (generate_image): Likewise. Handle new compression case.
23018 (options): New option --compression
23020 (main): Handle new option.
23022 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23024 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23026 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
23028 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23029 typo in __i386__ conditional.
23031 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23033 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23036 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23038 Implement EFI and ACPI multiboot2 extensions.
23040 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23041 new tags as supported.
23042 (acpiv2_size): New function.
23043 (grub_multiboot_get_mbi_size): Take new tags into account.
23044 (grub_multiboot_make_mbi): Add new tags.
23045 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23047 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23049 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23050 Added missing configuration of USB device.
23052 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23054 * grub-core/normal/menu_entry.c (run): Make sure we always return
23057 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23059 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23060 NumberOfPages is UINT64 according to the UEFI specification, not
23061 UINTN. Fix printf format.
23063 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23065 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23066 `err' to grub_usb_err_t.
23067 Reported and tested by: KESHAV P.R.
23069 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23071 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23072 tpart non-const, so that we can assign to it. (Since this is a
23073 typedef, the constness refers to the pointer rather than what it
23076 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23078 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23079 $(top_srcdir)/grub-core/gnulib as well as
23080 $(top_builddir)/grub-core/gnulib.
23081 Reported by: KESHAV P.R.
23083 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23085 * util/grub-install.in: Fix the bootloader ID option to be
23086 consistently --bootloader-id, not --bootloader_id.
23087 Reported by: KESHAV P.R.
23089 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23091 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23092 check hash checksum." consistently translatable.
23094 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23096 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23099 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23101 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23102 (GRUB_MOD_INIT): Register sha1sum command.
23103 (GRUB_MOD_FINI): Unregister sha1sum command.
23105 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23107 Keep boot and grub directory names in sync with utils scripts
23109 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23110 * config.h.in: Add previous macros.
23111 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23112 * util/grub-install.in: Use $bootdir and $grubdir variables.
23114 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23116 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23117 convert partition names to disk names if the new `convert' parameter
23119 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23120 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23121 disk in its own right. This can happen with Xen disk images.
23123 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23125 * util/grub-editenv.c: Update strings to avoid warnings when generating
23127 * util/grub-setup.c: Likewise.
23129 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23131 * configure.ac: Change version to 1.99~beta0.
23133 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23135 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23137 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23139 * include/multiboot.h: Resynced with specification.
23140 * include/multiboot2.h: Likewise.
23142 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23144 Fix po directory handling.
23146 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23147 * grub-core/gnulib/Makefile.am: Import gettext module.
23148 * m4/gnulib-cache.m4: Likewise.
23149 * m4/gnulib-comp.m4: Likewise.
23150 * m4/gettext.m4: New file, from gnulib.
23151 * m4/glibc2.m4: Likewise.
23152 * m4/iconv.m4: Likewise.
23153 * m4/intdiv0.m4: Likewise.
23154 * m4/intl.m4: Likewise.
23155 * m4/intldir.m4: Likewise.
23156 * m4/intlmacosx.m4: Likewise.
23157 * m4/intmax.m4: Likewise.
23158 * m4/inttypes-pri.m4: Likewise.
23159 * m4/lcmessage.m4: Likewise.
23160 * m4/lib-ld.m4: Likewise.
23161 * m4/lib-link.m4: Likewise.
23162 * m4/lib-prefix.m4: Likewise.
23163 * m4/lock.m4: Likewise.
23164 * m4/nls.m4: Likewise.
23165 * m4/po.m4: Likewise.
23166 * m4/printf-posix.m4: Likewise.
23167 * m4/progtest.m4: Likewise.
23168 * m4/threadlib.m4: Likewise.
23169 * m4/uintmax_t.m4: Likewise.
23170 * m4/visibility.m4: Likewise.
23171 * po/Makefile.am: Remove.
23172 * po/Makefile.in.in: New file, from gettext.
23173 ($(DOMAIN).pot-update): Support POTFILES-shell.
23174 * po/Makevars: New file.
23175 * po/POTFILES-shell: Rename to ...
23176 * po/POTFILES-shell.in: ... this. Update.
23177 * po/POTFILES: Rename to ...
23178 * po/POTFILES.in: ... this. Update.
23179 * po/Rules-quot: New file, from gettext.
23180 * po/boldquot.sed: Likewise.
23181 * po/en@boldquot.header: Likewise.
23182 * po/en@quot.header: Likewise.
23183 * po/insert-header.sin: Likewise.
23184 * po/quot.sed: Likewise.
23185 * po/remove-potcdate.sin: Likewise.
23187 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23189 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23191 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23193 * util/grub.d/20_linux_xen.in: Use submenus.
23195 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23199 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23200 parameter submenu. All users updated.
23201 * grub-core/normal/main.c (free_menu): Rename to ...
23202 (grub_normal_free_menu): ... this. Made global.
23203 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23205 * grub-core/normal/menu_entry.c (screen): New field submenu.
23206 (make_screen): Set submenu.
23207 (run): Open new context if requested.
23208 * include/grub/menu.h (grub_menu_entry): New field submenu.
23209 * include/grub/normal.h (grub_normal_free_menu): New proto.
23211 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23213 Menu entries extractor.
23215 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23217 (GRUB_MOD_INIT): Register new variants.
23218 (GRUB_MOD_FINI): Unregister new variants.
23219 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23220 into grub_cmd_legacy_source.
23221 (grub_cmd_legacy_source): Implement extractor variants.
23222 (GRUB_MOD_INIT): Register new variants.
23223 (GRUB_MOD_FINI): Unregister new variants.
23224 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23226 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23227 search as an extractor.
23228 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23229 test as an extractor.
23230 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23232 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23233 (grub_env_new_context): New function.
23234 (grub_env_context_open): Likewise.
23235 (grub_env_extractor_open): Likewise.
23236 (grub_env_extractor_close): Likewise.
23237 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23238 grub_extractor_level.
23239 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23240 * include/grub/env.h (grub_env_extractor_open): New proto.
23241 (grub_env_extractor_close): Likewise.
23242 * include/grub/normal.h (grub_extractor_level): New external variable.
23244 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23246 Make cutmem accept a region specification.
23247 Suggested by: Samuel Thibault
23249 * grub-core/mmap/mmap.c (parsemem): New function.
23250 (grub_cmd_cutmem): Handle new arguments.
23252 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23254 New command cutmem.
23256 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23257 (GRUB_MOD_INIT): Register new command.
23258 (GRUB_MOD_FINI): Unregister new command.
23260 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23262 Support some annoying BSD and Minix subpartitions.
23264 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23265 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23266 Properly handle concatenation.
23267 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23268 * grub-core/normal/completion.c (iterate_partition): Likewise.
23269 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23270 contain partition. All users updated.
23271 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23273 (grub_openbsdlabel_partition_map): Likewise.
23274 (bsdlabel_partition_map_iterate): Rename to ..
23275 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23276 (bsdlabel_partition_map_iterate): New function.
23277 (netopenbsdlabel_partition_map_iterate): Likewise.
23278 (netbsdlabel_partition_map_iterate): Likewise.
23279 (openbsdlabel_partition_map_iterate): Likewise.
23280 (GRUB_MOD_INIT): Register new partmaps.
23281 (GRUB_MOD_FINI): Unregister new partmaps.
23282 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23283 (grub_partition_msdos_iterate): ... this. All users updated.
23284 Don't support embedding other than in a minix partition.
23285 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23287 * include/grub/partition.h (grub_partition): New field msdostype.
23288 * util/grub-install.in: Handle openbsd and netbsd types being in
23291 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23293 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23295 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23296 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23297 (mdraid09): ... this.
23298 (mdraid1x): New module.
23299 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23300 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23302 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23304 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23307 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23309 * grub-core/commands/efi/lsefimmap.c: Correct header.
23312 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23314 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23315 as printf format strings; the translations might contain '%' which
23316 could cause a crash.
23318 * util/grub-fstest.c (argp_parser): Likewise.
23319 * util/grub-setup.c (argp_parser): Likewise.
23322 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23324 Use argp in grub-fstest.
23326 * util/grub-fstest.c: Don't include getopt.h.
23328 (root): New variable.
23329 (args_count): Likewise.
23331 (num_disks): Likewise.
23332 (images): Likewise.
23334 (debug_str): Likewise.
23336 (options): Transformed to argp.
23338 (main): Split argument parsing into ...
23339 (argp_parser): ... this. Changed to argp format.
23340 (argp): New variable.
23341 (main): Use argp_parse.
23343 2010-09-20 Tristan Gingold <gingold@free.fr>
23344 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23345 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23347 * grub-core/commands/efi/lsefimmap.c: New file.
23348 * grub-core/Makefile.core.def (lsefimmap): New module.
23349 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23351 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23353 Pause the execution (10s max) if any errors are displayed so the user
23354 has a chance to see them.
23356 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23357 (grub_print_error): Increment grub_err_printed_errors.
23358 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23359 execution if any errors were displayed.
23360 (show_menu): Remove old code for pause.
23361 * grub-core/normal/menu_entry.c (run): Likewise.
23362 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23364 (grub_normal_get_char_counter): Likewise.
23365 * include/grub/err.h (grub_err_printed_errors): New external variable.
23366 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23368 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23370 Support multiboot VBE info.
23372 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23373 Take VBE info into account.
23374 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23375 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23376 Call fill_vbe_info when appropriate.
23377 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23378 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23380 (grub_multiboot_get_mbi_size): Take new tags into account.
23381 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23382 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23383 Call fill_vbe_tag when appropriate.
23384 (grub_multiboot_make_mbi): Properly align tags.
23385 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23387 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23389 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23391 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23393 Suport manual terminal geometry specification.
23395 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23396 Save state in grub_ofconsole_terminfo_output.
23397 (grub_ofconsole_term): Use grub_terminfo_getwh.
23398 (grub_ofconsole_getwh): Removed.
23399 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23400 (grub_serial_term): Use grub_terminfo_getwh.
23401 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23402 (options): New struct.
23403 (OPTION_*): New enum.
23404 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23405 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23407 (grub_terminfo_getwh): New proto.
23408 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23410 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23412 Handle legacy "terminal" command.
23414 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23416 (legacy_commands): Add terminal and title.
23417 (grub_legacy_parse): Handle terminal. Simplify title handling.
23419 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23421 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23422 parameters overflow.
23424 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23426 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23429 * docs/grub.texi (Shell-like scripting): Document `!'.
23430 (Network): Simplify using new i386-pc-pxe format. Mention
23435 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23437 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23438 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23441 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23443 * grub-core/commands/efi/lsefisystab.c: Correct header.
23444 * grub-core/commands/efi/lssal.c: Likewise.
23445 * grub-core/commands/testload.c: Likewise.
23447 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23449 * util/grub-mkrescue.in: Add explicit root argument to --set to
23450 prevent the UUID being interpreted as an argument to --set (matches
23451 previous change to prepare_grub_to_access_device).
23453 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23455 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23456 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23457 the verbosity of later #ifs.
23458 (find_partition_start): Define this function on FreeBSD too.
23459 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23461 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23464 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23466 * util/grub-editenv.c: Use argp instead of getopt.
23468 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23470 * util/grub-setup.c: Use argp instead of getopt.
23472 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23474 Use gnulib-tool to create gnulib source files.
23476 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23477 grub-core/gnulib directories
23478 * .bzignore: Add **/.deps and autogenerated gnulib files
23479 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23480 of gnulib macros, add grub-core/gnulib/Makefile
23481 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23482 include m4 directory to aclocal.
23483 * Makefile.util.def: Remove direct compilation of gnulib source files
23484 and use the new grub-core/gnulib/libgnu.a.
23485 * build-aux/config.rpath: move config.rpath from top directory to
23487 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23489 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23490 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23491 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23493 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23496 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23498 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23499 grub-core/genmod.sh and grub-core/gensyminfo.sh
23501 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23503 Add a test for echo command options.
23505 * tests/grub_cmd_echo.in: New test.
23506 * Makefile.util.def: Rules for new test.
23508 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23510 Remove crc.mod and move crc command to hashsum.mod.
23511 Remove lib/crc.c - users updated to use gcrypt implementation.
23513 * grub-core/commands/crc.c: Removed.
23514 * grub-core/Makefile.core.def (crc): Module removed.
23515 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23516 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23517 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23518 * grub-core/lib/crc.c: Removed.
23519 * include/grub/lib/crc.h: Removed.
23520 * Makefile.util.def (crc): Remove lib/crc.c
23521 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23522 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23523 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23524 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23525 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23526 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23528 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23530 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23532 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23534 Split config.h for util and core.
23536 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23537 (ADDR32): Likewise.
23538 (DATA32): Likewise.
23539 (BSS_START_SYMBOL): Likewise.
23540 (END_SYMBOL): Likewise.
23541 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23542 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23543 * config.h.in: New file.
23544 * configure.ac: Use config-util.h as config define file.
23545 Rename MACHINE into GRUB_MACHINE. All users updated.
23546 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23548 (NESTED_FUNC_ATTR): Likewise.
23549 Substitue new variables.
23550 (COND_HAVE_ASM_USCORE): New conditional.
23551 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23552 (kernel_syms.lst): Use ASM_PREFIX.
23553 * grub-core/kern/emu/console.c: Include config-util.h.
23554 * grub-core/kern/emu/misc.c: Likewise.
23555 * grub-core/kern/emu/mm.c: Likewise.
23556 * include/grub/emu/misc.h: Likewise.
23557 * include/grub/libgcc.h: Likewise.
23559 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23561 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23563 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23564 Fix GRUB_TERM_KEY_* constants usage.
23565 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23567 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23569 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23571 * grub-core/bus/usb/uhci.c: Remove empty define.
23572 (grub_uhci_check_transfer): Add missing cast.
23573 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23575 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23577 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23579 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23581 * grub-core/Makefile.core.def (legacycfg): Add
23582 lib/i386/pc/vesa_modes_table.c on emu.
23584 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23586 Reduce number of temporary files generated by build system.
23588 * grub-core/gencmdlist.sh: Removed.
23589 * grub-core/genfslist.sh: Removed.
23590 * grub-core/genhandlerlist.sh: Removed.
23591 * grub-core/genmodsrc.sh: Removed.
23592 * grub-core/genpartmaplist.sh: Removed.
23593 * grub-core/genparttoollist.sh: Removed.
23594 * grub-core/gentermiinallist.sh: Removed.
23595 * grub-core/genvideolist.sh: Removed.
23597 * grub-core/genmod.sh.in: New file.
23598 * grub-core/gensyminfo.sh.in: New file.
23600 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23601 * conf/Makefile.extra-dist: Update with new files.
23602 * gentpl.py: Remove rules related to unnecessary temporary files.
23603 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23605 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23607 * grub-core/bus/usb/uhci.c: Remove empty #define.
23608 * grub-core/genmoddep.awk: Updated with new syminfo format.
23609 * util/bash-completion.d/Makefile.am: Add config.log to
23612 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23614 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23616 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23618 * util/grub-mkconfig.in: Check the config script for syntax errors
23621 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23622 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23624 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23626 * util/grub-install.in: Add EFI and IEEE1275 support.
23627 * util/i386/efi/grub-install.in: Removed.
23628 * util/ieee1275/grub-install.in: Likewise.
23630 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23632 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23633 (grub_cmd_cmosclean): Likewise.
23634 (GRUB_MOD_INIT): Register command cmosclean.
23635 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23636 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23638 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23639 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23640 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23642 Add keyboard layouts support.
23644 * Makefile.util.def (grub-mklayout): New file.
23645 (grub-kbdcomp): New script.
23646 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23647 Add keyboard_layouts.h.
23648 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23649 commands/boot.c on yeeloong.
23650 (keylayouts): New module.
23651 * grub-core/bus/usb/ohci.c
23652 * grub-core/bus/usb/uhci.c
23653 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23654 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23655 (attach_root_port): Likewise.
23656 (poll_nonroot_hub): Likewise.
23657 (grub_usb_poll_devices): Likewise.
23658 (detach_device): Close transfer.
23659 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23661 (grub_usb_bulk_setup_readwrite): Likewise.
23662 (grub_usb_bulk_finish_readwrite): Likewise.
23663 * grub-core/commands/keylayouts.c: New file.
23664 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23665 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23667 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23668 support scancode 2.
23669 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23670 * include/grub/keyboard_layouts.h: New file.
23671 * util/grub-mklayout.c: New file.
23672 * util/grub-kbdcomp.in: Likewise.
23674 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23676 Unify memory types.
23678 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23679 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23681 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23682 (grub_upper_mem): Likewise.
23683 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23684 * include/grub/memory.h (grub_memory_type_t): New enum.
23687 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23689 * grub-core/Makefile.core.def (lsapm): New module.
23690 * grub-core/commands/i386/pc/lsapm.c: New file.
23691 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23692 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23694 * include/grub/i386/pc/apm.h: New file.
23695 * include/multiboot.h (multiboot_apm_info): New struct.
23697 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23699 GRUB-legacy configuration file support.
23701 * Makefile.util.def (grub-menulst2cfg): New util.
23702 * docs/man/grub-menulst2cfg.h2m: New file.
23703 * grub-core/Makefile.core.def (legacycfg): New module.
23704 * grub-core/commands/legacycfg.c: New file.
23705 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23706 (grub_normal_add_menu_entry): ... this.
23707 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23708 (grub_normal_set_password): ...this.
23709 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23710 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23711 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23712 * grub-core/lib/legacy_parse.c: New file.
23713 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23714 * include/grub/i386/pc/vesa_modes_table.h: New file.
23715 * include/grub/legacy_parse.h: Likewise.
23716 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23717 * util/grub-menulst2cfg.c: New file.
23719 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23721 * grub-core/kern/emu/hostdisk.c
23722 (convert_system_partition_to_system_disk): Initialise node.
23724 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23726 * grub-core/kern/emu/hostdisk.c
23727 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23729 Reported and based on patch by: Modestas Vainius.
23731 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23733 Fix DM-RAID probing with recent versions of device-mapper udev
23736 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23737 canonicalise device paths under /dev/mapper/.
23738 (convert_system_partition_to_system_disk): Compare the
23739 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23740 path, since device nodes under /dev/mapper/ are often symlinks.
23742 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23744 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23746 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23748 * configure.ac: Avoid some annoying error messages if freetype-config
23749 program is not found.
23751 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23753 Support RAID on virtio devices, and others.
23755 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23757 [__MINGW32__] (grub_find_device): ... this.
23758 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23759 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23760 reasonable default if dir is NULL.
23761 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23763 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23764 (grub_guess_root_device): Update callers.
23765 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23767 * util/raid.c (grub_util_getdiskname): Remove.
23768 (grub_util_raid_getmembers): Use grub_find_device rather than
23769 grub_util_getdiskname.
23771 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23773 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23774 needing to be compiled with serial support.
23775 (ls): Indicate that multiple files are accepted.
23776 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23777 indicate that multiple files are accepted.
23779 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23781 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23782 libgrub_a_init.c, and util/bash-completion.d/grub.
23784 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23786 * util/grub-setup.c (setup): Fix incorrect container semantics.
23788 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23790 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23792 Reported by: J. Nick Terry
23794 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23796 Move embedding routines to partmap sources files.
23798 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23799 [GRUB_UTIL]: New variable.
23800 (gpt_partition_map_iterate): Set part.parent.
23801 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23802 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23803 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23805 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23806 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23807 (grub_partition_map) [GRUB_UTIL]: New field embed.
23808 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23809 (setup): Use ->embed.
23811 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23813 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23815 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23816 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23818 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23820 Add function to get completions from usage.
23822 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23823 completions from usage. Use LC_ALL=C to get options properly.
23825 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23827 * grub-core/gnulib/basename-lgpl.c: Imported.
23828 * grub-core/gnulib/basename.c: Likewise.
23829 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23830 * grub-core/gnulib/dirname.c: Likewise.
23831 * grub-core/gnulib/dirname.h: Likewise.
23832 * grub-core/gnulib/stripslash.c: Likewise.
23834 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23836 * grub-core/gnulib/error.c: Resynced.
23837 * grub-core/gnulib/getopt.c: Likewise.
23838 * grub-core/gnulib/getopt_int.h: Likewise.
23839 * grub-core/gnulib/regex.h: Likewise.
23840 * grub-core/gnulib/regex_internal.c: Likewise.
23841 * grub-core/gnulib/regex_internal.h: Likewise.
23843 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23845 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23846 CRC calculations and validity checks.
23847 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23850 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23852 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23854 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23856 Fix incorrect echo options handling.
23857 Reported by: Yves Blusseau.
23859 * include/grub/command.h (grub_command_flags_t): New flags
23860 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23861 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23862 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23864 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23866 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23868 (GRUB_COMMAND_FLAG_MENU): Likewise.
23869 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23870 (GRUB_COMMAND_FLAG_TITLE): Removed.
23871 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23872 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23873 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23874 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23875 (grub_command_flags_t): New enum. All users updated.
23877 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23879 Fix solaris compilation.
23881 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23882 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23883 (grub-emu-list): Likewise.
23885 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23887 Remove deprecated root command.
23889 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23892 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23894 * util/i386/pc/grub-setup.c: Merge this ...
23895 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23896 * util/grub-setup.c: ... into this.
23897 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23900 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23902 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23905 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23907 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23910 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23912 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23913 explicit root argument to set to prevent UUID to be interpreted as
23916 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23918 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23920 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23922 Don't export grub_gate_a20.
23924 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23925 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23927 (grub_gate_a20): ... this. All users updated.
23928 * include/grub/i386/pc/init.h: Removed. All users updated.
23930 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23932 Create euro.pf2 which supports most European languages.
23934 * Makefile.am (grubdata_DATA): Add euro.pf2.
23935 (euro.pf2): New target.
23936 (CLEANFILES): Add euro.pf2.
23938 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23940 * configure.ac: Disable emu-usb by default to prevent inadvertent
23943 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23945 Disable usbserial on grub-emu since our libusb code isn't good enough
23948 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23949 (usbserial_pl2303): Likewise.
23950 (usbserial_ftdi): Likewise.
23952 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23954 * include/grub/disk.h (grub_disk): Remove has_partitions.
23956 * disk/loopback.c (grub_loopback): Remove has_partitions.
23958 (options): Remove partitions. All users updated.
23959 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23960 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23961 actual partition table is found.
23963 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23965 Remove readability checks (too many false negatives).
23967 * util/grub-install.in: Remove readability checks.
23968 * util/grub-mkconfig.in: Likewise.
23969 * util/grub.d/10_hurd.in: Likewise.
23970 * util/grub.d/10_kfreebsd.in: Likewise.
23971 * util/grub.d/10_linux.in: Likewise.
23972 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23975 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23977 Enable acpi shutdown on all ACPI platforms.
23979 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23980 on coreboo, multiboot and EFI.
23981 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23982 (grub_acpi_halt): Likewise.
23983 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23984 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23985 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23986 * grub-core/lib/i386/halt.c (grub_halt)
23987 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23989 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23991 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23994 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23996 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23997 * grub-core/video/efi_uga.c: Likewise.
23999 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24001 Filter devaliases and never open same device twice.
24003 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
24004 (last_ihandle): Likewise.
24005 (ofdisk_hash_ent): New member shortest.
24006 (ofdisk_hash_add): Add canonical path too.
24007 (scan): New function.
24008 (grub_ofdisk_iterate): Iterate over hashed entries.
24009 (compute_dev_path): Don't add :0.
24010 (grub_ofdisk_open): Don't really open the disk.
24011 (grub_ofdisk_close): Avoid closing unrelated disk.
24012 (grub_ofdisk_read): Implement reopen logic.
24013 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24015 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24018 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24022 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24023 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24024 right address. Add sparc64_ieee1275_ldflags.
24025 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24026 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24027 to grub_host_to_target_addr
24028 (load_image): Likewise.
24030 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24032 * grub-core/normal/completion.c (complete_file): Handle device
24034 Fix based on patch by Doug Nazar.
24036 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24038 grub-mknetdir script.
24040 * Makefile.util.def (grub-mknetdir): New module.
24041 * tests/util/grub-shell.in: Support boot=net
24042 * util/grub-mknetdir.in: New file.
24044 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24046 videoinfo on non-vbe.
24048 * grub-core/Makefile.core.def (vbeinfo): Removed.
24049 (vbetest): Removed.
24050 (videoinfo): New module.
24051 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24052 * grub-core/commands/i386/pc/vbetest.c: Removed.
24053 * grub-core/commands/videoinfo.c: New file.
24054 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24056 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24058 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24059 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24060 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24061 mode_number. New parameter mode. All users updated.
24062 (grub_video_gop_iterate): New function.
24063 (grub_video_efi_gop): New member iterate.
24064 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24065 (grub_vbe_set_video_mode): Remove setting useless fields.
24066 (vbe2videoinfo): New function.
24067 (grub_video_vbe_iterate): Likewise.
24068 (grub_video_vbe_setup): Use vbe2videoinfo.
24069 (grub_video_vbe_print_adapter_specific_info): New function.
24070 (grub_video_vbe_adapter): New fields iterate and
24071 print_adapter_specific_info.
24072 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24074 (grub_video_mode_info): New field mode_number.
24075 (grub_video_adapter): New fields iterate and
24076 print_adapter_specific_info.
24078 2010-09-13 Tristan Gingold <gingold@free.fr>
24079 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24080 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24082 * grub-core/commands/efi/lsefisystab.c: New file.
24083 * grub-core/commands/efi/lssal.c: Likewise.
24084 * grub-core/Makefile.core.def (lsacpi): New module.
24085 (lsefisystab): Likewise.
24086 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24087 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24088 (grub_efi_sal_system_table): New struct.
24089 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24090 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24091 (grub_efi_sal_system_table_platform_features): Likewise.
24092 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24093 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24094 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24095 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24097 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24099 Support explicit user claim that a device is BIOS-visible.
24101 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24102 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24103 * grub-core/kern/emu/hostdisk.c
24104 (convert_system_partition_to_system_disk): Support mdX.
24105 (find_system_device): New parameter add. All users updated.
24106 (grub_util_biosdisk_is_present): New function.
24107 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24110 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24112 Search hints support.
24114 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24117 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24119 Bash completion script for util commands
24121 * Makefile.am: Add util/bash-completion.d directory
24122 * configure.ac: Likewise.
24123 * util/bash-completion.d/Makefile.am: New file.
24124 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24126 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24128 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24129 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24130 Reported by: Yves Blusseau.
24132 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24134 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24135 partition size and offset.
24137 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24139 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24141 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24143 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24145 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24147 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24148 (grub_xvasprintf): Likewise.
24150 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24152 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24154 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24156 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24157 args ending with NULL.
24159 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24161 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24164 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24166 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24168 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24170 Shutdown using ACPI.
24172 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24173 * grub-core/commands/acpihalt.c: New file.
24174 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24175 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24176 (grub_acpi_halt): New proto.
24177 (GRUB_ACPI_SLP_EN): New const.
24178 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24179 (GRUB_ACPI_OPCODE_*): New enum.
24180 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24182 2010-09-11 Tristan Gingold <gingold@free.fr>
24183 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24184 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24186 * commands/lsacpi.c: New file.
24187 * grub-core/Makefile.core.def (lsacpi): New module.
24188 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24189 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24190 (grub_acpi_madt_entry_header): New struct.
24191 (grub_acpi_madt): Likewise.
24192 (grub_acpi_madt_entry_interrupt_override): Likewise.
24193 (grub_acpi_madt_entry_sapic): Likewise.
24194 (grub_acpi_madt_entry_lsapic): Likewise.
24195 (grub_acpi_madt_entry_platform_int_source): Likewise.
24196 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24197 (PRIuGRUB_UINT32_T): Likewise.
24198 (PRIxGRUB_UINT64_T): Likewise.
24200 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24202 Implement loading palette on ieee1275_fb.
24204 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24205 (have_setcolors): Likewise.
24206 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24207 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24208 (grub_video_ieee1275_set_palette): Implement.
24210 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24211 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24213 * util/grub-install.in (grub_partition): New variable.
24214 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24215 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24216 Fixes a bug reported by Yves Blusseau.
24218 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24222 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24223 =grub_cpu_flush_cache on all mips and not only yeeloong.
24224 * configure.ac (COND_mips): New conditional.
24225 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24227 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24228 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24229 [GRUB_LINKER_HAVE_INIT]: New function.
24230 (grub_emu_post_init): Likewise.
24231 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24232 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24233 * include/grub/cache.h (_mips): Include mips/cache.h.
24234 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24235 LVM and RAID prototypes.
24236 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24237 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24240 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24242 * util/grub-install.in: Don't try to verify core.img until after
24243 running grub-mkimage to create it.
24245 2010-09-10 Robert Millan <rmh@gnu.org>
24247 * util/grub.d/10_hurd.in: Add misc readability checks.
24248 * util/grub.d/10_kfreebsd.in: Likewise.
24249 * util/grub.d/10_linux.in: Likewise.
24251 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24253 * util/grub-install.in: ${imgext} won't be defined here until the
24254 install branch is merged. For the meantime, only verify core.img on
24255 i386-pc and sparc64-ieee1275 platforms.
24257 2010-09-10 Robert Millan <rmh@gnu.org>
24259 Solaris support in grub_find_zpool_from_dir(). Thanks
24260 Seth Goldberg for referring to getextmntent() facility.
24262 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24264 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24266 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24267 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24268 method for finding zpool name.
24270 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24272 grub-fstest needs the host and hostfs modules while other utilities
24273 actively require those modules to be absent, so grub-fstest needs
24274 its own initialisation and finalisation code.
24276 * Makefile.am (grub_fstest.pp): New target.
24277 (grub_fstest_init.lst): Likewise.
24278 (grub_fstest_init.c): Likewise.
24279 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24281 2010-09-10 Robert Millan <rmh@gnu.org>
24283 * configure.ac: Check for `struct statfs.f_fstypename' and
24284 `struct statfs.f_mntfromname'.
24286 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24287 kFreeBSD-specific code.
24289 2010-09-10 Robert Millan <rmh@gnu.org>
24291 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24292 on ZFS. Now non-main filesystems are supported as / too.
24294 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24296 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24297 and grub-core/disk/host.c to ...
24298 (grub-fstest): ... here. Having the host disk implementation
24299 present confuses grub-probe and other utility programs.
24301 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24302 when writing to a file, not when writing to stdout.
24304 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24306 * tests/partmap_test.in: New test for partitions.
24307 * Makefile.util.def: Rules for new test.
24309 2010-09-09 Robert Millan <rmh@gnu.org>
24311 * util/grub-probe.c (probe): Fix a pair of unhandled error
24314 2010-09-09 Robert Millan <rmh@gnu.org>
24316 Basic Btrfs support (detection and UUID).
24318 * grub-core/fs/btrfs.c: New file.
24319 * Makefile.util.def (library): Register btrfs.c.
24320 * grub-core/Makefile.core.def: Likewise.
24322 2010-09-08 Robert Millan <rmh@gnu.org>
24324 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24325 with (optional) parameters to specify device and relative path.
24326 * util/grub-install.in: Use is_path_readable_by_grub() to
24327 verify readability of a few critical files.
24328 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24329 verify readability of grub.cfg.new.
24331 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24333 Split minix.mod into minix.mod and minix2.mod.
24335 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24336 * grub-core/Makefile.core.def (minix2): New module.
24337 * grub-core/fs/minix.c: Use definitions instead of runtime version
24339 * grub-core/fs/minix2.c: New file.
24341 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24343 Add new --boot-directory option to replace --root-directory
24345 * util/grub-install.in: Add new --boot-directory option
24346 * util/grub-reboot.in: Likewise.
24347 * util/grub-set-default.in: Likewise.
24349 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24351 * util/grub-mkconfig.in: Use new variable.
24353 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24355 * configure.ac: Define some useful variables.
24357 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24359 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24360 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24361 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24362 Use terminfo and don't use cursor-on/cursor-off unless it's known
24364 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24365 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24367 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24369 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24370 starts with "(,", fill the drive containing the loaded image in
24371 between those two characters, but expect that a full partition
24372 specification including partition map names will follow.
24374 2010-09-08 Robert Millan <rmh@gnu.org>
24376 * configure.ac: Remove `--enable-grub-fstest' option.
24377 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24379 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24380 `grub-fstest' instead of `grub-probe' for readability verification.
24381 * util/grub-probe.c (probe): Remove readability verification kludge.
24383 2010-09-08 Robert Millan <rmh@gnu.org>
24385 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24386 initializing `GRUB_FS'.
24388 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24390 Not command (!) support to GRUB script.
24392 * tests/grub_script_not.in: New test.
24393 * Makefile.util.def: Rules for new test.
24395 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24396 ! command as a special case.
24397 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24399 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24401 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24404 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24406 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24408 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24410 * docs/grub.texi (Shell-like scripting): Documentation for break,
24411 continue, shift and return commands.
24413 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24415 Rename CD-ROM to cd on BIOS.
24417 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24419 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24421 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24423 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24424 * util/grub-probe.c (main): Likewise.
24425 * util/i386/pc/grub-setup.c (main): Likewise.
24426 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24427 Reported and debugged by: alexxy
24429 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24431 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24434 2010-09-05 Jo Shields <directhex@apebox.org>
24436 * util/grub.d/30_os-prober.in: Add missing classes.
24438 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24440 * docs/grub.texi (Theme file format): Document new position format.
24442 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24444 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24445 a table. Use @code instead of @verbatim.
24447 2010-09-05 Colin D Bennett <colin@gibibit.com>
24449 Gfxmenu documentation.
24451 * docs/grub.texi (Theme file format): New chapter.
24453 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24455 * grub-core/Makefile.core.def (xzio): New module.
24456 * grub-core/io/xzio.c: New file.
24457 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24458 * grub-core/lib/xzembed/xz_config.h: Likewise.
24459 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24460 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24461 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24462 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24463 * grub-core/lib/xzembed/xz_private.h: Likewise.
24464 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24465 * include/grub/file.h (grub_file_filter_id): New compression filter
24466 GRUB_FILE_FILTER_XZIO.
24468 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24470 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24471 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24474 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24476 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24477 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24479 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24481 Uncompressed checksum support.
24483 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24484 (check_list): New parameter uncompress.
24485 (grub_cmd_hashsum): Handle --uncompress.
24487 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24489 Reintroduce testload.
24491 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24493 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24494 (GRUB_MOD_INIT): New function.
24495 (GRUB_MOD_FINI): Likewise.
24496 * grub-core/Makefile.core.def (testload): New module.
24498 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24500 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24501 (uint8_t): New type.
24502 (uint16_t): Likewise.
24503 (uint32_t): Likewise.
24504 (uint64_t): Likewise.
24506 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24508 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24510 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24512 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24514 (grub_gzfile_open): Removed. All users updated.
24515 (GRUB_MOD_INIT): New function.
24516 (GRUB_MOD_FINI): Likewise.
24517 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24518 (grub_file_filters_enabled): Likewise.
24519 (grub_file_open): Handle filters.
24520 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24521 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24522 * include/grub/file.h (grub_file_filter_id_t): New type.
24523 (grub_file_filter_t): Likewise.
24524 (grub_file_filters_all): New extern variable.
24525 (grub_file_filters_enabled): Likewise.
24526 (grub_file_filter_register): New inline function.
24527 (grub_file_filter_unregister): Likewise.
24528 (grub_file_filter_disable): Likewise.
24529 (grub_file_filter_disable_compression): Likewise.
24530 * include/grub/gzio.h: Removed.
24532 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24534 Filename expansion support for wildcards in GRUB script.
24536 * tests/grub_script_expansion.in: New test.
24537 * Makefile.util.def: Rule for new test.
24539 * grub-core/commands/wildcard.c: New file, implements filename
24540 expansion support for GRUB script.
24541 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24542 * grub-core/script/argv.c: Cosmetic changes.
24543 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24544 Refactored to perform wildcard expansion on arguments.
24545 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24548 * tests/util/grub-shell.in: Fix quoting for read input.
24550 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24552 Support for updating environment variables with matched substrings
24555 * tests/grub_cmd_regexp.in: New test.
24556 * Makefile.util.def: Rule for new test.
24558 * grub-core/commands/regexp.c: New option -s to update environment
24559 variables with regexp matches.
24561 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24563 * include/grub/file.h (grub_file): New member not_easly_seekable.
24564 (grub_file_seekable): New inline function.
24565 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24567 (grub_gzio_open): Set not_easly_seekable.
24568 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24569 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24571 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24573 Support for options to appear multiple times on cmdline.
24575 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24576 * grub-core/commands/extcmd.c: Support for repeatable option.
24577 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24578 repeatable option support.
24580 Refactor menuentry into a regular command.
24582 * grub-core/commands/menuentry.c: New file, menuentry command
24584 * grub-core/Makefile.core.def: Rule update for normal.mod.
24585 * grub-core/normal/main.c: Moved menuentry creation to
24586 grub-core/commands/menuentry.c.
24587 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24588 (grub_menu_execute_entry_real): Removed.
24589 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24591 (grub_script_execute_menuentry): Removed.
24592 * grub-core/script/parser.y (menuentry): Removed.
24593 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24594 * grub-core/script/yylex.l (menuentry): Removed.
24595 * include/grub/menu.h (grub_menu_init): New prototype.
24596 (grub_menu_fini): New prototype.
24597 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24598 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24599 (grub_script_execute_sourcecode): New prototype.
24601 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24603 "return" command for GRUB script functions.
24605 * tests/grub_script_return.in: New test.
24606 * Makefile.util.def: Rules for new test.
24608 * grub-core/script/execute.c (grub_script_return): New function.
24609 * grub-core/script/main.c: Register/unregister return commaond.
24610 * include/grub/script_sh.h (grub_script_return): New prototype.
24612 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24614 "setparams" command to update positional parameters.
24616 * tests/grub_script_setparams.in: New test.
24617 * Makefile.util.def: Rules for new test.
24619 * grub-core/script/argv.c (grub_script_argv_make): New function.
24620 * grub-core/script/execute.c (replace_scope): New function.
24621 (grub_script_setparams): New function.
24622 * grub-core/script/lexer.c: Remove unused variables.
24623 * grub-core/script/main.c: Register/unregister setparams command.
24624 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24625 (grub_script_setparams): New prototype.
24627 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24629 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24632 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24634 Support for passing block of commands as an argument to extcmds.
24636 * Makefile.util.def: Rules for new test.
24637 * tests/grub_script_blockarg.in: New test.
24638 * grub-core/tests/test_blockarg.c: New file, block argument
24639 command used in the test.
24641 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24642 (grub_register_extcmd_prio): New function prototype.
24643 (grub_extcmd_dispatcher): New function prototype.
24644 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24646 * include/grub/script_sh.h (struct grub_script): New members
24647 `children', `next_siblings' and `refcnt' for block arguments and
24648 reference counting.
24649 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24650 (grub_script_arg): New member `script' for block argument.
24651 (grub_script_argv): New member `script' for block argument.
24652 (grub_parser_param): New member `scripts' for block argument.
24653 (grub_script_mem_free): New extern function prototype.
24654 (grub_script_ref): New function prototype.
24655 (grub_script_unref): New function prototype.
24657 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24658 extcmd form to support block arguments.
24659 * grub-core/script/argv.c: Block arguments support.
24660 * grub-core/script/execute.c: Likewise.
24661 * grub-core/script/lexer.c: Likewise.
24662 * grub-core/script/main.c: Likewise.
24663 * grub-core/script/script.c: Likewise.
24664 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24667 * grub-core/commands/acpi.c: Update extcmd implementations with
24668 grub_extcmd_context_t.
24669 * grub-core/commands/cat.c: Likewise.
24670 * grub-core/commands/echo.c: Likewise.
24671 * grub-core/commands/extcmd.c: Likewise.
24672 * grub-core/commands/hashsum.c: Likewise.
24673 * grub-core/commands/hdparm.c: Likewise.
24674 * grub-core/commands/help.c: Likewise.
24675 * grub-core/commands/hexdump.c: Likewise.
24676 * grub-core/commands/i386/cpuid.c: Likewise.
24677 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24678 * grub-core/commands/i386/pc/halt.c: Likewise.
24679 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24680 * grub-core/commands/iorw.c: Likewise.
24681 * grub-core/commands/keystatus.c: Likewise.
24682 * grub-core/commands/loadenv.c: Likewise.
24683 * grub-core/commands/ls.c: Likewise.
24684 * grub-core/commands/lspci.c: Likewise.
24685 * grub-core/commands/memrw.c: Likewise.
24686 * grub-core/commands/probe.c: Likewise.
24687 * grub-core/commands/search_wrap.c: Likewise.
24688 * grub-core/commands/setpci.c: Likewise.
24689 * grub-core/commands/sleep.c: Likewise.
24690 * grub-core/disk/loopback.c: Likewise.
24691 * grub-core/hello/hello.c: Likewise.
24692 * grub-core/loader/i386/bsd.c: Likewise.
24693 * grub-core/loader/xnu.c: Likewise.
24694 * grub-core/term/gfxterm.c: Likewise.
24695 * grub-core/term/serial.c: Likewise.
24696 * grub-core/tests/lib/functional_test.c: Likewise.
24698 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24700 Multi-line quoted strings support.
24702 * grub-core/script/lexer.c (append_newline): Removed.
24703 (grub_script_lexer_yywrap): Refactored.
24704 (grub_script_lexer_init): Refactored.
24705 * grub-core/script/yylex.l (yywrap): New function.
24706 (grub_lexer_resplit): New function.
24707 (grub_lexer_unput): New function.
24708 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24710 * tests/grub_script_echo1.in: Added few more testcases.
24712 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24714 * grub-core/kern/misc.c: Don't add abort alias in utils.
24715 Reported by: echoline.
24717 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24719 Add missing files into "make dist" tarball for other platforms.
24721 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24722 * conf/Makefile.common (dist_noinst_DATA): New variable.
24723 * conf/Makefile.extra-dist: Added missing make dist files.
24724 * grub-core/Makefile.core.def: Likewise.
24726 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24728 Compress grub_prefix.
24730 * grub-core/boot/i386/pc/lnxboot.S: Use
24731 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24732 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24733 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24734 GRUB_MACHINE_PREFIX_END. All users updated.
24735 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24736 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24738 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24739 * util/grub-mkimage.c (image_target_desc): Change data_end to
24740 prefix_end. All users updated.
24742 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24744 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24746 (grub_openbsd_boot): Likewise.
24747 (grub_netbsd_boot): Likewise.
24748 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24749 (grub_xnu_boot): Likewise.
24751 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24753 * configure.ac: Clean LIBS variable after tests.
24755 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24757 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24759 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24761 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24762 echo if libdevmapper will be used.
24764 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24766 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24767 constant for the same file.
24769 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24771 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24773 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24775 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24778 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24780 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24781 required by the boot protocol.
24783 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24784 ebp and edi members.
24785 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24786 state.ebp and state.edi.
24787 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24788 %ebp and %edi according to grub_relocator32_ebp and
24789 grub_relocator32_edi respectively.
24790 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24793 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24795 Add i386-pc-pxe image target.
24797 * util/grub-mkimage.c (image_target_desc): New enum value
24799 (image_targets): New target i386-pc-pxe.
24800 (generate_image): Handle i386-pc-pxe image.
24802 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24806 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24807 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24809 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24810 (grub_pxe_pxenv): Correct type.
24812 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24814 * NEWS: Document most of the important changes since 1.98.
24816 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24818 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24819 generated manual page) a little.
24821 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24823 * docs/grub.texi: Add myself as an author.
24825 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24827 * Makefile.util.def (libgrub.a): Add missing sunpc.
24828 Reported by: Seth Goldberg.
24830 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24832 Interrupt wrapping and code simplifications.
24834 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24835 x86_noieee1275 which are functionaly equivalent in this case.
24836 (grub-install): Make source on each platform explicit. Enable on
24838 * gentpl.py (x86_efi_pc): Removed group.
24839 (x86_noefi): Likewise.
24840 (i386_noefi): Likewise.
24841 (x86_noieee1275): Likewise.
24842 (i386_noieee1275): Likewise.
24843 (i386_noefi_noieee1275): Likewise.
24844 (i386_pc_qemu_coreboot): Likewise.
24845 (i386_coreboot_multiboot): Likewise.
24846 (i386_pc_coreboot_multiboot_qemu): Likewise.
24847 (x86_noefi_mips): Likewise.
24848 (noieee1275): Likewise.
24849 (ieee1275_mips): Likewise.
24850 (noemu_noieee1275): Likewise.
24853 (videoinkernel): Likewise.
24854 (videomodules): Likewise.
24855 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24856 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24857 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24858 include/grub/loader.h, include/grub/msdos_partition.h,
24859 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24860 include/grub/machine/console.h, include/grub/machine/vga.h,
24861 include/grub/machine/vbe.h, include/grub/machine/init.h,
24862 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24863 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24864 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24865 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24866 * grub-core/Makefile.core.def (kernel): Explicit the source for
24867 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24868 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24869 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24870 Use videoinkernel tag.
24871 (usb): Enable on all usb.
24872 (usbserial_common): Likewise.
24873 (usbserial_pl2303): Likewise.
24874 (usbserial_ftdi): Likewise.
24875 (uhci): Enable on all x86.
24876 (ohci): Enable on all pci.
24877 (cmostest): Enable on all CMOS.
24878 (acpi): Include commands/acpi.c on all platforms.
24879 (halt): Add relevant lib/*/halt.c.
24880 (hdparm): Enable on all pci.
24882 (usbtest): Enable on all usb.
24883 (ata): Enable on all pci.
24884 (ata_pthru): Likewise.
24885 (usbms): Enable on all usb.
24886 (usb_keyboard): Likewise.
24887 (font): Use tag videomodules.
24889 (datetime): Use tag cmos. Enable on all noemu.
24890 (mmap): Use tags common and x86.
24891 (gfxterm): Use tag videomodules.
24892 (bitmap): Likewise.
24893 (bitmap_scale): Likewise.
24894 (video_fb): Likewise.
24896 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24897 adjust padding accordingly. All users updated.
24898 (grub_ohci_transaction): Fix bad format specification.
24899 (GRUB_MOD_INIT): Add asserts for struct size.
24900 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24901 (grub_alloc_td): Likewise.
24902 (grub_free_queue): Likewise.
24903 (grub_uhci_transfer): Likewise.
24904 (grub_uhci_transaction): Fix bad format specification.
24905 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24906 (grub_usb_bulk_readwrite): Likewise.
24907 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24908 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24910 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24912 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24913 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24914 Transformed into C.
24915 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24916 Moved from here ...
24917 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24918 ... here. Transformed into C. Made static.
24919 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24920 Moved from here ...
24921 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24922 ... here. Transformed into C. Made static.
24923 * grub-core/kern/i386/pc/startup.S
24924 (grub_biosdisk_check_int13_extensions): Moved from here ...
24925 * grub-core/disk/i386/pc/biosdisk.c
24926 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24928 * grub-core/kern/i386/pc/startup.S
24929 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24930 * grub-core/disk/i386/pc/biosdisk.c
24931 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24932 Transformed into C. Made static.
24933 * grub-core/kern/i386/pc/startup.S
24934 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24935 * grub-core/disk/i386/pc/biosdisk.c
24936 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24937 Transformed into C. Made static.
24938 * grub-core/kern/i386/pc/startup.S
24939 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24940 * grub-core/disk/i386/pc/biosdisk.c
24941 (grub_biosdisk_get_diskinfo_standard): ... here.
24942 Transformed into C. Made static.
24943 * grub-core/kern/i386/pc/startup.S
24944 (grub_biosdisk_get_num_floppies): Moved from here ...
24945 * grub-core/disk/i386/pc/biosdisk.c
24946 (grub_biosdisk_get_num_floppies): ... here.
24947 Transformed into C. Made static.
24948 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24950 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24951 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24952 Transformed into C. Made static.
24953 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24954 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24955 Transformed into C. Made static.
24956 * grub-core/kern/i386/ieee1275/init.c: Removed.
24957 * grub-core/kern/i386/misc.S: Likewise.
24958 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24959 Splitted from here ...
24960 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24961 Transformed into C. Made static. All users updated.
24962 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24963 Transformed into C. Made static. All users updated.
24964 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24966 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24967 Transformed into C. Made static. All users updated.
24968 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24970 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24971 Transformed into C. Made static. All users updated.
24972 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24973 Removed (replaced by C version).
24974 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24976 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24977 Transformed into C. Made static.
24978 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24980 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24981 ... here. Transformed into C.
24982 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24984 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24985 ... here. Transformed into C.
24986 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24988 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24989 ... here. Transformed into C. Made static.
24990 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24992 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24993 ... here. Transformed into C.
24994 * grub-core/kern/i386/pc/startup.S
24995 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24996 * grub-core/video/i386/pc/vbe.c
24997 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24998 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
25000 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
25001 ... here. Transformed into C.
25002 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
25004 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
25005 ... here. Transformed into C.
25006 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
25008 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
25009 ... here. Transformed into C.
25010 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25012 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25013 ... here. Transformed into C.
25014 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25016 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25017 ... here. Transformed into C. Made static.
25018 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25020 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25021 ... here. Transformed into C. Made static.
25022 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25024 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25025 ... here. Transformed into C. Made static.
25026 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25027 pxe_rm_entry as third argument.
25028 (grub_bios_interrupt): New function.
25029 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25030 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25031 of calling grub_stop.
25032 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25033 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25034 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25035 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25036 * grub-core/lib/i386/halt.c: Moved from here ...
25037 * grub-core/lib/i386/halt.c: ... here.
25038 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25039 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25040 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25042 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25043 * include/grub/i386/coreboot/init.h: Removed.
25044 * include/grub/i386/multiboot/init.h: Likewise.
25045 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25046 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25047 * include/grub/i386/pc/int.h: New file.
25048 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25049 (grub_pxe_scan): Removed.
25050 (grub_pxe_call): Update prototype.
25051 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25053 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25054 * include/grub/i386/qemu/init.h: Removed.
25055 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25057 (grub_halt): Likewise.
25058 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25059 (grub_reboot): Likewise.
25060 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25061 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25062 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25064 2010-08-30 Robert Millan <rmh@gnu.org>
25066 * NEWS: Document addition of ZFS support in `grub-install' and
25069 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25071 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25074 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25076 Remove leftover embedding of font objects.
25078 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25079 * util/grub-install.in (font): Removed.
25080 * util/grub-mkimage.c (generate_image): Remove font support. All users
25083 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25085 Remove leftover embedding of font objects.
25087 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25088 * util/grub-install.in (font): Removed.
25089 * util/grub-mkimage.c (generate_image): Remove font support. All users
25092 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25094 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25095 Reported by: Ian Turner
25097 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25099 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25100 timeout to avoid indefinite boot stalling.
25102 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25104 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25105 (grub_env_write_color_highlight): Likewise.
25107 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25109 * grub-core/normal/term.c (print_more): Return to normal and not
25110 to standard state after printing "---MORE---".
25112 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25114 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25115 Mask out the bit 0x80 since it has other meaning that specifiing color.
25117 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25119 New relocator. Allows for more kernel support and more straightforward
25122 * Makefile.am (BOOTTARGET): New variable.
25123 (QEMU32): Likewise.
25124 (linux.init.x86_64): New target.
25125 (linux.init.i386): Likewise.
25126 (multiboot.elf): Likewise.
25127 (kfreebsd.elf): Likewise.
25128 (kfreebsd.aout): Likewise.
25129 (pc-chainloader.elf): Likewise.
25130 (pc-chainloader.bin): Likewise.
25131 (ntldr.elf): Likewise.
25132 (ntldr.bin): Likewise.
25133 (multiboot2.elf): Likewise.
25134 (kfreebsd.init.x86_64): Likewise.
25135 (kfreebsd.init.i386): Likewise.
25136 (knetbsd.init.i386): Likewise.
25137 (kopenbsd.init.i386): Likewise.
25138 (knetbsd.init.x86_64): Likewise.
25139 (kopenbsd.init.x86_64): Likewise.
25140 (linux-initramfs.i386): Likewise.
25141 (linux-initramfs.x86_64): Likewise.
25142 (kfreebsd-mfsroot.i386.img): Likewise.
25143 (knetbsd.image.i386): Likewise.
25144 (kopenbsd.image.i386): Likewise.
25145 (kopenbsd.image.x86_64): Likewise.
25146 (knetbsd.miniroot-image.i386.img): Likewise.
25147 (kfreebsd-mfsroot.x86_64.img): Likewise.
25148 (knetbsd.image.x86_64): Likewise.
25149 (knetbsd.miniroot-image.x86_64.img): Likewise.
25150 (kfreebsd-mfsroot.i386.gz): Likewise.
25151 (bootcheck-kfreebsd-i386): Likewise.
25152 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25153 (bootcheck-kfreebsd-x86_64): Likewise.
25154 (knetbsd.miniroot-image.i386.gz): Likewise.
25155 (bootcheck-knetbsd-i386): Likewise.
25156 (bootcheck-kopenbsd-i386): Likewise.
25157 (bootcheck-kopenbsd-x86_64): Likewise.
25158 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25159 (bootcheck-knetbsd-x86_64): Likewise.
25160 (bootcheck-linux-i386): Likewise.
25161 (bootcheck-linux-x86_64): Likewise.
25162 (bootcheck-linux16-i386): Likewise.
25163 (bootcheck-linux16-x86_64): Likewise.
25164 (bootcheck-multiboot): Likewise.
25165 (bootcheck-multiboot2): Likewise.
25166 (bootcheck-kfreebsd-aout): Likewise.
25167 (bootcheck-pc-chainloader): Likewise.
25168 (bootcheck-ntldr): Likewise.
25169 (CLEANFILES): Add new targets.
25170 (BOOTCHECKS): New variable.
25171 (.PHONY): Add bootchecks.
25172 (SUCCESSFUL_BOOT_STRING): New variable.
25173 (BOOTCHECK_TIMEOUT): Likewise.
25174 (bootcheck): New target
25175 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25176 * configure.ac: Correct efiemu excuse.
25177 * docs/grub.texi (Supported kernels): New chapter.
25178 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25179 include/grub/mm_private.h. Simplify inclusion of
25180 include/grub/boot.h, include/grub/loader.h
25181 and include/grub/msdos_partition.h
25182 (KERNEL_HEADER_FILES) [i386_coreboot]:
25183 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25184 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25185 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25186 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25187 include/grub/machine/loader.h.
25188 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25189 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25191 (pci.mod): Enable on i386-multiboot.
25192 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25193 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25195 (relocator.mod): Rewritten.
25196 (aout.mod): Enable on all x86.
25197 (bsd.mod): Likewise.
25198 (ntldr.mod): New module.
25199 (linux.mod): Use loader/i386/linux.c on all x86.
25200 (xnu.mod): Enable on all x86.
25201 (vga_text.mod): disable on EFI and QEMU.
25202 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25203 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25204 * grub-core/efiemu/loadcore.c: Likewise.
25205 * grub-core/efiemu/main.c: Likewise.
25206 (grub_efiemu_exit_boot_services): Removed.
25207 (grub_efiemu_finish_boot_services): Likewise.
25208 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25210 * grub-core/efiemu/i386/nocfgtables.c: New file.
25211 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25212 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25213 (grub_efi_finish_boot_services): Moved from here ...
25214 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25215 Fille finish memory map and related data.
25216 (finish_mmap_buf): New variable.
25217 (grub_efi_uintn_t finish_mmap_size): Likewise.
25218 (grub_efi_uintn_t finish_key): Likewise.
25219 (grub_efi_uintn_t finish_desc_size): Likewise.
25220 (grub_efi_uint32_t finish_desc_version): Likewise.
25221 (grub_efi_is_finished): Likewise.
25222 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25224 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25225 (grub_elf64_phdr_iterate): Likewise.
25226 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25227 (grub_os_area_size): Likewise.
25228 (grub_machine_init): Don't reserve os area.
25229 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25230 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25231 * grub-core/kern/i386/loader.S: Removed.
25232 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25233 (grub_os_area_size): Likewise.
25234 (grub_machine_init): Don't reserve os area.
25235 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25236 Don't call grub_dl_unload_all.
25237 Don't include loader.S.
25238 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25239 Declare the memory after _end as available.
25240 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25241 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25242 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25243 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25244 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25245 * include/grub/mm_private.h (grub_mm_header): ... here.
25246 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25247 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25248 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25249 (grub_mm_region): ..here. Removed addr. Added pre_size.
25251 * grub-core/kern/mm.c (base): Renamed to ...
25252 (grub_mm_base): ... this. Made global.
25253 (grub_real_malloc): Alloc from end of region.
25254 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25255 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25256 * grub-core/kern/powerpc/cache_flush.S: ... here.
25257 * grub-core/lib/efi/relocator.c: New file.
25258 * grub-core/lib/i386/relocator.c: Rewritten.
25259 * grub-core/lib/i386/relocator16.S: New file.
25260 * grub-core/lib/i386/relocator32.S: Likewise.
25261 * grub-core/lib/i386/relocator64.S: Likewise.
25262 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25263 * grub-core/lib/i386/relocator_common.S: New file.
25264 * grub-core/lib/ieee1275/relocator.c: Likewise.
25265 * grub-core/lib/mips/relocator.c: Rewritten.
25266 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25267 stylistic adjustments.
25268 * grub-core/lib/powerpc/relocator.c: New file.
25269 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25270 * grub-core/lib/relocator.c: Rewritten.
25271 * grub-core/lib/x86_64/relocator_asm.S: New file.
25272 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25273 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25274 (bsd_tag): New struct.
25275 (tags): New variable.
25276 (tags_last): Likewise.
25277 (netbsd_module): New struct.
25278 (netbsd_mods): New variable.
25279 (netbsd_mods_last): Likewise.
25280 (openbsd_opts): New parameter "serial".
25281 (OPENBSD_SERIAL_ARG): New definition.
25282 (netbsd_opts): New parameter "serial".
25283 (NETBSD_SERIAL_ARG): New definition.
25284 (grub_freebsd_add_meta): Reorganised into ...
25285 (grub_bsd_add_meta): ...this. All users updated.
25286 (grub_freebsd_add_mmap): Reorganised into ...
25287 (generate_e820_mmap): ...this...
25288 (grub_bsd_add_mmap): ...and this. All users updated.
25289 (grub_freebsd_list_modules): Use tags.
25290 (grub_netbsd_add_meta_module): New function.
25291 (grub_netbsd_list_modules): Likewise.
25292 (grub_freebsd_boot): Use relocator and finish EFI.
25293 (grub_openbsd_boot): Likewise.
25294 (grub_netbsd_setup_video): New function.
25295 (grub_netbsd_add_modules): Likewise.
25296 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25298 (grub_bsd_unload): Unload tags.
25299 (grub_bsd_load_aout): Use relocator.
25300 (grub_bsd_elf32_size_hook): New function.
25301 (grub_bsd_elf32_hook): Use relocator.
25302 (grub_bsd_elf64_size_hook): New function.
25303 (grub_bsd_elf64_hook): Use relocator.
25304 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25305 (grub_bsd_load): Zero-out openbsd_ramdisk.
25306 (grub_bsd_load): Use relocator.
25307 (grub_cmd_openbsd): Support serial.
25308 (grub_cmd_netbsd): Support modules.
25309 (grub_cmd_freebsd_module): Use relocator.
25310 (grub_netbsd_module_load): New function.
25311 (grub_cmd_netbsd_module): Likewise.
25312 (grub_cmd_openbsd_ramdisk): Likewise.
25313 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25315 (GRUB_MOD_FINI): Unregister new commands.
25316 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25317 (grub_freebsd_load_elfmodule_obj): Use relocator.
25318 (grub_freebsd_load_elfmodule): Likewise.
25319 (grub_freebsd_load_elf_meta): Likewise.
25320 (grub_netbsd_load_elf_meta): New function.
25321 (grub_openbsd_find_ramdisk): Likewise.
25322 * grub-core/loader/i386/bsd_helper.S: Removed.
25323 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25324 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25325 * grub-core/loader/i386/efi/linux.c: Likewise.
25326 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25327 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25328 (DEFAULT_VIDEO_MODE): Likewise.
25329 (real_mode_target): New variable.
25330 (prot_mode_target): Likewise.
25331 (initrd_mem_target): Likewise.
25332 (relocator): Likewise.
25333 (efi_mmap_buf): Likewise.
25334 (efi_mmap_size): Likewise.
25335 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25336 (free_pages): Use relocator.
25337 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25338 (grub_linux_setup_video): Return error.
25339 (grub_linux_trampoline_start): Removed.
25340 (grub_linux_trampoline_end): Likewise.
25341 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25342 andd video parameters depending on firmware.
25343 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25344 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25345 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25346 (grub_cmd_initrd): Use relocator.
25347 * grub-core/loader/i386/linux_trampoline.S: Removed.
25348 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25349 (elf_sec_entsize): Likewise.
25350 (elf_sec_shstrndx): Likewise.
25351 (elf_sections): Likewise.
25352 (grub_multiboot_load): Use relocator.
25353 (grub_multiboot_get_mbi_size): Account for sections.
25354 (grub_multiboot_make_mbi): Use relocator and support sections.
25355 (grub_multiboot_add_elfsyms): New function.
25356 (grub_multiboot_free_mbi): Free sections.
25357 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25358 (grub_linux_real_target): Likewise.
25359 (grub_linux_real_chunk): Likewise.
25360 (grub_linux16_prot_size): Likewise.
25361 (grub_linux16_boot): Use relocator.
25362 (grub_linux_unload): Unload relocator.
25363 (grub_cmd_linux): Use relocator.
25364 (grub_cmd_initrd): Likewise.
25365 * grub-core/loader/i386/pc/ntldr.c: New file.
25366 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25367 Don't try to guess CPU frequency.
25368 (grub_xnu_set_video): Stretch bitmap.
25369 (grub_xnu_boot): Use relocator.
25370 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25371 (grub_linux_unload): Free relocator.
25372 (grub_linux_load32): Use relocator.
25373 (grub_linux_load64): Likewise.
25374 (grub_cmd_initrd): Likewise.
25375 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25376 (grub_multiboot_unload): Unload relocator.
25377 (grub_cmd_multiboot): Use relocator.
25378 (grub_cmd_module): Likewise.
25379 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25380 Use relocator and support sections.
25381 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25382 (elf_sec_entsize): Likewise.
25383 (elf_sec_shstrndx): Likewise.
25384 (elf_sections): Likewise.
25385 (grub_multiboot_load): Use relocator.
25386 (grub_multiboot_get_mbi_size): Account for sections.
25387 (grub_multiboot_make_mbi): Use relocator and support sections.
25388 (grub_multiboot_add_elfsyms): New function.
25389 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25390 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25391 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25392 Prototype changed. All users updated.
25393 (grub_xnu_align_heap): Simplified.
25394 (grub_xnu_writetree_toheap): Likewise.
25395 (grub_xnu_unload): Unload relocator.
25396 (grub_cmd_xnu_kernel): Use relocator.
25397 (grub_cmd_xnu_kernel64): Likewise.
25398 (grub_xnu_register_memory): Simplified.
25399 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25400 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25402 (grub_console_checkkey): Likewise.
25403 (grub_console_getkey): Likewise.
25404 (grub_console_getwh): Likewise.
25405 (grub_console_getxy): Likewise.
25406 (grub_console_gotoxy): Likewise.
25407 (grub_console_cls): Likewise.
25408 (grub_console_setcolorstate): Likewise.
25409 (grub_console_setcursor): Likewise.
25410 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25411 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25412 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25413 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25414 * grub-core/tests/boot/kernel-8086.S: Likewise.
25415 * grub-core/tests/boot/kernel-i386.S: Likewise.
25416 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25417 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25418 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25419 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25420 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25421 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25422 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25423 * grub-core/tests/boot/linux.cfg: Likewise.
25424 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25425 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25426 * grub-core/tests/boot/linux16.cfg: Likewise.
25427 * grub-core/tests/boot/multiboot.cfg: Likewise.
25428 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25429 * grub-core/tests/boot/ntldr.cfg: Likewise.
25430 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25431 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25432 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25434 * include/grub/dl.h (grub_dl_unload_all): Removed.
25435 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25436 (grub_efi_finish_boot_services): Change prototype.
25437 (grub_efi_is_finished): New variable.
25438 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25440 (grub_efiemu_finish_boot_services): Removed.
25441 (grub_machine_efiemu_init_tables): New prototype.
25442 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25443 (grub_elf64_phdr_iterate): Likewise.
25444 * include/grub/i386/bsd.h: Include relocator.h.
25445 (freebsd_tag_header): New struct.
25446 (grub_openbsd_bios_mmap): Removed.
25447 (grub_unix_real_boot): Removed.
25448 (grub_freebsd_load_elfmodule32): Changed prototype.
25449 (grub_freebsd_load_elfmodule_obj64): Likewise.
25450 (grub_freebsd_load_elf_meta32): Likewise.
25451 (grub_freebsd_load_elf_meta64): Likewise.
25452 (grub_freebsd_add_meta): Removed.
25453 (grub_netbsd_load_elf_meta32): New prototype.
25454 (grub_netbsd_load_elf_meta64): Likewise.
25455 (grub_bsd_add_meta): Likewise.
25456 (grub_openbsd_ramdisk_descriptor): New struct.
25457 (grub_openbsd_find_ramdisk32): New prototype.
25458 (grub_openbsd_find_ramdisk64): Likewise.
25459 * include/grub/i386/coreboot/loader.h: Removed.
25460 * include/grub/i386/efi/loader.h: Likewise.
25461 * include/grub/i386/ieee1275/loader.h: Likewise.
25462 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25464 * include/grub/i386/loader.h: Removed.
25465 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25467 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25468 (grub_phys_addr_t): New type.
25469 (grub_vtop): New inline function.
25470 (grub_map_memory): Likewise.
25471 (grub_unmap_memory): Likewise.
25472 * include/grub/i386/multiboot/loader.h: Removed.
25473 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25474 (NETBSD_BTINFO_CONSOLE): New definition.
25475 (NETBSD_BTINFO_SYMTAB): Likewise.
25476 (NETBSD_BTINFO_MODULES): Likewise.
25477 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25478 (grub_netbsd_bootinfo): New struct.
25479 (grub_netbsd_btinfo_common): Use explicit bitsize.
25480 (grub_netbsd_btinfo_mmap_entry): Removed.
25481 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25482 (grub_netbsd_btinfo_bootdisk): New struct.
25483 (grub_netbsd_btinfo_symtab): Likewise.
25484 (grub_netbsd_btinfo_serial): Likewise.
25485 (grub_netbsd_btinfo_modules): Likewise.
25486 (grub_netbsd_btinfo_framebuf): Likewise.
25487 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25488 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25490 (grub_openbsd_bootargs): Use explicit bitsize.
25491 (grub_openbsd_bootarg_console): New struct.
25492 (GRUB_OPENBSD_COM_MAJOR): New definition.
25493 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25494 * include/grub/i386/pc/efiemu.h: Removed.
25495 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25496 * include/grub/i386/qemu/loader.h: Removed.
25497 * include/grub/i386/relocator.h: Rewritten.
25498 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25499 * include/grub/mips/memory.h: New file.
25500 * include/grub/mips/multiboot.h: Rewritten.
25501 * include/grub/mips/relocator.h: Rewritten.
25502 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25503 (grub_vtop): New function.
25504 (grub_map_memory): Likewise.
25505 (grub_unmap_memory): Likewise.
25506 * include/grub/misc.h (ALIGN_DOWN): New definition.
25507 * include/grub/mm.h (grub_mm_check_real): New proto.
25508 (GRUB_MM_CHECK): New definition.
25509 * include/grub/mm_private.h: New file.
25510 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25511 (grub_multiboot_get_mbi_size): Removed.
25512 (grub_multiboot_make_mbi): Change prottype.
25513 (grub_multiboot_set_accepts_video): New proto.
25514 (grub_multiboot_add_elfsyms): Likewise.
25515 (grub_multiboot_payload_eip): New variable.
25516 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25518 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25520 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25521 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25522 * include/grub/powerpc/ieee1275/loader.h: Removed.
25523 * include/grub/powerpc/memory.h: New file.
25524 * include/grub/powerpc/relocator.h: Likewise.
25525 * include/grub/relocator.h: Likewise.
25526 * include/grub/relocator_private.h: Likewise.
25527 * include/grub/sparc64/ieee1275/loader.h: Removed.
25528 * include/grub/x86_64/memory.h: New file.
25529 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25530 (grub_xnu_heap_malloc): Likewise.
25531 (grub_xnu_heap_real_start): Removed.
25532 (grub_xnu_heap_start): Likewise.
25533 (grub_xnu_relocator): New variable.
25534 (grub_xnu_heap_target_start): Likewise.
25535 * tests/util/grub-shell.in: Support non-pc.
25536 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25538 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25540 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25542 (grub_bidi_logical_to_visual): Check that malloc succeded.
25543 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25545 (grub_xputs_normal): Likewise.
25547 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25549 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25552 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25554 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25556 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25558 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25560 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25562 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25565 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25567 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25569 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25571 * grub-core/normal/term.c (print_more): Fix a memory leak.
25572 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25573 (grub_xputs_normal): Likewise.
25575 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25577 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25578 the begining of the string
25580 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25582 * grub-core/script/script.c (grub_script_parse): Free parsed on
25585 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25587 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25590 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25592 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25595 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25597 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25598 (scroll_up): Fix a memory leak.
25600 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25602 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25605 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25607 Handle USB pendrives exposed as floppies.
25609 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25611 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25612 Check for partitions on all devices.
25614 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25616 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25617 (readkey): Likewise.
25619 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25621 Multiple variable names support to "export" command.
25623 * normal/context.c (grub_cmd_export): "export" command supports
25624 multiple variable names.
25626 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25628 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25629 --target=drive output to Mach device name.
25631 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25633 New Automake based build system for GRUB.
25635 * ABOUT-NLS: New file.
25636 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25637 in Makefile.util.def file.
25638 * Makefile.util.def: New file. Autogen build definitions file for
25640 * conf/Makefile.common: New file. Common variables for GRUB host
25641 utils and target modules.
25642 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25643 * docs/Makefile.am: New file. Automake file for docs.
25644 * gentpl.py: New file. Python script to generate Autogen
25646 * grub-core/Makefile.am: New file. GRUB target modules' rules
25647 that doesn't fit in Makefile.core.def file.
25648 * grub-core/Makefile.core.def: New file. Autogen build
25649 definitions file for GRUB target modules.
25650 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25651 specific setjmp.S file.
25652 * po/Makefile.am: New file.
25654 * .bzrignore: New ignores.
25655 * INSTALL: New requirements, without Ruby.
25656 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25657 * autogen.sh: Updated to invoke autogen as necessary.
25658 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25659 and defines for Automake conditionals.
25660 * geninit.sh: Refactoring.
25662 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25664 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25667 * include/grub/test.h: Fix functional test modules' naming.
25668 * grub-core/tests/example_functional_test.c: Fix test module name.
25670 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25671 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25672 * util/grub-editenv.c: Likewise.
25673 * util/grub-fstest.c: Likewise.
25674 * util/grub-mkdevicemap.c: Likewise.
25675 * util/grub-mkfont.c: Likewise.
25676 * util/grub-mkimage.c: Likewise.
25677 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25678 * util/grub-probe.c: Likewise.
25679 * util/grub-script-check.c: Likewise.
25680 * util/i386/pc/grub-setup.c: Likewise.
25681 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25683 * tests/util/grub-shell.in: Fix override directory path.
25684 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25685 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25687 * util/lvm.c: Update #includes.
25688 * util/raid.c: Likewise.
25689 * util/resolve.c: Likewise.
25690 * grub-core/bus/emu/pci.c: Likewise.
25691 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25692 * grub-core/lib/posix_wrap/string.h: Likewise.
25693 * grub-core/kern/emu/main.c: Likewise.
25695 * grub-core/gensymlist.sh: New file. Script for generating kernel
25697 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25699 * grub-core/gentrigtables.c: Fix unused variable warnings.
25701 * Makefile.in: Removed.
25702 * conf/any-emu.rmk: Removed.
25703 * conf/common.rmk: Removed.
25704 * conf/i386-coreboot.rmk: Removed.
25705 * conf/i386-efi.rmk: Removed.
25706 * conf/i386-ieee1275.rmk: Removed.
25707 * conf/i386-multiboot.rmk: Removed.
25708 * conf/i386-pc.rmk: Removed.
25709 * conf/i386-qemu.rmk: Removed.
25710 * conf/i386.rmk: Removed.
25711 * conf/mips-yeeloong.rmk: Removed.
25712 * conf/mips.rmk: Removed.
25713 * conf/powerpc-ieee1275.rmk: Removed.
25714 * conf/sparc64-ieee1275.rmk: Removed.
25715 * conf/tests.rmk: Removed.
25716 * conf/x86-efi.rmk: Removed.
25717 * conf/x86_64-efi.rmk: Removed.
25718 * gendistlist.sh: Removed.
25719 * geninitheader.sh: Removed.
25720 * genkernsyms.sh.in: Removed.
25721 * genmk.rb: Removed.
25722 * gensymlist.sh.in: Removed.
25723 * mkinstalldirs: Removed.
25725 * grub-core/boot: ... to here.
25727 * grub-core/bus: ... to here.
25728 * commands: Moved ...
25729 * grub-core/commands: ... to here.
25731 * grub-core/disk: ... to here.
25732 * efiemu: Moved ...
25733 * grub-core/efiemu: ... to here.
25735 * grub-core/font: ... to here.
25737 * grub-core/fs: ... to here.
25738 * gencmdlist.sh: Moved ...
25739 * grub-core/gencmdlist.sh: ... to here.
25740 * genemuinit.sh: Moved ...
25741 * grub-core/genemuinit.sh: ... to here.
25742 * genemuinitheader.sh: Moved ...
25743 * grub-core/genemuinitheader.sh: ... to here.
25744 * genfslist.sh: Moved ...
25745 * grub-core/genfslist.sh: ... to here.
25746 * genhandlerlist.sh: Moved ...
25747 * grub-core/genhandlerlist.sh: ... to here.
25748 * genmoddep.awk: Moved ...
25749 * grub-core/genmoddep.awk: ... to here.
25750 * genmodsrc.sh: Moved ...
25751 * grub-core/genmodsrc.sh: ... to here.
25752 * genpartmaplist.sh: Moved ...
25753 * grub-core/genpartmaplist.sh: ... to here.
25754 * genparttoollist.sh: Moved ...
25755 * grub-core/genparttoollist.sh: ... to here.
25756 * genterminallist.sh: Moved ...
25757 * grub-core/genterminallist.sh: ... to here.
25758 * gentrigtables.c: Moved ...
25759 * grub-core/gentrigtables.c: ... to here.
25760 * genvideolist.sh: Moved ...
25761 * grub-core/genvideolist.sh: ... to here.
25762 * gettext: Moved ...
25763 * grub-core/gettext: ... to here.
25764 * gfxmenu: Moved ...
25765 * grub-core/gfxmenu: ... to here.
25766 * gnulib: Moved ...
25767 * grub-core/gnulib: ... to here.
25769 * grub-core/hello: ... to here.
25771 * grub-core/hook: ... to here.
25773 * grub-core/io: ... to here.
25775 * grub-core/kern: ... to here.
25777 * grub-core/lib: ... to here.
25778 * loader: Moved ...
25779 * grub-core/loader: ... to here.
25781 * grub-core/mmap: ... to here.
25782 * normal: Moved ...
25783 * grub-core/normal: ... to here.
25784 * partmap: Moved ...
25785 * grub-core/partmap: ... to here.
25786 * parttool: Moved ...
25787 * grub-core/parttool: ... to here.
25788 * script: Moved ...
25789 * grub-core/script: ... to here.
25791 * grub-core/term: ... to here
25792 * tests/example_functional_test.c: Moved ...
25793 * grub-core/tests/example_functional_test.c: ... to here.
25794 * tests/lib/functional_test.c: Moved ...
25795 * grub-core/tests/lib/functional_test.c: ... to here.
25796 * tests/lib/test.c: Moved ...
25797 * grub-core/tests/lib/test.c: ... to here.
25799 * grub-core/video: ... to here.
25801 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25803 Replace --enable-grub-emu-modules with grub-emu-lite.
25805 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25808 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25809 * kern/emu/full.c: New file. For grub-emu specific initialization.
25810 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25811 * kern/emu/main.c: Call initialization function grub_emu_init.
25813 * Makefile.in: Include grub-emu-lite in install.
25814 * commands/parttool.c: Use grub_no_autoload to differentiate
25815 between grub-emu and grub-emu-lite.
25816 * include/grub/misc.h: New variable grub_no_autoload.
25818 * conf/any-emu.rmk: New rules for grub-emu-lite.
25819 * configure.ac: Remove --enable-grub-emu-modules.
25820 * genmk.rb: Cleanup unnecessary rules.
25821 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25823 * normal/main.c: Don't load list files on grub-emu-lite.
25824 * util/misc.c (grub_arch_sync_caches): Removed.
25826 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25828 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25829 grub-mkimage rather than grub-mkelfimage.
25830 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25832 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25834 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25835 a key after CapsLock or NumLock. It's just a qemu bug.
25837 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25839 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25840 needed by libusb wrapper.
25842 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25844 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25846 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25848 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25849 --nounzip is passed.
25851 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25853 USB hotunplugging and USB serial support.
25855 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25856 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25857 (grub_uhci_transfer): Respect timeout and set *actual.
25858 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25859 non-standard length.
25860 (grub_usb_device_attach): Autoload modules.
25861 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25862 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25863 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25865 (grub_usb_add_hub): Fill nports and children.
25866 (attach_root_port): Receive hub instead of controller.
25867 All users updated. Fill hub->devices.
25868 (grub_usb_root_hub): Allocate hub->devices.
25869 (detach_device): New function.
25870 (poll_nonroot_hub): Fill children and detach devices.
25871 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25872 actual arguments. All users updated.
25873 (grub_usb_bulk_read_extended): New function.
25874 * bus/usb/serial/common.c: New file.
25875 * bus/usb/serial/ftdi.c: Likewise.
25876 * bus/usb/serial/pl2303.c: Likewise.
25877 * commands/terminal.c (handle_command): Support wildcard.
25878 * commands/usbtest.c: Output "Unknown" instead of empty string.
25879 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25880 (usbserial_common_mod_SOURCES): New variable.
25881 (usbserial_common_mod_CFLAGS): Likewise.
25882 (usbserial_common_mod_LDFLAGS): Likewise.
25883 (pkglib_MODULES): Add usbserial_pl2303.mod.
25884 (usbserial_pl2303_mod_SOURCES): New variable.
25885 (usbserial_pl2303_mod_CFLAGS): Likewise.
25886 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25887 (pkglib_MODULES): Add usbserial_ftdi.mod.
25888 (usbserial_ftdi_mod_SOURCES): New variable.
25889 (usbserial_ftdi_mod_CFLAGS): Likewise.
25890 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25891 (pkglib_MODULES): Add serial.mod.
25892 (serial_mod_SOURCES): New variable.
25893 (serial_mod_CFLAGS): Likewise.
25894 (serial_mod_LDFLAGS): Likewise.
25895 * conf/i386-pc.rmk: Likewise.
25896 * conf/mips-yeeloong.rmk: Likewise.
25897 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25898 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25899 * disk/usbms.c (first_available_slot): New variable.
25900 (grub_usbms_attach): Don't reuse free slots due to potential cache
25902 * include/grub/serial.h: Moved to ..
25903 * include/grub/ns8250.h: ...this.
25904 * include/grub/serial.h: New file.
25905 * include/grub/term.h (grub_term_poll_usb): New variable.
25906 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25907 readkey. All users updated.
25908 (grub_terminfo_output_state): Pass term to put.
25909 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25910 (grub_usb_controller_dev): Add timeout and actual arguments to
25911 transfer. All users updated.
25912 (grub_usb_interface): New field detach_data.
25913 (grub_usb_device): New fields children and nports.
25914 (grub_usb_ep_type_t): New type.
25915 (grub_usb_get_ep_type): New function.
25916 (grub_usb_bulk_read_extended): Likewise.
25917 * include/grub/usbdesc.h (grub_usb_desc): New type.
25918 * include/grub/usbserial.h: New file.
25919 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25920 * kern/term.c (grub_term_poll_usb): New variable.
25921 (grub_getkey): Call grub_term_poll_usb if set.
25922 (grub_checkkey): Likewise.
25923 (grub_getkeystatus): Likewise.
25924 * term/serial.c: Moved controller-specific parts to ...
25925 * term/ns8250.c: ... here.
25926 * term/serial.c: Mostly rewritten.
25927 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25930 2010-08-20 Robert Millan <rmh@gnu.org>
25932 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25933 a separate module and maybe other interesting combinations.
25935 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25936 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25937 (kfreebsd_entry): Add generic filesystem module load routine.
25938 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25940 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25942 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25943 "numcenter" (I misunderstood the purpose of this entry).
25944 * docs/grub.texi (sendkey): Likewise.
25946 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25948 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25949 status flag options; simply omitting the option is equivalent and
25950 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25951 (keysym_table): Rename "num5numlock" to "numlock".
25952 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25953 can uniformly say that only the last of multiple `sendkey'
25954 invocations has any effect.
25955 * docs/grub.texi (sendkey): New section.
25957 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25959 * commands/i386/pc/sendkey.c (options): Fix three typos.
25961 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25963 Implement sendkey support.
25965 * commands/i386/pc/sendkey.c: New file.
25966 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25967 (sendkey_mod_SOURCES): New variable.
25968 (sendkey_mod_CFLAGS): Likewise.
25969 (sendkey_mod_LDFLAGS): Likewise.
25971 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25973 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25974 fix warnings from Autoconf.
25976 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25978 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25979 to avoid false positives with some assemblers that output things
25980 like "someprefix_func" as part of their output.
25982 2010-08-15 Robert Millan <rmh@gnu.org>
25984 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25986 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25987 grub_get_libzfs_handle() errors.
25989 2010-08-14 Robert Millan <rmh@gnu.org>
25991 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25992 filesystem is not ZFS.
25994 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25996 Fix for misspelled color names defaulting to black/black (bug
25997 reported by Doug Nazar)
25999 * include/grub/normal.h (grub_parse_color_name_pair): Add return
26000 status to prototype.
26001 * normal/color.c (grub_parse_color_name_pair): Return failure
26003 (grub_env_write_color_normal): Ignore bad color names.
26004 (grub_env_write_color_highlight): Likewise.
26005 * normal/main.c (GRUB_MOD_INIT): Set default color names.
26007 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26009 "shift" command support to GRUB script.
26011 * include/grub/script_sh.h (grub_script_shift): New prototype.
26012 * script/execute.c (grub_script_shift): New function.
26013 * script/main.c (grub_script_init): Register shift command.
26014 (grub_script_fini): Unregister shift command.
26015 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26017 * tests/grub_script_shift.in: New testcase.
26018 * conf/tests.rmk: Rules for new testcase.
26020 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26022 "continue" command support to GRUB script.
26024 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26025 (grub_script_break): Continue support.
26026 * script/main.c (grub_script_init): Register continue command.
26027 (grub_script_fini): Unregister continue command.
26029 * tests/grub_script_continue.in: New testcase.
26030 * conf/tests.rmk: Rules for new testcase.
26032 2010-08-12 BVK Chaitanya <bvk@dbook>
26034 "break" command support to GRUB script.
26036 * conf/common.rmk: Rule updates to grub-script-check.
26037 * include/grub/misc.h (grub_min): New function.
26038 * include/grub/script_sh.h (grub_script_init): New prototype.
26039 (grub_script_fini): New prototype.
26040 (grub_script_break): New prototype.
26041 * script/main.c (grub_script_init): New function.
26042 (grub_script_fini): New function.
26043 * script/execute.c (grub_script_break): New function.
26044 * normal/main.c: Calls to grub_script_{init,fini}.
26045 * util/grub-script-check.c (grub_script_break): New function.
26047 * tests/grub_script_break.in: New testcase.
26048 * conf/tests.rmk: Rules for new test case.
26050 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26052 Function parameters support to GRUB script.
26054 * script/yylex.l (VARIABLE): Regular expression update.
26055 * script/function.c (grub_script_function_call): Moved ...
26056 * script/execute.c (grub_script_function_call): ... to here.
26057 (grub_script_execute_arglist_to_argv): Removed.
26058 (grub_script_arglist_to_argv): New function.
26059 * script/argv.c: New file.
26060 (grub_script_argv_free): New function.
26061 (grub_script_argv_next): Likewise.
26062 (grub_script_argv_append): Likewise.
26063 (grub_script_argv_split_append): Likewise.
26064 * include/grub/script_sh.h (grub_script_argv): New struct.
26065 (grub_script_argv_free): New function.
26066 (grub_script_argv_next): Likewise.
26067 (grub_script_argv_append): Likewise.
26068 (grub_script_argv_split_append): Likewise.
26070 * conf/common.rmk (normal.mod): New source script/argv.c.
26072 * tests/grub_script_echo1.in: More tests.
26073 * tests/grub_script_vars1.in: Likewise.
26074 * tests/grub_script_functions.in: New test case.
26075 * conf/tests.rmk: Rules for new testcase.
26077 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26079 Remove grub_script_cmdblock struct.
26081 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26082 * script/parser.y: Likewise.
26083 * script/execute.c: Rename cmdblock suffix to cmdlist.
26084 * script/script.c: Likewise.
26085 * util/grub-script-check.c: Likewise.
26087 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26089 * .bzrignore: add grub-macho2img
26091 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26093 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26095 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26097 Remove the dump of sm712 initialisation sequence.
26099 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26100 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26101 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26102 (GRUB_VGA_CR_*): Added many registers.
26103 (GRUB_VGA_SR_*): Likewise.
26104 (GRUB_VGA_GR_*): Likewise.
26105 (grub_vga_write_arx): New function.
26106 (grub_video_hw_config): New struct.
26107 (grub_vga_set_geometry): New function.
26108 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26109 GRUB_PCI_CLASS_SUBCLASS_VGA.
26110 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26111 * video/sm712.c (grub_sm712_write_reg): New function
26112 (grub_sm712_read_reg): Likewise.
26113 (grub_sm712_sr_write): Likewise.
26114 (grub_sm712_gr_write): Likewise.
26115 (grub_sm712_cr_write): Likewise.
26116 (grub_sm712_write_arx): Likewise.
26117 (grub_sm712_cr_shadow_write): Likewise.
26118 (grub_sm712_write_dda_lookup): Likewise.
26119 (grub_video_sm712_setup): Initialise the video rather then
26120 blindly replay the dump.
26121 (main) [TEST]: Add a routine to be able to compile as standalone for
26123 * video/sm712_init.c (sm712_init): Removed.
26124 (sm712_sr_seq1): New array.
26125 (sm712_sr_seq2): Likewise.
26127 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26129 * include/grub/vga.h: Add missing grub/pci.h include.
26131 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26133 * util/grub-macho2img.c (main): fix typo
26135 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26137 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26138 (grub_vga_gr_read): Likewise.
26139 (grub_vga_cr_write): Likewise.
26140 (grub_vga_cr_read): Likewise.
26141 (grub_vga_sr_write): Likewise.
26142 (grub_vga_sr_read): Likewise.
26143 (grub_vga_palette_read): Likewise.
26144 (grub_vga_palette_write): Likewise.
26145 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26146 (grub_sm712_sr_read): New function.
26147 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26148 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26150 2010-08-09 Robert Millan <rmh@gnu.org>
26152 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26153 out unused variables on non-ZFS build.
26155 2010-08-08 Robert Millan <rmh@gnu.org>
26157 Fix path generation for sub-filesystems in ZFS.
26159 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26162 2010-08-08 Robert Millan <rmh@gnu.org>
26164 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26166 2010-08-08 Robert Millan <rmh@gnu.org>
26168 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26169 exist, issue a proper error message (rely on `ls' for translated
26172 2010-08-08 Robert Millan <rmh@gnu.org>
26174 Fix grub-probe invocation.
26176 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26178 2010-08-04 Robert Millan <rmh@gnu.org>
26180 * configure.ac: Remove checks for getfsstat() and getmntany().
26181 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26182 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26183 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26184 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26185 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26187 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26188 via find_mount_point_from_dir() and getfsstat() / getmntany().
26190 2010-08-04 Robert Millan <rmh@gnu.org>
26192 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26193 (grub_find_zpool_from_mount_point): Merge into ...
26194 (grub_find_zpool_from_dir): ... this.
26195 * kern/emu/misc.c: Likewise.
26198 (grub_make_system_path_relative_to_its_root): Replace
26199 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26200 with grub_find_zpool_from_dir().
26201 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26203 2010-08-04 Robert Millan <rmh@gnu.org>
26205 Support OpenSolaris in ZFS device resolution.
26207 * configure.ac: Check for getmntany().
26208 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26209 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26212 2010-08-03 Robert Millan <rmh@gnu.org>
26214 Fix grub-emu build.
26216 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26217 * include/grub/emu/misc.h: ... here.
26219 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26220 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26222 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26223 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26224 (grub_get_libzfs_handle): Move to ...
26225 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26226 (grub_get_libzfs_handle): ... here.
26228 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26230 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26231 as command name case.
26233 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26235 * disk/raid.c (insert_array): Select unique numbers for named arrays
26236 as well, for use as keys in the disk cache.
26238 2010-08-01 Robert Millan <rmh@gnu.org>
26240 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26241 kFreeBSD device name, except on ZFS where the filesystem label is
26243 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26244 `/boot/zfs/zpool.cache'.
26245 Set mountfrom kernel variable using ${kfreebsd_device}.
26247 2010-08-01 Robert Millan <rmh@gnu.org>
26249 Make it even harder to use uninitialized `libzfs_handle' (and
26250 make the interface a bit simpler).
26252 * include/grub/util/misc.h (grub_util_init_libzfs)
26253 (libzfs_handle): Remove.
26254 (grub_get_libzfs_handle): New prototype.
26256 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26258 (grub_util_init_libzfs): Remove.
26259 (grub_get_libzfs_handle): New function.
26261 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26262 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26263 accessing `libzfs_handle' directly.
26265 2010-08-01 Robert Millan <rmh@gnu.org>
26267 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26268 (grub_find_zpool_from_mount_point): New function prototypes.
26270 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26271 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26273 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26274 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26275 `static' attribute.
26277 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26278 finding zpool from mount point into ...
26279 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26281 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26282 requested path is part of a ZFS pool, use
26283 grub_find_zpool_from_mount_point() to detect its filesystem name,
26284 and generate a path with `/fsname@path' syntax.
26286 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26288 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26289 (void) rather than () so that this is a proper prototype.
26291 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26293 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26295 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26297 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26298 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26300 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26302 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26304 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26306 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26308 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26310 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26311 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26312 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26313 disable gfxpayload.
26314 (Shell-like scripting): Add real content.
26315 (Serial terminal): Suggest `terminal_input serial; terminal_output
26316 serial' rather than putting the two commands on separate lines,
26317 since console input will be inoperative after the first command.
26318 (menuentry): Document --class, --users, and --hotkey options.
26319 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26320 Vladimir Serbinenko).
26322 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26323 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26325 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26327 2010-08-01 Robert Millan <rmh@gnu.org>
26329 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26330 (grub_find_zpool_from_mount_point): New function prototypes.
26332 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26333 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26335 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26336 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26337 `static' attribute.
26339 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26340 finding zpool from mount point into ...
26341 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26343 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26344 requested path is part of a ZFS pool, use
26345 grub_find_zpool_from_mount_point() to detect its filesystem name,
26346 and generate a path with `/fsname@path' syntax.
26348 2010-08-01 Robert Millan <rmh@gnu.org>
26350 Prevent accidental use of uninitialized libzfs_handle.
26352 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26353 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26354 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26356 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26358 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26359 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26361 2010-08-01 Robert Millan <rmh@gnu.org>
26363 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26365 2010-07-31 Robert Millan <rmh@gnu.org>
26367 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26369 2010-07-31 Robert Millan <rmh@gnu.org>
26371 * kern/emu/misc.c: Add missing license header.
26373 2010-07-31 Robert Millan <rmh@gnu.org>
26375 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26377 * include/grub/util/libnvpair.h: Include `<config.h>'.
26378 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26379 declaring libnvpair prototypes ourselves.
26380 * include/grub/util/libzfs.h: Include `<config.h>'.
26381 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26382 declaring libzfs prototypes ourselves.
26384 (libzfs_handle): Moved to ...
26385 * include/grub/util/misc.h (libzfs_handle): ... here.
26386 Include `<grub/util/libzfs.h>'.
26388 2010-07-30 Robert Millan <rmh@gnu.org>
26390 * include/grub/emu/misc.h: Add missing license header.
26392 2010-07-30 Robert Millan <rmh@gnu.org>
26394 Enable `grub-probe -t device' resolution on ZFS.
26396 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26397 * include/grub/util/libnvpair.h: New file.
26398 * include/grub/util/libzfs.h: New file.
26400 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26401 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26402 `<grub/util/libnvpair.h>'.
26403 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26405 (find_mount_point_from_dir): New static function.
26406 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26408 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26409 find_root_device_from_libzfs() before ressorting to find_root_device().
26411 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26413 * util/misc.c: Include `<grub/util/libzfs.h>'.
26414 (grub_util_init_libzfs): New function.
26415 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26416 [HAVE_LIBZFS] (fini_libzfs): New static function.
26417 (grub_util_init_libzfs): New function.
26418 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26420 2010-07-30 Robert Millan <rmh@gnu.org>
26422 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26423 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26424 `warn_unused_result' attribute.
26425 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26426 (grub_xasprintf, grub_xvasprintf): Likewise.
26427 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26429 2010-07-29 Robert Millan <rmh@gnu.org>
26431 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26432 (probe): Handle `PRINT_FS_LABEL'.
26433 (main): Handle `-t fs_label'.
26435 2010-07-29 Robert Millan <rmh@gnu.org>
26437 * configure.ac: Remove grub-mkisofs checks.
26439 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26441 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26442 Reported by: Lennart Sorensen.
26444 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26446 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26447 prior to terminal_input/terminal_output separation. It's been over 1.5
26448 years and those versions weren't widely deployed.
26450 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26452 * disk/raid.c (insert_array): Don't count named arrays when looking
26453 for unused array numbers.
26454 Reported and tested by: Michael Guntsche.
26456 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26458 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26459 implementation of this so that grub-emu links again, with a note
26460 that this should support hotplugging in the future.
26462 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26464 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26466 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26468 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26470 (grub_loopback_close): Remove empty function.
26471 (grub_loopback_dev): Remove close method.
26473 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26475 Disable EFI cursor when the EFI console becomes inactive.
26477 * term/efi/console.c (grub_efi_console_init): New function.
26478 (grub_efi_console_fini): New function.
26479 (grub_console_term_output): Register init and fini methods.
26481 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26483 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26486 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26488 * disk/loopback.c (grub_loopback): Replace filename with file.
26489 (delete_loopback): Handle new semantics.
26490 (grub_cmd_loopback): Likewise.
26491 (grub_loopback_iterate): Likewise.
26492 (grub_loopback_close): Likewise.
26494 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26496 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26498 Reported by: Tito Keitel.
26500 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26502 * docs/grub.texi (Naming convention): Document new naming convention.
26504 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26505 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26507 Generate device.map in something closer to the old ordering.
26509 * util/deviceiter.c (struct device): New declaration.
26510 (compare_file_names): Rename to ...
26511 (compare_devices): ... this. Sort by kernel name in preference to
26512 the stable by-id name, but keep the latter as a fallback comparison.
26513 Update header comment.
26514 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26515 of `struct device' rather than of plain file names.
26517 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26519 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26522 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26524 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26526 (setv1table): Likewise.
26528 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26530 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26531 removing the homehost if present.
26532 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26533 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26534 removing the homehost if present.
26535 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26537 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26539 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26540 parameter. Set its pointer target to 0.
26541 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26542 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26543 `data_offset' value from the superblock for 1.x metadata.
26544 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26545 data on the device.
26546 (insert_array): Record the start sector of data on the device.
26547 (grub_raid_register): Pass start_sector parameters to
26548 grub_raid_list->detect and insert_array.
26549 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26551 (struct grub_raid): Add start_sector parameter to `detect'.
26553 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26554 __attribute__ ((packed)), leaving a comment.
26555 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26556 (grub_mdraid_detect_09): ... here and ...
26557 (grub_mdraid_detect_1x): ... here.
26559 2010-07-20 Peter Henn <peter.henn@web.de>
26561 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26562 chunk size and disk size, which are already given as sector counts
26563 as distinct from the 0.90 units. Fetch the correct device number
26564 from the role table instead of using the table index.
26566 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26568 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26569 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26570 (WriteMostly1): New macro.
26571 Set array->name to NULL for metadata format 0.90. Add support for
26572 metadata 1.x. Fix some comments.
26573 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26575 * util/getroot.c (grub_util_get_grub_dev): Add support for
26576 /dev/md/name style devices.
26578 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26580 * .bzrignore: Ignore 20_linux_xen.
26582 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26584 * util/import_unicode.py: Remove unnecessary imports.
26586 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26588 Hotplugging and USB hub support.
26590 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26591 (grub_ohci): Likewise.
26592 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26593 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26594 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26595 (GRUB_OHCI_CTRL_EDS): Likewise.
26596 (GRUB_OHCI_BULK_EDS): Likewise.
26597 (GRUB_OHCI_TDS): Likewise.
26598 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26599 (grub_ohci_ed_phys2virt): New function.
26600 (grub_ohci_virt_to_phys): Likewise.
26601 (grub_ohci_td_phys2virt): Likewise.
26602 (grub_ohci_td_virt2phys): Likewise.
26603 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26605 (grub_ohci_find_ed): New function.
26606 (grub_ohci_alloc_td): Likewise.
26607 (grub_ohci_free_td): Likewise.
26608 (grub_ohci_free_tds): Likewise.
26609 (grub_ohci_transfer): Use previously allocated memory.
26610 (grub_ohci_portstatus): Reset status changed bit.
26611 (grub_ohci_detect_dev): Supply status changed.
26612 (grub_ohci_fini_hw): Free memory.
26613 (grub_ohci_restore_hw): Reallocate memory.
26614 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26615 Reset status change.
26616 (grub_uhci_detect_dev): Supply status_change.
26617 * bus/usb/usb.c (attach_hooks): New var.
26618 (grub_usb_device_attach): New function.
26619 (grub_usb_register_attach_hook_class): Likewise.
26620 (grub_usb_unregister_attach_hook_class): Likewise.
26621 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26622 (grub_usb_add_hub): Reset connection changed bit.
26623 (attach_root_port): New function.
26624 (grub_usb_root_hub): Likewise.
26625 (poll_nonroot_hub): Likewise.
26626 (grub_usb_poll_devices): Likewise.
26627 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26628 * disk/usbms.c (grub_usbms_open): Use device hooks.
26629 (grub_usbms_iterate) :Poll devices.
26630 (grub_usbms_finddevs): Split into ...
26631 (grub_usbms_attach): ... this ...
26632 (grub_usbms_attach): ... and this.
26633 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26635 (grub_usb_interface): New fields attached and detach_hook.
26636 (grub_usb_attach_hook_class): New type.
26637 (grub_usb_attach_desc): New struct.
26638 (grub_usb_register_attach_hook_class): New function.
26639 (grub_usb_unregister_attach_hook_class): Likewise.
26640 (grub_usb_poll_devices): Likewise.
26641 (grub_usb_device_attach): Likewise.
26642 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26643 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26645 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26647 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26648 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26649 delta determination style. Works with most NetBSD partitions too.
26651 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26653 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26654 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26656 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26658 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26660 2010-07-14 Anton Blanchard <anton@samba.org>
26662 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26665 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26667 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26669 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26671 * kern/partition.c (grub_partition_check_containment): New function to
26672 check that a partition is physically contained in a parent. Since
26673 offsets are relative (and non-negative), this reduces to checking that
26674 the partition ends before its parent.
26675 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26676 (grub_partition_iterate): Likewise.
26677 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26679 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26680 partitions that start before their parent, and add debug printfs.
26682 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26684 * Makefile.in (.SUFFIX): Spell correctly, as ...
26685 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26686 bare module name without `.mod', e.g. `test') tried to invoke a
26689 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26691 * README: Point to the Info manual.
26693 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26695 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26696 2nd superblock position from partition size.
26698 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26700 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26701 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26702 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26705 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26707 Restructure SCSI .id handling.
26708 Reported and tested by: Aleš Nesrsta.
26710 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26711 (grub_atapi_dev): Changed .name to "ata". New field .id.
26712 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26713 (grub_usbms_dev): New field .id.
26714 * disk/scsi.c (grub_scsi_iterate): Generate name.
26715 (grub_scsi_open): Parse name.
26716 * include/grub/scsi.h (grub_make_scsi_id): New function.
26717 (grub_scsi_dev): Change iterate and open to number instead of naming
26718 busses. All users updated.
26719 (grub_scsi): Remove name. Add .bus.
26721 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26723 * commands/help.c (grub_cmd_help): Fix a typo.
26725 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26727 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26728 Reported and tested by: Colin Watson.
26730 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26732 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26735 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26737 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26739 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26741 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26744 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26746 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26747 and disk/raid6_recover.c.
26748 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26749 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26751 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26753 * term/gfxterm.c (repaint_schedulded): Rename to ...
26754 (repaint_scheduled): ... this. Update all callers.
26755 (repaint_was_schedulded): Rename to ...
26756 (repaint_was_scheduled): ... this. Update all callers.
26758 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26760 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26761 which we expect to be handled by upper layers.
26763 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26765 * bus/usb/usbhub.c: #include time.h header.
26767 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26769 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26770 entry_name also for entries without stat blocks (e.g. ".."); fixes
26771 corruption of the first entry in a directory.
26773 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26775 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26776 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26777 doesn't work otherwise.
26779 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26781 * docs/grub.texi (Features): Update list of supported file systems.
26782 (GNU/Linux): Update for GRUB 2.
26783 (Serial terminal): Remove mention of --disable-serial, which was a
26784 GRUB Legacy configure option. Update instructions to use
26785 `terminal_input' and `terminal_output' rather than `terminal'.
26786 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26787 configuration' and `Installing GRUB using grub-install'.
26788 (Menu entry editor): Update for GRUB 2.
26789 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26790 Document new -a, -u, and -v options.
26791 (initrd): New section.
26792 (initrd16): New section.
26793 (linux): New section.
26794 (linux16): New section.
26795 (search): The `var' argument to `--set' is optional.
26796 (GRUB only offers a rescue shell): Go into a little more detail on
26799 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26801 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26803 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26805 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26806 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26808 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26810 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26811 install_prefix, in line with install_dos_part and install_bsd_part.
26812 Add new prefix variable, which is copied to install_prefix after
26813 comparing core.img in memory with the one read from disk in the
26814 no-embedding case, and use that rather than overwriting
26815 install_prefix immediately when installing to a partition.
26816 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26819 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26821 * configure.ac: Avoid == in test command, it's not portable.
26822 * util/grub.d/30_os-prober.in: Likewise.
26824 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26826 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26828 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26830 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26831 multiple (top-level) partmaps.
26833 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26835 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26836 Reported by: Tino Keitel.
26838 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26840 Bidi and diacritics support.
26842 * Makefile.in (widthspec.bin): New target.
26843 (widthspec.h): Likewise.
26844 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26845 * autogen.sh: Generate unidata.c.
26846 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26847 * commands/ls.c (grub_ls_list_devices): Likewise.
26848 (grub_ls_list_files): Likewise.
26849 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26850 (grub_mini_cmd_lsmod): Likewise.
26851 * commands/read.c: Likewise.
26852 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26853 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26854 * lib/arg.c (grub_arg_show_help): Likewise.
26855 * lib/crypto.c (grub_password_get): Likewise.
26856 * normal/auth.c (grub_username_get): Likewise.
26857 * normal/misc.c (grub_normal_print_device_info): Likewise.
26858 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26859 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26860 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26861 (normal/charset.c_DEPENDENCIES): New variable.
26862 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26863 (pkglib_MODULES): Remove charset.mod.
26864 (charset_mod_SOURCES): Removed.
26865 (charset_mod_CFLAGS): Likewise.
26866 (charset_mod_LDFLAGS): Likewise.
26867 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26868 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26870 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26871 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26872 (kernel_img_HEADERS): Add terminfo.h.
26873 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26874 Fill ->font. Reverse ascii bitmaps.
26875 (grub_font_get_xheight): New function.
26876 * font/font.c (grub_font_get_string_width): Moved from here ...
26877 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26878 * font/font.c (grub_font_draw_string): Moved from here ...
26879 * gfxmenu/font.c (grub_font_draw_string): ... here.
26880 * font/font.c (grub_font_dup_glyph): New function.
26881 (grub_font_blit_glyph): Likewise.
26882 (grub_font_blit_glyph_mirror): Likewise.
26883 (blit_comb): Likewise.
26884 (grub_font_construct_dry_run): Likewise.
26885 (grub_font_get_constructed_device_width): Likewise.
26886 (grub_font_construct_glyph): Likewise.
26887 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26888 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26889 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26890 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26891 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26892 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26893 (grub_font_get_xheight): New proto.
26894 (grub_font_get_constructed_device_width): Likewise.
26895 (grub_font_construct_glyph): Likewise.
26896 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26897 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26898 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26899 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26900 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26901 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26902 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26903 (grub_console_getcharwidth): Likewise.
26904 * include/grub/misc.h (grub_xputs): New proto.
26905 (grub_puts): Inlined.
26906 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26907 (grub_normal_get_line_counter): Removed.
26908 (grub_install_newline_hook): Likewise.
26909 (grub_normal_get_char_counter): New proto.
26910 (grub_normal_reset_more): Likewise.
26911 (grub_xputs_normal): Likewise.
26912 * include/grub/powerpc/ieee1275/console.h: Removed.
26913 * include/grub/sparc64/ieee1275/console.h: Likewise.
26914 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26915 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26916 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26917 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26918 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26919 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26920 (grub_term_input): Pass reference to self. All users updated.
26921 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26922 Pass reference to self. New fields normal_color, highlight_color and
26923 data. All users updated.
26924 (grub_putchar): Removed.
26925 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26926 (grub_unicode_estimate_width): New function.
26927 (grub_term_getcharwidth): Add defaults.
26928 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26929 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26930 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26931 (grub_cls): Remove EXPORT_FUNC.
26932 (grub_setcolorstate): Inline.
26933 (grub_newline_hook): Removed.
26934 * include/grub/terminfo.h: Rewritten. All users updated.
26935 * include/grub/unicode.h: New file.
26936 * include/grub/video.h (grub_video_signed_rect): New type.
26937 * kern/emu/console.c (grub_console_highlight_color): Removed.
26938 (grub_console_normal_color): Likewise.
26939 (grub_console_standard_color): Made static.
26940 (grub_ncurses_putchar): Remove mapping.
26941 (grub_ncurses_getcharwidth): Removed.
26942 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26943 (grub_ncurses_setcolor): Removed.
26944 (grub_ncurses_getcolor): Likewise.
26945 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26946 (grub_console_putchar): ... this.
26947 (grub_console_putchar): Handle argument difference.
26948 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26949 console_init_early and console_init_lately.
26950 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26951 * kern/misc.c (grub_puts): Removed.
26952 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26953 (grub_vsnprintf_real): Remove str = NULL support.
26954 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26955 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26956 * kern/term.c (grub_putcode): Renamed to ...
26957 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26958 (grub_putchar): Removed.
26959 (grub_xputs_dumb): New function.
26960 (grub_xputs): New variable.
26961 * lib/charset.c: Move from here ...
26962 * normal/charset.c: ... to here.
26963 (grub_ucs4_to_utf8): New function.
26964 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26965 (join_types): New variable.
26966 (unpack_join): New function.
26967 (bidi_types): New variable.
26968 (unpack_bidi): New function.
26969 (get_bidi_type): Likewise.
26970 (get_join_type): Likewise.
26971 (is_mirrored): Likewise.
26972 (grub_unicode_get_comb_type): Likewise.
26973 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26974 (is_type_after): Likewise.
26975 (grub_unicode_aglomerate_comb): Likewise.
26976 (bidi_line_wrap): Likewise.
26977 (grub_bidi_line_logical_to_visual): Likewise.
26978 (grub_bidi_logical_to_visual): Likewise.
26979 (grub_unicode_mirror_code): Likewise.
26980 (grub_unicode_shape_code): Likewise.
26981 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26982 Don't use grub_putchar.
26983 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26984 (grub_normal_reader_init): Likewise.
26985 (grub_xputs_saved): New variable.
26986 (GRUB_MOD_INIT): Set grub_xputs.
26987 (GRUB_MOD_FINI): Restore grub_xputs.
26988 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26989 (menu_init): Avoid printing gfxmenu error.
26990 (show_menu): Use grub_normal_get_char_counter.
26991 * normal/menu_entry.c (update_screen): Fix out-of-array.
26992 (complete): Avoid NULL dereferencing.
26993 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26994 * normal/menu_text.c (print_spaces): Removed.
26995 (grub_print_ucs4): Likewise.
26996 (grub_print_message_indented): Use grub_print_ucs4.
26997 (print_message): Use grub_putcode.
26998 (print_entry): Hanlde diacritics.
26999 * normal/term.c (term_state): New type.
27000 (grub_more_lines): Removed.
27001 (term_states): New variable.
27002 (grub_normal_line_counter): Renamed to ..
27003 (grub_normal_char_counter): ...this. All users updated.
27004 (grub_normal_get_line_counter): Renamed to ...
27005 (grub_normal_get_char_counter): ... this.
27006 (grub_normal_reset_more): New function.
27007 (process_newline): Removed.
27008 (print_more): New function.
27009 (grub_install_newline_hook): Removed.
27010 (map_code): New function.
27011 (grub_puts_terminal): Use grub_print_ucs4.
27012 (putglyph): New function.
27013 (putcode_real): Likewise.
27014 (grub_putcode): Use putcode_real.
27015 (get_maxwidth): New function.
27016 (get_startwidth): Likewise.
27017 (print_ucs4_terminal): Likewise.
27018 (find_term_state): Likewise.
27019 (put_glyphs_terminal): Likewise.
27020 (print_backlog): Likewise.
27021 (print_ucs4_real): Likewise.
27022 (grub_print_ucs4): Likewise.
27023 (grub_xputs_normal): Likewise.
27024 * term/efi/console.c (grub_console_putchar): Output diacritics.
27025 (grub_console_getcharwidth): Removed.
27026 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27027 * term/gfxterm.c (clear_char): Free chars.
27028 (scroll_up): Avoid leaking memory.
27029 (grub_gfxterm_putchar): Support diacritics.
27030 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27031 * term/i386/pc/console.c (grub_console_term_output): Declare as
27032 GRUB_TERM_CODE_TYPE_VGA.
27033 * term/i386/pc/vga.c (grub_vga_term): Declare as
27034 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27035 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27036 GRUB_TERM_CODE_TYPE_VGA.
27037 * term/i386/vga_common.c (map_char): Removed.
27038 (grub_console_putchar): Likewise.
27039 (grub_console_getcharwidth): Likewise.
27040 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27041 (colors): Reordered to match terminfo.
27042 (grub_ofconsole_normal_color): Removed.
27043 (grub_ofconsole_writeesc): Likewise.
27044 (grub_ofconsole_highlight_color): Likewise.
27045 (grub_ofconsole_getcharwidth): Likewise.
27046 (grub_ofconsole_setcolorstate): Likewise.
27047 (grub_ofconsole_setcolor): Likewise.
27048 (grub_ofconsole_getcolor): Likewise.
27049 (grub_ofconsole_readkey): Renamed to ...
27050 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27052 (grub_ofconsole_checkkey): Removed.
27053 (grub_ofconsole_getkey): Likewise.
27054 (grub_ofconsole_getxy): Likewise.
27055 (grub_ofconsole_gotoxy): Likewise.
27056 (grub_ofconsole_cls): Likewise.
27057 (grub_ofconsole_refresh): Likewise.
27058 (grub_ofconsole_terminfo_input): New struct.
27059 (grub_ofconsole_terminfo_output): Likewise.
27060 (grub_ofconsole_term_input): Use terminfo.
27061 (grub_ofconsole_term_output): Likewise.
27062 (grub_console_init): Split into ...
27063 (grub_console_init_early): ...this and ...
27064 (grub_console_init_lately): ...this. Use terminfo.
27065 (grub_ofconsole_putchar): Renamed to ...
27066 (put): ... this. Remove mapping.
27067 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27068 * term/serial.c: Simplify using terminfo.
27071 (keep_track): Likewise.
27072 (registered): Likewise.
27073 (input_buf): Likewise.
27074 (npending): Likewise.
27075 (serial_translate_key_sequence): Likewise.
27076 (fill_input_buf): Likewise.
27077 (grub_serial_checkkey): Likewise.
27078 (grub_serial_getkey): Likewise.
27079 (grub_serial_getxy): Likewise.
27080 (grub_serial_gotoxy): Likewise.
27081 (grub_serial_putchar): Likewise.
27082 (grub_serial_cls): Likewise.
27083 (grub_serial_setcolorstate): Likewise.
27084 (grub_serial_setcursor): Likewise.
27085 (serial_hw_init): Use serial_hw_fetch.
27086 (grub_serial_terminfo_input): New variable.
27087 (grub_serial_terminfo_output): Likewise.
27088 (grub_serial_term_input): Use terminfo.
27089 (grub_serial_term_output): Likewise.
27090 * term/terminfo.c (putstr): Use put.
27091 (grub_terminfo_all_free): New function
27092 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27093 (grub_terminfo_output_register): New function.
27094 (grub_terminfo_output_unregister): Likewise.
27095 (grub_terminfo_getxy): Likewise.
27096 (grub_terminfo_readkey): Likewise.
27097 (grub_terminfo_checkkey): Likewise.
27098 (grub_terminfo_getkey): Likewise.
27099 (grub_terminfo_input_init): Likewise.
27100 (print_terminfo): Likewise.
27101 (grub_cmd_terminfo): Handle encoding.
27102 (grub_terminfo_gotoxy): Track position.
27103 (grub_terminfo_cls): Likewise.
27104 (grub_terminfo_putchar): Likewise.
27105 (grub_terminfo_setcolorstate): Handle colors
27106 (grub_terminfo_cursor_on): This ...
27107 (grub_terminfo_cursor_off): ... and this merged into ...
27108 (grub_terminfo_setcursor): ... this.
27109 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27110 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27111 * unicode/BidiMirroring.txt: Likewise.
27112 * unicode/UnicodeData.txt: Likewise.
27113 * unicode/COPYING: Likewise.
27114 * util/grub-editenv.c (grub_putchar): Removed.
27115 (grub_xputs_real): New function.
27116 (grub_xputs): New variable.
27117 * util/grub-fstest.c (grub_putchar): Removed.
27118 (grub_xputs_real): New function.
27119 (grub_xputs): New variable.
27120 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27121 (grub_xputs_real): New function.
27122 (grub_xputs): New variable.
27123 * util/grub-probe.c (grub_putchar): Removed.
27124 (grub_xputs_real): New function.
27125 (grub_xputs): New variable.
27126 * util/grub-script-check.c (grub_putchar): Removed.
27127 (grub_xputs_real): New function.
27128 (grub_xputs): New variable.
27129 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27130 (grub_xputs_real): New function.
27131 (grub_xputs): New variable.
27132 * util/import_unicode.py: New file.
27133 * util/grub-mkfont.c (ft_errmsgs): New array.
27134 (grub_glyph_info): Make bitmap a pointer.
27135 (file_formats): New type WIDTH_SPEC.
27136 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27137 (options): Add width-spec.
27139 (add_char): Renamed to ...
27140 (add_glyph): ... this.
27141 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27142 (glyph_replace): New type.
27143 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27144 (add_char): New function.
27145 (add_subst): Likewise.
27146 (process_cursive): Likewise.
27147 (add_font): Handle GSUB.
27148 (write_font_width_spec): New function.
27149 (main): Sort glyphs.
27150 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27151 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27152 * kern/term.c (grub_cls): Moved from here...
27153 * normal/term.c (grub_cls): ... here.
27155 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27157 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27158 suitable for using within the format argument of printf when
27159 converting grub_size_t.
27160 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27161 "x" to convert grub_size_t arguments.
27163 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27165 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27167 (list_get_minimal_size): Take selection box into account.
27169 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27171 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27174 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27176 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27177 devices when iterating over /dev/disk/by-id; they will be handled
27178 later if appropriate, which they aren't always (e.g. LVM).
27180 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27182 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27183 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27185 (grub_halt): Likewise.
27186 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27188 (grub_halt): Don't return, even if all of shut-down, power-off, and
27191 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27193 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27194 arguments, not three.
27196 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27198 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27199 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27200 LVM-on-RAID is handled correctly.
27202 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27204 * docs/grub.texi (Changes from GRUB Legacy): New section.
27205 (Future): Fix typo.
27207 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27209 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27210 grub.d/README accidentally ends up executable for one reason or
27211 another. Ignore it.
27213 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27215 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27216 (gpt_partition_map_iterate): Support non-512B sectors.
27218 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27220 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27221 Tested by: Seth Goldberg.
27223 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27225 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27226 Properly align mbi.
27227 Reported by: Seth Goldberg.
27229 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27231 * util/grub-mkrescue.in: Avoid module duplication.
27233 2010-07-01 Sean Finney <seanius@seanius.net>
27235 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27237 2010-07-01 Sean Finney <seanius@seanius.net>
27239 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27241 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27243 * disk/lvm.c (grub_lvm_checkvalue): New function.
27244 (grub_lvm_check_flag): Likewise.
27246 2010-07-01 Robert Millan <rmh@gnu.org>
27248 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27249 Support 'p' as partition separator on kernel of FreeBSD (used
27251 (grub_util_biosdisk_get_grub_dev): Likewise.
27253 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27255 Yeeloong firmware port.
27257 * boot/mips/yeeloong/fwstart.S: New file.
27258 * bus/cs5536.c (gpiodump): New const.
27259 (set_io_space): New function.
27260 (set_iod): Likewise.
27261 (set_p2d): Likewise.
27262 (grub_cs5536_init_geode): Likewise.
27263 * commands/mips/yeeloong/lsspd.c: New file.
27264 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27265 (serial_mod_SOURCES): New variable.
27266 (serial_mod_CFLAGS): Likewise.
27267 (serial_mod_LDFLAGS): Likewise.
27268 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27269 term/terminfo.c and term/tparm.c.
27270 (pkglib_IMAGES): Add fwstart.img.
27271 (fwstart_img_SOURCES): New variable.
27272 (fwstart_img_CFLAGS): Likewise.
27273 (fwstart_img_ASFLAGS): Likewise.
27274 (fwstart_img_LDFLAGS): Likewise.
27275 (fwstart_img_FORMAT): Likewise.
27276 (pkglib_MODULES): Add lsspd.mod.
27277 (lsspd_mod_SOURCES): New variable.
27278 (lsspd_mod_CFLAGS): Likewise.
27279 (lsspd_mod_LDFLAGS): Likewise.
27280 (pkglib_MODULES): Add halt.mod.
27281 (halt_mod_SOURCES): New variable.
27282 (halt_mod_CFLAGS): Likewise.
27283 (halt_mod_LDFLAGS): Likewise.
27284 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27285 (serial_mod_SOURCES): Removed.
27286 (serial_mod_CFLAGS): Likewise.
27287 (serial_mod_LDFLAGS): Likewise.
27288 * disk/ata.c (check_device): New function.
27289 (grub_ata_device_initialize): Use check_device.
27290 (grub_ata_iterate): Recheck devices.
27291 (grub_ata_open): Likewise.
27292 (grub_atapi_iterate): Likewise.
27293 (grub_atapi_open): Likewise.
27294 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27295 (GRUB_ATA_CH1_PORT1): Likewise.
27296 (GRUB_ATA_CH0_PORT2): Likewise.
27297 (GRUB_ATA_CH1_PORT2): Likewise.
27298 * include/grub/mips/loongson.h: New file.
27299 * include/grub/mips/yeeloong/ec.h: Likewise.
27300 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27301 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27302 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27303 * include/grub/misc.h (grub_halt): Declare as noreturn.
27304 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27305 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27306 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27307 (UART_ENABLE_DTRRTS): Likewise.
27308 (UART_ENABLE_MODEM): Removed.
27309 (UART_ENABLE_OUT2): New const.
27310 * include/grub/term.h (grub_term_register_input_active): New function.
27311 (grub_term_register_output_active): Likewise.
27312 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27314 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27315 (init_pci): New function.
27316 (grub_machine_init): Execute platform init when firmware. Init serial.
27317 (grub_halt): Implement.
27318 (grub_exit): Likewise.
27319 (grub_reboot): Likewise.
27320 * term/serial.c (serial_hw_init): Update macros.
27321 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27322 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27323 (image_targets): New target mipsel-yeeloong-flash.
27324 (generate_image): Support IMAGE_YEELOONG_FLASH.
27325 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27326 (grub_video_sm712_setup): Init card.
27327 (grub_video_sm712_set_palette): Removed.
27328 * video/sm712_init.c: New file.
27330 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27332 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27333 PATH when running help2man and then run it on the unadorned
27334 executable names, rather than passing $(builddir)/* paths to
27335 help2man. This avoids the build directory ending up in generated
27338 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27340 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27341 to avoid accidents when debugging with 'sh -x'.
27342 * util/grub-mkrescue.in: Likewise.
27343 * util/grub.d/00_header.in: Likewise.
27344 * util/grub.d/10_hurd.in: Likewise.
27345 * util/grub.d/10_kfreebsd.in: Likewise.
27346 * util/grub.d/10_linux.in: Likewise.
27347 * util/grub.d/10_netbsd.in: Likewise.
27348 * util/grub.d/10_windows.in: Likewise.
27349 * util/grub.d/20_linux_xen.in: Likewise.
27350 * util/grub.d/30_os-prober.in: Likewise.
27351 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27353 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27355 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27356 last character in the buffer.
27357 Reported by: Vladimir Serbinenko.
27359 2010-06-29 Robert Millan <rmh@gnu.org>
27361 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27362 (Command-line and menu entry commands): Document `badram' command.
27364 2010-06-28 Robert Millan <rmh@gnu.org>
27366 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27367 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27368 command using ${GRUB_BADRAM} as parameter.
27370 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27372 * docs/grub.texi (Device map): New section.
27373 (Themes): New section (stub).
27374 * Makefile.in (docs/grub.info): The info documentation now builds
27375 without errors. Make sure it stays that way.
27377 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27379 Use normal parser for menu entries.
27380 Reported by: Thomas Frauendorfer
27382 * include/grub/parser.h (grub_parser_execute): Don't export.
27383 * normal/menu.c (grub_menu_execute_entry_real): New function.
27384 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27386 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27388 * docs/grub.texi (Embedded configuration): New section (replacing
27389 old "Preset Menu" stub).
27390 (Images): New section.
27391 (configfile): Note that any menu entries defined in `file' are shown
27394 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27396 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27398 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27400 * util/grub-install.in: Add --debug-image= option.
27402 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27404 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27407 * util/deviceiter.c (check_device): Rename to ...
27408 (check_device_readable_unique): ... this. Update all callers.
27409 Maintain and check a list of which devices (by canonicalized name)
27410 have already been seen.
27411 (clear_seen_devices): New function.
27412 (compare_file_names) [__linux__]: New function.
27413 (grub_util_iterate_devices): Clear the list of seen devices on exit
27414 and (just in case) on entry.
27415 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27416 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27417 seen-devices list, superseded by general code in check_device.
27419 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27421 * commands/cat.c (options): New variable.
27422 (grub_cmd_cat): Parse options. If the --dos option is given, print
27423 DOS-style "\r\n" line endings as simple newlines (Debian bug
27425 (GRUB_MOD_INIT): Use extcmd.
27426 (GRUB_MOD_FINI): Likewise.
27427 * docs/grub.texi (cat): Document --dos.
27429 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27431 XEN with Linux grub-mkconfig support.
27433 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27434 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27435 GRUB_CMDLINE_XEN_DEFAULT.
27436 * util/grub.d/20_linux_xen.in: New file.
27438 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27440 Initialise VGA video on qemu ourselves.
27442 * boot/i386/qemu/boot.S: Don't call 0xc000.
27443 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27444 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27445 (kernel_img_HEADERS): Add pci.h.
27446 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27447 * configure.ac: Force unifont on qemu and yeeloong.
27448 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27449 (grub_vga_palette_write): Use correct register.
27450 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27451 Call grub_qemu_init_cirrus.
27452 * kern/i386/qemu/init.c: New file.
27453 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27455 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27457 2010-06-26 Pavel Roskin <proski@gnu.org>
27459 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27462 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27464 * docs/grub.texi (Simple configuration): Explain that
27465 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27466 set to `true' to disable their respective recovery entries, not
27469 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27471 Make the `source' command slightly faster.
27473 * normal/main.c (grub_normal_execute): Don't re-read list files when
27476 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27478 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27479 field position and mask size to red fields from mode_info, not
27481 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27482 Remove redundant tag->common.framebuffer_type assignment.
27483 Reported by: Seth Goldberg.
27485 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27487 Sync up other versions of the Linux loader with Robert Millan's
27488 change of 2010-01-09, "Make loader output a bit more user-friendly".
27490 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27492 (grub_cmd_linux): Likewise.
27493 (grub_cmd_initrd): Likewise.
27494 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27495 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27497 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27499 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27500 larger than MEMORY_MAP_SIZE.
27502 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27504 Fix parallel build.
27506 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27508 * script/parser.y: #include grub_script.tab.h header.
27510 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27512 Support >3GiB and <16MiB RAM in i386-qemu.
27514 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27515 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27516 (grub_lower_mem): Removed.
27517 (grub_upper_mem): Likewise.
27518 (mem_size): Made static.
27519 (above_4g): New variable.
27520 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27521 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27524 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27526 Cirrus 5446 and Bochs video cards support.
27528 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27530 (video_cirrus_mod_SOURCES): New variable.
27531 (video_cirrus_mod_CFLAGS): Likewise.
27532 (video_cirrus_mod_LDFLAGS): Likewise.
27533 (video_bochs_mod_SOURCES): Likewise.
27534 (video_bochs_mod_CFLAGS): Likewise.
27535 (video_bochs_mod_LDFLAGS): Likewise.
27536 * include/grub/vga.h: New file.
27537 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27538 (grub_video_fb_set_page_t): New type.
27539 (grub_video_fb_setup): New prototype.
27540 (grub_video_fb_swap_buffers): Likewise.
27541 (grub_video_fb_get_info_and_fini): Likewise.
27542 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27543 (CRTC_DATA_PORT): Likewise.
27544 (CRTC_CURSOR): Likewise.
27545 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27546 (CRTC_CURSOR_ADDR_LOW): Likewise.
27547 (CRTC_CURSOR_DISABLE): Likewise.
27548 (update_cursor): Use grub_vga_cr_write.
27549 (grub_vga_text_setcursor): Likewise.
27550 * video/bochs.c: New file.
27551 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27552 (palette): Likewise.
27553 (palette_size): Likewise.
27554 (framebuffer): New variable.
27555 (grub_video_fb_init): Use 'framebuffer'.
27556 (grub_video_fb_fini): Likewise.
27557 (grub_video_fb_get_info): Likewise.
27558 (grub_video_fb_get_palette): Likewise.
27559 (grub_video_fb_set_palette): Likewise.
27560 (grub_video_fb_set_viewport): Likewise.
27561 (grub_video_fb_get_viewport): Likewise.
27562 (grub_video_fb_map_color): Likewise.
27563 (grub_video_fb_map_rgb): Likewise.
27564 (grub_video_fb_map_rgba): Likewise.
27565 (grub_video_fb_unmap_color): Likewise.
27566 (grub_video_fb_unmap_color_int): Likewise.
27567 (grub_video_fb_fill_rect): Likewise.
27568 (grub_video_fb_blit_bitmap): Likewise.
27569 (grub_video_fb_blit_render_target): Likewise.
27570 (grub_video_fb_scroll): Likewise.
27571 (grub_video_fb_create_render_target): Likewise.
27572 (grub_video_fb_doublebuf_blit_init): Likewise.
27573 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27574 (doublebuf_pageflipping_update_screen): New function.
27575 (doublebuf_pageflipping_init): Likewise.
27576 (grub_video_fb_setup): Likewise.
27577 (grub_video_fb_swap_buffers): Likewise.
27578 (grub_video_fb_get_info_and_fini): Likewise.
27579 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27581 (doublebuf_pageflipping_commit): Restructured into ...
27582 (doublebuf_pageflipping_set_page): ... this.
27583 (doublebuf_pageflipping_update_screen): Removed.
27584 (doublebuf_pageflipping_init): Likewise.
27585 (double_buffering_init): Likewise.
27586 (grub_video_vbe_setup): Use grub_video_fb_setup.
27587 (grub_video_vbe_swap_buffers): Removed.
27588 (grub_video_vbe_set_active_render_target): Likewise.
27589 (grub_video_vbe_get_active_render_target): Likewise.
27590 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27591 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27592 grub_video_fb_set_active_render_target and
27593 grub_video_fb_get_active_render_target.
27594 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27595 (SEQUENCER_DATA_PORT): Likewise.
27596 (MAP_MASK_REGISTER): Likewise.
27597 (CRTC_ADDR_PORT): Likewise.
27598 (CRTC_DATA_PORT): Likewise.
27599 (START_ADDR_HIGH_REGISTER): Likewise.
27600 (START_ADDR_LOW_REGISTER): Likewise.
27601 (GRAPHICS_ADDR_PORT): Likewise.
27602 (GRAPHICS_DATA_PORT): Likewise.
27603 (READ_MAP_REGISTER): Likewise.
27604 (INPUT_STATUS1_REGISTER): Likewise.
27605 (INPUT_STATUS1_VERTR_BIT): Likewise.
27606 (get_map_mask): Use grub_vga_sr_read.
27607 (set_map_mask): Use grub_vga_sr_write.
27608 (set_read_map): Use grub_vga_gr_write.
27609 (set_start_address): Use grub_vga_cr_write.
27610 * video/sm712.c (framebuffer): Remove leftover fields.
27612 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27614 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27615 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27616 instead. Replace the gfxterm backend check with a check that
27617 ${GRUB_PREFIX}/video.lst is non-empty.
27618 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27620 (load_video): New generated function. Call it before loading
27621 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27622 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27623 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27624 * docs/grub.texi (Simple configuration): Document
27625 GRUB_VIDEO_BACKEND.
27627 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27629 Use video functions in linux and xnu loaders.
27631 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27632 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27633 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27634 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27635 loader/i386/pc/linux.c.
27636 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27637 (find_line_len): Removed.
27638 (find_framebuf): Likewise.
27639 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27640 * loader/i386/efi/xnu.c: Removed.
27641 * loader/i386/pc/xnu.c: Moved from here...
27642 * loader/i386/xnu.c: ...here.
27644 Enable priorities in video drivers.
27646 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27647 (grub_video_adapter): New field prio.
27648 (grub_video_register): Respect prio when inserting.
27649 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27650 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27651 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27652 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27653 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27654 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27655 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27659 * include/grub/video.h (grub_video_driver_id_t): New value
27660 GRUB_VIDEO_DRIVER_SDL.
27661 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27663 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27665 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27666 argument to printf.
27667 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27669 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27671 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27672 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27674 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27676 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27677 directly, and recommend grub-install instead.
27678 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27680 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27682 Fix i386-pc prefix handling with nested partitions (Debian bug
27683 #585068). Note that the case where the core image is booted using
27684 multiboot and relocated from its original location still requires
27687 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27688 with "(,", fill the boot drive in between those two characters, but
27689 expect that a full partition specification including partition map
27691 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27692 specified, write a prefix without the drive name but including a
27693 full partition specification.
27695 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27697 * util/grub-mkconfig.in: Ignore non-option arguments, for
27698 compatibility with older versions (before 2010-06-12) which did the
27699 same. In particular, this makes it easier to ship an update-grub
27700 wrapper which is compatible with that used with GRUB Legacy (Debian
27703 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27705 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27706 for manual page generation.
27708 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27710 * po/POTFILES: Remove leftover commands/handler.c.
27712 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27714 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27715 left this script non-functional.
27717 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27719 * docs/man/grub-emu.h2m: New file.
27721 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27723 * docs/grub.texi (Commands): Document reduced command set in rescue
27725 (cpuid): New section.
27727 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27729 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27730 new partition naming style.
27731 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27733 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27735 Add "-o grub.iso" like cmdline options support.
27737 * util/grub-install.in: Improve cmdline option parsing.
27738 * util/grub-mkconfig.in: Likewise.
27739 * util/grub-mkrescue.in: Likewise.
27740 * util/grub-reboot.in: Likewise.
27741 * util/grub-set-default.in: Likewise.
27742 * util/i386/efi/grub-install.in: Likewise.
27743 * util/ieee1275/grub-install.in: Likewise.
27744 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27746 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27748 * .bzrignore: Ignore 41_custom.
27750 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27752 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27754 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27756 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27757 prototype declarations.
27759 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27760 generating fs, partmap, and video lists.
27761 * include/grub/fs.h (grub_fs_register): Omit prototype if
27762 GRUB_LST_GENERATOR is defined.
27763 * include/grub/partition.h (grub_partition_map_register): Likewise.
27764 * include/grub/video.h (grub_video_register): Likewise.
27766 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27768 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27770 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27772 * util/grub-mkrescue.in: Support --xorriso argument.
27774 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27776 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27777 Suggested by: Thomas Schmitt.
27779 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27781 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27782 Suggested by: Thomas Schmitt.
27784 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27786 custom.cfg support.
27788 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27789 * util/grub.d/41_custom.in: New file.
27791 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27793 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27794 been merged back into normal.
27796 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27798 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27799 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27801 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27803 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27804 when generating manual pages.
27805 * docs/man/grub-bin2h.h2m: New file.
27806 * docs/man/grub-editenv.h2m: New file.
27807 * docs/man/grub-fstest.h2m: New file.
27808 * docs/man/grub-install.h2m: New file.
27809 * docs/man/grub-macho2img.h2m: New file.
27810 * docs/man/grub-mkconfig.h2m: New file.
27811 * docs/man/grub-mkdevicemap.h2m: New file.
27812 * docs/man/grub-mkfont.h2m: New file.
27813 * docs/man/grub-mkimage.h2m: New file.
27814 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27815 * docs/man/grub-mkrelpath.h2m: New file.
27816 * docs/man/grub-mkrescue.h2m: New file.
27817 * docs/man/grub-ofpathname.h2m: New file.
27818 * docs/man/grub-pe2elf.h2m: New file.
27819 * docs/man/grub-probe.h2m: New file.
27820 * docs/man/grub-reboot.h2m: New file.
27821 * docs/man/grub-script-check.h2m: New file.
27822 * docs/man/grub-set-default.h2m: New file.
27823 * docs/man/grub-setup.h2m: New file.
27825 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27827 Use FOR_* macros instead of *_iterate whenever possible.
27829 * commands/handler.c: Removed.
27830 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27831 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27832 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27833 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27834 (grub_probe_SOURCES): Remove kern/parser.c.
27835 (util/grub-script-check.c_DEPENDENCIES): Removed.
27836 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27837 and grub_script_check_init.c.
27838 (grub_script_check_init.lst): Removed.
27839 (grub_script_check_init.h): Likewise.
27840 (grub_script_check_init.c): Likewise.
27841 (pkglib_MODULES): Remove handler.mod and sh.mod.
27842 (handler_mod_SOURCES): Removed.
27843 (handler_mod_CFLAGS): Likewise.
27844 (handler_mod_LDFLAGS): Likewise.
27845 (normal_mod_SOURCES): Remove normal/handler.c.
27846 Add script/main.c, script/script.c, script/execute.c,
27847 script/function.c, script/lexer.c, grub_script.tab.c
27848 and grub_script.yy.c.
27849 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27850 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27851 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27852 (grub_setup_SOURCES): Remove kern/parser.c.
27853 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27854 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27855 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27856 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27857 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27858 (grub_setup_SOURCES): Remove kern/parser.c.
27859 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27860 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27861 * include/grub/command.h (grub_command_iterate): Removed.
27862 (FOR_COMMANDS): New macro.
27863 * include/grub/dl.h (grub_dl): New member next.
27864 (grub_dl_iterate): Removed.
27865 (grub_dl_head): New variable declaration.
27866 (FOR_DL_MODULES): New macro.
27867 * include/grub/fs.h: Include list.h.
27868 (grub_fs): Make next first element.
27869 (grub_fs_list): New variable declaration.
27870 (grub_fs_register): Make inline.
27871 (grub_fs_unregister): Likewise.
27872 (grub_fs_iterate): Removed.
27873 (FOR_FILESYSTEMS): New macro.
27874 * include/grub/handler.h: Removed.
27875 * include/grub/list.h (grub_list_hook_t): Removed.
27876 (grub_list_test_t): Likewise.
27877 (grub_list_pop): Likewise.
27878 (grub_list_iterate): Likewise.
27879 (grub_list_insert): Likewise.
27880 (FOR_LIST_ELEMENTS): New macro.
27881 * include/grub/parser.h (grub_parser_class): Removed.
27882 (grub_parser_register): Likewise.
27883 (grub_parser_unregister): Likewise.
27884 (grub_parser_get_current): Likewise.
27885 (grub_parser_set_current): Likewise.
27886 (grub_register_rescue_parser): Likewise.
27887 (grub_rescue_parse_line): New function.
27888 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27889 * include/grub/script_sh.h (grub_script_function_list): New variable
27891 (FOR_SCRIPT_FUNCTIONS): New macro.
27892 (grub_script_function_iterate): Removed.
27893 (grub_normal_parse_line): New prototype.
27894 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27895 (FOR_DISABLED_TERM_INPUTS): Likewise.
27896 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27897 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27898 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27900 (grub_video_register): Inline.
27901 (grub_video_unregister): Likewise.
27902 (grub_video_adapter_list): New variable declaration.
27903 (grub_video_iterate): Removed.
27904 (FOR_VIDEO_ADAPTERS): New macro.
27905 * kern/dl.c (grub_dl_list): Removed. All users updated.
27906 (grub_dl_iterate): Removed.
27907 * kern/fs.c (grub_fs_list): Make global.
27908 (grub_fs_register): Removed.
27909 (grub_fs_unregister): Likewise.
27910 (grub_fs_iterate): Likewise.
27911 * kern/handler.c: Removed.
27912 * kern/list.c (grub_list_pop): Removed.
27913 (grub_list_iterate): Likewise.
27914 (grub_list_insert): Likewise.
27915 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27916 (grub_prio_list_insert): Don't use grub_list_insert.
27917 * kern/main.c (grub_register_rescue_parser): Don't call
27918 grub_register_rescue_parser.
27919 * kern/parser.c (grub_parser_class): Removed.
27920 (grub_parser_execute): Use grub_rescue_parse_line.
27921 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27922 (grub_rescue_parser): Removed.
27923 (grub_register_rescue_parser): Likewise.
27924 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27925 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27926 (grub_auth_check_authentication): Likewise.
27927 * normal/completion.c (iterate_command): Removed.
27928 (grub_normal_do_completion): Use FOR_COMMANDS.
27929 * normal/handler.c: Removed.
27930 * normal/main.c (read_config_file): Remove parser changing.
27931 (grub_normal_execute): Don't call read_handler_list.
27932 (grub_normal_read_line_real): Statically allocate prompt.
27933 (grub_cmdline_run): Use grub_normal_parse_line.
27934 (GRUB_MOD_FINI): Don't call free_handler_list.
27935 * normal/menu_entry.c (run): Likewise.
27936 * script/function.c (grub_script_function_list): Make global.
27937 (grub_script_function_iterate): Removed.
27938 * script/main.c (grub_normal_parse_line): Make global.
27939 (grub_sh_parser): Removed.
27940 (GRUB_MOD_INIT): Likewise.
27941 (GRUB_MOD_FINI): Likewise.
27942 * tests/lib/functional_test.c (grub_functional_test): Use
27944 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27945 (grub_test_run): Use FOR_LIST_ELEMENTS.
27946 * tests/lib/unit_test.c (main): Likewise.
27947 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27949 * util/grub-fstest.c (grub_term_input_class): Removed.
27950 (grub_term_output_class): Likewise.
27951 * util/grub-probe.c: Likewise.
27952 * util/i386/pc/grub-setup.c: Likewise.
27953 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27954 * util/grub-script-check.c (main): Don't call grub_init_all and
27956 * video/video.c (grub_video_adapter_list): Make global.
27957 (grub_video_register): Removed.
27958 (grub_video_unregister): Likewise.
27959 (grub_video_iterate): Likewise.
27961 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27963 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27964 reported by Henrique Ferreiro.
27966 2010-06-09 Robert Millan <rmh@gnu.org>
27968 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27969 ones, when both are available.
27971 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27973 Make --version uniform and avoid hard-coded program name.
27975 * util/grub-mkimage.c (main): Use `program_name' instead of
27977 * util/i386/pc/grub-setup.c (main): Likewise.
27978 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27979 * util/grub-install.in: Save the basename of $0 in $self, and use the
27980 latter in informational messages. Use the same format for --version
27981 as the binary programs.
27982 * util/grub-mkconfig.in: Likewise.
27983 * util/grub-mkrescue.in: Likewise.
27984 * util/grub-reboot.in: Likewise.
27985 * util/grub-set-default.in: Likewise.
27986 * util/i386/efi/grub-install.in: Likewise.
27987 * util/ieee1275/grub-install.in: Likewise.
27988 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27990 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27992 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27993 embedding area. Use <= instead of == when checking for non-emptiness.
27995 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27997 * configure.ac: Add `.' to the directories searched for unifont.
27999 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28001 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
28004 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28006 * docs/grub.texi (History): Expand to cover GRUB 2.
28007 (Serial terminal): Refer to `terminal_input' and `terminal_output'
28008 commands, not `terminal'.
28009 (serial): Likewise.
28010 (terminal_input): New section.
28011 (terminal_output): New section.
28012 (uppermem): New section (stub).
28013 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28015 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28017 * docs/grub.texi (Security): Menu entries are unrestricted by
28018 default, not restricted to superusers as I had previously thought.
28019 Reword to account for this.
28021 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28023 * kern/emu/misc.c (device_mapper_null_log): New function.
28024 (grub_device_mapper_supported): New function.
28025 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28027 * kern/emu/hostdisk.c (find_partition_start): Check whether
28028 device-mapper is supported before trying to use it.
28029 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28031 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28033 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28034 (File name syntax): Likewise.
28035 (help): --all is no longer supported in GRUB 2. Be more precise
28036 about pattern matching.
28038 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28040 * normal/completion.c (grub_normal_do_completion): When completing
28041 arguments to "set" and the current word contains an equals sign,
28042 skip to after the equals sign before starting completion.
28044 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28046 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28048 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28050 * docs/grub.texi (Network): New section.
28051 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28052 `(nd)' as in GRUB Legacy.
28053 (pxe_unload): New section.
28055 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28057 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28058 in the rescue shell, so recommend using `set' instead. Thanks,
28061 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28063 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28064 (password): New section.
28065 (password_pbkdf2): New section.
28066 (search): New section.
28067 (Security): New section.
28068 (Troubleshooting): New section, currently very incomplete.
28069 (Invoking grub-mkpasswd-pbkdf2): New section.
28070 (Internals): New section, currently very incomplete.
28072 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28074 * util/grub.d/00_header.in: Add some more quoting (of
28075 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28077 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28079 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28081 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28082 to `count', fixing variable shadowing that broke the -c option.
28084 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28086 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28087 in case they contain spaces.
28089 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28091 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28092 "part_" to partmap module names, in line with grub-install.
28093 Reported by: Jindřich Makovička (Debian bug #584426).
28095 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28097 * util/grub-mkimage.c: Make target-related error messages slightly
28098 more helpful; -O talks about "format". Explicitly point to the use
28099 of -O if no target is specified.
28100 Reported by: Didier Raboud (Debian bug #584415).
28102 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28104 * INSTALL: Document several build requirements for optional features
28105 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28107 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28109 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28110 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28111 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28113 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28115 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28116 Thanks to Jordan Uggla for spotting this.
28118 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28120 Finally make USB usable.
28122 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28123 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28124 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28125 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28126 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28127 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28128 (GRUB_OHCI_FSMPS): Likewise.
28129 (GRUB_OHCI_PERIODIC_START): Likewise.
28130 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28131 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28132 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28133 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28134 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28135 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28136 (grub_ohci_transaction): Likewise.
28137 (grub_ohci_transfer): Improve condition detection algorithms.
28138 Handle toggle property. Program the transactions correctly.
28139 Improve error handling. Various important fixups.
28140 (grub_ohci_portstatus): Put register writes in right order.
28141 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28142 (grub_uhci_transfer): Don't show "failed" message on success.
28143 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28145 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28146 determine its size.
28147 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28148 before initialization is completed. Use IN direction for empty
28149 transfers. Use last_trans and compute toggle.
28150 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28151 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28152 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28153 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28154 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28155 (grub_usb_device): Increase toggle to 256.
28156 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28157 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28158 GRUB_USBMS_SUBCLASS_SFF8070.
28159 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28160 (grub_scsi_inquiry): New member page and alloc_length.
28161 (grub_scsi_request_sense): New structure.
28162 (grub_scsi_request_sense_data): Likewise.
28163 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28165 * disk/scsi.c (grub_scsi_request_sense): New function.
28166 (grub_scsi_test_unit_ready): Likewise.
28167 (grub_scsi_inquiry): Fill new fields.
28168 (grub_scsi_read_capacity): Likewise.
28169 (grub_scsi_read10): Add request sense at the end.
28170 (grub_scsi_read12): Likewise.
28171 (grub_scsi_write10): Likewise.
28172 (grub_scsi_write12): Likewise.
28173 (grub_scsi_open): Add Test Unit Ready.
28174 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28175 Support additional subclasses. Con't clear halt yet. Activate the
28176 proper config. Calculate LUNs correctly.
28177 (grub_usbms_transfer): Various important fixups.
28179 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28181 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28182 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28183 (grub_ohci_fini_hw): New function.
28184 (grub_ohci_restore_hw): Likewise.
28185 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28186 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28187 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28189 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28191 Dedicated DMA allocations.
28193 * bus/pci.c (grub_memalign_dma32): New function
28194 (grub_dma_free): Likewise.
28195 (grub_dma_get_virt): Likewise.
28196 (grub_dma_get_phys): Likewise.
28197 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28198 (grub_ohci_pci_iter): Use dma32_alloc.
28199 (grub_ohci_transfer): Likewise.
28200 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28201 (grub_usb_bulk_readwrite): Likewise.
28202 * include/grub/pci.h: Add declarations.
28204 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28208 * bus/cs5536.c: New file.
28209 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28210 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28211 (cs5536_mod_SOURCES): New variable.
28212 (cs5536_mod_CFLAGS): Likewise.
28213 (cs5536_mod_LDFLAGS): Likewise.
28214 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28216 (kernel_img_SOURCES): Add bus/cs5536.c.
28217 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28219 (usb_mod_SOURCES): New variable.
28220 (usb_mod_CFLAGS): New variable.
28221 (usb_mod_LDFLAGS): New variable.
28222 (usbtest_mod_SOURCES): New variable.
28223 (usbtest_mod_CFLAGS): New variable.
28224 (usbtest_mod_LDFLAGS): New variable.
28225 (ohci_mod_SOURCES): New variable.
28226 (ohci_mod_CFLAGS): New variable.
28227 (ohci_mod_LDFLAGS): New variable.
28228 (usbms_mod_SOURCES): New variable.
28229 (usbms_mod_CFLAGS): New variable.
28230 (usbms_mod_LDFLAGS): New variable.
28231 (usb_keyboard_mod_SOURCES): New variable.
28232 (usb_keyboard_mod_CFLAGS): New variable.
28233 (usb_keyboard_mod_LDFLAGS): New variable.
28234 * include/grub/smbus.h: New file.
28235 * include/grub/cs5536.h: New file.
28237 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28239 * util/grub.d/00_header.in: Add safety check to make sure that
28240 ${locale_dir} exists before trying to probe it.
28242 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28244 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28245 per the GNU Coding Standards; this is now too obscure to be worth
28248 (chainloader): Remove cross-reference to `SCO UnixWare'.
28250 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28252 * docs/grub.texi (Chain-loading): New section.
28253 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28254 adjusted for GRUB 2.
28255 (SCO UnixWare): Likewise.
28257 (chainloader): Add reference to `Block list syntax'.
28258 (drivemap): New section.
28259 (parttool): New section.
28261 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28263 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28265 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28266 (Installing GRUB using grub-install): Remove reference to the grub
28267 shell; mention `grub-mkimage' and `grub-setup' instead.
28268 (Invoking grub-install): Likewise.
28269 (Interface): Add reference to `Menu entry editor'.
28270 (serial): Remove `--device' option.
28272 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28274 * docs/grub.texi (Configuration): New section, documenting
28275 configuration file generation using grub-mkconfig. I've left a slot
28276 for documenting the full shell scripting format but have not yet
28277 started on writing that up.
28278 (Invoking grub-mkconfig): New section.
28280 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28282 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28283 (GNU GRUB manual): Likewise.
28284 (General commands): Update description of `terminfo' for GRUB 2.
28286 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28288 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28289 (GRUB_MOD_INIT): Fix capitalisation.
28290 * docs/grub.texi (Command-line and menu entry commands): Document
28291 gettext and gptsync commands.
28293 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28295 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28296 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28298 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28300 Add btrfs probing support, currently only in the single-device case.
28302 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28304 (grub_guess_root_device): Call find_root_device_from_mountinfo
28305 before looking in /dev.
28307 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28309 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28310 GRUB_DISK_SIZE_UNKNOWN.
28311 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28313 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28315 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28316 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28317 corrupted or not synced properly.
28319 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28321 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28322 Reported by: Seth Goldberg.
28324 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28326 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28328 Reported by: Seth Goldberg.
28330 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28332 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28333 Reported by: Seth Goldberg.
28335 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28337 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28338 64-bit address as signed on MIPS.
28340 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28342 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28343 to the empty string.
28345 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28347 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28349 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28350 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28351 * kern/misc.c (__enable_execute_stack): Disable on
28354 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28356 Make grub-probe work with symbolic links under /dev/mapper as well
28357 as with real block devices. The Linux world seems to be (at best)
28358 in transition here, and GRUB shouldn't get caught in the middle.
28360 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28363 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28365 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28366 input files (in which case exit zero).
28368 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28370 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28371 return NULL for various reasons even if it has a maximum-length
28372 buffer: for example, there might be a symlink loop, or the path
28373 might exceed PATH_MAX. If this happens, return NULL.
28375 2010-05-27 Robert Millan <rmh@gnu.org>
28377 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28378 partmap module to handle cross-partmap setups.
28379 Reported by Orestes Mas. Gràcies!
28381 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28383 * util/grub-mkrescue.in: Initialise override_dir rather than
28384 assuming that it's unset or empty in the environment.
28386 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28388 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28389 variable index into p_index to suppress a warning with -Wshadow.
28391 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28393 * INSTALL: Added flex >= 2.5.35 requirement.
28395 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28397 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28399 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28403 * commands/i386/cmostest.c: New file.
28404 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28405 (cmostest_mod_SOURCES): New variable.
28406 (cmostest_mod_CFLAGS): Likewise.
28407 (cmostest_mod_LDFLAGS): Likewise.
28408 * conf/i386-pc.rmk: Likewise.
28409 * docs/grub.texi (Vendor power-on keys): New section.
28410 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28411 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28412 and GRUB_BUTTON_CMOS_ADDRESS.
28413 * util/grub.d/00_header.in: Handle powering-on by separate button.
28415 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28417 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28418 Removed drawing_scrollbar argument. All users updated
28420 Reported by Jo Shields
28422 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28424 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28425 buffer since gfxterm handles double repaint.
28427 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28429 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28430 * term/gfxterm.c (real_scroll): Likewise.
28432 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28434 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28435 before calling BIOS.
28437 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28439 * include/grub/i18n.h: Always enable grub_gettext.
28441 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28443 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28444 partition naming style.
28446 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28448 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28449 not the first option.
28451 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28453 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28455 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28457 * util/misc.c: Move inclusion of <limits.h> to ...
28458 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28460 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28462 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28463 Fix merge error in NetBSD code.
28464 (find_partition_start) [__NetBSD__]: Likewise.
28466 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28468 Fix grub-mkrescue usage unit testing.
28470 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28472 2010-05-18 Christian Franke <franke@computer.org>
28474 * util/grub.d/10_windows.in: Use path names instead of
28475 drive letters to prevent warning from Cygwin 1.7.
28476 Add drivemap command to menuentry if needed.
28478 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28480 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28481 gnumach and gnumach.gz.
28483 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28485 * include/grub/i18n.h (gettext): Inline instead of using #define.
28486 (grub_gettext): Likewise.
28489 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28491 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28492 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28493 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28494 (main): Add a slash after pkglibdirroot.
28496 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28498 * util/grub-install.in: Add missing "in" keyword.
28500 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28502 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28503 Reported by: Seth Goldberg.
28505 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28507 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28509 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28511 * configure.ac: Check for Linux device-mapper support.
28513 * util/hostdisk.c (device_is_mapped): New function.
28514 (find_partition_start): New function, partly broken out from
28515 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28516 device-mapper support added.
28517 (linux_find_partition): Use find_partition_start.
28518 (convert_system_partition_to_system_disk): Add `st' argument.
28519 Support Linux /dev/mapper/* devices if device-mapper support is
28520 available; only DM-RAID devices are understood at present.
28521 (find_system_device): Add `st' argument. Pass it to
28522 convert_system_partition_to_system_disk.
28523 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28524 find_system_device and convert_system_partition_to_system_disk. Use
28525 find_partition_start.
28527 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28528 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28529 * util/deviceiter.c [__linux__]: Define MINOR.
28530 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28531 * util/mkdevicemap.c (grub_putchar): New function.
28532 (grub_getkey): New function.
28533 (grub_refresh): New function.
28534 (main): Set debug=all if -v -v is used.
28536 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28538 Fix build with non-GNU libcs.
28540 * util/misc.c (canonicalize_file_name): Move to ...
28541 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28542 grub_make_system_path_relative_to_its_root.
28544 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28546 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28547 we handle finding grub-mkimage. Default to finding grub-mkimage in
28548 ${bindir} with program_transform_name applied, and provide a
28549 --grub-mkimage option to override this.
28551 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28553 Remove grub-mkisofs.
28555 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28556 (grub_mkisofs_SOURCES): Removed.
28557 (grub_mkisofs_CFLAGS): Removed.
28558 * util/mkisofs/defaults.h: Removed.
28559 * util/mkisofs/eltorito.c: Likewise.
28560 * util/mkisofs/exclude.h: Likewise.
28561 * util/mkisofs/hash.c: Likewise.
28562 * util/mkisofs/include/: Likewise.
28563 * util/mkisofs/include/fctldefs.h: Likewise.
28564 * util/mkisofs/include/mconfig.h: Likewise.
28565 * util/mkisofs/include/prototyp.h: Likewise.
28566 * util/mkisofs/include/statdefs.h: Likewise.
28567 * util/mkisofs/iso9660.h: Likewise.
28568 * util/mkisofs/joliet.c: Likewise.
28569 * util/mkisofs/match.c: Likewise.
28570 * util/mkisofs/match.h: Likewise.
28571 * util/mkisofs/mkisofs.c: Likewise.
28572 * util/mkisofs/mkisofs.h: Likewise.
28573 * util/mkisofs/msdos_partition.h: Likewise.
28574 * util/mkisofs/multi.c: Likewise.
28575 * util/mkisofs/name.c: Likewise.
28576 * util/mkisofs/rock.c: Likewise.
28577 * util/mkisofs/tree.c: Likewise.
28578 * util/mkisofs/write.c: Likewise.
28580 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28582 Unify grub-mkimage accross platforms.
28584 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28585 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28586 (grub_mkelfimage_SOURCES): Removed.
28587 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28588 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28589 (bin_UTILITIES): Add grub-mkimage.
28590 (grub_mkimage_SOURCES): New variable.
28591 (kernel_img_HEADERS): Remove machine/kernel.h.
28592 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28593 (pkglib_PROGRAMS): Add kernel.img.
28594 (kernel_img_HEADERS): Add machine/kernel.h.
28595 (kernel_img_FORMAT): Removed.
28596 (bin_UTILITIES): Remove grub-mkimage.
28597 (grub_mkimage_SOURCES): Removed.
28598 (grub_mkimage_CFLAGS): Likewise.
28599 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28600 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28601 (pkglib_PROGRAMS): Add kernel.img.
28602 (bin_UTILITIES): Remove grub-mkimage.
28603 (grub_mkimage_SOURCES): Removed.
28604 (grub_mkimage_CFLAGS): Likewise.
28605 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28606 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28607 (pkglib_PROGRAMS): Add kernel.img.
28608 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28609 (pkglib_PROGRAMS): Add kernel.img.
28610 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28611 (grub_mkimage_SOURCES): Removed.
28612 (grub_mkimage_CFLAGS): Likewise.
28613 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28614 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28615 (pkglib_PROGRAMS): Add kernel.img.
28616 (bin_UTILITIES): Remove grub-mkimage.
28617 (grub_mkimage_SOURCES): Removed.
28618 (grub_mkimage_CFLAGS): Likewise.
28619 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28620 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28621 (grub_mkimage_SOURCES): Removed.
28622 (grub_mkimage_CFLAGS): Likewise.
28623 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28624 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28625 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28626 (grub_pe32_optional_header): ... this.
28627 (grub_pe64_optional_header): ... and this. All users updated.
28628 (GRUB_PE32_PE32_MAGIC): Split into ..
28629 (GRUB_PE32_PE32_MAGIC): .. this.
28630 (GRUB_PE32_PE64_MAGIC): .. and this.
28631 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28632 * include/grub/elf.h (PT_GNU_STACK): New definition.
28633 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28634 * include/grub/i386/efi/kernel.h: Likewise.
28635 * include/grub/i386/kernel.h: Likewise.
28636 * include/grub/i386/pc/kernel.h: Likewise.
28637 * include/grub/i386/qemu/boot.h: Likewise.
28638 * include/grub/mips/kernel.h: Likewise.
28639 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28640 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28641 * include/grub/powerpc/kernel.h: Likewise.
28642 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28643 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28644 * include/grub/sparc64/kernel.h: Likewise.
28645 * include/grub/x86_64/efi/kernel.h: Likewise.
28646 * include/grub/x86_64/kernel.h: Likewise.
28647 * include/grub/offsets.h: New file.
28648 * include/grub/kernel.h (grub_module_info): Split into ...
28649 (grub_module_info32): ... this.
28650 (grub_module_info64): ... and this.
28651 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28652 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28653 (grub_boot_blocklist): Moved from here ...
28654 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28655 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28656 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28657 * include/grub/types.h (grub_target_to_host16): Removed.
28658 (grub_target_to_host32): Likewise.
28659 (grub_target_to_host64): Likewise.
28660 (grub_host_to_target16): Likewise.
28661 (grub_host_to_target32): Likewise.
28662 (grub_host_to_target64): Likewise.
28663 (grub_host_to_target_addr): Likewise.
28665 Support grub-mkrescue for efi, coreboot and qemu.
28667 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28668 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28669 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28670 * util/grub-mkrawimage.c: Moved from here ...
28671 * util/grub-mkimage.c: ... here. All users updated.
28672 (ALIGN_ADDR): Use image_target.
28673 (TARGET_NO_FIELD): New const.
28674 (image_target_desc): New type.
28675 (image_targets): New array.
28676 (grub_target_to_host64): Use image_target.
28677 (grub_target_to_host32): Likewise.
28678 (grub_target_to_host16): Likewise.
28679 (grub_host_to_target64): Likewise.
28680 (grub_host_to_target32): Likewise.
28681 (grub_host_to_target16): Likewise.
28682 (grub_host_to_target_addr): Likewise.
28683 (generate_image): Handle multiimage.
28684 (main): Require -O parameter. All users updated.
28685 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28686 util/efi/grub-mkimage.c
28687 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28688 New option --rom-directory.
28690 * util/i386/efi/grub-mkimage.c: Removed.
28691 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28692 (grub_target_to_host32): Likewise.
28693 (grub_target_to_host64): Likewise.
28694 (grub_host_to_target16): Likewise.
28695 (grub_host_to_target32): Likewise.
28696 (grub_host_to_target64): Likewise.
28697 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28698 (grub_target_to_host32): Likewise.
28699 (grub_target_to_host64): Likewise.
28700 (grub_host_to_target16): Likewise.
28701 (grub_host_to_target32): Likewise.
28702 (grub_host_to_target64): Likewise.
28704 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28706 Source tree is reorganized for emu build.
28708 * include/grub/util/console.h: Move from here...
28709 * include/grub/emu/console.h: ...to here.
28710 * include/grub/util/getroot.h: Move from here...
28711 * include/grub/emu/getroot.h: ...to here.
28712 * include/grub/util/hostdisk.h: Move from here...
28713 * include/grub/emu/hostdisk.h: ...to here.
28714 * util/console.c: Move from here...
28715 * kern/emu/console.c: ...to here.
28716 * util/getroot.c: Move from here...
28717 * kern/emu/getroot.c: ...to here.
28718 * util/grub-emu.c: Move from here...
28719 * kern/emu/main.c: ...to here.
28720 * util/hostdisk.c: Move from here...
28721 * kern/emu/hostdisk.c: ...to here.
28722 * util/hostfs.c: Move from here...
28723 * kern/emu/hostfs.c: ...to here.
28724 * util/mm.c: Move from here...
28725 * kern/emu/mm.c: ...to here.
28726 * util/pci.c: Move from here...
28727 * bus/emu/pci.c: ...to here.
28728 * util/sdl.c: Move from here...
28729 * video/emu/sdl.c: ...to here.
28730 * util/time.c: Move from here...
28731 * kern/emu/time.c: ...to here.
28732 * util/usb.c: Move from here...
28733 * bus/usb/emu/usb.c: ...to here.
28735 * include/grub/emu/misc.h: New header for grub-emu functions.
28736 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28738 * conf/any-emu.rmk: Rule updates for above renames.
28739 * conf/common.rmk: Likewise.
28740 * conf/i386-pc.rmk: Likewise.
28741 * conf/i386-qemu.rmk: Likewise.
28742 * conf/mips.rmk: Likewise.
28743 * conf/sparc64-ieee1275.rmk: Likewise.
28744 * conf/x86-efi.rmk: Likewise.
28746 * disk/lvm.h: #include updates for above renames.
28747 * util/grub-mkrelpath.c: Likewise.
28748 * util/grub-probe.c: Likewise.
28749 * util/i386/pc/grub-setup.c: Likewise.
28750 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28751 * kern/emu/console.c: Likewise.
28752 * kern/emu/getroot.c: Likewise.
28753 * kern/emu/hostdisk.c: Likewise.
28754 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28756 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28757 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28758 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28759 * util/misc.c: Remove grub-emu functions.
28761 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28764 Reported by: Thorsten Grützmacher.
28766 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28768 (circprog_set_property): Register and unregister timeout hook.
28769 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28770 (label_destroy): Free template. and unregister hook.
28771 (label_set_state): New function.
28772 (label_set_property): Handle templates and hooks.
28773 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28775 (progress_bar_set_property): Register and unregister timeout hook.
28776 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28777 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28778 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28779 (update_timeout_visit): Removed.
28780 (update_timeouts): New function.
28781 (redraw_timeouts): Likewise.
28782 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28783 (grub_gfxmenu_clear_timeout): Likewise.
28784 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28785 (grub_gfxmenu_timeout_notify): Likewise.
28786 (grub_gfxmenu_timeout_notifications): New external variable.
28787 (grub_gfxmenu_timeout_register): New function.
28788 (grub_gfxmenu_timeout_unregister): Likewise.
28790 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28792 Transform (broken) vga terminal into (working) vga video driver.
28794 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28795 video/i386/pc/vga.c.
28796 * include/grub/video.h (grub_video_driver_id):
28797 Add GRUB_VIDEO_DRIVER_VGA.
28798 * term/i386/pc/vga.c: Renamed to ...
28799 * video/i386/pc/vga.c: ...this
28800 (DEBUG_VGA): Removed.
28801 (CHAR_WIDTH): Likewise.
28802 (CHAR_HEIGHT): Likewise.
28803 (TEXT_WIDTH): Likewise.
28804 (TEXT_HEIGHT): Likewise.
28805 (DEFAULT_FG_COLOR): Likewise.
28806 (DEFAULT_BG_COLOR): Likewise.
28807 (colored_char): Likewise.
28810 (cursor_state): Likewise.
28811 (fg_color): Likewise.
28812 (bg_color): Likewise.
28813 (text_buf): Likewise.
28816 (framebuffer): New variable.
28817 (set_read_map): Disabled.
28818 (setup): New variable.
28819 (is_target): Likewise.
28820 (grub_vga_mod_init): Likewise.
28821 (grub_vga_mod_fini): Likewise.
28822 (check_vga_mem): Likewise.
28823 (write_char): Likewise.
28824 (write_cursor): Likewise.
28825 (scroll_up): Likewise.
28826 (grub_vga_putchar): Likewise.
28827 (grub_vga_getcharwidth): Likewise.
28828 (grub_vga_getwh): Likewise.
28829 (grub_vga_getxy): Likewise.
28830 (grub_vga_gotoxy): Likewise.
28831 (grub_vga_cls): Likewise.
28832 (grub_vga_setcolorstate): Likewise.
28833 (grub_vga_setcursor): Likewise.
28834 (grub_video_vga_init): New function.
28835 (grub_video_vga_setup): Likewise.
28836 (grub_video_vga_fini): Likewise.
28837 (update_target): Likewise.
28838 (grub_video_vga_blit_bitmap): Likewise.
28839 (grub_video_vga_blit_render_target): Likewise.
28840 (grub_video_vga_set_active_render_target): Likewise.
28841 (grub_video_vga_get_active_render_target): Likewise.
28842 (grub_video_vga_swap_buffers): Likewise.
28843 (grub_video_vga_set_palette): Likewise.
28844 (grub_video_vga_get_info_and_fini): Likewise.
28845 (grub_vga_term): Removed.
28846 (grub_video_vga_adapter): New variable.
28847 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28848 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28850 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28852 * video/readers/jpeg.c: Indented.
28854 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28856 Various jpeg cleanups.
28858 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28859 (grub_jpeg_decode_quan_table): Use sizeof.
28860 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28862 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28864 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28865 tables. Ignore non-last ac bit.
28866 (grub_jpeg_decode_quan_table): Likewise.
28868 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28870 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28871 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28872 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28873 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28874 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28875 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28877 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28879 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28882 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28884 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28886 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28888 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28891 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28893 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28896 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28898 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28901 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28903 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28905 2010-05-01 Christian Franke <franke@computer.org>
28907 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28908 Remove broken Cygwin path conversion.
28909 * util/misc.c: [__CYGWIN__] Add include and define.
28910 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28912 (make_system_path_relative_to_its_root): Simplify loop, replace early
28914 [__CYGWIN__] Add conversion to win32 path.
28915 Include "/" case in trailing slash removal.
28917 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28919 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28920 Reported by: Seth Goldberg
28922 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28924 * commands/help.c (grub_cmd_help): Fix a typo.
28925 Reported by: Seth Goldberg
28927 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28929 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28931 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28932 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28933 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28934 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28935 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28936 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28937 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28938 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28939 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28940 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28941 * normal/context.c (GRUB_MOD_INIT): Likewise.
28942 * normal/main.c (GRUB_MOD_INIT): Likewise.
28943 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28944 * term/serial.c (GRUB_MOD_INIT): Likewise.
28945 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28947 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28949 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28952 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28954 * commands/iorw.c: New file.
28955 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28956 (iorw_mod_SOURCES): New variable.
28957 (iorw_mod_CFLAGS): Likewise.
28958 (iorw_mod_LDFLAGS): Likewise.
28960 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28964 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28965 * normal/main.c (hotkey_aliases): New variable.
28966 (grub_normal_add_menu_entry): Parse "--hotkey".
28967 * normal/menu_text.c (run_menu): Handle hotkeys.
28969 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28971 * kern/i386/coreboot/init.c (grub_machine_init): Call
28972 grub_machine_mmap_init on qemu.
28974 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28976 * boot/i386/qemu/boot.S: Add a missing .code16.
28978 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28980 Use LBIO on coreboot.
28982 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28983 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28984 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28986 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28987 grub_machine_mmap_init on coreboot.
28988 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28989 GRUB_LINUXBIOS_MEMBER_LINK.
28990 (grub_machine_mmap_iterate): Fix declaration.
28991 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28993 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28995 Split coreboot and multiboot ports.
28997 * conf/i386-multiboot.rmk: New file.
28998 * configure.ac: Add multiboot port.
28999 * include/grub/i386/multiboot/boot.h: New file.
29000 * include/grub/i386/multiboot/console.h: Likewise.
29001 * include/grub/i386/multiboot/init.h: Likewise.
29002 * include/grub/i386/multiboot/kernel.h: Likewise.
29003 * include/grub/i386/multiboot/loader.h: Likewise.
29004 * include/grub/i386/multiboot/memory.h: Likewise.
29005 * include/grub/i386/multiboot/serial.h: Likewise.
29006 * include/grub/i386/multiboot/time.h: Likewise.
29007 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
29008 * loader/multiboot.c: Likewise.
29009 * loader/multiboot_mbi2.c: Likewise.
29010 * util/grub-mkrescue.in: Generate multiboot rescue.
29012 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29014 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29016 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29018 Merge handling of input and output terminals. Fix a hang.
29020 * commands/terminal.c (abstract_terminal): New struct.
29021 (handle_command): New function. Based on grub_cmd_terminal_input.
29022 (grub_cmd_terminal_input): Use handle_command.
29023 (grub_cmd_terminal_output): Use handle_command.
29025 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29027 Fix comment handling.
29029 * tests/grub_script_comments.in: New testcase.
29030 * conf/tests.rmk: Rules for new testcase.
29031 * script/yylex.l: Updated flex rules.
29033 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29035 * docs/grub.texi (play): Document that zero pitches produce rests.
29036 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29039 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29041 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29044 2010-04-26 Christian Franke <franke@computer.org>
29046 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29047 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29048 (grub_get_prefix): Remove function.
29049 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29050 make_system_path_relative_to_its_root ().
29051 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29053 2010-04-24 Christian Franke <franke@computer.org>
29055 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29056 (kernel_img_LDFLAGS): Remove -static-libgcc.
29058 2010-04-24 Christian Franke <franke@computer.org>
29060 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29061 and CHECK_END_SYMBOL if grub-emu is built.
29062 Unset TARGET_OBJ2ELF if grub-emu is built
29063 without module support.
29065 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29069 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29070 (grub_fstest_SOURCES): Likewise.
29071 (pkglib_MODULES): Add nilfs2.mod.
29072 (nilfs2_mod_SOURCES): New variable.
29073 (nilfs2_mod_CFLAGS): Likewise.
29074 (nilfs2_mod_LDFLAGS): Likewise.
29075 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29076 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29077 * fs/nilfs2.c: New file.
29079 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29081 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29084 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29086 Add grub-mkconfig support for NetBSD.
29088 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29089 * util/grub-mkconfig.in: export new NetBSD specific variables.
29090 * po/POTFILES-shell: added 10_netbsd.in.
29091 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29093 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29095 Fix emu build with grub-emu-pci and grub-emu-modules.
29097 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29099 * include/grub/libpciaccess.h: New file.
29100 * conf/any-emu.rmk: Update kernel headers for emu build.
29102 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29104 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29106 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29108 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29110 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29112 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29113 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29114 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29115 util/ieee1275/ofpath.c.
29116 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29117 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29118 * include/grub/sparc64/ieee1275/boot.h
29119 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29120 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29121 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29122 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29124 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29125 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29126 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29129 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29131 * util/grub-mkconfig.in: Corrected two == equality tests.
29132 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29133 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29134 expect a number appended to it.
29135 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29136 expects a number appended to it.
29138 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29140 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29142 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29144 * util/hostdisk.c (make_device_name): Change to new partition naming.
29146 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29148 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29150 2010-04-17 Christian Franke <franke@computer.org>
29152 * Makefile.in: Add missing localedir setting.
29154 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29156 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29157 mistake in r2156. Noticed by Anthony Fok.
29159 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29161 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29163 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29165 Fix a spurious, uninitialized variable warning.
29167 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29168 Initialize variable, shdr.
29169 (grub_freebsd_load_elfmodule): Likewise.
29170 (grub_freebsd_load_elf_meta): Likewise.
29172 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29174 Fix for escaped dollar in double quoted strings.
29176 * script/yylex.l: Updated flex rules.
29177 * conf/tests.rmk: Rule for new testcase.
29178 * tests/grub_script_dollar.in: New testcase.
29180 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29181 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29183 Enclose all translated strings in grub.cfg in single quotes, and
29184 escape them appropriately (Ubuntu bug #552921).
29186 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29187 * util/grub.d/10_hurd.in: Use it.
29188 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29189 * util/grub.d/10_linux.in (linux_entry): Likewise.
29191 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29193 Fix cygwin compilation.
29195 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29196 * include/grub/misc.h (__register_frame_info)
29197 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29198 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29199 * kern/misc.c (__register_frame_info)
29200 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29201 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29203 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29205 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29207 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29209 Unify libgcc processing.
29211 * Makefile.in (kernel_img_LDFLAGS): New variable.
29212 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29213 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29215 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29216 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29217 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29218 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29219 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29220 overwriting. Remove -lgcc and -static-libgcc
29221 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29222 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29223 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29224 (kernel_img_LDFLAGS): Append instead of overwriting.
29225 Remove -lgcc and -static-libgcc
29226 * conf/sparc64-ieee1275.rmk: Likewise.
29227 * include/grub/powerpc/libgcc.h: Move to ...
29228 * include/grub/libgcc.h: .. this.
29229 * include/grub/libgcc.h: Don't export most of the function on x86.
29230 (__bswapsi2): New export.
29231 (__bswapdi2): Likewise.
29232 * include/grub/mips/libgcc.h: Removed.
29233 * include/grub/sparc64/libgcc.h: Likewise.
29235 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29237 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29238 disk_info_msg (conflicts with gettexting into languages with cases).
29240 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29242 Add grub-probe support for NetBSD.
29244 * util/getroot.c (find_root_device): Convert block device to
29245 character device on NetBSD.
29246 * util/probe.c (probe): Require character device on NetBSD.
29247 * util/hostdisk.c: NetBSD specific headers.
29248 (configure_device_driver): new function to tune device driver
29249 parameters (currently only for NetBSD floppy driver).
29250 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29251 via disklabel ioctl).
29252 (open_device): call configure_device_driver on NetBSD.
29253 (convert_system_partition_to_system_disk): NetBSD specific code.
29254 (device_is_wholedisk): Likewise.
29255 (grub_util_biosdisk_get_grub_dev): Likewise.
29256 (make_device_name): Fixed a typo in bsd_part_str.
29257 * configure.ac: check for opendisk() and getrawpartition() on
29258 NetBSD and set LIBUTIL.
29259 * Makefile.in: add LIBUTIL to LIBS.
29261 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29265 * util/grub-script-check.c: Better help message.
29267 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29271 * configure.ac: Flex version check.
29272 * conf/common.rmk: Add -Wno-error to sh.mod.
29273 * script/yylex.l: Remove all #pragma.
29275 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29277 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29279 Reported by: Seth Goldberg.
29281 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29283 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29284 Rename "module" to "module2".
29285 Reported by: Seth Goldberg.
29287 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29289 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29291 Reported by: Seth Goldberg.
29293 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29295 * lib/posix_wrap/locale.h: Add missing file.
29296 Reported by: Seth Goldberg.
29298 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29300 grub-emu module load support.
29302 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29303 NO_DYNAMIC_MODULES switched to this.
29304 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29305 (CFLAGS): Likewise.
29306 * conf/any-emu.rmk: Generate symlist.
29307 (kernel_img_HEADERS): Add util/datetime.h.
29308 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29309 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29310 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29311 kern/$(target_cpu)/cache.S.
29312 * configure.ac (grub-emu-modules): New option.
29313 * genmk.rb: Handle multiple source lists.
29314 * include/grub/sdl.h: New file.
29315 * include/grub/libusb.h: Likewise.
29316 * util/grub-emu.c (main): Hanle (host) root.
29317 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29318 GRUB_ERR_UNKNOWN_DEVICE.
29319 * util/misc.c: Move mm functions to ...
29320 * util/mm.c: ... here. All users updated.
29322 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29324 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29325 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29327 (maintainer-clean): Remove libgcrypt-grub.
29329 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29331 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29333 2010-04-09 EFI Coder <eficoder@hotmail.com>
29335 * normal/menu_text.c (print_message): Clean up the message and show
29336 the Fn information when on EFI
29337 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29339 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29341 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29343 * normal/crypto.c (read_crypto_list): Likewise.
29344 * normal/dyncmd.c (read_command_list): Likewise.
29345 * normal/term.c (read_terminal_list): Likewise.
29346 * normal/main.c (read_lists): Use explicit prefix.
29347 (read_lists_hook): Use read_lists.
29348 (grub_normal_execute): Likewise.
29350 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29352 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29353 Reported by: Thomas Schmitt.
29354 Add -no-emul-boot to grub-mkisofs parameters.
29356 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29358 * font/font.c: Indented.
29360 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29362 Elif support to GRUB script (by Deepak Vankadaru).
29364 * tests/grub_script_if.in: New testcase.
29365 * conf/tests.rmk: Rule for new testcase.
29366 * script/parser.y: Grammar rules for elif.
29368 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29370 While and until loops support to GRUB script.
29372 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29373 (grub_script_create_cmdwhile): New function prototype.
29374 (grub_script_execute_cmdwhile): New function prototype.
29375 * script/execute.c (grub_script_execute_cmdwhile): New function.
29376 * script/parser.y (command): New commands.
29377 (whilecmd): New grammar rule.
29378 (untilcmd): New grammar rule.
29379 * script/script.c (grub_script_create_cmdwhile): New function.
29380 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29383 * tests/grub_script_while1.in: New testcase.
29384 * conf/tests.rmk: Rule for new testcase.
29386 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29388 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29391 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29393 GRUB_BACKGROUND support.
29395 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29396 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29398 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29400 Load fonts and modules for gfxmenu in grub-mkconfig.
29401 Idea by: Mario Vazquez
29403 * util/grub.d/00_header.in: Load pf2 and image modules.
29405 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29407 grub-mkconfig multiple terminal support.
29409 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29410 * util/grub.d/00_header.in: Likewise.
29412 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29414 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29415 we use cd $(srcdir).
29417 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29419 * util/grub.d/10_linux.in: Only use the first word of
29420 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29421 spaces in GRUB_DISTRIBUTOR.
29422 * util/grub.d/10_kfreebsd.in: Likewise.
29423 * util/grub.d/10_hurd.in: Likewise.
29425 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29427 Fix unit testing framework for Qemu 0.12.
29429 * tests/util/grub-shell.in: Remove -serial stdio option.
29431 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29433 POSIX header file wrappers.
29435 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29437 * lib/posix_wrap/ctype.h: Likewise.
29438 * lib/posix_wrap/errno.h: Likewise.
29439 * lib/posix_wrap/langinfo.h: Likewise.
29440 * lib/posix_wrap/limits.h: Likewise.
29441 * lib/posix_wrap/localcharset.h: Likewise.
29442 * lib/posix_wrap/stdint.h: Likewise.
29443 * lib/posix_wrap/stdio.h: Likewise.
29444 * lib/posix_wrap/stdlib.h: Likewise.
29445 * lib/posix_wrap/string.h: Likewise.
29446 * lib/posix_wrap/sys/types.h: Likewise.
29447 * lib/posix_wrap/unistd.h: Likewise.
29448 * lib/posix_wrap/wchar.h: Likewise.
29449 * lib/posix_wrap/wctype.h: Likewise.
29450 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29451 (grub_script.yy.h): Likewise.
29452 * script/yylex.l: Remove POSIX emulation #defines.
29453 * Makefile.in (POSIX_CFLAGS): New variable.
29454 (GNULIB_UTIL_CFLAGS): Likewise.
29458 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29459 (regexp_mod_SOURCES): New variable.
29460 (regexp_mod_CFLAGS): Likewise.
29461 (regexp_mod_LDFLAGS): Likewise.
29462 * commands/regexp.c: New file.
29463 * gnulib/regcomp.c: New file. Imported from gnulib.
29464 * gnulib/regex.c: Likewise.
29465 * gnulib/regex_internal.c: Likewise.
29466 * gnulib/regex_internal.h: Likewise.
29467 * gnulib/regexec.c: Likewise.
29468 * gnulib/regex.h: Likewise.
29470 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29472 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29473 unsupported video mode types.
29475 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29477 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29479 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29481 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29482 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29484 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29486 Remove unused grub_vga_get_font.
29488 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29489 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29491 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29493 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29494 * include/grub/misc.h: Likewise.
29496 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29498 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29499 for which failure is fatal.
29501 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29503 * util/grub-install.in: Use mkdir -p to create grub directory.
29504 * util/i386/efi/grub-install.in: Likewise.
29505 * util/ieee1275/grub-install.in: Likewise.
29507 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29509 * Makefile.in (LEX): new variable.
29511 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29513 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29514 `=' and added double quotes on operands of this equality test.
29516 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29518 * Makefile.in (uninstall): Remove a leftover debug echo.
29519 Reported by: Grégoire Sutre
29521 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29523 MIPS multiboot2 support.
29525 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29526 (multiboot2_mod_SOURCES): New variable.
29527 (multiboot2_mod_CFLAGS): Likewise.
29528 (multiboot2_mod_LDFLAGS): Likewise.
29529 (multiboot2_mod_ASFLAGS): Likewise.
29530 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29532 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29533 (MULTIBOOT_MBI_REGISTER): Likewise.
29534 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29535 (MULTIBOOT_ELF32_MACHINE): Likewise.
29536 (MULTIBOOT_ELF64_MACHINE): Likewise.
29537 * include/grub/mips/multiboot.h: New file.
29538 * include/grub/video.h (grub_video_driver_id): New type
29539 GRUB_VIDEO_DRIVER_SM712.
29540 (grub_video_get_info_and_fini): Export.
29541 (grub_video_get_palette): Likewise.
29542 (grub_video_get_driver_id): Likewise.
29543 * include/multiboot2.h: Resynced with spec.
29544 * loader/i386/multiboot.c: Moved from here ...
29545 * loader/multiboot.c: ... here. All users updated.
29546 (grub_multiboot_boot): Use platform-specific macros.
29547 * loader/i386/multiboot_elfxx.c: Moved from here ...
29548 * loader/multiboot_elfxx.c: ... here. All users updated.
29549 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29550 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29551 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29553 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29555 Import gnulib argp module.
29557 * gnulib/argp-ba.c: New file.
29558 * gnulib/argp-eexst.c: Likewise.
29559 * gnulib/argp-fmtstream.c: Likewise.
29560 * gnulib/argp-fmtstream.h: Likewise.
29561 * gnulib/argp-fs-xinl.c: Likewise.
29562 * gnulib/argp-help.c: Likewise.
29563 * gnulib/argp-namefrob.h: Likewise.
29564 * gnulib/argp-parse.c: Likewise.
29565 * gnulib/argp-pin.c: Likewise.
29566 * gnulib/argp-pv.c: Likewise.
29567 * gnulib/argp-pvh.c: Likewise.
29568 * gnulib/argp-version-etc.c: Likewise.
29569 * gnulib/argp-version-etc.h: Likewise.
29570 * gnulib/argp-xinl.c: Likewise.
29571 * gnulib/argp.h: Likewise.
29573 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29575 * kern/device.c (grub_device_iterate): Clear errors after failed
29578 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29580 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29581 returned by firmware.
29583 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29585 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29586 compilation on coreboot and qemu
29588 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29590 * include/multiboot2.h: Resync with spec.
29592 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29594 Multiboot2 tag support
29596 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29597 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29598 Remove loader/multiboot_loader.c.
29599 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29600 (grub_multiboot2_real_boot): Likewise.
29601 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29602 (grub_get_multiboot_mmap_count): New proto.
29603 (grub_fill_multiboot_mmap): Likewise.
29604 (grub_multiboot_set_video_mode): Likewise.
29605 (grub_multiboot_set_console): Likewise.
29606 (grub_multiboot_load): Likewise.
29607 (grub_multiboot_load_elf): Likewise.
29608 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29609 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29610 * include/multiboot.h: Resynced with specification.
29611 * include/multiboot2.h: Resynced with specification.
29612 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29613 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29614 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29615 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29617 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29618 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29619 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29621 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29623 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29624 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29626 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29627 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29628 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29630 * loader/i386/multiboot_mbi2.c: New file.
29632 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29634 Resync with gnulib.
29636 * Makefile.in (GNULIB_CFLAGS): New variable.
29637 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29638 (grub_script_check_CFLAGS): New variable.
29639 * gnulib/alloca.h: Resync with gnulib.
29640 * gnulib/error.c: Likewise.
29641 * gnulib/error.h: Likewise.
29642 * gnulib/fnmatch.c: Likewise.
29643 * gnulib/fnmatch_loop.c: Likewise.
29644 * gnulib/getdelim.c: Likewise.
29645 * gnulib/getline.c: Likewise.
29646 * gnulib/getopt.c: Likewise.
29647 * gnulib/getopt1.c: Likewise.
29648 * gnulib/getopt_int.h: Likewise.
29649 * gnulib/gettext.h: Likewise.
29650 * gnulib/progname.c: Likewise.
29651 * gnulib/progname.h: Likewise.
29653 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29655 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29656 which is the case with --disabled-nls.
29658 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29659 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29660 * util/misc.c: Likewise.
29661 * util/mkisofs/mkisofs.c: Likewise.
29662 * util/mkisofs/mkisofs.h: Likewise.
29664 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29666 Simplify Apple CC support.
29668 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29669 Add 0 byte at the end not to have a symbol with empty target.
29670 * mmap/i386/pc/mmap_helper.S: Likewise.
29671 * genmk.rb: Ignore errors 2030 and 2050.
29672 * kern/i386/pc/startup.S: Use LOCAL when possible.
29674 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29676 Testcase and the fix for final semicolon on cmdline.
29678 * tests/grub_script_final_semicolon.in: New testcase.
29679 * conf/tests.rmk: Rules for the new testcase.
29680 * script/parser.y: Grammar fix.
29682 2010-03-26 BVK Chaitanya <bvk@localhost>
29684 Blank lines testcase for GRUB script.
29686 * tests/grub_script_blanklines.in: New testcase.
29687 * conf/tests.rmk: Rules for the new testcase.
29689 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29691 Don't use __FILE__.
29693 * genmk.rb: Add -DGRUB_FILE to all C targets.
29694 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29695 * include/grub/list.h: Likewise.
29696 * include/grub/misc.h: Likewise.
29697 * include/grub/mm.h: Likewise.
29698 * include/grub/test.h: Likewise.
29699 * kern/mm.c: Likewise.
29700 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29702 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29704 Sunpc partitions support.
29706 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29707 (grub_fstest_SOURCES): Likewise.
29708 (pkglib_MODULES): Add part_sunpc.mod.
29709 (part_sunpc_mod_SOURCES): New variable.
29710 (part_sunpc_mod_CFLAGS): Likewise.
29711 (part_sunpc_mod_LDFLAGS): Likewise.
29712 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29713 * partmap/sunpc.c: New file.
29715 2010-03-26 BVK Chaitanya <bvk@localhost>
29717 For loop support to GRUB script.
29719 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29720 (grub_script_create_cmdfor): New function prototype.
29721 (grub_script_execute_cmdfor): New function prototype.
29722 * script/execute.c (grub_script_execute_cmdfor): New function.
29723 * script/parser.y (command): New for command.
29724 (forcmd): New grammar rule.
29725 * script/script.c (grub_script_create_cmdfor): New function.
29726 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29728 * tests/grub_script_for1.in: New testcase.
29729 * conf/tests.rmk: Rules for new testcase.
29731 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29735 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29736 'partition' is NULL, grub_partition_get_start already does that.
29737 * commands/loadenv.c (check_blocklists): Likewise.
29738 (write_blocklists): Likewise.
29739 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29740 (grub_fstest_SOURCES): Likewise.
29741 (pkglib_MODULES): Add part_bsd.mod.
29742 (part_bsd_mod_SOURCES): New variable.
29743 (part_bsd_mod_CFLAGS): Likewise.
29744 (part_bsd_mod_LDFLAGS): Likewise.
29745 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29746 (grub_emu_SOURCES): Likewise.
29747 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29748 * include/grub/bsdlabel.h: New file.
29749 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29751 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29752 (grub_partition_map_list): New variable.
29753 (grub_partition_map_register): Inline.
29754 (grub_partition_map_unregister): Likewise.
29755 (FOR_PARTITION_MAPS): New macro.
29756 (grub_partition_map_iterate): Removed.
29757 (grub_partition_get_start): Handle nested partitions.
29758 * include/grub/msdos_partition.h: Remove bsd-related entries.
29759 (grub_pc_partition): Remove.
29760 * kern/disk.c (grub_disk_close): Free partition data.
29761 (grub_disk_adjust_range): Handle nested partitions.
29762 * kern/partition.c (grub_partition_map_probe): New function.
29763 (grub_partition_probe): Parse name to number, handle subpartitions.
29764 (get_partmap): New function.
29765 (grub_partition_iterate): Handle subpartitions.
29766 (grub_partition_get_name): Likewise.
29767 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29768 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29769 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29770 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29772 (acorn_partition_map_probe): Remove.
29773 (acorn_partition_map_get_name): Likewise.
29774 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29776 Set 'index' to 0 since there can be only one partition entry per sector.
29777 (amiga_partition_map_probe): Remove.
29778 (amiga_partition_map_get_name): Likewise.
29779 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29781 Set 'offset' and 'index' to real positions of partitions.
29782 (apple_partition_map_probe): Remove.
29783 (apple_partition_map_get_name): Likewise.
29784 * partmap/bsdlabel.c: New file.
29785 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29787 Allocate 'data' so it can be correctly freed.
29788 Set 'index' to offset inside sector.
29789 (gpt_partition_map_probe): Remove.
29790 (gpt_partition_map_get_name): Likewise.
29791 * partmap/msdos.c (grub_partition_parse): Remove.
29792 (pc_partition_map_iterate): Don't force raw access.
29794 Make 'ext_offset' a local variable.
29795 (pc_partition_map_probe): Remove.
29796 (pc_partition_map_get_name): Remove.
29797 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29799 (sun_partition_map_probe): Remove.
29800 (sun_partition_map_get_name): Likewise.
29801 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29802 (grub_pcpart_type): Likewise.
29803 * util/hostdisk.c (open_device): Handle new numbering scheme.
29804 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29805 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29806 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29807 * util/grub-install.in: Insert all subpartition modules.
29808 * util/ieee1275/grub-install.in: Likewise.
29810 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29812 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29815 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29817 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29819 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29821 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29822 match where 'make install' puts them.
29823 * util/i386/efi/grub-install.in: Likewise.
29825 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29827 * .bzrignore: Add gentrigtables, grub-script-check,
29828 grub_script_check_init.c, grub_script_check_init.h, and
29831 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29833 * kern/parser.c: Indented.
29835 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29837 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29839 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29841 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29842 alpha_mask_size == 0 case.
29844 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29846 GRUB shell lexer and parser improvements.
29848 * conf/any-emu.rmk: Build rule updates.
29849 * conf/common.rmk: Likewise.
29850 * conf/i386-coreboot.rmk: Likewise.
29851 * conf/i386-efi.rmk: Likewise.
29852 * conf/i386-ieee1275.rmk: Likewise.
29853 * conf/i386-pc.rmk: Likewise.
29854 * conf/powerpc-ieee1275.rmk: Likewise.
29855 * conf/x86_64-efi.rmk: Likewise.
29857 * configure.ac: Configure check for flex.
29859 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29861 (grub_lexer_param): Struct member updates.
29862 (grub_parser_param): Likewise.
29863 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29864 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29865 (grub_script_lexer_init): Prototype update.
29866 (grub_script_lexer_record_start): Likewise.
29867 (grub_script_lexer_record_stop): Likewise.
29868 (grub_script_lexer_yywrap): New function prototype.
29869 (grub_script_lexer_fini): Likewise.
29870 (grub_script_execute_argument_to_string): Removed by...
29871 (grub_script_execute_argument_to_argv): ...better version.
29873 * script/execute.c (ROUND_UPTO): New macro.
29874 (grub_script_execute_cmdline): Out of memory fixes.
29875 (grub_script_execute_menuentry): Likewise.
29876 (grub_script_execute_argument_to_string): Removed. Update all
29878 (grub_script_execute_argument_to_argv): ...better version.
29879 * script/function.c (grub_script_function_create): Use
29880 grub_script_execute_argument_to_argv instead of
29881 grub_script_execute_argument_to_string.
29883 * script/lexer.c (check_varstate): Removed.
29884 (check_textstate): Removed.
29885 (grub_script_lexer_record_start): Likewise.
29886 (grub_script_lexer_record_stop): Likewise.
29887 (recordchar): Replaced with...
29888 (grub_script_lexer_record): ...new function.
29889 (nextchar): Removed.
29890 (grub_script_lexer_init): Rewritten.
29891 (grub_script_yylex): Rewritten.
29892 (append_newline): New function.
29893 (grub_script_lexer_yywrap): New function.
29894 (grub_script_lexer_fini): New function.
29895 (grub_script_yyerror): Sets error flag.
29897 * script/yylex.l: New file.
29898 (grub_lexer_yyfree): Wrapper for flex yyffre.
29899 (grub_lexer_yyalloc): Likewise.
29900 (grub_lexer_yyrealloc): Likewise.
29901 * script/parser.y: Refactored.
29903 * script/script.c (grub_script_arg_add): Out of memory fixes.
29904 (grub_script_add_arglist): Likewise.
29905 (grub_script_create_cmdline): Likewise.
29906 (grub_script_create_cmdmenu): Likewise.
29907 (grub_script_add_cmd): Likewise.
29908 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29909 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29912 * tests/grub_script_echo1.in: New testcase.
29913 * tests/grub_script_vars1.in: New testcase.
29914 * tests/grub_script_echo_keywords.in: New testcase.
29916 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29918 Remove some redundancy in build system.
29920 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29921 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29922 (TARGET_LDFLAGS): Add -nostdlib.
29923 (TARGET_IMG_LDFLAGS): Likewise.
29924 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29925 anything since mmap isn't available.
29926 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29928 (pkglib_MODULES): Remove reboot.mod.
29929 (reboot_mod_SOURCES): Removed.
29930 (reboot_mod_CFLAGS): Likewise.
29931 (reboot_mod_LDFLAGS): Likewise.
29932 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29933 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29934 (DEFSYMFILES): Add kernel_syms.lst.
29935 (kernel_img_HEADERS): Add common headers.
29936 (symlist.c): New target.
29937 (kernel_syms.lst): Likewise.
29938 (pkglib_MODULES): Add memdisk.mod.
29939 (memdisk_mod_SOURCES): New variable.
29940 (memdisk_mod_CFLAGS): Likewise.
29941 (memdisk_mod_LDFLAGS): Likewise.
29942 (pkglib_MODULES): Add reboot.mod.
29943 (reboot_mod_SOURCES): New variable.
29944 (reboot_mod_CFLAGS): Likewise.
29945 (reboot_mod_LDFLAGS): Likewise.
29946 (pkglib_MODULES): Add date.mod.
29947 (date_mod_SOURCES): New variable.
29948 (date_mod_CFLAGS): Likewise.
29949 (date_mod_LDFLAGS): Likewise.
29950 (pkglib_MODULES): Add datehook.mod.
29951 (datehook_mod_SOURCES): New variable.
29952 (datehook_mod_CFLAGS): Likewise.
29953 (datehook_mod_LDFLAGS): Likewise.
29954 (pkglib_MODULES): Add lsmmap.mod.
29955 (lsmmap_mod_SOURCES): New variable.
29956 (lsmmap_mod_CFLAGS): Likewise.
29957 (lsmmap_mod_LDFLAGS): Likewise.
29958 (pkglib_MODULES): Add boot.mod.
29959 (boot_mod_SOURCES): New variable.
29960 (boot_mod_CFLAGS): Likewise.
29961 (boot_mod_LDFLAGS): Likewise.
29962 * conf/i386-coreboot.rmk: Removed redundant parts.
29963 * conf/i386-ieee1275.rmk: Likewise.
29964 * conf/i386-pc.rmk: Likewise.
29965 * conf/mips-yeeloong.rmk: Likewise.
29966 * conf/mips.rmk: Likewise.
29967 * conf/powerpc-ieee1275.rmk: Likewise.
29968 * conf/sparc64-ieee1275.rmk: Likewise.
29969 * conf/x86_64-efi.rmk: Likewise.
29970 * conf/i386-coreboot.rmk: Moved qemu parts ..
29971 * conf/i386-qemu.rmk: ... here
29972 * conf/i386-efi.rmk: Moved common parts to...
29973 * conf/x86-efi.rmk: ... here.
29974 * conf/i386.rmk: Added modules common to all x86 variants.
29975 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29976 * disk/memdisk.c: Remove grub/machine/kernel.h.
29977 * gensymlist.sh.in: Include symbol.h.
29978 * hook/datehook.c: Correct module name.
29979 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29980 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29981 * include/grub/i386/efi/serial.h: New file.
29982 * include/grub/x86_64/efi/serial.h: Likewise.
29983 * util/time.c: Likewise.
29984 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29986 2010-03-14 Colin King <colin.king@ubuntu.com>
29987 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29989 Shrink the pre-partition-table part of boot.img by eight bytes.
29991 * boot/i386/pc/boot.S (ERR): New macro.
29992 (chs_mode): Use ERR.
29993 (geometry_error): Likewise.
29994 (hd_probe_error): Remove. This is only used once, so we wrwite
29996 (read_error): Instead of printing read_error_string, just set up
29997 %si and fall through to ...
29998 (error_message): ... this new function, also used by ERR.
30000 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
30002 Speed up consecutive hostdisk operations on the same device.
30004 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
30005 (grub_util_biosdisk_open): Initialise disk->data.
30006 (struct linux_partition_cache): New structure.
30007 (linux_find_partition): Cache partition start positions; these are
30008 expensive to compute on every read and write.
30009 (open_device): Cache open file descriptor in disk->data, so that we
30010 don't have to reopen it and flush the buffer cache for consecutive
30011 operations on the same device.
30012 (grub_util_biosdisk_close): New function.
30013 (grub_util_biosdisk_dev): Set `close' member.
30015 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30016 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30017 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30018 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30019 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30021 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30023 Compile parts of grub-emu as modules.
30025 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30026 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30027 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30028 (all-local): Add $(GRUB_EMU).
30029 (install-local): Install $(GRUB_EMU).
30030 (uninstall): Uninstall $(GRUB_EMU).
30031 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30032 * kern/dl.c: Likewise.
30033 * commands/sleep.c: Not include machine/time.h.
30034 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30035 (COMMON_CFLAGS): Likewise.
30036 (sbin_UTILITIES): Remove grub-emu.
30037 (grub_emu_SOURCES): Removed.
30038 (kernel_img_RELOCATABLE): New variable.
30039 (pkglib_PROGRAMS): Add kernel.img.
30040 (kernel_img_SOURCES): New variable
30041 (kernel_img_CFLAGS): Likewise.
30042 (kernel_img_LDFLAGS): Likewise.
30043 (TARGET_NO_STRIP): Likewise.
30044 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30045 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30046 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30047 (grub-emu): New target.
30048 (GRUB_EMU): New variable.
30049 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30050 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30051 * loader/xnu.c: Likewise.
30052 * include/grub/pci.h: Likewise.
30053 * genemuinit.sh: New file.
30054 * genemuinitheader.sh: Likewise.
30055 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30056 Support TARGET_NO_DYNAMIC_MODULES.
30057 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30058 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30059 * disk/loopback.c: Likewise.
30060 * font/font_cmd.c: Likewise.
30061 * partmap/acorn.c: Likewise.
30062 * partmap/amiga.c: Likewise.
30063 * partmap/apple.c: Likewise.
30064 * partmap/gpt.c: Likewise.
30065 * partmap/msdos.c: Likewise.
30066 * partmap/sun.c: Likewise.
30067 * parttool/msdospart.c: Likewise.
30068 * term/gfxterm.c: Likewise.
30069 * video/bitmap.c: Likewise.
30070 * video/readers/jpeg.c: Likewise.
30071 * video/readers/png.c: Likewise.
30072 * video/readers/tga.c: Likewise.
30073 * video/video.c: Likewise.
30074 * util/grub-emu.c (read_command_list): Removed.
30075 (main): Don't call util_init_nls.
30076 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30077 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30079 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30081 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30082 date.mod, datehook.mod.
30083 (datetime_mod_SOURCES): New variable.
30084 (datetime_mod_CFLAGS): Likewise.
30085 (datetime_mod_LDFLAGS): Likewise.
30086 (date_mod_SOURCES): Likewise.
30087 (date_mod_CFLAGS): Likewise.
30088 (date_mod_LDFLAGS): Likewise.
30089 (datehook_mod_SOURCES): Likewise.
30090 (datehook_mod_CFLAGS): Likewise.
30091 (datehook_mod_LDFLAGS): Likewise.
30092 * conf/sparc64-ieee1275.rmk: Likewise.
30093 * lib/ieee1275/datetime.c: New file.
30095 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30097 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30098 (ieee1275_fb_mod_SOURCES): New variable.
30099 (ieee1275_fb_mod_CFLAGS): Likewise.
30100 (ieee1275_fb_mod_LDFLAGS): Likewise.
30101 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30103 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30104 (HEAP_MAX_ADDR): Likewise.
30105 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30107 Correct stop condition.
30108 (grub_ieee1275_devices_iterate): New function.
30109 * video/ieee1275.c: New file.
30111 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30113 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30115 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30117 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30118 SCRATCH_PAD_DISKBOOT as scratch.
30119 (bootit): Pass Openfirmware pointer in %o4.
30120 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30122 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30123 with util/grub-mkrawimage.c.
30124 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30125 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30126 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30127 (grub_aout_load) [GRUB_UTIL]: Likewise.
30128 * include/grub/kernel.h (grub_modules_get_end): New proto.
30129 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30130 (SCRATCH_PAD_BOOT): New definition.
30131 (SCRATCH_PAD_DISKBOOT): Likewise.
30132 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30133 * include/grub/sparc64/ieee1275/ieee1275.h
30134 (grub_ieee1275_original_stack): New variable
30135 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30137 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30138 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30139 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30140 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30141 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30142 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30143 (grub_platform_image_format_t): New type.
30144 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30145 * kern/main.c (grub_modules_get_end)
30146 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30147 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30148 (codestart): Switch stacks.
30149 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30151 (grub_heap_init): Use grub_modules_get_end.
30152 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30154 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30156 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30158 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30160 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30162 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30164 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30167 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30169 * genmoddep.awk: Output all missing symbols and not only first.
30171 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30173 * NEWS: Put the date of 1.98 release.
30175 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30177 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30180 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30182 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30183 completition in the middle of string.
30185 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30187 * util/grub-mkrescue.in: Use mktemp with explicit template.
30189 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30191 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30193 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30195 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30198 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30200 Fix FreeBSD compilation.
30202 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30203 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30205 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30207 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30209 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30211 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30213 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30215 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30217 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30219 Support relative image path in theme file.
30221 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30222 (image_set_property): Handle theme_dir and relative path.
30224 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30226 * configure.ac: Alias amd64 to x86_64.
30228 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30230 * NEWS: mention multiboot on EFI.
30232 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30234 * kern/main.c (grub_load_modules): Handle errors from init functions of
30237 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30239 * normal/autofs.c (autoload_fs_module): Handle errors.
30241 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30243 Disable linux.mod on qemu-mips since it's not functional and leads
30244 to compilation failure.
30246 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30247 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30248 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30249 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30250 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30251 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30252 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30253 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30254 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30255 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30256 Reported by: BVK Chaitanya
30258 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30260 * INSTALL: Add gettext as a dependency and add qemu to a new section
30261 "Prerequisites for make-check".
30263 2010-03-04 Christian Franke <franke@computer.org>
30265 * util/grub-pe2elf.c: Add missing include "progname.h".
30267 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30269 * normal/crypto.c (read_crypto_list): Fix a typo.
30270 Reported by: Seth Goldberg.
30272 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30274 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30275 Reported by: Seth Goldberg.
30277 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30279 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30282 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30284 * genmk.rb: Remove terminal*.lst in make clean.
30285 Reported by: Seth Goldberg.
30287 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30289 * util/i386/efi/grub-install.in: Copy gettext files.
30291 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30293 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30295 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30297 Wait for user entry basing on presence of output rather than on errors.
30299 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30300 (grub_install_newline_hook): Likewise.
30301 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30302 * normal/menu.c (show_menu): Check line_counter to determine presence
30304 * normal/term.c (grub_normal_line_counter): New variable.
30305 (grub_normal_get_line_counter): New function.
30306 (grub_install_newline_hook): Likewise.
30308 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30310 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30312 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30314 * configure.ac: Update version to 1.98.
30316 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30318 * util/grub.d/10_linux.in (linux_entry): Don't default to
30319 gfxpayload=keep if Linux doesn't support video handover.
30321 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30323 Don't compile video modules on yeeloong since video subsystem is part
30326 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30327 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30328 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30329 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30330 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30331 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30332 * include/grub/bitmap_scale.h: Likewise.
30333 * include/grub/bufio.h: Likewise.
30334 * include/grub/font.h: Likewise.
30335 * include/grub/gfxterm.h: Likewise.
30336 * include/grub/video.h: Likewise.
30337 * include/grub/vbe.h: Don't include video_fb.h.
30338 * video/i386/pc/vbe.c: Include video_fb.h.
30339 * commands/i386/pc/vbetest.c: Include video.h.
30341 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30343 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30344 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30345 default entry if GRUB_SAVEDEFAULT=true. This allows using
30346 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30347 saving a new default on every boot.
30349 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30351 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30352 * normal/term.c (read_terminal_list): Likewise.
30353 * normal/main.c (grub_normal_init_page): Likewise.
30354 (grub_normal_read_line_real): Likewise.
30356 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30358 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30360 Reported by: Seth Goldberg.
30362 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30364 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30365 duplicate declaration of `start'.
30367 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30369 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30371 Reported by: Georgy Buranov
30373 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30375 * util/grub-mkrawimage.c (usage): Change string formatting to
30378 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30380 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30383 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30385 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30386 Reported by: Michael Suchanek.
30388 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30390 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30391 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30393 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30395 Remove any reference to non-free fonts.
30397 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30398 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30399 uses non-free components.
30400 * font/font.c (grub_font_get_name): Remove example name.
30401 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30402 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30403 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30404 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30406 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30408 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30410 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30412 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30414 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30416 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30418 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30420 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30422 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30424 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30425 * docs/grub.texi (Command-line and menu entry commands): Document play
30428 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30430 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30431 parse arguments as inline tempo and notes. Move code for playing notes
30433 (play): ... new function.
30435 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30437 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30438 grub_uint16_t instead of short.
30439 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30440 disk from little endian to cpu endianness.
30442 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30444 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30445 GRUB_TICKS_PER_SECOND instead of 120.
30447 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30449 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30450 escape sequence after \e.
30452 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30454 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30455 non-ASCII characters.
30457 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30459 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30460 set root in single quotes to prevent \, from being unescaped.
30462 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30464 Prevent unknown commands from stopping menuentry execution.
30466 * script/execute.c (grub_script_execute_cmdline): Print error after
30469 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30471 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30472 Reported by: Pavel Pisa.
30474 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30476 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30478 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30480 Merge grub_ieee1275_map_physical into grub_map and rename to
30483 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30484 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30486 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30487 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30489 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30491 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30493 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30494 opening and not after.
30496 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30498 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30501 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30503 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30504 (alloc_phys): Use ALIGN_UP instead of align_addr.
30506 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30508 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30510 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30512 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30514 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30516 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30519 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30521 Fix over-4GiB seek on sparc64.
30523 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30524 Replace pos_i and pos_lo with pos. All users updated.
30525 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30527 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30529 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30532 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30534 * util/grub-mkrawimage.c (main): Call set_program_name.
30536 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30538 Properly align 64-bit targets.
30540 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30541 (generate_image): Use ALIGN_ADDR.
30543 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30545 Properly create cross-endian images.
30547 * include/grub/types.h (grub_host_to_target_addr): New macro
30548 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30550 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30552 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30554 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30556 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30558 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30559 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30560 (grub_linux_boot): Divide by 64K when on VESA.
30562 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30564 Support GRUB_GFXPAYLOAD_LINUX.
30566 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30567 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30569 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30571 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30572 to show messages instead of discarding them.
30573 Process errors after executing command and not before. Keep old method
30576 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30578 * configure.ac: Check for ft2build.h.
30580 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30582 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30584 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30586 * genkernsyms.sh.in: Use TARGET_CC.
30588 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30592 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30594 * include/grub/multiboot2.h: Remove leftover file.
30595 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30596 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30598 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30600 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30602 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30604 Fix warnings in grub-emu when compiling with maximum warning options.
30606 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30607 (grub_arch_modules_addr): Return 0 and not NULL.
30608 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30609 (xstrdup): Use newstr instead of dup.
30610 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30611 of disk to dsk to avoid shadowing.
30612 (find_free_slot): Fix prototype.
30613 * util/getroot.c (grub_util_is_dmraid): Make static.
30614 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30615 Add missing prototype.
30616 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30618 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30620 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30623 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30625 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30628 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30630 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30631 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30632 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30633 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30634 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30635 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30637 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30639 * include/grub/err.h (grub_err_printf): Don't export.
30641 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30643 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30645 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30647 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30648 * kern/misc.c (grub_gettext_dummy): Make static.
30650 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30652 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30654 * kern/term.c (grub_putchar): Likewise.
30656 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30658 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30659 buggy hook call and memory leak.
30661 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30663 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30665 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30667 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30669 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30671 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30673 Return grub_errno on allocation error.
30675 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30677 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30679 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30681 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30682 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30684 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30686 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30688 (grub_pxefs_open): Likewise.
30690 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30692 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30693 * util/grub.d/10_kfreebsd.in: Likewise.
30694 * util/grub.d/10_linux.in: Likewise.
30696 2010-02-06 Colin D Bennett <colin@gibibit.com>
30698 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30699 (gfxmenu_mod_SOURCES): New variable.
30700 (gfxmenu_mod_CFLAGS): Likewise.
30701 (gfxmenu_mod_LDFLAGS): Likewise.
30702 * include/grub/term.h (grub_term_set_current_output): Declare
30704 * docs/gfxmenu-theme-example.txt: New file.
30705 * gfxmenu/gfxmenu.c: Likewise.
30706 * gfxmenu/gui_box.c: Likewise.
30707 * gfxmenu/gui_canvas.c: Likewise.
30708 * gfxmenu/gui_circular_progress.c: Likewise.
30709 * gfxmenu/gui_image.c: Likewise.
30710 * gfxmenu/gui_label.c: Likewise.
30711 * gfxmenu/gui_list.c: Likewise.
30712 * gfxmenu/gui_progress_bar.c: Likewise.
30713 * gfxmenu/gui_string_util.c: Likewise.
30714 * gfxmenu/gui_util.c: Likewise.
30715 * gfxmenu/icon_manager.c: Likewise.
30716 * gfxmenu/model.c: Likewise.
30717 * gfxmenu/named_colors.c: Likewise.
30718 * gfxmenu/theme_loader.c: Likewise.
30719 * gfxmenu/view.c: Likewise.
30720 * gfxmenu/widget-box.c: Likewise.
30721 * include/grub/gfxmenu_model.h: Likewise.
30722 * include/grub/gfxmenu_view.h: Likewise.
30723 * include/grub/gfxwidgets.h: Likewise.
30724 * include/grub/gui.h: Likewise.
30725 * include/grub/gui_string_util.h: Likewise.
30726 * include/grub/icon_manager.h: Likewise.
30728 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30730 Agglomerate scrolling in gfxterm.
30732 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30733 (grub_virtual_screen_setup): Initialise 'total_screen'.
30734 (write_char): Split to ...
30735 (paint_char): ... this ...
30736 (write_char): ... and this.
30737 (paint_char): Handle delayed scrolling.
30738 (draw_cursor): Likewise.
30739 (scroll_up): Split to ...
30740 (real_scroll): ... this ...
30741 (scroll_up): ... and this.
30742 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30744 (grub_gfxterm_refresh): Call real_scroll.
30746 2010-02-06 Colin D Bennett <colin@gibibit.com>
30748 * include/grub/misc.h (grub_iscntrl): New inline function.
30749 (grub_isalnum): Likewise.
30750 (grub_strtol): Likewise.
30752 2010-02-06 Colin D Bennett <colin@gibibit.com>
30754 * normal/menu_text.c (get_entry_number): Move from here ...
30755 * normal/menu.c (get_entry_number): ... moved here.
30756 * include/grub/menu.h (grub_menu_get_default_entry_index):
30758 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30759 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30760 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30761 (grub_menu_viewer_should_return): Likewise.
30762 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30763 * normal/menu_text.c (run_menu): Enable menu switching.
30764 * normal/menu_viewer.c (should_return): New variable.
30765 (menu_viewer_changed): Likewise.
30766 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30767 (grub_menu_viewer_should_return): New function.
30768 (menuviewer_write_hook): Likewise.
30769 (grub_menu_viewer_init): Likewise.
30771 2010-02-06 Colin D Bennet <colin@gibibit.com>
30772 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30774 Support for gfxterm in a window.
30776 * include/grub/gfxterm.h: New file.
30777 * include/grub/video.h (struct grub_video_rect): New declaration.
30778 (grub_video_rect_t): Likewise.
30779 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30780 (refcount): New variable.
30781 (render_target): Likewise.
30782 (window): Likewise.
30783 (repaint_callback): Likewise.
30784 (grub_virtual_screen_setup): Use 'render_target'.
30785 (init_window): New function.
30786 (grub_gfxterm_init_window): Likewise.
30787 (grub_gfxterm_init): Check reference counter.
30789 (destroy_window): New function.
30790 (grub_gfxterm_destroy_window): Likewise.
30791 (grub_gfxterm_fini): Check reference counter.
30792 Use destroy_window.
30793 (redraw_screen_rect): Restore viewport.
30794 Use 'render_target' and 'window'.
30795 Call 'repaint_callback'.
30796 (write_char): Use 'render_target'.
30797 (draw_cursor): Likewise.
30798 (scroll_up): Restore viewport.
30799 Use 'render_target' and 'window'.
30800 Call 'repaint_callback'.
30801 (grub_gfxterm_cls): Likewise.
30802 (grub_gfxterm_refresh): Use 'window'.
30803 (grub_gfxterm_set_repaint_callback): New function.
30804 (grub_gfxterm_background_image_cmd): Use 'window'.
30805 (grub_gfxterm_get_term): New function.
30806 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30808 2010-02-06 Colin D Bennett <colin@gibibit.com>
30810 Bitmap scaling support.
30812 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30813 (bitmap_scale_mod_SOURCES): New variable.
30814 (bitmap_scale_mod_CFLAGS): Likewise.
30815 (bitmap_scale_mod_LDFLAGS): Likewise.
30816 * include/grub/bitmap_scale.h: New file.
30817 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30818 (background_image_cmd_options): New variable.
30819 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30820 (cmd): Rename and change type to ...
30821 (background_image_cmd_handle): ... this. All users updated.
30822 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30823 * video/bitmap_scale.c: New file.
30825 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30829 * Makefile.in (LIBSDL): New variable.
30830 (enable_grub_emu_sdl): Likewise.
30831 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30832 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30833 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30834 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30835 * util/sdl.c: New file.
30837 2010-02-06 Colin D Bennett <colin@gibibit.com>
30838 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30840 Double buffering support.
30842 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30843 * include/grub/video.h: Update comment.
30844 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30846 (grub_video_fb_doublebuf_blit_init): New prototype.
30847 * term/gfxterm.c (scroll_up): Support double buffering.
30848 (grub_gfxterm_refresh): Likewise.
30849 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30850 (grub_video_fb_doublebuf_blit_init): Likewise.
30851 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30852 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30853 'displayed_page', 'render_page' and 'update_screen'.
30854 (grub_video_vbe_fini): Free offscreen buffer.
30855 (doublebuf_pageflipping_commit): New function.
30856 (doublebuf_pageflipping_update_screen): Likewise.
30857 (doublebuf_pageflipping_init): Likewise.
30858 (double_buffering_init): Likewise.
30859 (grub_video_vbe_setup): Enable doublebuffering.
30860 (grub_video_vbe_swap_buffers): Implement.
30861 (grub_video_vbe_set_active_render_target): Handle double buffering.
30862 (grub_video_vbe_get_active_render_target): Likewise.
30863 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30864 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30865 (grub_video_vbe_enable_double_buffering): Likewise.
30866 (grub_video_vbe_swap_buffers): Use update_screen.
30867 (grub_video_set_mode): Use double buffering.
30869 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30871 * maintainance/gentrigtables.py: Remove.
30872 * lib/trig.c: Likewise.
30874 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30876 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30878 (trigtables.c): New rule.
30879 (gentrigtables): Likewise.
30880 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30882 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30884 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30887 2010-02-06 Colin D Bennet <colin@gibibit.com>
30889 Trigonometry support.
30891 * include/grub/trig.h: New file.
30892 * lib/trig.c: Likewise.
30893 * maintainance/gentrigtables.py: Likewise.
30894 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30895 (trig_mod_SOURCES): New variable.
30896 (trig_mod_CFLAGS): Likewise.
30897 (trig_mod_LDFLAGS): Likewise.
30899 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30901 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30904 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30906 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30909 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30911 * util/hostdisk.c (open_device): Don't use partition device when reading
30912 before the partition.
30913 (grub_util_biosdisk_read): Don't read from partition and before the
30914 partition in single operation.
30915 (grub_util_biosdisk_write): Don't write to partition and before the
30916 partition in single operation.
30918 2010-02-03 Torsten Landschoff <torsten@debian.org>
30920 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30923 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30925 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30927 (grub_biosdisk_write): Refuse to write to CDROM.
30929 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30931 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30933 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30935 * font/font.c (find_glyph): Check that bmp_idx is available before
30937 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30938 with (font == NULL).
30940 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30942 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30944 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30946 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30947 * util/grub-script-check.c (getline): Fix empty lines case.
30949 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30951 * Makefile.in (check): Exit with fail status when one of the tests
30953 * tests/example_functional_test.c (example_test): Fix reversed assert.
30954 * tests/example_unit_test.c (example_test): Likewise.
30956 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30958 * util/grub.d/10_linux.in: This script does not use any of the
30959 contents of gettext.sh, only the external command `gettext', so stop
30960 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30961 the same prefix as GRUB.)
30962 * util/grub.d/10_kfreebsd.in: Likewise.
30964 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30966 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30969 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30971 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30974 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30976 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30977 having a 4KiB and not 32KiB buffer size.
30979 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30981 * util/hostfs.c: Include `<errno.h>'.
30982 (grub_hostfs_read): Handle errors from fseeko() and fread().
30984 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30986 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30987 loop when using read hooks on files whose size isn't sector-aligned.
30989 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30991 Remove unused parameter.
30993 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30994 (grub_iso9660_open): Remove initialization of `data->length'.
30996 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30998 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30999 memleak conditions.
31001 2010-01-27 Carles Pina i Estany <carles@pina.cat>
31003 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
31004 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
31006 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31008 * util/bin2h.c (usage): Fix warning (space after backslash).
31010 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31012 * font/font.c: Include `grub/fontformat.h.
31013 Remove font file format constants.
31014 (grub_font_load): Use the new macros.
31015 * include/grub/fontformat.h: New file.
31016 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31017 (write_font_pf2): Use the new macros.
31019 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31021 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31024 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31026 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31028 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31029 (_start): Macroify `0x7F'.
31031 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31032 (make_install_device): Use "(pxe)" as fallback prefix when booting
31035 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31037 * configure.ac: Reset LIBS after check for libgcc symbols.
31039 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
31041 * util/hostdisk.c (open_device): Add trailing newline to debug
31044 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31046 * configure.ac: Check for `limits.h'.
31047 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31049 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31051 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31052 capitalize error strings.
31054 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31056 * util/grub.d/10_hurd.in: Add a recovery mode.
31058 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31060 * configure.ac: Check for libgcc symbols with -nostdlib.
31062 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31064 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31066 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31068 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31069 stack since heap may be unavailable at that point.
31070 (grub_ofconsole_gotoxy): Likewise.
31072 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31074 * configure.ac: Check for _restgpr_14_x.
31075 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31076 and _savegpr_* prototypes.
31078 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31080 Use generic grub_reboot() for i386-efi.
31082 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31083 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31084 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31086 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31088 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31089 presence of "prefix" variable as it breaks when normal.mod is
31092 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31094 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31095 stack since heap is unavailable at that point.
31097 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31099 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31100 (grub_freebsd_bootinfo): Rewritten.
31101 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31103 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31105 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31107 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31109 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31112 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31114 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31115 around for handling "/" to the correct fix. Fix a memory leak. Use
31116 xstrdup instead of strdup.
31118 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31120 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31122 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31124 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31126 * font/font.c (struct grub_font): New member 'bmp_idx'.
31127 (font_init): Initialise 'bmp_idx'.
31128 (load_font_index): Fill 'bmp_idx'.
31129 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31131 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31133 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31136 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31138 Move context handling out of the kernel.
31140 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31141 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31142 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31143 * conf/i386-efi.rmk: Likewise.
31144 * conf/i386-ieee1275.rmk: Likewise.
31145 * conf/i386-pc.rmk: Likewise.
31146 * conf/powerpc-ieee1275.rmk: Likewise.
31147 * conf/sparc64-ieee1275.rmk: Likewise.
31148 * conf/x86_64-efi.rmk: Likewise.
31149 * include/grub/env.h: Include grub/menu.h.
31150 (grub_env_var_type): Removed.
31151 (grub_env_var): Replaced field 'type' with 'global'.
31152 (grub_env_find): New prototype.
31153 (grub_env_context_open): Remove EXPORT_FUNC.
31154 (grub_env_context_close): Likewise.
31155 (grub_env_export): Likewise.
31156 (grub_env_set_data_slot): Removed.
31157 (grub_env_get_data_slot): Likewise.
31158 (grub_env_unset_data_slot): Likewise.
31159 (grub_env_unset_menu): New prototype.
31160 (grub_env_set_menu): Likewise.
31161 (grub_env_get_menu): Likewise.
31162 * include/grub/env_private.h: New file.
31163 * include/grub/normal.h (grub_context_init): New prototype.
31164 (grub_context_fini): Likewise.
31165 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31166 * normal/context.c (grub_cmd_export): ... to here.
31167 * kern/env.c: Include env_private.h.
31168 (HASHSZ): Moved to include/grub/env_private.h.
31169 (grub_env_context): Likewise.
31170 (grub_env_sorted_var): Likewise.
31171 (current_context): Renamed from this ...
31172 (grub_current_context): ...to this. 'static' removed. All users updated.
31173 (grub_env_find): Removed 'static'.
31174 (grub_env_context_open): Moved to normal/context.c.
31175 (grub_env_context_close): Likewise.
31176 (grub_env_export): Likewise.
31177 (mangle_data_slot_name): Removed.
31178 (grub_env_set_data_slot): Likewise.
31179 (grub_env_get_data_slot): Likewise.
31180 (grub_env_unset_data_slot): Likewise.
31181 * kern/main.c (grub_set_root_dev): Don't export root.
31182 It will be done later.
31183 (grub_main): Don't export prefix.
31184 It will be done later.
31185 * normal/context.c: New file.
31186 * normal/main.c (free_menu): Use grub_env_unset_menu.
31187 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31188 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31189 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31190 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31192 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31196 * commands/setpci.c: New file.
31197 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31198 (setpci_mod_SOURCES): New variable.
31199 (setpci_mod_CFLAGS): Likewise.
31200 (setpci_mod_LDFLAGS): Likewise.
31202 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31204 Byte-addressable PCI configuration space.
31206 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31208 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31209 GRUB_PCI_REG_CACHELINE.
31210 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31211 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31212 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31213 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31214 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31215 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31216 grub_pci_make_address.
31217 (lock_rom_area): Likewise.
31218 * commands/lspci.c (grub_lspci_iter): Use macroses
31219 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31220 of grub_pci_make_address.
31221 * disk/ata.c (grub_ata_pciinit): Likewise.
31222 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31223 (GRUB_PCI_REG_VENDOR): Likewise.
31224 (GRUB_PCI_REG_DEVICE): Likewise.
31225 (GRUB_PCI_REG_COMMAND): Likewise.
31226 (GRUB_PCI_REG_STATUS): Likewise.
31227 (GRUB_PCI_REG_REVISION): Likewise.
31228 (GRUB_PCI_REG_CLASS): Likewise.
31229 (GRUB_PCI_REG_CACHELINE): Likewise.
31230 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31231 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31232 (GRUB_PCI_REG_BIST): Likewise.
31233 (GRUB_PCI_REG_ADDRESSES): Likewise.
31234 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31235 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31236 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31237 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31238 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31239 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31240 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31241 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31242 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31243 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31244 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31245 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31246 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31247 (GRUB_PCI_REG_MIN_GNT): Likewise.
31248 (GRUB_PCI_REG_MAX_LAT): Likewise.
31249 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31250 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31251 * video/efi_uga.c (find_framebuf): Likewise.
31252 * video/sm712.c (grub_video_sm712_setup): Likewise.
31253 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31256 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31258 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31259 can be reliably determined to be supported.
31261 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31263 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31264 that VESA is supported.
31265 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31268 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31270 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31272 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31274 * util/misc.c (make_system_path_relative_to_its_root): Work around
31275 special-casing of "/", as previous incarnation of this routine did.
31277 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31279 Fix any-emu compilation.
31281 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31282 * grub_bin2h_SOURCES: New variable.
31284 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31286 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31288 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31290 * util/grub.d/00_header.in: Fix handling of locale_dir.
31292 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31294 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31295 as possible unifont location (Gentoo).
31296 Reported by: Alexander Brüning
31298 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31300 Don't try to generate lists for kernel.img.
31302 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31303 (pkglib_MODULES): Remove kernel.img.
31304 (kernel_img_EXPORTS): Removed.
31305 (kernel_img_RELOCATABLE): New variable.
31306 * conf/x86_64-efi.rmk: Likewise.
31307 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31309 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31311 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31312 grub_xasprintf or grub_snprintf.
31313 (grub_vsprintf): Likewise.
31314 (grub_snprintf): New proto.
31315 (grub_vsnprintf): Likewise.
31316 (grub_xasprintf): Likewise.
31317 (grub_xvasprintf): Likewise.
31318 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31319 (grub_sprintf): Removed.
31320 (grub_vsnprintf): New function.
31321 (grub_snprintf): Likewise.
31322 (grub_xvasprintf): Likewise.
31323 (grub_xasprintf): Likewise.
31324 (grub_vsprintf): Renamed to ...
31325 (grub_vsnprintf_real): ...this. New argument max_len.
31327 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31329 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31330 fix grub-script-check warning.
31332 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31334 * include/grub/font.h (grub_font_load): Fix prototype.
31336 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31338 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31340 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31342 * include/grub/x86_64/at_keyboard.h: New file.
31344 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31346 * loader/mips/linux.c: Include missing grub/i18n.h.
31348 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31350 * normal/menu.c (notify_execution_failure): Clarify error message.
31352 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31354 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31355 return value (and revert all return statements). Update users.
31357 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31359 * kern/device.c (grub_device_iterate): Allocate new part_ent
31360 structure based on sizeof (*p) rather than sizeof (p->next), to
31361 account for structure padding.
31363 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31364 disk is NULL, which might happen for LVM physical volumes with no
31367 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31369 * loader/mips/linux.c (grub_cmd_initrd)
31370 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31372 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31374 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31375 (grub_video_video_init, grub_video_bitmap_init)
31376 (grub_font_manager_init, grub_term_gfxterm_init)
31377 (grub_at_keyboard_init): New extern declarations.
31378 (grub_machine_init): Initialize gfxterm and at_keyboard.
31380 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31382 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31383 `gfxterm.mod' into core image.
31385 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31386 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31387 (kernel_img_FORMAT): Copy to ...
31389 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31390 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31391 (kernel_img_FORMAT): ... here, and ...
31393 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31394 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31395 (kernel_img_FORMAT): ... here.
31397 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31398 and input (at_keyboard) terminals in kernel.
31399 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31401 (pkglib_MODULES): Remove `pci.mod'.
31402 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31403 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31404 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31405 (at_keyboard_mod_LDFLAGS): Remove variables.
31407 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31409 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31411 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31413 * include/grub/mips/libgcc.h: Only export symbols for functions
31414 that libgcc provides.
31416 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31420 * bus/bonito.c: New file.
31421 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31422 GRUB_PCI_NUM_DEVICES.
31423 * term/i386/pc/serial.c: Move to ...
31424 * term/serial.c: ... here. All users updated.
31425 * util/i386/pc/grub-mkimage.c: Move to ...
31426 * util/grub-mkrawimage.c: ... here. All users updated.
31427 * term/i386/pc/at_keyboard.c: Move to ...
31428 * term/at_keyboard.c: ... here. All users updated.
31429 * conf/mips-qemu-mips.rmk: New file.
31430 * conf/mips-yeeloong.rmk: Likewise.
31431 * conf/mips.rmk: Likewise.
31432 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31434 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31436 (grub_ata_pciinit): Support CS5536.
31437 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31438 * font/font_cmd.c (loadfont_command): Open file before passing it to
31440 (pseudo_file_read): New function.
31441 (pseudo_file_close): Likewise.
31442 (pseudo_fs): New structure.
31443 (load_font_module): New function.
31444 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31445 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31446 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31447 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31448 * include/grub/i386/at_keyboard.h: Split into ...
31449 * include/grub/at_keyboard.h: ... this ...
31450 * include/grub/i386/at_keyboard.h: ... and this.
31451 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31453 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31455 (grub_elf64_size): Likewise.
31456 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31458 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31459 * include/grub/i386/coreboot/serial.h: Rewritten.
31460 * include/grub/i386/ieee1275/serial.h: Include
31461 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31462 * include/grub/i386/pc/serial.h: Moved from here ...
31463 * include/grub/serial.h: ... to here. All users updated.
31464 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31465 (GRUB_PCI_NUM_BUS): Likewise.
31466 (GRUB_PCI_NUM_DEVICES): Likewise.
31467 (grub_pci_device_map_range): Add missing volatile keyword.
31468 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31469 * include/grub/mips/at_keyboard.h: New file.
31470 * include/grub/mips/cache.h: Likewise.
31471 * include/grub/mips/io.h: Likewise.
31472 * include/grub/mips/kernel.h: Likewise.
31473 * include/grub/mips/libgcc.h: Likewise.
31474 * include/grub/mips/pci.h: Likewise.
31475 * include/grub/mips/qemu-mips/boot.h: Likewise.
31476 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31477 * include/grub/mips/qemu-mips/loader.h: Likewise.
31478 * include/grub/mips/qemu-mips/memory.h: Likewise.
31479 * include/grub/mips/qemu-mips/serial.h: Likewise.
31480 * include/grub/mips/qemu-mips/time.h: Likewise.
31481 * include/grub/mips/relocator.h: Likewise.
31482 * include/grub/mips/time.h: Likewise.
31483 * include/grub/mips/types.h: Likewise.
31484 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31485 * include/grub/mips/yeeloong/boot.h: Likewise.
31486 * include/grub/mips/yeeloong/kernel.h: Likewise.
31487 * include/grub/mips/yeeloong/loader.h: Likewise.
31488 * include/grub/mips/yeeloong/memory.h: Likewise.
31489 * include/grub/mips/yeeloong/pci.h: Likewise.
31490 * include/grub/mips/yeeloong/serial.h: Likewise.
31491 * include/grub/mips/yeeloong/time.h: Likewise.
31492 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31493 * kern/elf.c (grub_elf32_size): New parameter. All users
31495 (grub_elf64_size): Likewise.
31496 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31497 Load modules before saying "Welcome to GRUB!".
31498 Call grub_refresh after saying "Welcome to GRUB!".
31499 * kern/mips/cache.S: New file.
31500 * kern/mips/cache_flush.S: Likewise.
31501 * kern/mips/dl.c: Likewise.
31502 * kern/mips/init.c: Likewise.
31503 * kern/mips/qemu-mips/init.c: Likewise.
31504 * kern/mips/startup.S: Likewise.
31505 * kern/mips/yeeloong/init.c: Likewise.
31506 * kern/term.c (grub_putcode): Handle NULL terminal.
31507 (grub_getcharwidth): Likewise.
31508 (grub_getkey): Likewise.
31509 (grub_checkkey): Likewise.
31510 (grub_getkeystatus): Likewise.
31511 (grub_getxy): Likewise.
31512 (grub_getwh): Likewise.
31513 (grub_gotoxy): Likewise.
31514 (grub_cls): Likewise.
31515 (grub_setcolorstate): Likewise.
31516 (grub_setcolor): Likewise.
31517 (grub_getcolor): Likewise.
31518 (grub_refresh): Likewise.
31519 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31520 (write_jump): Add hatch nop.
31521 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31522 * lib/mips/setjmp.S: New file.
31523 * loader/mips/linux.c: Likewise.
31524 * term/i386/pc/at_keyboard.c: Move from here ...
31525 * term/at_keyboard.c: ... to here.
31526 * term/i386/pc/serial.c: Moved from here ...
31527 * term/serial.c: ... to here. All users updated.
31528 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31529 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31530 (serial_translate_key_sequence): Avoid deadlock.
31531 (grub_serial_getkey): Handle backspace.
31532 (grub_serial_putchar): Fix newline handling.
31533 * util/i386/pc/grub-mkimage.c: Move from here ...
31534 * util/grub-mkrawimage.c: ... to here. All users updated.
31535 (generate_image): New parameters 'font_path' and 'format'.
31536 Support embedding font.
31537 Use grub_host_to_target* instead of grub_cpu_to_le*.
31538 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31539 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31540 (options): New option "--font".
31542 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31543 (main): Handle "--font".
31544 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31545 (grub_virtual_screen_setup): Set bg_color_display.
31546 (redraw_screen_rect): Use bg_color_display instead of incorrect
31548 (grub_gfxterm_cls): Likewise.
31549 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31550 Support embedding config file.
31551 (add_segments): Likewise.
31552 (options): New option "--config".
31553 (main): Handle "--config".
31554 * video/sm712.c: New file.
31556 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31558 Fix parallel builds.
31560 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31561 font.c depend on ascii.h).
31563 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31565 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31567 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31569 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31570 By default: disabled.
31571 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31574 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31576 * font/font.c: Update copyright years.
31577 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31579 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31581 * font/font.c: Include `ascii.h'.
31582 (ASCII_BITMAP_SIZE): New macro.
31583 (ascii_font_glyph): Define.
31584 (ascii_glyph_lookup): New function.
31585 (grub_font_get_string_width): Change comment. If glyph not found, use
31586 ascii_glyph_lookup.
31587 (grub_font_get_glyph_with_fallback): If glyph not available returns
31588 ascii_glyph_lookup.
31589 * util/grub-mkfont.c (file_formats): New enum.
31590 (options): Add `ascii-bitmaps' new option.
31591 (usage): Add `asii-bitmaps' new option.
31592 (write_font_ascii_bitmap): New function.
31593 (write_font): Rename to ...
31594 (write_font_p2): ... this. Remove print_glyphs call.
31595 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31596 used. Call print_glyphs.
31597 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31599 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31601 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31602 (grub_bin2h_SOURCES): New variable.
31603 * util/bin2h.c: New file.
31605 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31607 * include/multiboot.h: Resynced with spec.
31608 * include/multiboot2.h: Likewise.
31609 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31610 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31612 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31614 * include/grub/term.h (grub_term_register_input,
31615 grub_term_register_output): Check return of terminal init()
31616 routines, and abort if errors are raised.
31618 * commands/terminal.c: Update copyright year.
31620 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31622 * commands/terminal.c (grub_cmd_terminal_input)
31623 (grub_cmd_terminal_output): Check return of terminal init()
31624 routines, and abort if errors are raised.
31626 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31628 * include/grub/i386/bsd.h: Fix include pathes.
31630 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31632 Add missing *BSD copyright headers.
31634 * include/grub/aout.h: Add BSD licence.
31635 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31636 * include/grub/i386/freebsd_linker.h: ... here,
31637 * include/grub/i386/freebsd_reboot.h: ... here,
31638 * include/grub/i386/netbsd_bootinfo.h: ... here,
31639 * include/grub/i386/netbsd_reboot.h: ... here,
31640 * include/grub/i386/openbsd_bootarg.h: ... here,
31641 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31642 licence to each file.
31644 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31646 * acinclude.m4: Remove `nop' assembly instruction; it's not
31647 implemented by all architectures.
31649 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31651 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31652 ELILO. This is no longer necessary.
31654 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31656 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31658 * util/grub-script-check.c: grub-script-check tool.
31659 * conf/common.rmk: Make rules for grub-script-check.
31661 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31663 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31664 spotting it back in 2008. Shame on me for forgetting he did.
31666 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31668 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31670 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31671 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31672 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31673 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31674 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31675 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31677 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31679 * include/grub/test.h: Add license header.
31680 * tests/example_functional_test.c: Likewise.
31681 * tests/example_unit_test.c: Likewise.
31682 * tests/lib/functional_test.c: Likewise.
31683 * tests/lib/test.c: Likewise.
31684 * tests/lib/unit_test.c: Likewise.
31686 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31688 Use flag-based instead of hook-based video mode selection and "auto"
31691 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31692 (grub_video_set_mode): Changed prototype. All users updated.
31693 (grub_video_check_mode_flag): New inline function.
31694 * video/video.c (parse_modespec): New function.
31695 (grub_video_set_mode): Parse flags and keywords.
31697 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31699 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31702 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31704 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31706 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31708 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31710 * util/grub-emu.c (usage): Likewise.
31711 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31712 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31713 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31714 * util/i386/pc/grub-setup.c (usage): Likewise.
31716 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31718 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31720 (grub_util_info): Likewise.
31721 (grub_util_error): Likewise.
31722 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31723 and/or new lines in `grub_util_warna', `grub_util_info',
31724 `grub_util_error' calls.
31725 * util/getroot.c: Likewise.
31726 * util/grub-editenv.c: Likewise.
31727 * util/grub-emu.c: Likewise.
31728 * util/grub-fstest.c: Likewise.
31729 * util/grub-mkdevicemap.c: Likewise.
31730 * util/grub-mkfont.c: Likewise.
31731 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31732 * util/grub-mkrelpath.c: Likewise.
31733 * util/grub-pe2elf.c: Likewise.
31734 * util/grub-probe.c: Likewise.
31735 * util/hostdisk.c: Likewise.
31736 * util/i386/efi/grub-mkimage.c: Likewise.
31737 * util/i386/pc/grub-mkimage.c: Likewise.
31738 * util/i386/pc/grub-setup.c: Likewise.
31739 * util/ieee1275/ofpath.c: Likewise.
31740 * util/mkisofs/eltorito.c: Likewise.
31741 * util/mkisofs/rock.c: Likewise.
31742 * util/mkisofs/write.c: Likewise.
31743 * util/raid.c: Likewise.
31744 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31745 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31747 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31749 Enable multiboot on non-pc.
31751 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31752 multiboot.mod and multiboot2.mod to ...
31753 * conf/i386.rmk (pkglib_MODULES): ... here.
31754 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31756 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31757 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31759 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31760 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31762 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31763 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31765 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31766 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31768 (ata_mod_SOURCES): Removed.
31769 (ata_mod_CFLAGS): Likewise.
31770 (ata_mod_LDFLAGS): Likewise.
31771 (relocator_mod_SOURCES): Removed.
31772 (relocator_mod_CFLAGS): Likewise.
31773 (relocator_mod_ASFLAGS): Likewise.
31774 (relocator_mod_LDFLAGS): Likewise.
31776 * include/grub/x86_64/multiboot.h: New file.
31777 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31780 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31782 Video multiboot support.
31784 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31786 * include/multiboot.h: Resynced with multiboot specification.
31787 * include/multiboot2.h: Likewise.
31788 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31789 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31790 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31791 (HAS_VGA_TEXT): Likewise.
31792 (accepts_video): New variable.
31793 (grub_multiboot_set_accepts_video): New function.
31794 (grub_multiboot_get_mbi_size): Account for video structures.
31795 (set_video_mode): New function.
31796 (retrieve_video_parameters): Likewise.
31797 (grub_multiboot_make_mbi): Fill video fields.
31799 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31803 * include/grub/video.h (grub_video_driver_id): New type.
31804 (grub_video_adapter): New member 'id'. All users updated.
31805 (grub_video_get_driver_id): New proto.
31806 * video/video.c (grub_video_get_driver_id): New function.
31808 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31810 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31813 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31815 * normal/cmdline.c (print_completion): Gettextizze.
31817 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31819 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31821 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31823 * gettext/gettext.c (grub_gettext_translate): Push and pop
31825 (grub_gettext_delete_list): Change comment style.
31826 * kern/err.c (grub_error): Gettextizze.
31827 (grub_fatal): Gettextizze.
31829 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31831 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31832 (grub_linux16_real_boot): ... this.
31833 * kern/i386/loader.S: Likewise.
31834 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31835 (grub_linux16_boot): New function. Switches to text mode and calls
31836 grub_linux16_real_boot().
31838 * loader/i386/bsd.c: Include `<grub/video.h>'.
31839 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31840 text mode before calling grub_unix_real_boot().
31842 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31843 (grub_multiboot_boot): Switch to text mode before calling
31844 grub_relocator32_boot().
31846 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31847 (grub_chainloader_boot): Switch to text mode before calling
31848 grub_chainloader_real_boot().
31850 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31851 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31853 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31856 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31857 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31859 * util/grub.d/00_header.in: Define a "savedefault" function for use
31861 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31863 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31864 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31866 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31867 saved_entry if boot_once is unset.
31868 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31869 previous saved entry (i.e. grub-reboot).
31871 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31873 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31875 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31877 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31879 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31881 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31883 * util/grub-reboot.in: Fix --version output.
31884 * util/grub-set-default.in: Likewise.
31886 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31888 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31891 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31893 * util/grub.d/00_header.in: Quote the value assigned to `default',
31894 in case it contains spaces.
31896 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31898 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31899 `save_default_entry' call from the macosx case to the linux case.
31901 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31902 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31904 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31905 in `chosen' environment variable.
31906 * normal/menu_text.c (get_entry_number): Check if the variable
31907 matches the title of a menu entry.
31908 (run_menu): Pass menu to get_entry_number.
31910 * util/grub-reboot.in: New file.
31911 * util/grub-set-default.in: New file.
31912 * conf/common.rmk (grub-reboot): New utility.
31913 (grub-set-default): New utility.
31915 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31916 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31917 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31918 move it to `saved_entry' for the next boot. Load environment on
31920 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31921 * util/grub.d/10_hurd.in: Likewise.
31922 * util/grub.d/10_linux.in (linux_entry): Likewise.
31923 * util/grub.d/10_windows.in: Likewise.
31924 * util/grub.d/30_os-prober.in: Likewise.
31926 * util/grub-install.in: Create environment block.
31927 * util/i386/efi/grub-install.in: Likewise.
31928 * util/ieee1275/grub-install.in: Likewise.
31929 * util/sparc64/ieee1275/grub-install.in: Likewise.
31931 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31933 Unit testing framework for GRUB.
31935 * Makefile.in: Test framework build rules for 'make check'.
31936 * conf/tests.rmk: Build rules for individual tests and framework.
31938 * include/grub/test.h: Header file for whitebox tests.
31939 * tests/lib/functional_test.c: Framework support for whitebox
31941 * tests/lib/test.c: Common whitebox testing code for unit and
31943 * tests/lib/unit_test.c: Framework support for whitebox unit
31946 * tests/util/grub-shell-tester.in: Support utility for grub-script
31948 * tests/util/grub-shell.in: Utility to execute grub-script
31949 commands in a Qemu instance.
31951 * tests/example_functional_test.c: Example whitebox functional
31953 * tests/example_grub_script_test.in: Example grub-script test.
31954 * tests/example_scripted_test.in: Example scripted test.
31955 * tests/example_unit_test.c: Example whitebox unit test.
31957 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31959 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31960 Add loader/i386/multiboot_mbi.c.
31961 (multiboot2_mod_SOURCES): Likewise.
31962 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31963 (multiboot2_mod_SOURCES): Likewise.
31964 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31965 (grub_multiboot_make_mbi): Likewise.
31966 (grub_multiboot_free_mbi): Likewise.
31967 (grub_multiboot_init_mbi): Likewise.
31968 (grub_multiboot_add_module): Likewise.
31969 (grub_multiboot_set_bootdev): Likewise.
31970 * loader/i386/multiboot.c (mbi): Removed.
31971 (mbi_dest): Likewise.
31972 (alloc_mbi): New variable.
31973 (grub_multiboot_payload_size): Removed. All users updated.
31974 (grub_multiboot_pure_size): New variable.
31975 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31976 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31977 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31978 (grub_fill_multiboot_mmap): Likewise.
31979 (grub_multiboot_get_bootdev): Likewise.
31980 (grub_multiboot): Use multiboot_mbi functions.
31981 * loader/i386/multiboot_mbi.c: New file.
31983 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31985 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31986 it would result in module crash.
31988 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31990 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31991 (grub_ofconsole_getwh): Split to ...
31992 (grub_ofconsole_getwh): ... this.
31993 (grub_ofconsole_dimensions): ...and this.
31994 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31996 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31998 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
32000 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32002 * loader/i386/pc/multiboot2.c: Removed stalled file.
32004 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
32006 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
32007 Reported by: Grégoire Sutre
32009 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32011 * util/misc.c (canonicalize_file_name): New function.
32012 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32013 instead of realpath().
32015 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
32017 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32018 and make it clearer that it's optional. Based on confusion
32021 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32023 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32024 in premature implicit newline.
32026 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32028 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32029 which resulted in garbled command line at the end of screen.
32031 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32033 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32034 initialization with similar approach as with other Linux loaders.
32036 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32038 Fix i386-ieee1275 build.
32040 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32041 and grub_term_height() for video_{width,height} initialization.
32043 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32045 Fix grub-emu build.
32047 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32049 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32050 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32052 Support for multiple terminals.
32054 * Makefile.in (pkglib_DATA): terminal.lst.
32055 (terminal.lst): New target.
32056 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32057 (GRUB_MOD_INIT(handler)): Likewise.
32058 (GRUB_MOD_FINI(handler)): Likewise.
32059 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32060 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32061 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32062 (grub_cmd_sleep): Use grub_term_save_pos.
32063 * commands/terminal.c: New file.
32064 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32065 commands/terminal.c and lib/charset.c.
32066 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32067 (pkglib_MODULES): Add terminal.mod.
32068 (terminal_mod_SOURCES): New variable.
32069 (terminal_mod_CFLAGS): Likewise.
32070 (terminal_mod_LDFLAGS): Likewise.
32071 * genhandlerlist.sh: Don't handle terminals.
32072 * genmk.rb: Generate terminal-*.lst.
32073 * genterminallist.sh: New file.
32074 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32075 (grub_is_valid_utf8): Likewise.
32076 (grub_utf8_to_ucs4_alloc): Likewise.
32077 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32078 (grub_menu_register_viewer): Changed argument.
32079 (grub_menu_try_text): New proto.
32080 (grub_gfxmenu_try_hook): New declaration.
32081 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32082 (grub_menu_init_page): Additional argument term.
32083 (grub_normal_init_page): Likewise.
32084 (grub_cmdline_get): Arguments simplified.
32085 (grub_utf8_to_ucs4_alloc): Removed.
32086 (grub_print_ucs4): Additional argument term.
32087 (grub_getstringwidth): Likewise.
32088 (grub_print_message_indented): Likewise.
32089 (grub_menu_text_register_instances): New proto.
32090 (grub_show_menu): Likewise.
32091 (read_terminal_list): Likewise.
32092 (grub_set_more): Likewise.
32093 * include/grub/parser.h: Include handler.h.
32094 * include/grub/reader.h: Rewritten.
32095 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32096 (GRUB_TERM_WIDTH): Changed to function.
32097 (GRUB_TERM_HEIGHT): Likewise.
32098 (GRUB_TERM_BORDER_WIDTH): Likewise.
32099 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32100 (GRUB_TERM_NUM_ENTRIES): Likewise.
32101 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32102 (GRUB_TERM_CURSOR_X): Likewise.
32103 (grub_term_input_class): Likewise.
32104 (grub_term_output_class): Likewise.
32105 (grub_term_outputs_disabled): New declaration.
32106 (grub_term_inputs_disabled): Likewise.
32107 (grub_term_outputs): Likewise.
32108 (grub_term_inputs): Likewise.
32109 (grub_term_register_input): Rewritten.
32110 (grub_term_register_output): Likewise.
32111 (grub_term_unregister_input): Likewise.
32112 (grub_term_unregister_output): Likewise.
32113 (FOR_ACTIVE_TERM_INPUTS): New macro.
32114 (FOR_DISABLED_TERM_INPUTS): Likewise.
32115 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32116 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32117 * include/grub/terminfo.h: Add oterm argument to all protypes.
32118 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32119 Use grub_rescue_run.
32120 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32122 * kern/reader.c: Removed. All users updated.
32123 * kern/rescue_reader.c (grub_rescue_init): Removed.
32124 (grub_rescue_reader): Likewise.
32125 (grub_register_rescue_reader): Likewise.
32126 (grub_rescue_run): New function based on kern/reader.c.
32127 * kern/term.c: Adapted for multiterm.
32128 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32129 (grub_is_valid_utf8): Likewise.
32130 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32131 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32133 * loader/i386/linux.c (grub_linux_boot): Likewise.
32134 * normal/auth.c (grub_username_get): New function.
32135 (grub_auth_check_authentication): Use grub_username_get.
32136 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32137 * normal/color.c: Adapt for multiterm.
32138 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32139 (grub_normal_init_page): Additional argument term.
32140 (read_lists): Call read_terminal_lists.
32141 (grub_enter_normal_mode): Call grub_cmdline_run.
32142 Handle grub_normal_exit_level.
32143 (grub_cmd_normal): Make reentrant.
32144 (grub_cmd_normal_exit): New function.
32145 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32146 * normal/menu.c: Adapt for multiterm.
32147 * normal/menu_entry.c: Likewise.
32148 * normal/menu_text.c: Likewise.
32149 * normal/menu_viewer.c: Removed. All users updated.
32150 * normal/term.c: New file.
32151 * util/console.c: Change order of includes to workaround a bug in
32153 * term/terminfo.c: New argument oterm on all exported functions.
32155 * util/grub-editenv.c (grub_term_input_class): Removed.
32156 (grub_term_output_class): Likewise.
32158 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32160 Make loader output a bit more user-friendly.
32162 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32163 is being loaded. Likewise for the Hurd.
32165 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32166 that kernel of FreeBSD ${version} is being loaded.
32168 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32170 (grub_cmd_initrd): Likewise.
32171 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32172 that Linux ${version} is being loaded. Likewise for initrd.
32174 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32176 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32178 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32180 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32181 (GRUB_MOD_INIT): Gettextizze.
32182 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32183 (GRUB_MOD_INIT): Gettextizze.
32184 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32185 (grub_cmd_linux): Capitalise Linux.
32186 (GRUB_MOD_INIT): Gettextizze.
32187 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32188 (grub_cmd_linux): Capitalise Linux.
32189 (GRUB_MOD_INIT): Gettextizze.
32190 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32191 (grub_cmd_linux): Capitalise Linux.
32192 (GRUB_MOD_INIT): Gettextizze.
32193 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32194 (GRUB_MOD_INIT): Gettextizze.
32195 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32196 (grub_cmd_linux): Capitalise Linux.
32197 (GRUB_MOD_INIT): Gettextizze.
32198 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32199 (grub_cpu_xnu_init): Gettextizze.
32200 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32201 (GRUB_MOD_INIT): Gettextizze.
32202 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32203 (GRUB_MOD_INIT): Gettextizze.
32204 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32205 (grub_linux_load64): Capitalise Linux.
32206 (GRUB_MOD_INIT): Gettextizze.
32207 * loader/xnu.c: Include `<grub/i18n.h>'.
32208 (GRUB_MOD_INIT): Gettextizze.
32209 * po/POTFILES: Add `loader/efi/appleloader.c',
32210 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32211 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32212 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32213 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32214 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32215 and `loader/xnu.c'.
32217 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32219 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32221 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32223 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32224 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32225 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32227 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32229 Reset Multiboot 2 support. New loader implements the draft in
32230 /branches/multiboot2 and shares as much code as possible with the
32231 production Multiboot 1 implementation.
32233 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32234 * loader/multiboot2.c: Likewise.
32235 * loader/i386/multiboot_helper.S: Likewise.
32236 * include/multiboot2.h: Replace with latest version from the draft
32237 in /branches/multiboot2.
32239 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32240 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32241 and `loader/multiboot2.c'.
32242 (pkglib_MODULES): Add `multiboot2.mod'.
32243 (multiboot2_mod_SOURCES): New variable.
32244 (multiboot2_mod_LDFLAGS): Likewise.
32245 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32247 * conf/i386-pc.rmk: Likewise.
32249 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32250 (multiboot_mod_SOURCES): Remove variable.
32251 (multiboot_mod_LDFLAGS): Likewise.
32252 (multiboot_mod_CFLAGS): Likewise.
32254 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32255 `<multiboot2.h>' instead of `<multiboot.h>'.
32256 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32257 (MULTIBOOT_HEADER_MAGIC): New macros.
32259 * loader/multiboot_loader.c (module_version_status): Remove variable.
32260 (find_multi_boot2_header): Remove function.
32261 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32262 logic. Always check for the Multiboot version we're compiling for.
32263 (grub_cmd_module_loader): Likewise.
32264 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32265 command instead of `multiboot'.
32267 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32269 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32270 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32273 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32274 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32276 Fix breakage introduced with previous commit.
32278 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32280 * normal/handler.c (read_handler_list): Revert part of previous commit
32281 affecting this file.
32282 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32283 (grub_normal_execute): ... here.
32285 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32287 Merge prefix-redefinition-fix branch.
32289 * normal/autofs.c (read_fs_list): Make function capable of being
32290 run multiple times, gracefuly replacing the previous data
32292 * normal/dyncmd.c (read_command_list): Likewise.
32293 * normal/handler.c (read_handler_list): Likewise.
32294 * normal/main.c (read_lists): New function. Calls all the
32295 list reading functions.
32296 (grub_normal_execute): Use read_lists() instead of calling all
32297 list reading functions explicitly. Register read_lists() as a
32298 variable hook attached to ${prefix}.
32300 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32302 Merge crypto branch.
32304 * Makefile.in (pkglib_DATA): Add crypto.lst.
32305 (crypto.lst): New target.
32306 * commands/hashsum.c: New file.
32307 * commands/password.c (check_password): Use grub_crypto_memcmp.
32308 * commands/password_pbkdf2.c: New file.
32309 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32310 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32311 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32312 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32313 -I$(srcdir)/lib/libgcrypt_wrap.
32314 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32315 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32316 password_pbkdf2.mod.
32317 (crypto_mod_SOURCES): New variable.
32318 (crypto_mod_CFLAGS): Likewise.
32319 (crypto_mod_LDFLAGS): Likewise.
32320 (hashsum_mod_SOURCES): New variable.
32321 (hashsum_mod_CFLAGS): Likewise.
32322 (hashsum_mod_LDFLAGS): Likewise.
32323 (pbkdf2_mod_SOURCES): New variable.
32324 (pbkdf2_mod_CFLAGS): Likewise.
32325 (pbkdf2_mod_LDFLAGS): Likewise.
32326 (password_pbkdf2_mod_SOURCES): New variable.
32327 (password_pbkdf2_mod_CFLAGS): Likewise.
32328 (password_pbkdf2_mod_LDFLAGS): Likewise.
32329 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32330 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32331 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32332 Include conf/gcry.rmk.
32333 * include/grub/auth.h: Rewritten.
32334 * include/grub/crypto.h: New file.
32335 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32336 * include/grub/normal.h (read_crypto_list): New prototype.
32337 * lib/crypto.c: New file.
32338 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32339 * lib/pbkdf2.c: Likewise.
32340 * normal/auth.c (grub_auth_strcmp): Removed.
32341 (grub_iswordseparator): Likewise.
32342 (grub_auth_strword): Likewise.
32343 (is_authenticated): Use grub_strword.
32344 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32345 and grub_strword. Pass entered password to authentication callback.
32346 * normal/crypto.c: New file.
32347 * normal/main.c: Call read_crypto_list.
32348 * util/grub-mkpasswd-pbkdf2.c: New file.
32349 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32351 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32353 Fix descent and ascent calculation.
32355 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32356 (options): New option "asce".
32358 (add_char): Ignore invalid glyphs for descent calculation.
32359 Calculate ascent from actual content.
32360 (print_glyphs): Use 'asce'.
32361 (write_font): Likewise. Allow ascent override.
32362 (main): Handle "asce" option.
32364 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32366 * kern/err.c: Include `<grub/i18n.h>'.
32367 (grub_print_error): Add full stop. Gettextizze.
32368 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32369 (grub_bsd_load_elf): Capitalise ELF.
32370 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32371 (grub_cmd_freebsd_module): Likewise.
32372 (grub_cmd_freebsd_module_elf): Likewise.
32373 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32375 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32377 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32378 * commands/search_file.c (HELP_MESSAGE): New macro.
32379 * commands/search_label.c (HELP_MESSAGE): Likewise.
32380 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32381 * po/POTFILES: Add `commands/search_file.c',
32382 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32383 `commands/search.c'.
32385 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32387 * config.rpath: Update from Gnulib.
32389 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32391 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32393 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32395 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32397 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32399 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32400 arguments to fread so that we get a return value in bytes, rather
32401 than something that will normally be rounded down to 0.
32402 Adjust error handling to avoid producing garbage when size_t is not
32403 the same size as long long.
32405 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32407 * util/mkisofs/write.c (padblock_write): Check return value of
32410 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32412 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32415 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32417 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32419 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32420 instead of manual alignment.
32421 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32422 verbose). Avoid attempts to read past end of the device
32423 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32424 but GRUB_DISK_CACHE_SIZE may exceed that).
32426 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32428 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32429 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32432 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32434 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32436 (grub_efi_piwg_device_path): New structure
32437 (grub_efi_piwg_device_path_t): New type.
32438 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32439 (devpath_1): Transform to a structure. All users updated.
32440 (devpath_2): Likewise.
32441 (devpath_3): Likewise.
32442 (devpath_4): Likewise.
32443 (devpath_5): Likewise.
32445 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32447 * loader/efi/appleloader.c: Restored. Update all users.
32449 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32451 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32453 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32454 (struct boot_blocklist): Move from here ...
32455 * include/grub/i386/pc/boot.h [ASM_FILE]
32456 (struct grub_boot_blocklist): ... to here. Update all users.
32457 (setup): Only initialize `start' member of `first_block'
32458 structure. Add assert() calls to verify the other members.
32460 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32461 (generate_image): Fix broken blocklist length initialization.
32462 Add assert() call to verify blocklist `segment' field.
32464 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32466 * loader/efi/appleloader.c: Remove. Update all users.
32468 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32470 * boot/i386/pc/boot.S: Update copyright year.
32471 * boot/i386/pc/cdboot.S: Likewise.
32472 * boot/i386/pc/diskboot.S: Likewise.
32473 * boot/i386/pc/lnxboot.S: Likewise.
32474 * boot/i386/pc/pxeboot.S: Likewise.
32475 * bus/pci.c: Likewise.
32476 * commands/cmp.c: Likewise.
32477 * commands/help.c: Likewise.
32478 * commands/hexdump.c: Likewise.
32479 * commands/i386/pc/halt.c: Likewise.
32480 * commands/i386/pc/play.c: Likewise.
32481 * commands/i386/pc/vbeinfo.c: Likewise.
32482 * commands/ls.c: Likewise.
32483 * commands/test.c: Likewise.
32484 * disk/dmraid_nvidia.c: Likewise.
32485 * disk/i386/pc/biosdisk.c: Likewise.
32486 * disk/ieee1275/nand.c: Likewise.
32487 * disk/ieee1275/ofdisk.c: Likewise.
32488 * disk/lvm.c: Likewise.
32489 * disk/raid.c: Likewise.
32490 * disk/raid6_recover.c: Likewise.
32491 * disk/scsi.c: Likewise.
32492 * fs/affs.c: Likewise.
32493 * fs/cpio.c: Likewise.
32494 * fs/ext2.c: Likewise.
32495 * fs/hfs.c: Likewise.
32496 * fs/iso9660.c: Likewise.
32497 * fs/ntfs.c: Likewise.
32498 * fs/sfs.c: Likewise.
32499 * fs/udf.c: Likewise.
32500 * fs/ufs.c: Likewise.
32501 * fs/xfs.c: Likewise.
32502 * gencmdlist.sh: Likewise.
32503 * genmk.rb: Likewise.
32504 * include/grub/disk.h: Likewise.
32505 * include/grub/efi/api.h: Likewise.
32506 * include/grub/efi/efi.h: Likewise.
32507 * include/grub/efi/pe32.h: Likewise.
32508 * include/grub/elf.h: Likewise.
32509 * include/grub/fs.h: Likewise.
32510 * include/grub/i386/at_keyboard.h: Likewise.
32511 * include/grub/i386/pc/memory.h: Likewise.
32512 * include/grub/i386/pc/vbe.h: Likewise.
32513 * include/grub/i386/pci.h: Likewise.
32514 * include/grub/i386/tsc.h: Likewise.
32515 * include/grub/ieee1275/ieee1275.h: Likewise.
32516 * include/grub/ntfs.h: Likewise.
32517 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32518 * include/grub/sparc64/libgcc.h: Likewise.
32519 * include/grub/symbol.h: Likewise.
32520 * include/grub/types.h: Likewise.
32521 * include/multiboot2.h: Likewise.
32522 * io/gzio.c: Likewise.
32523 * kern/device.c: Likewise.
32524 * kern/disk.c: Likewise.
32525 * kern/efi/efi.c: Likewise.
32526 * kern/efi/mm.c: Likewise.
32527 * kern/elf.c: Likewise.
32528 * kern/file.c: Likewise.
32529 * kern/i386/dl.c: Likewise.
32530 * kern/i386/pc/init.c: Likewise.
32531 * kern/i386/pc/startup.S: Likewise.
32532 * kern/ieee1275/ieee1275.c: Likewise.
32533 * kern/ieee1275/init.c: Likewise.
32534 * kern/main.c: Likewise.
32535 * kern/mm.c: Likewise.
32536 * kern/powerpc/dl.c: Likewise.
32537 * kern/sparc64/dl.c: Likewise.
32538 * kern/x86_64/dl.c: Likewise.
32539 * lib/hexdump.c: Likewise.
32540 * loader/efi/appleloader.c: Likewise.
32541 * loader/i386/ieee1275/linux.c: Likewise.
32542 * loader/i386/pc/chainloader.c: Likewise.
32543 * loader/i386/pc/linux.c: Likewise.
32544 * loader/i386/pc/multiboot2.c: Likewise.
32545 * loader/ieee1275/multiboot2.c: Likewise.
32546 * loader/multiboot2.c: Likewise.
32547 * loader/multiboot_loader.c: Likewise.
32548 * loader/powerpc/ieee1275/linux.c: Likewise.
32549 * normal/completion.c: Likewise.
32550 * normal/menu_entry.c: Likewise.
32551 * partmap/apple.c: Likewise.
32552 * util/grub.d/10_hurd.in: Likewise.
32553 * util/hostfs.c: Likewise.
32554 * video/readers/png.c: Likewise.
32556 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32558 * include/grub/misc.h (GNUC_PREREQ): New macro.
32559 (ATTRIBUTE_ERROR): New macro.
32560 * include/grub/list.h (grub_bad_type_cast_real): Use
32563 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32565 * normal/menu_text.c (print_message): Change messages.
32567 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32569 * normal/menu_entry.c (store_completion): Gettextizze.
32571 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32573 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32575 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32577 * po/POTFILES: Sort correctly.
32579 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32581 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32582 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32583 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32585 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32586 summary. Gettextizze the strings.
32587 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32588 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32589 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32591 (GRUB_MOD_INIT): Remove command name from summary.
32592 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32594 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32595 * term/i386/pc/serial.c (options): Add full stops.
32596 (GRUB_MOD_INIT): Remove command name from the summary.
32598 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32600 * commands/acpi.c: Gettextizze help strings and/or options. Include
32601 `grub/i18n.h' if needed.
32602 * commands/blocklist.c: Likewise.
32603 * commands/boot.c: Likewise.
32604 * commands/cat.c: Likewise.
32605 * commands/cmp.c: Likewise.
32606 * commands/configfile.c: Likewise.
32607 * commands/crc.c: Likewise.
32608 * commands/date.c: Likewise.
32609 * commands/echo.c: Likewise.
32610 * commands/efi/fixvideo.c: Likewise.
32611 * commands/efi/loadbios.c: Likewise.
32612 * commands/gptsync.c: Likewise.
32613 * commands/halt.c: Likewise.
32614 * commands/handler.c: Likewise.
32615 * commands/hdparm.c: Likewise.
32616 * commands/hexdump.c: Likewise.
32617 * commands/i386/cpuid.c: Likewise.
32618 * commands/i386/pc/drivemap.c: Likewise.
32619 * commands/i386/pc/halt.c: Likewise.
32620 * commands/i386/pc/pxecmd.c: Likewise.
32621 * commands/i386/pc/vbeinfo.c: Likewise.
32622 * commands/i386/pc/vbetest.c: Likewise.
32623 * commands/ieee1275/suspend.c: Likewise.
32624 * commands/keystatus.c: Likewise.
32625 * commands/loadenv.c: Likewise.
32626 * commands/ls.c: Likewise.
32627 * commands/lsmmap.c: Likewise.
32628 * commands/lspci.c: Likewise.
32629 * commands/memrw.c: Likewise.
32630 * commands/minicmd.c: Likewise.
32631 * commands/parttool.c: Likewise.
32632 * commands/password.c: Likewise.
32633 * commands/probe.c: Likewise.
32634 * commands/read.c: Likewise.
32635 * commands/reboot.c: Likewise.
32636 * commands/search.c: Likewise.
32637 * commands/sleep.c: Likewise.
32638 * commands/test.c: Likewise.
32639 * commands/true.c: Likewise.
32640 * commands/usbtest.c: Likewise.
32641 * commands/videotest.c: Likewise.
32642 * commands/xnu_uuid.c: Likewise.
32643 * disk/loopback.c: Likewise.
32644 * hello/hello.c: Likewise.
32645 * loader/i386/bsd.c: Likewise.
32646 * term/i386/pc/serial.c: Likewise.
32647 * po/POTFILES: Add new files.
32649 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32651 * term/i386/pc/at_keyboard.c
32652 (keyboard_controller_wait_untill_ready): Rename to ...
32653 (keyboard_controller_wait_until_ready): ... this. Update all users.
32655 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32657 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32658 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32659 string using string width.
32660 * normal/menu_text.c (grub_print_message_indented): Use
32661 grub_print_spaces and not print_spaces.
32662 (print_timeout): Likewise.
32663 (print_spaces): Move to...
32664 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32666 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32668 Import from Gnulib.
32670 * gnulib/getdelim.c: New file.
32671 * gnulib/getline.c: Likewise.
32673 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32675 * include/grub/list.h (grub_assert_fail): Removed.
32676 (grub_bad_type_cast_real): New function.
32677 (grub_bad_type_cast): New macro.
32678 (GRUB_AS_LIST): Use grub_bad_type_cast.
32679 (GRUB_AS_LIST_P): Likewise.
32680 (GRUB_AS_NAMED_LIST): Likewise.
32681 (GRUB_AS_NAMED_LIST_P): Likewise.
32682 (GRUB_AS_PRIO_LIST): Likewise.
32683 (GRUB_AS_PRIO_LIST_P): Likewise.
32684 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32686 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32688 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32691 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32693 * configure.ac: Check for TARGET_CFLAGS initialization before we
32694 initialize it ourselves (sigh).
32695 Move a few modifications to TARGET_CFLAGS to be unconditional
32696 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32699 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32700 * term/i386/pc/at_keyboard.c
32701 (keyboard_controller_wait_untill_ready): Likewise.
32702 (keyboard_controller_led): Rename `led_status' paramter to avoid
32705 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32707 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32710 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32712 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32714 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32716 * normal/menu_text.c (grub_print_message_indented): Prevent
32717 past-the-end-of-array dereference.
32719 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32721 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32722 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32724 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32726 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32727 * normal/main.c (grub_normal_read_line): Remove a space from the
32730 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32732 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32733 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32734 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32735 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32736 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32737 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32738 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32740 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32742 * video/readers/jpeg.c (cmd): Declare.
32743 (grub_cmd_jpegtest): Use `grub_command_t' type.
32744 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32746 (GRUB_MOD_FINI): Use `cmd' to unregister.
32747 * video/readers/png.c (cmd): Declare.
32748 (grub_cmd_pngtest): Use `grub_command_t' type.
32749 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32751 (GRUB_MOD_FINI): Use `cmd' to unregister.
32752 * video/readers/tga.c (cmd): Declare.
32753 (grub_cmd_tgatest): Use `grub_command_t' type.
32754 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32756 (GRUB_MOD_FINI): Use `cmd' to unregister.
32758 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32760 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32762 * kern/corecmd.c (grub_register_core_commands): Likewise.
32763 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32764 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32765 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32766 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32767 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32768 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32769 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32770 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32771 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32772 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32773 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32774 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32775 * normal/handler.c (insert_handler): Likewise.
32776 * normal/main.c (GRUB_MOD_INIT): Likewise.
32777 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32779 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32781 * commands/help.c (grub_cmd_help): Print the command name before the
32783 (GRUB_MOD_INIT): Remove command name from the summary.
32784 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32786 * lib/arg.c (find_long): Print the command name before the summary.
32787 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32789 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32790 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32791 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32792 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32793 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32794 * commands/date.c (GRUB_MOD_INIT): Likewise.
32795 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32796 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32797 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32798 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32799 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32800 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32801 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32802 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32803 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32804 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32805 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32806 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32807 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32808 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32809 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32810 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32811 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32812 * commands/password.c (GRUB_MOD_INIT): Likewise.
32813 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32814 * commands/read.c (GRUB_MOD_INIT): Likewise.
32815 * commands/search.c (GRUB_MOD_INIT): Likewise.
32816 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32817 * commands/test.c (GRUB_MOD_INIT): Likewise.
32818 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32819 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32820 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32821 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32822 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32823 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32824 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32825 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32826 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32827 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32828 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32829 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32830 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32831 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32833 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32835 Use search command for preliminar UUID search.
32837 * commands/search.c: Split into ...
32838 * commands/search_wrap.c: ...this
32839 * commands/search.c: ...and this.
32840 * commands/search_file.c: New file.
32841 * commands/search_label.c: New file.
32842 * commands/search_uuid.c: New file.
32843 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32844 Add commands/search_wrap.c, commands/search_file.c,
32845 commands/search_label.c and commands/search_uuid.c.
32846 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32847 (search_mod_SOURCES): Set to commands/search_wrap.c.
32848 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32850 (search_fs_file_mod_SOURCES): New variable.
32851 (search_fs_file_mod_CFLAGS): Likewise.
32852 (search_fs_file_mod_LDFLAGS): Likewise.
32853 (search_label_mod_SOURCES): Likewise.
32854 (search_label_mod_CFLAGS): Likewise.
32855 (search_label_mod_LDFLAGS): Likewise.
32856 (search_fs_uuid_mod_SOURCES): New variable.
32857 (search_fs_uuid_mod_CFLAGS): Likewise.
32858 (search_fs_uuid_mod_LDFLAGS): Likewise.
32859 (fs_file_mod_SOURCES): Removed.
32860 (fs_file_mod_CFLAGS): Likewise.
32861 (fs_file_mod_LDFLAGS): Likewise.
32862 (fs_uuid_mod_SOURCES): Removed.
32863 (fs_uuid_mod_CFLAGS): Likewise.
32864 (fs_uuid_mod_LDFLAGS): Likewise.
32865 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32866 Set to util/grub-install.in.
32867 * disk/fs_file.c: Removed.
32868 * disk/fs_uuid.c: Likewise.
32869 * include/grub/search.h: New file.
32870 * util/grub-install.in: Handle sparc64.
32871 Create and use load.cfg.
32872 * util/sparc64/ieee1275/grub-install.in: Removed.
32874 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32876 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32877 Ignore return status if CF is cleared.
32878 (grub_biosdisk_get_diskinfo_standard): Likewise.
32880 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32882 * term/i386/pc/at_keyboard.c
32883 (keyboard_controller_wait_untill_ready): New function.
32884 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32885 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32886 for keyboard polling, rather than duplicate the same loop. This
32887 saves a few bytes in code size.
32889 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32891 Support for (pxe[:server[:gateway]]) syntax and
32892 use environment variable for PXE.
32894 * commands/i386/pc/pxecmd.c (options): Removed.
32895 (print_ip): Removed.
32896 (grub_cmd_pxe): Removed
32897 (grub_cmd_pxe_unload): New function.
32898 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32899 (grub_pxe_your_ip): Made static.
32900 (grub_pxe_default_server_ip): Likewise.
32901 (grub_pxe_default_gateway_ip): Likewise.
32902 (grub_pxe_blksize): Likewise.
32903 (parse_ip): New function.
32904 (grub_pxe_open): Support server and gateway specification.
32905 (grub_pxe_close): Free disk->data.
32906 (grub_pxefs_open): Use disk->data.
32907 (grub_pxefs_read): Likewise.
32908 (grub_env_write_readonly): New function.
32909 (set_mac_env): Likewise.
32910 (set_env_limn_ro): Likewise.
32911 (parse_dhcp_vendor): Likewise.
32912 (grub_pxe_detect): Set the environment variables.
32913 (set_ip_env): New function.
32914 (write_ip_env): Likewise.
32915 (grub_env_write_pxe_default_server): Likewise.
32916 (grub_env_write_pxe_default_gateway): Likewise.
32917 (grub_env_write_pxe_blocksize): Likewise.
32918 (GRUB_MOD_INIT(pxe)): Set environment variables.
32919 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32920 (grub_pxe_mac_addr_t): ... this. All users updated.
32921 (grub_pxe_your_ip): Removed.
32922 (grub_pxe_server_ip): Likewise.
32923 (grub_pxe_gateway_ip): Likewise.
32924 (grub_pxe_blksize): Likewise.
32926 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32928 * commands/help.c: Include `<grub/i18n.h>'.
32929 (grub_cmd_help): Gettextizze.
32930 (GRUB_MOD_INIT): Likewise.
32931 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32932 (GRUB_MOD_INIT): Gettextizze.
32933 * commands/search.c: Include `<grub/i18n.h>'.
32934 (options): Gettextizze.
32935 (GRUB_MOD_INIT): Gettextizze.
32936 * lib/arg.c: Include `<grub/i18n.h>'.
32937 (help_options): Gettextizze.
32938 (find_long): Likewise.
32939 (grub_arg_show_help): Likewise.
32940 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32941 (read_command_list): Gettextizze.
32942 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32943 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32945 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32947 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32948 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32949 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32950 (led_status): New variable.
32951 (keyboard_controller_led): New function.
32952 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32953 update led status for caps lock, num lock and scroll lock.
32955 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32957 * util/hostdisk.c (open_device): Fix a comment.
32959 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32961 * util/grub-install.in (host_os): New variable.
32962 * util/i386/efi/grub-install.in (host_os): Likewise.
32964 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32966 * util/mkisofs/write.c (padblock_write): Abort when given an
32967 excedingly large embed image, instead of silently truncating it.
32969 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32971 * include/multiboot.h: Indentation fixes.
32973 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32975 * include/multiboot.h (struct multiboot_aout_symbol_table)
32976 (struct multiboot_elf_section_header_table): New structure
32977 declarations (stolen from GRUB Legacy).
32978 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32981 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32982 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32985 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32987 * include/multiboot.h: Make comments src2texi-friendly.
32989 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32991 For consistency with [multiboot]/docs/boot.S.
32993 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32994 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32995 (MULTIBOOT_MAGIC2): Rename from this ...
32996 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32998 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
33000 * include/multiboot.h: Remove `<grub/types.h>'.
33001 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
33002 types. Update all users.
33004 2009-12-25 Carles Pina i Estany <carles@pina.cat>
33006 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
33007 `couldn't' and `can not' by `cannot'.
33008 * commands/i386/pc/drivemap.c: Likewise.
33009 * disk/ata.c: Likewise.
33010 * disk/ieee1275/nand.c: Likewise.
33011 * fs/affs.c: Likewise.
33012 * fs/fat.c: Likewise.
33013 * fs/hfs.c: Likewise.
33014 * fs/hfsplus.c: Likewise.
33015 * fs/iso9660.c: Likewise.
33016 * fs/jfs.c: Likewise.
33017 * fs/minix.c: Likewise.
33018 * fs/reiserfs.c: Likewise.
33019 * fs/sfs.c: Likewise.
33020 * fs/udf.c: Likewise.
33021 * fs/ufs.c: Likewise.
33022 * fs/xfs.c: Likewise.
33023 * loader/powerpc/ieee1275/linux.c: Likewise.
33024 * loader/sparc64/ieee1275/linux.c: Likewise.
33025 * util/grub-probe.c: Likewise.
33026 * util/misc.c: Likewise.
33028 2009-12-24 Carles Pina i Estany <carles@pina.cat>
33030 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33032 * commands/acpi.c: Likewise.
33033 * commands/blocklist.c: Likewise.
33034 * commands/efi/loadbios.c: Likewise.
33035 * commands/i386/pc/drivemap.c: Likewise.
33036 * commands/loadenv.c: Likewise.
33037 * commands/memrw.c: Likewise.
33038 * commands/password.c: Likewise.
33039 * commands/videotest.c: Likewise.
33040 * disk/ata.c: Likewise.
33041 * disk/ata_pthru.c: Likewise.
33042 * disk/dmraid_nvidia.c: Likewise.
33043 * disk/ieee1275/nand.c: Likewise.
33044 * disk/ieee1275/ofdisk.c: Likewise.
33045 * disk/loopback.c: Likewise.
33046 * disk/lvm.c: Likewise.
33047 * disk/mdraid_linux.c: Likewise.
33048 * disk/raid.c: Likewise.
33049 * disk/raid6_recover.c: Likewise.
33050 * disk/scsi.c: Likewise.
33051 * efiemu/main.c: Likewise.
33052 * efiemu/mm.c: Likewise.
33053 * efiemu/pnvram.c: Likewise.
33054 * efiemu/symbols.c: Likewise.
33055 * font/font.c: Likewise.
33056 * fs/cpio.c: Likewise.
33057 * fs/hfsplus.c: Likewise.
33058 * fs/iso9660.c: Likewise.
33059 * fs/jfs.c: Likewise.
33060 * fs/minix.c: Likewise.
33061 * fs/ntfs.c: Likewise.
33062 * fs/ntfscomp.c: Likewise.
33063 * fs/reiserfs.c: Likewise.
33064 * fs/ufs.c: Likewise.
33065 * fs/xfs.c: Likewise.
33066 * gettext/gettext.c: Likewise.
33067 * include/grub/auth.h: Likewise.
33068 * kern/elf.c: Likewise.
33069 * kern/file.c: Likewise.
33070 * kern/ieee1275/init.c: Likewise.
33071 * kern/ieee1275/mmap.c: Likewise.
33072 * kern/ieee1275/openfw.c: Likewise.
33073 * kern/powerpc/dl.c: Likewise.
33074 * kern/sparc64/dl.c: Likewise.
33075 * lib/arg.c: Likewise.
33076 * loader/i386/bsd.c: Likewise.
33077 * loader/i386/bsdXX.c: Likewise.
33078 * loader/i386/efi/linux.c: Likewise.
33079 * loader/i386/efi/xnu.c: Likewise.
33080 * loader/i386/ieee1275/linux.c: Likewise.
33081 * loader/i386/linux.c: Likewise.
33082 * loader/i386/multiboot.c: Likewise.
33083 * loader/i386/pc/linux.c: Likewise.
33084 * loader/i386/pc/multiboot2.c: Likewise.
33085 * loader/i386/xnu.c: Likewise.
33086 * loader/ieee1275/multiboot2.c: Likewise.
33087 * loader/macho.c: Likewise.
33088 * loader/machoXX.c: Likewise.
33089 * loader/multiboot2.c: Likewise.
33090 * loader/multiboot_loader.c: Likewise.
33091 * loader/powerpc/ieee1275/linux.c: Likewise.
33092 * loader/sparc64/ieee1275/linux.c: Likewise.
33093 * loader/xnu.c: Likewise.
33094 * loader/xnu_resume.c: Likewise.
33095 * mmap/i386/pc/mmap.c: Likewise.
33096 * normal/menu_viewer.c: Likewise.
33097 * partmap/acorn.c: Likewise.
33098 * partmap/amiga.c: Likewise.
33099 * partmap/apple.c: Likewise.
33100 * script/lexer.c: Likewise.
33101 * term/gfxterm.c: Likewise.
33102 * term/i386/pc/serial.c: Likewise.
33103 * term/i386/pc/vga.c: Likewise.
33104 * term/ieee1275/ofconsole.c: Likewise.
33105 * term/terminfo.c: Likewise.
33106 * video/bitmap.c: Likewise.
33107 * video/efi_gop.c: Likewise.
33108 * video/efi_uga.c: Likewise.
33109 * video/fb/video_fb.c: Likewise.
33110 * video/i386/pc/vbe.c: Likewise.
33111 * video/readers/tga.c: Likewise.
33112 * video/video.c: Likewise.
33114 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33116 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33117 * commands/lspci.c: Likewise.
33118 * commands/probe.c: Likewise.
33119 * commands/xnu_uuid.c: Likewise.
33120 * conf/i386-coreboot.rmk: Likewise.
33121 * conf/i386-efi.rmk: Likewise.
33122 * conf/i386-ieee1275.rmk: Likewise.
33123 * conf/i386-pc.rmk: Likewise.
33124 * conf/powerpc-ieee1275.rmk: Likewise.
33125 * conf/sparc64-ieee1275.rmk: Likewise.
33126 * conf/x86_64-efi.rmk: Likewise.
33127 * fs/i386/pc/pxe.c: Likewise.
33128 * gettext/gettext.c: Likewise.
33129 * include/grub/efi/graphics_output.h: Likewise.
33130 * include/grub/i386/pc/memory.h: Likewise.
33131 * kern/env.c: Likewise.
33132 * kern/i386/qemu/startup.S: Likewise.
33133 * lib/i386/pc/biosnum.c: Likewise.
33134 * lib/i386/relocator.c: Likewise.
33135 * lib/i386/relocator_asm.S: Likewise.
33136 * lib/relocator.c: Likewise.
33137 * loader/i386/bsd.c: Likewise.
33138 * loader/i386/multiboot.c: Likewise.
33139 * loader/i386/pc/chainloader.c: Likewise.
33140 * loader/i386/xnu.c: Likewise.
33141 * loader/xnu.c: Likewise.
33142 * normal/main.c: Likewise.
33143 * normal/menu_text.c: Likewise.
33144 * util/getroot.c: Likewise.
33145 * util/grub-mkconfig_lib.in: Likewise.
33146 * util/grub.d/00_header.in: Likewise.
33147 * util/i386/pc/grub-mkimage.c: Likewise.
33148 * util/mkisofs/eltorito.c: Likewise.
33149 * util/mkisofs/exclude.h: Likewise.
33150 * util/mkisofs/hash.c: Likewise.
33151 * util/mkisofs/iso9660.h: Likewise.
33152 * util/mkisofs/joliet.c: Likewise.
33153 * util/mkisofs/mkisofs.c: Likewise.
33154 * util/mkisofs/mkisofs.h: Likewise.
33155 * util/mkisofs/multi.c: Likewise.
33156 * util/mkisofs/name.c: Likewise.
33157 * util/mkisofs/rock.c: Likewise.
33158 * util/mkisofs/tree.c: Likewise.
33159 * util/mkisofs/write.c: Likewise.
33160 * video/efi_gop.c: Likewise.
33162 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33164 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33167 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33169 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33170 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33172 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33174 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33175 (GRUB_MOD_INIT(memrw)): Update help line.
33177 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33179 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33180 Use grub_extcmd_t. All users updated.
33181 (options): New variable.
33182 (grub_cmd_read): Restructure for readability. Support "-v" option.
33183 (grub_cmd_write): Restructure for readability.
33185 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33187 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33189 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33191 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33192 with the actual contents of the correspondending make variable.
33193 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33194 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33195 specifying `*.lst' and `efiemu??.o'
33197 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33199 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33200 after function name.
33201 Noticed by Rene Engelhard <rene@debian.org>.
33203 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33205 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33206 (options): New variable.
33207 (iospace): Likewise.
33208 (grub_lspci_iter): List IO spaces if "-i" was given.
33209 (grub_cmd_lspci): Parse options.
33210 (GRUB_MOD_INIT(lspci)): Use extcmd.
33211 (GRUB_MOD_FINI(lspci)): Likewise.
33213 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33215 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33216 `function' keyword.
33217 Patch by Tony Mancill <tmancill@debian.org>.
33219 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33221 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33222 (grub_uhci_portstatus): Likewise.
33223 (grub_uhci_portstatus): Add necessary delay.
33224 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33226 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33228 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33229 (GRUB_MOD_INIT): Likewise.
33230 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33231 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33232 * commands/echo.c (options): Fix capitalizations and/or full stops.
33233 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33234 (enable_rom_area): Likewise.
33235 (GRUB_MOD_INIT): Likewise.
33236 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33237 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33238 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33239 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33240 * commands/hexdump.c (options): Likewise.
33241 * commands/i386/cpuid.c (options): Likewise.
33242 (GRUB_MOD_INIT): Likewise.
33243 * commands/i386/pc/drivemap.c (options): Likewise.
33244 (GRUB_MOD_INIT): Likewise.
33245 * commands/i386/pc/halt (options): Likewise.
33246 (GRUB_MOD_INIT): Likewise.
33247 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33248 * commands/i386/pc/pxecmd.c (options): Likewise.
33249 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33250 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33251 * commands/keystatus.c (options): Likewise.
33252 (GRUB_MOD_INIT): Likewise.
33253 * commands/loadenv.c (options): Likewise.
33254 * commands/ls.c (options): Likewise.
33255 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33256 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33257 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33258 * commands/parttool.c (helpmsg): Likewise.
33259 * commands/probe.c (options): Likewise.
33260 * commands/read.c (GRUB_MOD_INIT): Likewise.
33261 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33262 * commands/search.c (options): Likewise.
33263 * commands/sleep.c (options): Likewise.
33264 * commands/test.c (GRUB_MOD_INIT): Likewise.
33265 * commands/true.c (GRUB_MOD_INIT): Likewise.
33266 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33267 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33268 * lib/arg.c (help_options): Likewise.
33269 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33271 * po/POTFILES: Add `commands/loadenv.c'.
33273 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33275 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33276 instead of specifying them explicit.
33278 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33280 * NEWS: Add grub-probe support for GNU/Hurd.
33282 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33284 * NEWS: gettext was added after 1.97.
33286 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33288 * util/mkisofs/msdos_partition.h: New file (based on
33289 include/grub/msdos_partition.h).
33290 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33291 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33292 (ld_options, main): Recognize --protective-msdos-label.
33293 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33294 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33295 (padblock_write): If `use_protective_msdos_label' is set, patch a
33296 protective DOS-style label in the output image.
33298 * util/grub-mkrescue.in: Use --protective-msdos-label.
33300 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33302 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33305 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33307 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33309 (ld_options, main): Recognize `--embedded-boot'.
33310 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33312 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33313 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33314 (padblock_write): Likewise. Rewrite to support embedded boot image.
33316 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33317 for BIOS-based disk boot instead of only ElTorito.
33319 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33321 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33322 build (not needed for bootstrap).
33324 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33326 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33327 from i386-pc build (not needed for bootstrap).
33328 Rewrite a pair of strings.
33330 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33332 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33334 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33336 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33338 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33340 * kern/env.c (grub_env_context_open): Mark exported variable for
33343 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33345 * kern/env.c (grub_env_export): Create nonexistent variables before
33348 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33350 * include/grub/auth.h: Include `<grub/i18n.h>'.
33351 (GRUB_GET_PASSWORD): Gettextizze string.
33352 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33354 (grub_utf8_to_ucs4_alloc): Fix indentation.
33355 (grub_print_ucs4): Likewise.
33356 (grub_getstringwidth): Likewise.
33357 (print_message_indented): New declaration.
33358 * normal/auth.c: Include `<grub/i18n.h>'.
33359 (grub_auth_check_authentication): Gettexttize string.
33360 * normal/cmdline.c: Include `<grub/i18n.h>'.
33361 (grub_cmdline_get): Gettextizze.
33362 * normal/color.c: Include `<grub/i18n.h>'.
33363 (grub_parse_color_name_pair): Gettexttize strings.
33364 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33365 string (use `print_message_indented').
33366 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33367 `include/grub/normal.h'.
33368 (print_message_indented): Renamed to ...
33369 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33370 used in normal/main.c).
33371 (print_message): Use `grub_print_message_indented' instead of
33372 `print_message_indented'.
33373 (print_timeout): Likewise.
33374 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33375 (grub_normal_print_device_info): Gettexttize strings.
33376 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33378 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33380 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33381 of arguments. Return number of tokens and not arguments. All users
33384 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33386 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33387 non-MSDOS paritions.
33389 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33391 * include/grub/types.h (UNUSED): Removed since it conflicts with
33392 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33393 Reported by Grégoire Sutre.
33395 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33397 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33398 (grub_print_ucs4_alloc): Likewise.
33399 (grub_getstringwidth): Likewise.
33400 * normal/main.c (grub_normal_init_page): Gettextize version string.
33401 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33402 (getstringwidth): Renamed to ...
33403 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33404 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33405 (grub_print_ucs4): Remove `static' qualifer (now used in
33407 * po/POTFILES: Add normal/main.c.
33409 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33411 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33412 (print_message_indented): Add `margin_left' and `margin_right'
33414 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33416 (print_timeout): Use `print_message_indented' to print the message.
33417 Deletes `second_stage' parameter.
33418 (run_menu): Update `print_timeout' calls.
33420 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33422 Fix console palette on OpenFirmware.
33424 * term/ieee1275/ofconsole.c (MAX): Removed.
33425 (colors): Redone based on VGA palette.
33426 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33427 colors are supported.
33428 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33430 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33432 Fix potential EfiEmu double prepare.
33434 * efiemu/main.c (prepared): New variable
33435 (grub_efiemu_unload): Set prepare to '0'.
33436 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33438 set_virtual_address_map support.
33440 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33442 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33444 (grub_efiemu_crc32): Likewise.
33445 (grub_efiemu_crc64): Likewise.
33446 (grub_efiemu_set_virtual_address_map): Likewise.
33447 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33449 (grub_autoefi_set_virtual_address_map): Likewise.
33450 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33451 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33452 Restructure flow to accomodate it.
33453 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33454 (grub_efiemu_crc): Recompute CRC32.
33455 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33456 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33457 * efiemu/symbols.c (relocated_handle): New variable.
33458 (grub_efiemu_free_syms): Free relocated_handle.
33459 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33460 (grub_efiemu_write_sym_markers): New function.
33461 (grub_efiemu_set_virtual_address_map): Likewise.
33463 Newer XNU parameters.
33465 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33466 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33467 (grub_xnu_fill_devicetree): New prototype.
33468 (grub_xnu_heap_real_start): New variable.
33469 * loader/xnu.c (get_name_ptr): New function.
33470 (grub_xnu_load_driver): Fill namelen and name.
33472 64-bit xnu support.
33474 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33475 and 'loader/macho64.c'.
33476 * conf/i386-pc.rmk: Likewise.
33477 * conf/x86_64-efi.rmk: Likewise.
33478 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33479 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33480 * include/grub/macho.h (grub_macho_segment64): New structure.
33481 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33482 (grub_macho_size32): ... to this.
33483 (grub_macho32_get_entry_point): Renamed from ...
33484 (grub_macho_get_entry_point32): ... to this.
33485 (grub_macho_contains_macho64): New prototype.
33486 (grub_macho_size64): Likewise.
33487 (grub_macho_get_entry_point64): Likewise.
33488 (grub_macho32_load): Renamed from ...
33489 (grub_macho_load32): ... to this.
33490 (grub_macho32_filesize): Renamed from ...
33491 (grub_macho_filesize32): ... to this.
33492 (grub_macho32_readfile): Renamed from ...
33493 (grub_macho_readfile32): ... to this.
33494 (grub_macho_filesize64): New prototype.
33495 (grub_macho_readfile64): Likewise.
33496 (grub_macho_parse32): Likewise.
33497 (grub_macho_parse64): Likewise.
33498 * loader/macho.c: Split into ...
33499 * loader/machoXX.c: ... and this. Replace 32 with XX.
33500 * loader/macho32.c: New file.
33501 * loader/macho64.c: Likewise.
33502 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33503 (grub_cmd_xnu_kernel): Make 32-bit only.
33504 (grub_cmd_xnu_kernel64): New function.
33505 (grub_xnu_load_driver): Support Mach-O 64.
33506 (grub_cmd_xnu_mkext): Likewise.
33507 * util/grub.d/30_os-prober.in (osx_entry): New function.
33508 Generate entries for 64-bit boot too.
33510 Eliminate ad-hoc tree format in XNU and EfiEmu.
33512 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33513 * efiemu/pnvram.c: Rewritten to use environment variables.
33516 Inline utf16_to_utf8.
33518 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33519 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33521 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33523 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33524 * commands/usbtest.c (grub_usb_get_string): ... move here.
33525 (usb_print_str): Fix error handling.
33526 * include/grub/usb.h (grub_usb_get_string): Remove.
33528 UTF-8 to UTF-16 transformation.
33530 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33531 (charset_mod_SOURCES): New variable.
33532 (charset_mod_CFLAGS): Likewise.
33533 (charset_mod_LDFLAGS): Likewise.
33534 * include/grub/utf.h: New file.
33535 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33537 Support for device properties.
33539 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33540 (grub_xnu_devprop_device_header): Likewise.
33541 (grub_xnu_devprop_device_descriptor): Likewise.
33542 (grub_xnu_devprop_add_device): New prototype.
33543 (grub_xnu_devprop_remove_device): Likewise.
33544 (grub_xnu_devprop_remove_property): Likewise.
33545 (grub_xnu_devprop_add_property_utf8): Likewise.
33546 (grub_xnu_devprop_add_property_utf16): Likewise.
33547 (grub_cpu_xnu_init): Likewise.
33548 (grub_cpu_xnu_fini): Likewise.
33549 (grub_cpu_xnu_unload): Likewise.
33550 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33551 (property_descriptor): Likewise.
33552 (devices): New variable.
33553 (grub_xnu_devprop_remove_property): New function.
33554 (grub_xnu_devprop_add_device): Likewise.
33555 (grub_xnu_devprop_remove_device): Likewise.
33556 (grub_xnu_devprop_add_property): Likewise.
33557 (grub_xnu_devprop_add_property_utf8): Likewise.
33558 (grub_xnu_devprop_add_property_utf16): Likewise.
33559 (hextoval): Likewise.
33560 (grub_cpu_xnu_fill_devprop): Likewise.
33561 (grub_cmd_devprop_load): Likewise.
33562 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33563 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33564 (cmd_devprop_load): New variable.
33565 (grub_cpu_xnu_init): New function.
33566 (grub_cpu_xnu_fini): Likewise.
33567 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33568 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33569 (grub_cmd_xnu_devtree): Likewise.
33570 (hextoval): New function.
33571 (unescape): Likewise.
33572 (grub_xnu_fill_devicetree): Likewise.
33574 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33575 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33577 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33579 Workaround for broken ATI VBE.
33581 * video/i386/pc/vbe.c (last_set_mode): New variable.
33582 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33583 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33584 (grub_video_vbe_setup): Don't check for reserved flag.
33586 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33588 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33589 the `find' command.
33591 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33593 UUID support for HFS.
33595 * fs/hfs.c (grub_hfs_uuid): New function.
33596 (grub_hfs_fs): New value .uuid.
33597 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33599 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33601 Fix a segfault with parsing unknown long options.
33603 * util/grub-mkrelpath.c (options): Zero terminate it.
33605 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33607 * include/grub/misc.h (grub_puts): New declaration.
33608 (grub_puts_): Likewise.
33609 * kern/misc.c (grub_puts): New definition.
33610 (grub_puts_): Likewise.
33612 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33614 * util/grub-probe.c (probe): Improve error message.
33616 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33618 * loader/i386/multiboot_elfxx.c
33619 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33622 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33624 Relocator framework
33626 * loader/i386/xnu_helper.S: Removed. All users updated.
33627 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33628 (relocator_mod_SOURCES): New variable.
33629 (relocator_mod_CFLAGS): Likewise.
33630 (relocator_mod_LDFLAGS): Likewise.
33631 (relocator_mod_ASFLAGS): Likewise.
33632 * conf/x86_64.rmk: Likewise.
33633 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33634 (grub_multiboot_payload_entry_offset): Likewise.
33635 (grub_multiboot_forward_relocator): Likewise.
33636 (grub_multiboot_forward_relocator_end): Likewise.
33637 (grub_multiboot_backward_relocator): Likewise.
33638 (grub_multiboot_backward_relocator_end): Likewise.
33639 (grub_multiboot_payload_eip): New variable.
33640 (grub_multiboot_payload_orig): Likewise.
33641 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33642 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33643 * include/grub/i386/memory.h
33644 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33645 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33646 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33647 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33648 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33649 * include/grub/i386/relocator.h: New file.
33650 * include/grub/x86_64/relocator.h: Likewise.
33651 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33652 (XNU_RELOCATOR): New macro.
33653 (grub_xnu_launcher_start): Remove.
33654 (grub_xnu_launcher_end): Likewise.
33655 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33656 (grub_xnu_heap_real_start): Remove.
33657 (grub_xnu_heap_start): Change to void *. All users updated.
33658 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33659 * lib/i386/relocator.c: New file.
33660 * lib/i386/relocator_asm.S: Likewise.
33661 * lib/i386/relocator_backward.S: Likewise.
33662 * lib/mips/relocator.c: Likewise.
33663 * lib/mips/relocator_asm.S: Likewise.
33664 * lib/relocator.c: Likewise.
33665 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33667 (playground): Likewise.
33668 (grub_multiboot_payload_orig): New variable.
33669 (grub_multiboot_payload_dest): Likewise.
33670 (grub_multiboot_payload_size): Likewise.
33671 (grub_multiboot_payload_eip): Likewise.
33672 (grub_multiboot_payload_esp): Likewise.
33673 (grub_multiboot_boot): Use grub_relocator32_boot.
33674 (grub_multiboot_unload): Free relocators.
33675 (grub_multiboot): Setup stack. Use relocators.
33676 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33677 (grub_multiboot_load_elfXX): Use relocators.
33678 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33679 (grub_multiboot_payload_size): Likewise.
33680 (grub_multiboot_payload_dest): Likewise.
33681 (grub_multiboot_payload_entry_offset): Likewise.
33682 (grub_multiboot_forward_relocator): Likewise.
33683 (grub_multiboot_backward_relocator): Likewise.
33684 (grub_multiboot_real_boot): Likewise.
33685 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33686 (grub_xnu_entry_point): Likewise.
33687 (grub_xnu_arg1): Likewise.
33688 (grub_xnu_stack): Likewise.
33689 (grub_xnu_launch): Removed.
33690 (grub_xnu_boot_resume): New function.
33691 (grub_xnu_boot): Use relocators.
33692 * loader/i386/xnu_helper.S: Removed.
33693 * loader/xnu.c (grub_xnu_heap_start): New variable.
33694 (grub_xnu_heap_size): Likewise.
33695 (grub_xnu_heap_malloc): Use relocators.
33696 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33698 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33700 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33703 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33705 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33706 GRUB_ERR_NONE before calling grub_env_set.
33708 2009-12-12 Robert Millan <rmh@aybabtu.com>
33710 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33711 * genmk.rb (video): New variable.
33712 (CLEANFILES, VIDEOFILES): Add #{video}.
33713 (#{video}): New target rule.
33714 * genvideolist.sh: New file.
33715 * Makefile.in (pkglib_DATA): Add video.lst.
33716 (video.lst): New target rule.
33717 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33719 * util/grub.d/30_os-prober.in: Replace `vbe' with
33720 ${GRUB_VIDEO_BACKEND}.
33722 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33724 * THANKS: Add David Miller.
33726 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33728 libpciaccess support.
33730 * Makefile.in (LIBPCIACCESS): New variable.
33731 (enable_grub_emu_pci): Likewise.
33732 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33733 util/pci.c and commands/lspci.c.
33734 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33735 * configure.ac (grub-emu-pci): New option.
33736 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33737 (grub_pci_device_unmap_range): Likewise.
33738 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33739 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33740 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33741 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33742 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33743 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33744 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33745 * include/grub/pciutils.h: New file.
33746 * util/pci.c: Likewise.
33748 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33750 * util/misc.c: Don't include <errno.h> twice.
33752 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33754 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33755 name in an error message.
33756 (grub_biosdisk_rw): Likewise.
33758 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33760 Eliminate NTFS 4Gib barrier.
33762 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33763 (read_run_data): Likewise.
33764 (grub_ntfs_read_run_list): Likewise.
33765 (grub_ntfs_read_block): Likewise.
33766 (grub_ntfs_iterate_dir): Likewise.
33767 (read_mft): Likewise.
33768 (read_data): Likewise.
33770 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33771 to avoid 64-bit division
33772 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33773 (grub_ntfs_rlst): Use grub_disk_addr_t.
33775 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33777 Eliminate grub-fstest 4Gib barrier.
33779 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33780 (read_file): Fix error reporting.
33782 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33784 Eliminate hexdump 4Gib barrier.
33786 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33787 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33789 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33791 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33794 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33796 Remove miscellaneous files in distclean target.
33798 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33800 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33802 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33803 if they're already set. This resolves the conflict between my
33804 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33805 fixing the --grub-probe option again.
33806 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33807 change on 2009-10-06, so that we now once again source
33808 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33810 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33812 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33813 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33814 `util/devicemap.c'.
33816 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33818 * include/grub/misc.h (grub_printf_): New declaration.
33819 * kern/misc.c (grub_printf_): New definition.
33820 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33821 instead of `grub_printf' and `_'.
33822 * normal/menu_entry.c (store_completion): Likewise.
33824 (grub_menu_entry_run): Likewise.
33825 * normal/menu_text.c (grub_wait_after_message): Likewise.
33826 (notify_booting): Likewise.
33827 (notify_fallback): Likewise.
33828 (notify_execution_failure): Likewise.
33830 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33832 * configure.ac: Check for vasprintf.
33833 * util/misc.c (asprintf): Move allocation from here ...
33834 (vasprintf): ... to here. New function.
33835 (xasprintf): New function.
33836 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33838 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33839 * util/grub-mkfont.c (write_font): Likewise.
33840 * util/grub-probe.c (probe): Likewise.
33841 * util/hostdisk.c (make_device_name): Likewise.
33843 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33845 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33846 anything even prefixed with 'cdrom' as a cdrom.
33848 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33850 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33853 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33855 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33856 grub_gettext_msg_list.
33857 (grub_gettext_gettranslation_from_position): Return const char *
33859 (grub_gettext_translate): Add the translated strings into a list,
33860 returns from the list if existing there.
33861 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33862 (grub_gettext_delete_list): Delete the list.
33863 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33864 lang environment variable is changed.
33865 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33867 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33869 Rename kernel.mod to kernel.img.
33871 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33872 (kernel_mod_EXPORTS): Rename to ...
33873 (kernel_img_EXPORTS): ... this.
33874 (kernel_mod_SOURCES): Rename to ...
33875 (kernel_img_SOURCES): ... this.
33876 (kernel_mod_HEADERS): Rename to ...
33877 (kernel_img_HEADERS): ... this. All users updated.
33878 (kernel_mod_CFLAGS): Rename to ...
33879 (kernel_img_CFLAGS): ... this.
33880 (kernel_mod_ASFLAGS): Rename to ...
33881 (kernel_img_ASFLAGS): ... this.
33882 (kernel_mod_LDFLAGS): Rename to ...
33883 (kernel_img_LDFLAGS): ... this.
33884 * conf/x86_64-efi.rmk: Likewise.
33885 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33886 (read_kernel_image): ... this. All users updated.
33887 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33889 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33891 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33892 (print_spaces): New function.
33893 (grub_print_ucs4): New function.
33894 (getstringwidth): New function.
33895 (print_message_indented): New function.
33896 (print_message): Gettexttize strings using print_message_indented.
33897 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33899 (get_entry_number): Gettextize and uses dynamic terminal width.
33900 (notify_booting, notify_fallback, notify_execution_failure):
33902 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33905 (grub_menu_entry_run): Likewise.
33906 * PO/POTFILES: Add normal/menu_entry.c.
33908 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33910 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33912 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33914 * util/grub-install.in: Install gettext .mo files.
33915 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33917 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33919 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33922 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33924 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33925 non-firmware-dependant one in realmode.S takes precedence.
33927 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33929 * commands/halt.c: Replace misc arch-specific headers with
33931 * commands/reboot.c: Likewise.
33932 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33934 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33935 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33936 (kernel_img_SOURCES): ... to here.
33938 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33939 * include/grub/i386/pc/init.h: Likewise.
33940 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33941 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33943 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33945 * include/grub/i386/halt.h: Remove.
33946 * include/grub/i386/reboot.h: Likewise.
33948 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33950 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33952 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33953 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33954 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33956 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33957 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33958 (usage): Add missing comma in printf.
33960 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33962 Use the same reboot approach on i386 coreboot and qemu as we do on
33965 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33966 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33967 * kern/i386/reboot.c: Remove.
33968 * include/grub/i386/reboot.h (grub_reboot): Export function.
33969 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33970 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33971 0xf000:0xfff0 instead of 0xffff:0x0000.
33972 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33973 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33975 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33977 Fix $srcdir != $objdir build.
33979 * Makefile.in (po/%.po): Rewrite as ...
33980 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33982 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33984 Fix GNU/Hurd grub-install crash.
33985 * util/grub-probe.c (probe): Try to access `path' only when it is not
33988 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33990 Correct module naming.
33992 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33993 (GRUB_MOD_INIT(efi_uga)): ... to this
33994 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33995 (GRUB_MOD_FINI(efi_uga)): ... to this
33996 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33997 (GRUB_MOD_INIT(efi_gop)): ... to this
33998 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33999 (GRUB_MOD_FINI(efi_gop)): ... to this
34001 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
34003 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
34005 (usage): Translate `arg' strings using gettext().
34006 Thanks to Jordi Mallach for the suggestion.
34008 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34010 GOP support. Based on patch from Bean
34011 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34013 * video/efi_gop.c: New file.
34014 * include/grub/efi/graphics_output.h: Likewise.
34015 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34016 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34018 * conf/x86_64-efi.rmk: Likewise.
34020 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34022 Rename efi_fb to efi_uga.
34024 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34026 (efi_fb_mod_SOURCES): Rename this ...
34027 (efi_uga_mod_SOURCES): ... to this.
34028 (efi_fb_mod_CFLAGS): Rename this ...
34029 (efi_uga_mod_CFLAGS): ... to this.
34030 (efi_fb_mod_LDFLAGS): Rename this ...
34031 (efi_uga_mod_LDFLAGS): ... to this.
34032 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34034 (efi_fb_mod_SOURCES): Rename this ...
34035 (efi_uga_mod_SOURCES): ... to this.
34036 (efi_fb_mod_CFLAGS): Rename this ...
34037 (efi_uga_mod_CFLAGS): ... to this.
34038 (efi_fb_mod_LDFLAGS): Rename this ...
34039 (efi_uga_mod_LDFLAGS): ... to this.
34040 * video/efi_fb.c: Move this ...
34041 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34043 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34045 * po/README: New file. Explain our PO file workflow.
34047 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34049 * po/ChangeLog: Remove. Move relevant entries back to ...
34050 * ChangeLog: ... here.
34051 * po/ca.po: Remove (now handled by TLP).
34052 * po/id.po: Likewise.
34053 * po/zh_CN.po: Likewise.
34054 * Makefile.in (LINGUAS): Initialize in a way that supports
34057 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34059 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34060 reliing on po/LINGUAS.
34061 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34062 (po/%.po): ... this.
34064 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34066 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34067 (main): Use `program_name' instead of nonexistent `progname'.
34069 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34071 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34072 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34074 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34076 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34078 * conf/i386-efi.rmk: Likewise.
34079 * conf/i386-ieee1275.rmk: Likewise.
34080 * conf/powerpc-ieee1275.rmk: Likewise.
34081 * conf/sparc64-ieee1275.rmk: Likewise.
34082 * conf/x86_64-efi.rmk: Likewise.
34084 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34086 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34088 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34090 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34092 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34094 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34095 (grub_mkdevicemap_SOURCES): New variable.
34096 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34097 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34098 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34099 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34100 (grub_mkdevicemap_SOURCES): Remove.
34101 * conf/i386-efi.rmk: Likewise.
34102 * conf/i386-ieee1275.rmk: Likewise.
34103 * conf/i386-pc.rmk: Likewise.
34104 * conf/powerpc-ieee1275.rmk: Likewise.
34105 * conf/sparc64-ieee1275.rmk: Likewise.
34106 * conf/x86_64-efi.rmk: Likewise.
34107 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34108 (usage): Fix strings to use `program_name'.
34109 (main): Initialize gettext.
34110 * util/grub-editenv.c: Likewise.
34111 * util/grub-emu.c: Likewise.
34112 * util/grub-fstest.c: Likewise.
34113 * util/grub-mkdevicemap.c: Likewise.
34114 * util/grub-mkfont.c: Likewise.
34115 * util/grub-mkrelpath.c: Likewise.
34116 * util/grub-pe2elf.c: Likewise.
34117 * util/grub-probe.c: Likewise.
34118 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34119 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34120 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34122 * util/misc.c: Include `"progname.h"'.
34123 (progname): Remove variable.
34124 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34126 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34128 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34129 printf and print a newline after the menuentry header line.
34130 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34132 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34134 autoconf >= 2.60 support $(localedir).
34136 * INSTALL: Note that autoconf 2.60 is required.
34137 * configure.ac (AC_PREREQ): Bump to 2.60.
34138 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34139 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34141 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34143 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34146 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34148 * normal/main.c (grub_normal_read_line): Fix off-by-one
34151 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34153 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34154 "parser.grub" in grub_command_execute() call.
34156 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34158 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34159 * conf/i386-efi.rmk: Likewise.
34160 * conf/i386-ieee1275.rmk: Likewise.
34161 * conf/i386-pc.rmk: Likewise.
34162 * conf/powerpc-ieee1275.rmk: Likewise.
34163 * conf/sparc64-ieee1275.rmk: Likewise.
34164 * conf/x86_64-efi.rmk: Likewise.
34165 * gettext/gettex.c: Include <grub/i18n.h>.
34166 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34168 * include/grub/i18n.h: ... to here
34169 * include/grub/i18n.h: ... to here.
34170 * kern/misc.c: Include <grub/i18n.h>
34171 (grub_gettext_dummy): Move above user.
34173 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34175 * util/Makefile.in (install-local): Convert a `for' into a normal
34178 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34180 * autogen.sh: Add automake call.
34181 * config.guess: Remove.
34182 * config.sub: Likewise.
34183 * install-sh: Likewise.
34185 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34187 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34189 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34191 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34192 function to a normal shell `for'.
34194 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34196 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34198 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34200 * util/grub-mkrelpath.c: New file.
34201 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34202 (grub_mkrelpath_SOURCES): New variable.
34203 * include/grub/util/misc.h: New function prototype.
34204 * util/misc.c (make_system_path_relative_to_its_root): New function.
34206 * util/grub-mkconfig_lib.in (bindir): New variable.
34207 (grub_mkrelpath): Likewise.
34208 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34210 * util/probe.c (probe): Make the file path relative to its root.
34211 Change a info message to use the GRUB path. Enable again the
34212 check if we can read the file with GRUB facilities.
34214 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34217 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34219 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34222 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34224 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34227 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34229 * util/getroot.c (grub_util_is_dmraid): New function.
34230 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34231 devices as normal ones, not as LVM.
34233 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34235 * conf/common.rmk: Add grub-gettext_lib target and updates
34236 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34238 * gettext/gettext.c: New file. (Reads mo files).
34239 * include/grub/file.h (grub_file_pread): New prototype.
34240 * include/grub/i18n.h (_): New prototype.
34241 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34243 * kern/misc.c (grub_gettext_dummy): New function.
34244 * normal/menu_text.c: Include <grub/i18n.h>.
34245 * normal/menu_text.c (print_timeout): Gettexttize string.
34246 * normal/menu_text.c (print_message): Gettexttize string.
34247 * po/POTFILES: Add `normal/menu_text.c'.
34248 * po/ca.po: Add new translations.
34249 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34250 gettext module and defines locale_dir and lang in grub.cfg.
34251 * NEWS: Add gettext support.
34253 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34255 * util/hostdisk.c: Include `<grub/i18n.h>'.
34256 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34257 (make_device_name): Rewrite using asprintf.
34258 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34259 (find_system_device): If a device is not found, generate one just
34260 by reusing the OS path name.
34261 (read_device_map): Make it permissible for device.map not to exist.
34263 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34265 * script/sh/execute.c: Move from here ...
34266 * script/execute.c: ... to here. Update all users.
34267 * script/sh/function.c: Move from here ...
34268 * script/function.c: ... to here. Update all users.
34269 * script/sh/lexer.c: Move from here ...
34270 * script/lexer.c: ... to here. Update all users.
34271 * script/sh/main.c: Move from here ...
34272 * script/main.c: ... to here. Update all users.
34273 * script/sh/parser.y: Move from here ...
34274 * script/parser.y: ... to here. Update all users.
34275 * script/sh/script.c: Move from here ...
34276 * script/script.c: ... to here. Update all users.
34278 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34280 * configure.ac: Detect all `emu' platforms. Define
34281 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34282 --enable-grub-emu logic. Disable include/grub/machine
34283 symlink on `emu' platforms.
34285 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34286 * gensymlist.sh.in: Likewise.
34288 * include/grub/i386/coreboot/machine.h: Remove file.
34289 * include/grub/i386/efi/machine.h: Likewise.
34290 * include/grub/i386/ieee1275/machine.h: Likewise.
34291 * include/grub/i386/pc/machine.h: Likewise.
34292 * include/grub/i386/qemu/machine.h: Likewise.
34293 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34294 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34295 * include/grub/x86_64/efi/machine.h: Likewise.
34297 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34298 * commands/halt.c: Likewise.
34299 * commands/reboot.c: Likewise.
34300 * include/grub/autoefi.h: Likewise.
34301 * include/grub/i386/at_keyboard.h: Likewise.
34302 * include/grub/i386/kernel.h: Likewise.
34303 * include/grub/i386/loader.h: Likewise.
34304 * include/grub/i386/pc/memory.h: Likewise.
34305 * kern/dl.c: Likewise.
34306 * kern/i386/coreboot/init.c: Likewise.
34307 * loader/i386/bsd.c: Likewise.
34308 * loader/i386/linux.c: Likewise.
34309 * loader/multiboot_loader.c: Likewise.
34310 * term/i386/pc/serial.c: Likewise.
34311 * term/usb_keyboard.c: Likewise.
34313 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34314 `<grub/machine/machine.h>'
34315 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34316 * util/misc.c: Remove `<grub/machine/machine.h>' and
34317 `<grub/machine/time.h>'.
34319 * Makefile.in (enable_grub_emu): Remove variable.
34320 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34322 * conf/any-emu.rmk: New file.
34323 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34324 (grub_emu_init.c): Move from here ...
34325 * conf/any-emu.rmk: ... to here.
34327 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34328 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34329 * conf/any-emu.rmk: ... to here.
34331 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34333 * include/grub/parser.h (grub_parser_register): Document need
34334 of `name' parameter.
34335 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34336 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34339 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34341 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34343 * include/grub/i18n.h (N_): New macro.
34344 * util/mkisofs/mkisofs.h: Likewise.
34345 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34347 (usage): Use gettext() to translate help strings when printing them.
34349 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34351 Based on patch from Bean
34352 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34354 * video/efi_fb.c: New file.
34355 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34356 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34358 * conf/x86_64-efi.rmk: Likewise.
34360 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34362 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34363 * util/i386/pc/grub-setup.c: Likewise.
34365 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34367 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34369 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34370 file_get_storage_info to implement grub_guess_root_device.
34372 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34374 * Makefile.in (target): Use make's builtin $(shell) function
34375 instead of calling directly $(SHELL) to create the locale directories,
34376 inside the $(foreach) function.
34378 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34380 * util/grub-mkrescue.in: Print an error and usage if output option
34381 has not been given.
34383 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34385 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34386 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34387 root and /boot are on different devices.
34389 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34391 Fix build for srcdir != objdir.
34393 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34394 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34396 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34397 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34398 reference for input.
34400 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34402 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34403 or hardlinking it). Remove -J option, Joliet is not compatible with
34404 multiple source directories.
34406 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34407 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34409 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34410 (process_input_dir): New function. Process an arbitrary input
34412 Misc adjustments to support both "override mode" and system-wide mode.
34414 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34416 * configure.ac (UNIFONT_BDF): Rename to ...
34417 (FONT_SOURCE): ... this. Update all users.
34419 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34421 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34422 to the list of unifont files to look for.
34424 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34426 Patch from Joe Auricchio <jauricchio@gmail.com>
34427 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34428 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34429 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34431 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34433 * Makefile.in (install-local): Add a missing backslash.
34435 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34437 * include/grub/x86_64/io.h: New file.
34439 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34441 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34442 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34443 Include `"progname.h"'.
34444 (main): Initialize gettext.
34445 * util/i386/pc/grub-setup.c: Gettexttize.
34446 * util/i386/pc/grub-mkimage.c: Likewise.
34448 * Makefile.in (po/*.po): Redefine as ...
34449 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34451 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34453 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34455 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34456 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34457 (program_name): Remove.
34458 (main): Initialize gettext support.
34459 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34460 Include `<libintl.h>'.
34463 * util/mkisofs/eltorito.c: Gettexttize.
34464 * util/mkisofs/joliet.c: Likewise.
34465 * util/mkisofs/mkisofs.c: Likewise.
34466 * util/mkisofs/multi.c: Likewise.
34467 * util/mkisofs/rock.c: Likewise.
34468 * util/mkisofs/tree.c: Likewise.
34469 * util/mkisofs/write.c: Likewise.
34471 * po/POTFILES: Update with new files.
34473 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34475 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34476 * util/mkisofs/iso9660.h: Likewise.
34477 * util/mkisofs/joliet.c: Likewise.
34478 * util/mkisofs/mkisofs.c: Likewise.
34479 * util/mkisofs/mkisofs.h: Likewise.
34480 * util/mkisofs/rock.c: Likewise.
34481 * util/mkisofs/tree.c: Likewise.
34482 * util/mkisofs/write.c: Likewise.
34484 * util/mkisofs/eltorito.c (rcsid): Remove.
34485 * util/mkisofs/hash.c: Likewise.
34486 * util/mkisofs/joliet.c: Likewise.
34487 * util/mkisofs/name.c: Likewise.
34488 * util/mkisofs/rock.c: Likewise.
34489 * util/mkisofs/tree.c: Likewise.
34490 * util/mkisofs/write.c: Likewise.
34492 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34494 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34495 instead of static allocation.
34496 * util/mkisofs/match.h: Likewise.
34498 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34500 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34501 and `util/grub.d/10_linux.in'.
34502 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34503 translatable Shell files.
34505 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34507 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34509 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34511 * INSTALL: Document Automake is needed for bootstrap.
34512 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34513 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34514 Add gettext initialization.
34515 (kfreebsd_entry): Make menuentry output translatable.
34517 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34519 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34520 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34521 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34522 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34523 (LINGUAS): Auto-generate using `po/LINGUAS'.
34524 * po/LINGUAS: New file.
34526 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34528 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34530 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34531 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34532 bindtextdomain() calls for gettext initialization.
34534 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34536 * gnulib/progname.c: New file (imported from Gnulib).
34537 * gnulib/progname.h: Likewise.
34538 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34539 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34540 (usage): Replace `progname' with `program_name'.
34541 (main): Use set_program_name() for program name initialization.
34543 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34545 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34547 * Makefile.in (CPPFLAGS): ... to here.
34549 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34551 * aclocal.m4: Move from here ...
34552 * acinclude.m4: ... to here.
34553 * autogen.sh: Add call to `aclocal'.
34554 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34556 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34558 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34559 (LINGUAS): New variable.
34560 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34561 (install-local): Install MO files.
34562 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34563 * include/grub/i18n.h: New file.
34564 * po/POTFILES: New file.
34565 * po/ca.po: New file.
34566 * util/grub.d/10_linux.in (bindir): New variable.
34567 Add gettext initialization.
34568 (linux_entry): Make menuentry output translatable.
34569 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34570 (usage): Make --help output translatable.
34571 (main): Initialize gettext.
34573 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34575 * import_gcry.py: New file (written by Vladimir with minor
34577 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34579 * INSTALL: Document that Python is required for bootstrap.
34581 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34583 Import ciphers from libgcrypt 1.4.4.
34585 * lib/libgcrypt/cipher/ChangeLog
34586 * lib/libgcrypt/cipher/ac.c
34587 * lib/libgcrypt/cipher/arcfour.c
34588 * lib/libgcrypt/cipher/bithelp.h
34589 * lib/libgcrypt/cipher/blowfish.c
34590 * lib/libgcrypt/cipher/camellia-glue.c
34591 * lib/libgcrypt/cipher/camellia.c
34592 * lib/libgcrypt/cipher/camellia.h
34593 * lib/libgcrypt/cipher/cast5.c
34594 * lib/libgcrypt/cipher/cipher.c
34595 * lib/libgcrypt/cipher/crc.c
34596 * lib/libgcrypt/cipher/des.c
34597 * lib/libgcrypt/cipher/dsa.c
34598 * lib/libgcrypt/cipher/ecc.c
34599 * lib/libgcrypt/cipher/elgamal.c
34600 * lib/libgcrypt/cipher/hash-common.c
34601 * lib/libgcrypt/cipher/hash-common.h
34602 * lib/libgcrypt/cipher/hmac-tests.c
34603 * lib/libgcrypt/cipher/md.c
34604 * lib/libgcrypt/cipher/md4.c
34605 * lib/libgcrypt/cipher/md5.c
34606 * lib/libgcrypt/cipher/primegen.c
34607 * lib/libgcrypt/cipher/pubkey.c
34608 * lib/libgcrypt/cipher/rfc2268.c
34609 * lib/libgcrypt/cipher/rijndael-tables.h
34610 * lib/libgcrypt/cipher/rijndael.c
34611 * lib/libgcrypt/cipher/rmd.h
34612 * lib/libgcrypt/cipher/rmd160.c
34613 * lib/libgcrypt/cipher/rsa.c
34614 * lib/libgcrypt/cipher/seed.c
34615 * lib/libgcrypt/cipher/serpent.c
34616 * lib/libgcrypt/cipher/sha1.c
34617 * lib/libgcrypt/cipher/sha256.c
34618 * lib/libgcrypt/cipher/sha512.c
34619 * lib/libgcrypt/cipher/tiger.c
34620 * lib/libgcrypt/cipher/twofish.c
34621 * lib/libgcrypt/cipher/whirlpool.c
34623 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34625 Fix build for systems without error().
34627 * gnulib/error.c: New file (imported from Gnulib).
34628 * gnulib/error.h: Likewise.
34629 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34630 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34631 (this variable is now used by error()).
34633 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34635 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34636 instead of relying that char is signed.
34638 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34640 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34641 blocksize different from specified.
34642 (grub_pxefs_read): Likewise.
34644 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34646 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34648 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34649 (grub_ata_readwrite): Likewise. Update 2 format strings.
34650 (grub_atapi_read): Likewise.
34652 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34653 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34654 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34655 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34656 (ata_mod_LDFLAGS): Move from here ...
34657 * conf/i386.rmk: ... to here ...
34658 * conf/x86_64-efi.rmk: ... and here.
34659 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34660 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34662 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34664 Relicense multiboot.h, with RMS' blessing.
34666 * include/multiboot.h: Change to X11 license.
34668 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34670 Support --version in grub-mkisofs.
34672 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34673 (OPTION_VERSION): New macro.
34674 (ld_options): Recognize --version.
34675 (usage): Move `program_name' from here ...
34676 (program_name): ... to here. Add `static' qualifier.
34677 (main): Recognize `OPTION_VERSION'.
34679 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34681 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34682 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34684 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34686 Fix help2man generation for mkisofs.
34688 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34689 (usage): Send output to stdout (rather than stderr).
34691 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34693 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34694 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34695 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34696 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34697 (bin_SCRIPTS): Add `grub-mkfloppy'.
34698 (grub_mkfloppy_SOURCES): New variable.
34700 * util/grub-mkrescue.in: New file.
34701 * util/i386/pc/grub-mkfloppy.in: New file.
34703 * util/i386/coreboot/grub-mkrescue.in: Remove.
34704 * util/i386/pc/grub-mkrescue.in: Remove.
34706 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34708 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34710 * include/multiboot.h (struct multiboot_header): ... to here. Update
34712 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34714 * include/multiboot.h (struct multiboot_info): ... to here. Update
34716 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34718 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34720 * include/grub/multiboot.h (struct grub_mod_list): Move
34722 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34725 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34727 * include/multiboot2.h (multiboot_word): Rename from this ...
34728 (multiboot2_word): ... to this. Update all users.
34729 (multiboot_header): Rename from this ...
34730 (multiboot2_header): ... to this. Update all users.
34731 (multiboot_tag_header): Rename from this ...
34732 (multiboot2_tag_header): ... to this. Update all users.
34733 (multiboot_tag_start): Rename from this ...
34734 (multiboot2_tag_start): ... to this. Update all users.
34735 (multiboot_tag_name): Rename from this ...
34736 (multiboot2_tag_name): ... to this. Update all users.
34737 (multiboot_tag_module): Rename from this ...
34738 (multiboot2_tag_module): ... to this. Update all users.
34739 (multiboot_tag_memory): Rename from this ...
34740 (multiboot2_tag_memory): ... to this. Update all users.
34741 (multiboot_tag_unused): Rename from this ...
34742 (multiboot2_tag_unused): ... to this. Update all users.
34743 (multiboot_tag_end): Rename from this ...
34744 (multiboot2_tag_end): ... to this. Update all users.
34746 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34748 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34749 this platform we should support Multiboot1 first.
34751 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34752 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34753 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34755 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34757 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34758 of write calls (converting them to fwrite() if they aren't already).
34759 (get_torito_desc): Likewise.
34760 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34762 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34764 * util/i386/pc/grub-install.in: Move from here ...
34765 * util/grub-install.in: ... to here. Update all users.
34767 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34769 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34771 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34773 Support for El Torito without floppy emulation.
34775 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34776 (init_boot_catalog): Improve error handling.
34777 (get_torito_desc): Don't use floppy emulation unless requested by
34778 user. Patch boot information table when requested via
34779 `-boot-info-table'.
34780 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34781 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34782 (use_boot_info_table): New variables.
34783 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34784 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34785 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34786 `--eltorito-emul-floppy'.
34787 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34788 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34789 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34790 (use_boot_info_table, get_731): New prototypes.
34791 * util/mkisofs/write.c (get_731): New function.
34793 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34795 Fix the generation of the man page.
34797 * util/pc/i386/grub-install.in: Source
34798 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34800 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34802 Large file support for grub-mkisofs.
34804 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34805 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34806 (session_start): Upgrade type to `uint64_t'. Update all users.
34807 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34808 (struct directory_entry): Upgrade type of `starting_block' and
34809 `size' to `uint64_t'. Update all users.
34810 (struct deferred): Remove unused structure.
34811 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34813 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34814 file is larger than `UINT32_MAX'.
34815 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34816 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34818 (struct deferred_write): Upgrade type of `extent' and `size' to
34819 `uint64_t'. Update all users.
34820 (last_extent_written): Upgrade type to `uint64_t'. Update all
34822 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34823 Update all users. Upgrade type of `remain' to `int64_t' and
34824 `use' to `size_t'. Use error() to handle fread() errors.
34825 (write_files): Rely on write_one_file() rather than calling
34826 xfwrite() directly.
34828 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34830 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34832 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34834 * util/mkisofs/fnmatch.c: Remove.
34835 * util/mkisofs/getopt1.c: Likewise.
34836 * util/mkisofs/getopt.c: Likewise.
34837 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34838 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34839 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34840 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34841 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34843 * configure.ac: Detect `mingw32msvc' host_os.
34844 Check for lstat(), getuid() and getgid().
34846 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34847 instances of `u_char' with `uint8_t'.
34849 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34850 [!HAVE_GETUID] (getuid): New function (stub).
34851 [!HAVE_GETGID] (getgid): Likewise.
34852 [!HAVE_LSTAT] (lstat): Likewise.
34853 [!S_IROTH] (S_IROTH): New macro (dummy).
34854 [!S_IRGRP] (S_IRGRP): Likewise.
34856 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34858 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34859 conditional expression).
34861 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34863 Import from Gnulib.
34865 * gnulib/fnmatch.c: New file.
34866 * gnulib/fnmatch.h: Likewise.
34867 * gnulib/fnmatch_loop.c: Likewise.
34868 * gnulib/getopt.c: Likewise.
34869 * gnulib/getopt.h: Likewise.
34870 * gnulib/getopt1.c: Likewise.
34871 * gnulib/getopt_int.h: Likewise.
34872 * gnulib/gettext.h: Likewise.
34874 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34876 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34877 * normal/handler.c (read_handler_list): Likewise.
34879 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34883 * kern/command.c (grub_register_command_prio): Use
34884 grub_zalloc() instead of explicitly zeroing data.
34885 * kern/list.c: Include `<grub/mm.h>'.
34886 (grub_named_list_find): Replace `0' with `NULL'.
34887 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34888 (fs_module_list): Change type to `grub_named_list_t'. Update all
34890 * normal/dyncmd.c (read_command_list): Add space between function
34891 call and parenthesis.
34892 * normal/handler.c (read_handler_list): Likewise.
34894 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34896 * normal/auth.c (punishment_delay): Moved from here ...
34897 (grub_auth_strcmp): ... to here (inside function).
34899 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34901 * include/grub/list.h (struct grub_named_list): Remove `const'
34902 qualifier from `name'.
34903 (struct grub_prio_list): Likewise.
34905 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34907 * normal/auth.c: Include `<grub/time.h>'.
34908 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34910 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34912 * normal/auth.c (punishment_delay): New variable.
34913 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34914 (grub_auth_check_authentication): Punish failed login attempts with
34915 an incremental (2^N) delay.
34917 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34919 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34920 path with $(srcdir).
34922 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34924 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34926 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34928 * util/i386/coreboot/grub-mkrescue.in: New file.
34929 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34932 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34933 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34934 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34936 * util/mkisofs/defaults.h: New file.
34937 * util/mkisofs/eltorito.c: Likewise.
34938 * util/mkisofs/exclude.h: Likewise.
34939 * util/mkisofs/fnmatch.c: Likewise.
34940 * util/mkisofs/getopt.c: Likewise.
34941 * util/mkisofs/getopt1.c: Likewise.
34942 * util/mkisofs/hash.c: Likewise.
34943 * util/mkisofs/include/fctldefs.h: Likewise.
34944 * util/mkisofs/include/mconfig.h: Likewise.
34945 * util/mkisofs/include/prototyp.h: Likewise.
34946 * util/mkisofs/include/statdefs.h: Likewise.
34947 * util/mkisofs/iso9660.h: Likewise.
34948 * util/mkisofs/joliet.c: Likewise.
34949 * util/mkisofs/match.c: Likewise.
34950 * util/mkisofs/match.h: Likewise.
34951 * util/mkisofs/mkisofs.c: Likewise.
34952 * util/mkisofs/mkisofs.h: Likewise.
34953 * util/mkisofs/multi.c: Likewise.
34954 * util/mkisofs/name.c: Likewise.
34955 * util/mkisofs/rock.c: Likewise.
34956 * util/mkisofs/tree.c: Likewise.
34957 * util/mkisofs/write.c: Likewise.
34959 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34961 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34964 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34966 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34967 `grub-mkimage' (and use $0 when possible).
34969 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34971 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34972 error message for excessively large memory map.
34974 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34976 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34979 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34981 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34982 message for coreboot users.
34984 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34986 Fix build with GNU gold.
34988 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34989 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34990 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34992 * aclocal.m4: Likewise.
34994 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34996 * configure.ac (AC_PREREQ): Bump to 2.59d.
34997 * INSTALL: Make it more clear when Autoconf and Ruby are
34998 needed and when to run `./autogen.sh'.
35000 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
35002 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
35005 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35007 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
35009 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35011 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35012 giving it to GNU Mach.
35014 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35016 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35017 GNU partition number to get internal GRUB partition number.
35019 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35021 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35022 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35024 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35026 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35027 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35030 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
35032 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35034 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35038 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35039 `-isystem=$(srcdir)/include'.
35041 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35043 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35044 checked (grub-install doesn't currently rely on it).
35046 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35050 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35051 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35052 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35053 * conf/i386-ieee1275.rmk: Likewise.
35054 * conf/i386-pc.rmk: Likewise.
35055 * conf/powerpc-ieee1275.rmk: Likewise.
35056 * conf/sparc64-ieee1275.rmk: Likewise.
35057 * conf/x86_64-efi.rmk: Likewise.
35059 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35061 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35063 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35065 * include/grub/misc.h: Stop checking for APPLE_CC.
35067 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35069 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35070 doesn't cause an infinite call loop.
35072 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35074 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35077 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35079 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35081 * Makefile.in: Likewise.
35083 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35085 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35087 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35089 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35091 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35093 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35095 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35097 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35099 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35101 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35103 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35104 in $(MAKEINFO) invocation. This makes it clear in output that
35105 errors are being ignored.
35107 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35109 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35111 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35112 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35113 * conf/i386-ieee1275.rmk: Likewise.
35114 * conf/i386-pc.rmk: Likewise.
35115 * conf/powerpc-ieee1275.rmk: Likewise.
35116 * conf/sparc64-ieee1275.rmk: Likewise.
35117 * conf/x86_64-efi.rmk: Likewise.
35119 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35121 * util/grub-editenv.c (main): If only a command is given, use
35122 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35123 (usage): FILENAME is now optional and has a default.
35125 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35127 Improve grub-mkconfig performance when there are several menu
35128 entries on a single filesystem.
35130 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35131 prepare_grub_to_access_device.
35132 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35133 * util/grub.d/30_os-prober.in: Likewise.
35135 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35137 * util/grub.d/10_freebsd.in: Remove.
35138 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35139 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35141 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35143 * docs/grub.cfg: Fix example usage of *BSD loaders.
35145 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35147 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35148 grub_util_error() call.
35150 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35152 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35153 `reserved_first_sector' member.
35154 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35155 `reserved_first_sector' to 1.
35156 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35157 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35158 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35159 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35160 filesystems which begin at first sector.
35161 (options): New option --skip-fs-probe.
35162 (main): Handle --skip-fs-probe and pass it to setup().
35164 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35166 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35167 (memset): Fix function prototype.
35169 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35170 2009-10-25 Vasily Averin <vvs@parallels.com>
35172 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35173 `dirent.direntlen == 0'.
35175 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35177 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35179 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35181 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35183 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35184 `__trampoline_setup' and `__ucmpdi2'.
35185 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35186 that libgcc provides.
35188 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35190 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35191 * include/grub/sparc64/libgcc.h (memset): Likewise.
35192 * include/grub/misc.h (memset, memcmp): New function prototypes.
35194 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35196 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35198 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35200 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35202 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35203 * docs/grub.cfg: Compensate for recent change in multiboot
35204 loader (since 2009-08-14 it won't pass filename to payload).
35205 * util/grub.d/10_hurd.in: Likewise.
35207 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35209 * config.guess: Update to latest version from config git
35211 * config.sub: Likewise.
35213 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35215 Fix build on sparc64.
35217 * configure.ac: Perform checks for libgcc symbols before
35218 adding `-nostdlib' to LDFLAGS.
35220 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35222 Let user specify OpenBSD root device.
35224 * loader/i386/bsd.c (openbsd_root): New variable.
35225 (openbsd_opts): New option 'root'.
35226 (OPENBSD_ROOT_ARG): New macro.
35227 (grub_openbsd_boot): Use 'openbsd_root'.
35228 (grub_cmd_openbsd): Fill 'openbsd_root'.
35230 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35232 * NEWS: Misc adjustments.
35234 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35236 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35238 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35240 * configure.ac: Bump version to 1.97.
35242 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35244 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35245 -mno-3dnow on x86 architectures. Some toolchains enable these
35246 features by default, but they rely on registers that aren't enabled
35247 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35249 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35251 Make entry text a bit more readable.
35253 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35255 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35257 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35259 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35261 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35264 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35266 * configure.ac: Add missing dollar.
35268 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35270 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35272 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35273 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35275 * include/grub/sparc64/libgcc.h: Likewise. Use
35276 preprocessor conditionals.
35278 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35280 * conf/common.rmk (grub-dumpbios): Remove rule.
35281 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35282 * util/grub-dumpbios.in: Remove file.
35284 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35286 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35287 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35289 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35290 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35293 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35294 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35295 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35296 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35299 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35301 * term/tparm.c: Switch to GPLv3.
35303 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35305 * include/grub/i386/cpuid.h: Add header protection.
35307 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35309 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35311 * include/grub/i386/cpuid.h: New file.
35312 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35313 (has_longmode): Rename to ...
35314 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35315 `static' attribute.
35316 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35317 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35318 on a CPU that doesn't implement AMD64 instruction set.
35320 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35322 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35323 that version.texi is rebuilt on version number changes.
35325 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35327 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35330 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35332 * util/i386/pc/grub-install.in: Source
35333 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35334 that the --grub-probe option will work.
35335 * util/sparc64/ieee1275/grub-install.in: Likewise.
35337 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35339 * configure.ac: Bump version to 1.97~beta4.
35341 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35343 Resync grub-mkdevicemap in x86_64-efi.
35345 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35346 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35347 `util/devicemap.c'.
35349 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35351 * util/grub-editenv.c (create_envblk_file): Write new block with a
35352 .new suffix and then rename it into place, to ensure atomic
35355 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35357 Do not automatically install headers.
35359 * Makefile.in (include_DATA): Remove. Update all users.
35361 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35363 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35364 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35366 * util/osdetect.lua: Remove.
35367 * script/lua/lauxlib.c: Likewise.
35368 * script/lua/ldebug.c: Likewise.
35369 * script/lua/grub_main.c: Likewise.
35370 * script/lua/lauxlib.h: Likewise.
35371 * script/lua/ldebug.h: Likewise.
35372 * script/lua/ltablib.c: Likewise.
35373 * script/lua/liolib.c: Likewise.
35374 * script/lua/lstrlib.c: Likewise.
35375 * script/lua/lualib.h: Likewise.
35376 * script/lua/ldo.c: Likewise.
35377 * script/lua/ldump.c: Likewise.
35378 * script/lua/ldo.h: Likewise.
35379 * script/lua/loslib.c: Likewise.
35380 * script/lua/lundump.c: Likewise.
35381 * script/lua/grub_lib.c: Likewise.
35382 * script/lua/ldblib.c: Likewise.
35383 * script/lua/lundump.h: Likewise.
35384 * script/lua/lmem.c: Likewise.
35385 * script/lua/grub_lib.h: Likewise.
35386 * script/lua/lmathlib.c: Likewise.
35387 * script/lua/lstate.c: Likewise.
35388 * script/lua/ltm.c: Likewise.
35389 * script/lua/lvm.c: Likewise.
35390 * script/lua/lmem.h: Likewise.
35391 * script/lua/lstate.h: Likewise.
35392 * script/lua/ltm.h: Likewise.
35393 * script/lua/ltable.c: Likewise.
35394 * script/lua/lvm.h: Likewise.
35395 * script/lua/llex.c: Likewise.
35396 * script/lua/lgc.c: Likewise.
35397 * script/lua/grub_lua.h: Likewise.
35398 * script/lua/loadlib.c: Likewise.
35399 * script/lua/lfunc.c: Likewise.
35400 * script/lua/lopcodes.c: Likewise.
35401 * script/lua/lparser.c: Likewise.
35402 * script/lua/ltable.h: Likewise.
35403 * script/lua/llex.h: Likewise.
35404 * script/lua/lgc.h: Likewise.
35405 * script/lua/lfunc.h: Likewise.
35406 * script/lua/lbaselib.c: Likewise.
35407 * script/lua/lopcodes.h: Likewise.
35408 * script/lua/lparser.h: Likewise.
35409 * script/lua/lzio.c: Likewise.
35410 * script/lua/linit.c: Likewise.
35411 * script/lua/lobject.c: Likewise.
35412 * script/lua/llimits.h: Likewise.
35413 * script/lua/lstring.c: Likewise.
35414 * script/lua/lzio.h: Likewise.
35415 * script/lua/lapi.c: Likewise.
35416 * script/lua/lcode.c: Likewise.
35417 * script/lua/lua.h: Likewise.
35418 * script/lua/lobject.h: Likewise.
35419 * script/lua/lstring.h: Likewise.
35420 * script/lua/lapi.h: Likewise.
35421 * script/lua/lcode.h: Likewise.
35422 * script/lua/luaconf.h: Likewise.
35424 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35426 * docs/grub.texi (Command-line and menu entry commands): Document
35427 date and echo commands.
35429 2009-09-24 Pavel Roskin <proski@gnu.org>
35431 * include/grub/kernel.h (struct grub_module_header): Remove
35432 `grub_module_header_types'. Make `type' unsigned. Make `size'
35433 32-bit on all platforms.
35434 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35435 8-bit field. Use grub_host_to_target32() for `size'.
35436 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35437 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35438 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35440 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35442 Fix "lost keypress" bug in at_keyboard.
35444 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35445 Checks for readyness of input buffer (without flushing it).
35446 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35447 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35449 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35451 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35452 size check within GRUB_MACHINE_PCBIOS section.
35454 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35456 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35458 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35459 KEYBOARD_ISREADY check.
35460 (grub_at_keyboard_checkkey): Rename to ...
35461 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35462 Remove gratuitous cast.
35464 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35466 * configure.ac: Call AC_PROG_MKDIR_P.
35467 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35468 version.texi in $(builddir) rather than $(srcdir).
35469 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35470 to makeinfo's @include search path.
35472 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35474 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35476 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35478 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35481 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35483 Build info documentation. Some code borrowed from Automake.
35485 * configure.ac: Check for makeinfo.
35486 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35487 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35489 (MOSTLYCLEANFILES): Add vti.tmp.
35490 (docs/version.texi, docs/stamp-vti): Update automatically.
35491 (docs/grub.info): Build info documentation. Use --force and ignore
35493 (all-local): Add $(INFOS).
35494 (install-local): Install info files.
35495 (uninstall): Uninstall info files.
35496 * docs/version.texi: Remove from revision control. This file is
35497 automatically generated on build now.
35498 * gendistlist.sh: Add `*.info'.
35500 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35502 * kern/term.c: Fix indentation.
35504 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35506 * util/hostdisk.c: Fix a comment.
35508 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35510 Fix regression introduced in r2539.
35512 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35515 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35517 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35518 os-prober. Under normal operation, it does not print anything to
35519 stderr; if it does, we need to debug it, and throwing away stderr
35520 makes that excessively difficult.
35522 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35524 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35526 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35528 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35529 AC_LANG_PROGRAM from autoconf.
35530 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35531 prototypes (fixes warning).
35533 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35534 `--disable-werror' was used.
35536 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35538 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35539 uninitialized `lastaddr'.
35541 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35543 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35545 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35547 * commands/test.c (get_fileinfo): Return immediately if
35548 grub_fs_probe fails.
35550 2009-09-14 José Martínez <xosemp@gmail.com>
35552 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35554 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35556 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35559 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35561 * configure.ac: Remove --enable-grub-pe2elf. Only build
35562 grub-pe2elf when needed by the build system itself.
35563 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35565 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35567 * configure.ac: Bump version to 1.97~beta3.
35568 * docs/version.texi: Likewise.
35570 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35572 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35573 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35575 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35576 (grub_linux_setup_video): ... to here (with some adjustments).
35578 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35580 Fix memory corruption issue (spotted by Colin Watson).
35582 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35583 causing returned size to be stored in an incorrect memory location.
35584 Fix use of uninitialized value when storing the returned size.
35586 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35588 Change clean rules to properly remove files
35590 * genmk.rb: add new clean rules
35591 * Makefile.in (clean): add the new targets
35592 (mostlyclean): likewise
35594 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35596 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35598 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35599 non-resident files.
35601 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35603 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35604 part of bug #27349.
35606 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35608 * util/grub-mkconfig.in: Make the created config mode 400 and
35609 print a warning if it fails.
35611 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35613 * util/grub.d/40_custom.in: Ask user to type custom entries below
35614 comment, rather than below 'exec tail' line.
35616 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35618 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35619 visible in grub.cfg.
35621 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35623 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35626 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35628 * docs/grub.cfg: Add an example menu entry for memtest86+.
35630 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35632 * config.guess: Update to latest version from config git.
35633 * config.sub: Likewise.
35635 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35637 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35638 unknown-command case. Fixes bug #27320.
35640 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35642 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35643 `help' if the command exists.
35645 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35647 * INSTALL: Require GCC 4.1.3 or later.
35649 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35651 * Makefile.in (RMKFILES): add i386-qemu.rmk
35652 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35653 $(srcdir)/stamp-h.in
35655 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35657 * util/grub-probe.c (probe): Comment out buggy codepath, which
35658 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35659 should be re-enabled after 1.97.
35661 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35663 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35666 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35668 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35669 unnecessary calls to grub_error.
35671 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35673 * NEWS: Mention `keystatus' and Unicode fonts.
35675 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35677 * configure.ac: Bump version to 1.97~beta2.
35678 * docs/version.texi: Likewise.
35680 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35682 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35683 containing unwind information in some cases where it previously did
35684 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35685 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35688 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35690 Embedding loadenv module into grub-emu
35692 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35694 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35695 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35696 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35698 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35699 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35701 2009-09-03 Magnus Granberg <zorry@ume.nu>
35703 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35704 include -fPIE in the default specs.
35705 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35708 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35710 * INSTALL: Note that GNU Bison 2.3 or later is required.
35712 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35714 * kern/i386/pc/startup.S: Fix typo.
35716 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35718 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35721 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35723 * docs/grub.texi (Naming convention): Describe one-based partition
35725 (Device syntax): Likewise.
35726 (File name syntax): Likewise.
35727 (Block list syntax): Likewise.
35728 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35730 (File name syntax): Likewise.
35731 (Command-line and menu entry commands): Document acpi, blocklist,
35732 crc, export, insmod, keystatus, ls, set, and unset commands.
35734 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35736 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35737 to avoid implying that only one of --shift, --ctrl, or --alt may be
35740 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35742 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35743 rather than comparing against S_IFREG, which will almost never work.
35745 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35747 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35748 (write_blocklists): Likewise.
35750 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35752 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35753 argument to grub_printf.
35755 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35757 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35760 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35762 * kern/file.c (grub_file_read): Spelling fix
35764 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35766 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35767 loading of headers in some cases.
35769 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35771 * configure.ac: Bump version to 1.97~beta1.
35772 * docs/version.texi: Likewise.
35774 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35776 * include/grub/i386/xnu.h: Add license header.
35777 include grub/err.h explicitly.
35779 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35781 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35782 to `ufs' in the vfs.root.mountfrom kernel parameter.
35784 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35786 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35788 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35789 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35791 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35792 `ARRAY_SIZE' macro.
35794 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35796 * kern/file.c (grub_file_read): Check offset.
35797 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35798 * fs/jfs.c (grub_jfs_read_file): Likewise.
35799 * fs/ntfs.c (grub_ntfs_read): Likewise.
35800 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35801 * fs/minix.c (grub_minix_read_file): Correct offset check.
35802 * fs/ufs.c (grub_ufs_read_file): Likewise.
35804 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35806 * term/i386/pc/console.c (bios_data_area): Cast
35807 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35809 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35811 1-bit optimised blitters.
35813 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35815 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35816 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35817 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35818 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35819 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35820 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35821 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35823 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35824 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35825 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35826 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35827 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35828 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35829 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35831 * video/video.c (grub_video_get_blit_format): Return
35832 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35834 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35836 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35837 the first argument to grub_printf.
35839 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35840 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35842 Add `getkeystatus' terminal method. Add a new `keystatus' command
35845 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35846 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35847 modifier key bitmasks.
35848 (struct grub_term_input): Add `getkeystatus' member.
35849 (grub_getkeystatus): Add prototype.
35850 * kern/term.c (grub_getkeystatus): New function.
35852 * include/grub/i386/pc/memory.h
35853 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35854 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35856 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35857 (grub_console_term_input): Set `getkeystatus' member.
35858 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35860 (grub_usb_keyboard_getreport): Likewise.
35861 (grub_usb_keyboard_checkkey): Likewise.
35862 (grub_usb_keyboard_getkeystatus): New function.
35863 (grub_usb_keyboard_term): Set `getkeystatus' member.
35865 * commands/keystatus.c: New file.
35866 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35867 (keystatus_mod_SOURCES): New variable.
35868 (keystatus_mod_CFLAGS): Likewise.
35869 (keystatus_mod_LDFLAGS): Likewise.
35870 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35871 commands/keystatus.c.
35872 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35873 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35874 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35875 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35876 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35877 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35879 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35881 Split befs.mod and afs.mod into *_be.mod and *.mod
35883 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35884 (grub_fstest_SOURCES): Likewise.
35885 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35886 (afs_be_mod_SOURCES): New variable.
35887 (afs_be_mod_CFLAGS): Likewise.
35888 (afs_be_mod_LDFLAGS): Likewise.
35889 (befs_be_mod_SOURCES): Likewise.
35890 (befs_be_mod_CFLAGS): Likewise.
35891 (befs_be_mod_LDFLAGS): Likewise.
35892 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35893 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35894 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35895 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35896 (grub_emu_SOURCES): Likewise.
35897 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35898 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35899 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35900 * fs/afs_be.c: New file.
35901 * fs/befs_be.c: New file.
35902 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35903 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35904 (U16): Replaced with ...
35905 (grub_afs_to_cpu16): ...this. All users updated.
35906 (U32): Replaced with ...
35907 (grub_afs_to_cpu32): ...this. All users updated.
35908 (U64): Replaced with ...
35909 (grub_afs_to_cpu64): ...this. All users updated.
35910 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35911 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35912 (grub_afs_validate_sblock): Check only one endianness.
35913 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35914 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35915 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35916 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35917 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35918 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35919 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35920 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35922 2009-08-26 Bean <bean123ch@gmail.com>
35924 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35926 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35927 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35928 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35930 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35932 NetBSD memory map support.
35934 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35935 (grub_netbsd_btinfo_mmap_header): New structure.
35936 (grub_netbsd_btinfo_mmap_entry): Likewise.
35937 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35939 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35941 Enable bsd.mod on coreboot.
35943 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35944 (bsd_mod_SOURCES): New variable.
35945 (bsd_mod_CFLAGS): Likewise.
35946 (bsd_mod_LDFLAGS): Likewise.
35947 (bsd_mod_ASFLAGS): Likewise.
35948 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35949 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35951 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35953 Cleanup NetBSD root support.
35955 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35956 grub_bsd_get_device.
35959 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35961 * util/grub.d/00_header.in: Move check for the video backend of
35962 gfxterm from here ...
35963 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35964 a suitable video backend.
35966 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35968 Fix breakage in grub-setup.
35970 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35971 "msdos_partition_map".
35973 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35975 Fix breakage in normal/auth.c.
35977 * normal/auth.c (grub_iswordseparator): New function.
35979 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35981 Authentication support.
35983 * commands/password.c: New file.
35984 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35985 (password_mod_SOURCES): New variable.
35986 (password_mod_CFLAGS): Likewise.
35987 (password_mod_LDFLAGS): Likewise.
35988 (normal_mod_SOURCES): Add normal/auth.c.
35989 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35991 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35992 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35993 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35994 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35995 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35996 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35997 * include/grub/auth.h: New file.
35998 * include/grub/err.h (grub_err_t): New enum value
35999 GRUB_ERR_ACCESS_DENIED.
36000 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
36002 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
36003 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
36005 * normal/auth.c: New file.
36006 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
36007 (grub_cmdline_run): Don't allow to go to command line without
36009 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36010 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36011 menuentry without superuser rights.
36012 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36013 user isn't a superuser.
36015 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36017 Save space by inlining misc.c functions.
36019 * kern/misc.c (grub_iswordseparator): Made static.
36020 * kern/misc.c (grub_strcat): Moved from here ...
36021 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36022 * kern/misc.c (grub_strncat): Moved from here ...
36023 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36024 * kern/misc.c (grub_strcasecmp): Moved from here ...
36025 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36026 * kern/misc.c (grub_strncasecmp): Moved from here ...
36027 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36028 * kern/misc.c (grub_isalpha): Moved from here ...
36029 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36030 * kern/misc.c (grub_isdigit): Moved from here ...
36031 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36032 * kern/misc.c (grub_isgraph): Moved from here ...
36033 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36034 * kern/misc.c (grub_tolower): Moved from here ...
36035 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36037 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36039 * script/sh/function.c (grub_script_function_find): Cut error message
36040 not to flood terminal.
36041 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36043 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36045 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36047 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36048 `report' grub_uint8_t *.
36049 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36050 Use a 50-millisecond timeout rather than just repeating
36051 grub_usb_keyboard_getreport 50 times.
36052 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36054 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36056 Rename *_partition_map to part_*
36058 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36059 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36060 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36061 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36063 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36065 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36066 * util/grub-probe.c (probe_partmap): Don't transform partition name
36067 to get module name.
36069 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36071 Fix OpenBSD and NetBSD support.
36073 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36074 memory address conflict.
36075 (OPENBSD_MMAP_ACPI): New definition.
36076 (OPENBSD_MMAP_NVS): Likewise.
36077 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36078 and OPENBSD_MMAP_NVS.
36079 Add memory map terminator
36080 Explicit cast when calling grub_unix_real_boot.
36081 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36083 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36085 Let user specify NetBSD root device.
36087 * loader/i386/bsd.c (netbsd_root): New variable.
36088 (netbsd_opts): New option 'root'.
36089 (NETBSD_ROOT_ARG): New macro.
36090 (grub_netbsd_boot): Use 'netbsd_root'.
36091 (grub_bsd_unload): Free 'netbsd_root'.
36092 (grub_cmd_netbsd): Fill 'netbsd_root'.
36094 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36096 Support for 64-bit NetBSD.
36098 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36099 point when booting non-FreeBSD.
36101 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36103 Support --no-smp and --no-acpi for NetBSD.
36105 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36106 (NETBSD_AB_NOACPI): Likewise.
36107 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36108 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36110 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36112 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36114 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36115 errors. Call grub_error when needed.
36117 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36119 * commands/search.c (search_fs): Try searching without autoload first.
36120 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36121 filesystem module explicitly for faster booting.
36123 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36125 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36127 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36129 * util/grub.d/30_os-prober.in: Disable os-prober if
36130 `GRUB_DISABLE_OS_PROBER' was set to true.
36132 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36134 * partmap/pc.c: Rename to ...
36135 * partmap/msdos.c: ... this. Update all users.
36136 (grub_pc_partition_map): Rename to ...
36137 (grub_msdos_partition_map): ... this. Update all users.
36139 * parttool/pcpart.c: Rename to ...
36140 * parttool/msdospart.c: ... this. Update all users.
36142 * include/grub/pc_partition.h: Rename to ...
36143 * include/grub/msdos_partition.h: ... this. Update all users.
36144 (grub_pc_partition_bsd_entry): Rename to ...
36145 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36146 (grub_pc_partition_disk_label): Rename to ...
36147 (grub_msdos_partition_disk_label): ... this. Update all users.
36148 (grub_pc_partition_entry): Rename to ...
36149 (grub_msdos_partition_entry): ... this. Update all users.
36150 (grub_pc_partition_mbr): Rename to ...
36151 (grub_msdos_partition_mbr): ... this. Update all users.
36152 (grub_pc_partition): Rename to ...
36153 (grub_msdos_partition): ... this. Update all users.
36154 (grub_pc_partition_is_empty): Rename to ...
36155 (grub_msdos_partition_is_empty): ... this. Update all users.
36156 (grub_pc_partition_is_extended): Rename to ...
36157 (grub_msdos_partition_is_extended): ... this. Update all users.
36158 (grub_pc_partition_is_bsd): Rename to ...
36159 (grub_msdos_partition_is_bsd): ... this. Update all users.
36161 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36162 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36163 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36164 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36165 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36166 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36167 (gpt_mod_LDFLAGS): Rename to ...
36168 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36169 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36170 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36171 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36172 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36173 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36174 (part_gpt_mod_LDFLAGS): ... this.
36175 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36176 `pcpart.mod' to `msdospart.mod'.
36177 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36179 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36180 (msdospart_mod_LDFLAGS): ... this.
36182 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36184 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36185 (openbsd_opts): Likewise.
36186 (netbsd_opts): Likewise.
36187 (freebsd_flags): Added 0 terminator.
36188 (openbsd_flags): Likewise.
36189 (netbsd_flags): Likewise.
36190 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36191 (grub_cmd_freebsd): Transformed into extended command.
36192 (grub_cmd_openbsd): Likewise.
36193 (grub_cmd_netbsd): Likewise.
36194 (cmd_freebsd): Changed type to grub_extcmd_t.
36195 (cmd_openbsd): Likewise.
36196 (cmd_netbsd): Likewise.
36197 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36198 grub_cmd_openbsd as extended commands.
36199 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36200 cmd_netbsd and cmd_openbsd
36202 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36204 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36206 2009-08-21 Pavel Roskin <proski@gnu.org>
36208 * Makefile.in (install-local): When checking if a file is in the
36209 build directory, use "test -e" to detect symlinks.
36211 * Makefile.in (install-local): Remove all files in
36212 $(DESTDIR)$(pkglibdir) before installing new files there.
36214 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36216 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36219 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36221 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36222 explicitly specified by the user.
36224 2009-08-18 Pavel Roskin <proski@gnu.org>
36226 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36227 grub_uint8_t pointer for data.
36228 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36230 * video/fb/fbutil.c: Remove unnecessary casts.
36232 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36236 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36237 (grub_vbe_set_video_mode): Save active mode info
36238 only after setting the mode.
36239 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36242 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36244 Rename variables for clarity.
36246 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36247 (active_vbe_mode_info): ... this. All users updated.
36248 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36250 (initial_mode): Rename to ...
36251 (initial_vbe_mode): ... this. All users updated.
36252 (mode_in_use): Rename to ..
36253 (vbe_mode_in_use): ... this. All users updated.
36254 (mode_list): Rename to ..
36255 (vbe_mode_list): ... this. All users updated.
36256 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36257 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36258 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36259 'mode_list_size' to 'vbe_mode_list_size'.
36260 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36261 'best_mode_info' to 'best_vbe_mode_info' and
36262 'best_mode' to 'best_vbe_mode'
36264 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36266 Remove duplicate grub_video_fb_get_video_ptr.
36268 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36269 (grub_video_fb_get_video_ptr): ... this.
36270 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36271 * video/fb/fbutil.c: Add comment about addressing.
36272 (get_data_ptr): Rename to ...
36273 (grub_video_fb_get_video_ptr): ... this. All users updated.
36274 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36276 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36278 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36279 grub_dprintf() that was just added.
36281 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36283 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36284 (DEFAULT_VIDEO_MODE): Remove macros.
36285 (grub_linux_boot): Remove assumption that Linux has FB support,
36286 and use "text" as default video mode.
36288 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36290 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36292 * fs/fat.c (grub_fat_read_data): Likewise.
36294 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36296 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36298 (grub_module): Likewise.
36300 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36302 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36303 mbi->cmdline but free playground.
36305 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36307 Handle group offset on UFS1.
36309 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36310 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36312 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36314 Split ufs.mod into ufs1.mod and ufs2.mod.
36316 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36317 (grub_fstest_SOURCES): Likewise.
36318 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36319 (ufs_mod_SOURCES): Remove.
36320 (ufs_mod_CFLAGS): Likewise.
36321 (ufs_mod_LDFLAGS): Likewise.
36322 (ufs1_mod_SOURCES): New variable.
36323 (ufs1_mod_CFLAGS): Likewise.
36324 (ufs1_mod_LDFLAGS): Likewise.
36325 (ufs2_mod_SOURCES): New variable.
36326 (ufs2_mod_CFLAGS): Likewise.
36327 (ufs2_mod_LDFLAGS): Likewise.
36328 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36329 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36331 (grub_emu_SOURCES): Likewise.
36332 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36333 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36334 (grub_setup_SOURCES): Likewise.
36335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36336 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36337 (grub_setup_SOURCES): Likewise.
36338 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36340 * fs/ufs2.c: New file.
36341 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36343 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36347 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36348 subsystem at the end.
36349 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36350 (video_fb_mod_SOURCES): New variable.
36351 (video_fb_mod_CFLAGS): Likewise.
36352 (video_fb_mod_LDFLAGS): Likewise.
36353 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36354 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36355 * video/i386/pc/vbeblit.c: Moved from here ...
36356 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36357 * video/i386/pc/vbefill.c: Moved from here ...
36358 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36359 * video/i386/pc/vbeutil.c: Moved from here ...
36360 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36361 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36362 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36363 * include/grub/i386/pc/vbefill.h: Moved from here ...
36364 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36365 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36366 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36367 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36368 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36369 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36370 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36371 (grub_video_adapter): Added 'get_info_and_fini'.
36372 (grub_video_get_info_and_fini): New prototype.
36373 (grub_video_set_mode): make modestring const char *.
36374 * loader/i386/linux.c (grub_linux_setup_video): Use
36375 grub_video_get_info_and_fini.
36376 (grub_linux_boot): Move modesetting just before booting.
36377 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36378 grub_video_get_info_and_fini.
36379 * video/i386/pc/vbe.c: Moved framebuffer part ...
36380 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36381 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36382 grub_video_fbstd_colors and grub_video_fb_set_palette.
36383 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36384 grub_video_fb_init.
36385 (grub_video_vbe_fini): Use grub_video_fb_fini.
36386 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36387 render_target and use grub_video_fb_set_active_render_target and
36388 grub_video_fb_set_palette.
36389 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36390 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36391 (grub_video_vbe_adapter): Use framebuffer.
36392 * video/video.c (grub_video_get_info_and_fini): New function.
36393 (grub_video_set_mode): Make modestring const char *.
36394 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36395 values are already initialised.
36397 2009-08-14 Pavel Roskin <proski@gnu.org>
36399 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36401 * boot/i386/pc/diskboot.S: Likewise.
36402 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36403 sectors allow compilation on MacOSX.
36404 * conf/i386-pc.rmk: Enable unconditional compilation of
36407 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36409 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36410 * util/grub.d/00_header.in: Enter interruptible sleep if
36411 GRUB_HIDDEN_TIMEOUT is set.
36413 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36415 * include/grub/symbol.h: Add the LOCAL macro.
36416 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36417 starting with "L_".
36419 2009-08-13 Pavel Roskin <proski@gnu.org>
36421 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36422 any modern compilers we support.
36424 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36425 Use local labels starting with "L_" so that Apple assembler
36426 knows they are local.
36428 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36430 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36431 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36432 (bsd_kernel_types): ... this enum.
36434 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36435 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36436 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36438 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36439 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36440 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36443 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36445 * util/grub-dumpdevtree: Moved from here ...
36446 * util/i386/efi/grub-dumpdevtree: ... to here.
36447 (hexify): New function. Converts a string to its hex version.
36448 Generate hex versions of "efi" and "device-properties" by calling
36449 hexify() on the ASCII strings rather than by hardcoding numbers.
36451 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36453 * fs/jfs.c: Update copyright year.
36455 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36457 * util/grub.d/00_header.in: Fix a comment.
36458 * util/grub.d/10_linux.in: Likewise.
36459 * util/grub.d/10_windows.in: Likewise.
36460 * util/grub.d/10_hurd.in: Likewise.
36462 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36464 * util/grub-mkconfig.in: Allow the user to specify the used font
36467 2009-08-08 Pavel Roskin <proski@gnu.org>
36469 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36470 available, xfs.mod needs it now.
36472 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36473 the "g" modifier in sed when the intention is to strip something
36474 once. This fixes comparison of kernels with multiple dashes.
36476 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36477 on it. Add missing space before closing bracket. Fix
36478 misleading formatting.
36480 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36482 * docs/grub.texi: Major overhaul. Remove all sections that are
36483 specific to GRUB Legacy, or mostly composed of Legacy-specific
36486 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36488 * docs/version.texi: New file. Provides version information for
36491 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36493 * docs/grub.texi: Update CVS information to SVN.
36494 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36496 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36498 * util/grub-mkconfig.in: Remove a wrong `fi'.
36500 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36502 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36503 (grub_jfs_uuid): New function.
36504 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36506 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36508 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36510 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36511 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36513 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36515 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36516 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36519 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36520 not just "vmlinu[zx]".
36521 Moved from here ...
36522 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36525 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36526 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36529 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36531 * util/grub.d/10_freebsd.in: Use an absolute device path for
36532 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36534 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36536 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36537 handling of multiple abstraction modules.
36539 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36541 Fix a bug resulting in black screen when loading Linux using a
36544 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36547 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36548 (grub_vbe_bios_getset_dac_palette_width): New function.
36549 (grub_vbe_bios_get_dac_palette_width)
36550 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36551 grub_vbe_bios_getset_dac_palette_width()).
36553 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36554 check for return status.
36555 (grub_vbe_get_video_mode_info): When getting information for a packed
36556 mode (<= 8 bpp), obtain DAC palette width using
36557 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36558 {red,green,blue}_mark_size.
36560 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36562 * commands/search.c (options): Fix help output to match actual code.
36564 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36566 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36569 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36571 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36572 on XFS or ReiserFS.
36574 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36576 Support Apple partition map with sector size different from 512 bytes.
36578 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36579 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36580 and 'apart.partmap_size'.
36582 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36583 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36587 * commands/i386/cpuid.c (options): New variable.
36588 (grub_cmd_cpuid): Return real error.
36589 (GRUB_MOD_INIT(cpuid)): Declare options.
36591 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36593 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36596 2009-07-31 Bean <bean123ch@gmail.com>
36598 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36600 (grub_fshelp_node): Move inode field to the end.
36601 (grub_xfs_data): Remove inode field.
36602 (grub_xfs_inode_block): Calculate inode size using sblock.
36603 (grub_xfs_inode_offset): Likewise.
36604 (grub_xfs_read_inode): Calculate inode size using sblock.
36605 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36606 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36607 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36608 to match inode size.
36609 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36610 not accessible when data is null.
36611 (grub_xfs_open): Likewise.
36613 2009-07-31 Bean <bean123ch@gmail.com>
36615 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36616 Don't change pv->disk if it's already set.
36618 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36619 (grub_raid_register): ... here.
36620 (grub_raid_rescan): Removed.
36622 * include/grub/raid.h (grub_raid_rescan): Removed.
36624 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36625 (fstest): Replace grub_raid_rescan with module fini function followed
36628 * util/grub-probe.c: Add include file <grub/raid.h>.
36629 (probe_raid_level): New function.
36630 (probe): Detect abstraction by walking the disk device, support two
36631 level of abstraction (LVM on RAID) when detecting partition map.
36633 2009-07-31 Pavel Roskin <proski@gnu.org>
36635 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36636 to grub_zalloc(), it was erroneous.
36637 Reported by Bean <bean123ch@gmail.com>
36639 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36641 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36642 embedding zone, not only the first one.
36644 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36646 * term/gfxterm.c (clear_char): New function.
36647 (grub_virtual_screen_setup): Use clear_char.
36648 (scroll_up): Likewise.
36649 (grub_virtual_screen_cls): Likewise.
36651 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36653 * util/deviceiter.c (get_acceleraid_disk_name): New static
36655 (grub_util_iterate_devices): Handle Accelraid devices.
36656 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36658 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36660 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36661 separator for the suggested gfxpayload string (';' collides with the
36662 parser and needs escaping).
36664 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36666 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36667 Clear direction flag before jumping to OS.
36668 (grub_multiboot2_real_boot): Likewise.
36670 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36672 * util/i386/pc/grub-install: Fix parsing of --disk-module
36675 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36677 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36680 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36682 * util/grub-mkconfig.in (package_version): New variable.
36683 Use it do display the version.
36685 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36687 * kern/file.c (grub_file_open): Revert to previous check with
36690 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36692 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36693 from help line. It's out of sync with code.
36695 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36697 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36698 entries on failed boot.
36700 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36702 * kern/file.c (grub_file_open): Fix an error check.
36704 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36706 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36707 partition map couldn't be identified.
36709 2009-07-23 Pavel Roskin <proski@gnu.org>
36711 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36712 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36713 case of little endian words becomes just an optimization.
36714 Respect const modifier.
36715 (md5_final): Use code that doesn't depend on endianness.
36717 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36718 to avoid loss of upper bits if align is unsigned and shorter
36721 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36723 UUID support for UFS
36725 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36726 (grub_ufs_uuid): New function.
36727 (grub_ufs_fs): add .uuid
36729 2009-07-21 Pavel Roskin <proski@gnu.org>
36731 * kern/dl.c (grub_dl_check_header): Make static.
36733 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36735 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36736 add drivemap for Vista. It breaks Windows 7.
36738 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36740 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36743 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36747 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36748 (grub_fstest_SOURCES): Likewise.
36749 (pkglib_MODULES): Add befs.mod.
36750 (befs_mod_SOURCES): New variable.
36751 (befs_mod_CFLAGS): Likewise.
36752 (befs_mod_LDFLAGS): Likewise.
36753 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36754 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36755 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36756 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36757 (grub_setup_SOURCES): Likewise.
36758 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36759 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36760 (grub_setup_SOURCES): Likewise.
36761 * fs/befs.c: New file.
36762 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36763 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36764 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36765 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36766 (B_KEY_INDEX_ALIGN): New declaration.
36767 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36768 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36769 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36770 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36771 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36772 (grub_afs_mount) [MODE_BFS]: Likewise.
36773 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36774 (grub_afs_fs): Use GRUB_AFS_FSNAME
36775 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36776 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36777 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36778 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36780 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36782 * util/getroot.c (find_root_device): Add support for MacOSX.
36783 * util/hostdisk.c: Likewise.
36785 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36787 * font/font.c (find_glyph): Check whether a font is present to avoid
36788 segmentation fault.
36790 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36792 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36794 2009-07-20 Pavel Roskin <proski@gnu.org>
36796 * configure.ac: Trim excessively wordy excuses.
36798 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36800 Add symlink, mtime and label support to AtheFS.
36802 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36803 (grub_afs_iterate_dir): Handle symlinks.
36804 (grub_afs_open): Use grub_afs_read_symlink.
36805 (grub_afs_dir): Likewise.
36807 (grub_afs_label): New function.
36808 (grub_afs_fs): Add grub_afs_label.
36809 (grub_afs_read_symlink): New function.
36811 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36813 Fix AtheFS support.
36815 * fs/afs.c: Fix comments style.
36816 (grub_afs_blockrun): Declare as packed.
36817 (grub_afs_datastream): Likewise.
36818 (grub_afs_bnode): Likewise.
36819 (grub_afs_btree): Likewise.
36820 (grub_afs_sblock): Likewise.
36821 Declare `name' as char.
36822 (grub_afs_inode): Declare as packed.
36823 Change void *vnode to grub_uint32_t unused.
36824 (grub_afs_iterate_dir): Check that key_size is positive.
36825 (grub_afs_mount): Don't read superblock twice.
36826 (grub_afs_dir): Don't free node in case of error,
36827 grub_fshelp_find_file already handles this.
36828 (grub_afs_open): Likewise.
36830 2009-07-19 Pavel Roskin <proski@gnu.org>
36832 * Makefile.in: Remove LIBLZO and enable_lzo.
36833 * conf/i386-pc.rmk: Remove lzo support.
36834 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36835 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36837 * kern/i386/pc/lzo1x.S: Remove.
36838 * kern/i386/pc/startup.S: Remove lzo support.
36839 * util/i386/pc/grub-mkimage.c: Likewise.
36841 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36843 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36844 * fs/xfs.c (grub_xfs_dir): Likewise.
36845 * fs/afs.c (grub_afs_dir): Likewise.
36846 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36847 (grub_iso9660_open): Likewise.
36848 * fs/jfs.c (grub_jfs_open): Likewise.
36849 * fs/ext2.c (grub_ext2_dir): Likewise.
36850 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36851 * script/sh/lexer.c (grub_script_yylex): Likewise.
36853 2009-07-16 Pavel Roskin <proski@gnu.org>
36855 * configure.ac: Never add "-c" to CFLAGS.
36857 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36859 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36860 grub_cv_cc_efiemu should be used.
36862 * configure.ac: Typo fixes.
36864 * kern/mm.c (grub_zalloc): New function.
36865 (grub_debug_zalloc): Likewise.
36866 * include/grub/mm.h: Declare grub_zalloc() and
36867 grub_debug_zalloc().
36868 * util/misc.c (grub_zalloc): New function.
36869 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36870 instead of grub_malloc(), remove unneeded initializations.
36871 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36872 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36873 * commands/parttool.c (grub_cmd_parttool): Likewise.
36874 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36875 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36876 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36877 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36878 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36879 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36880 (grub_cmd_efiemu_pnvram): Likewise.
36881 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36882 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36883 (grub_iso9660_iterate_dir): Likewise.
36884 * fs/jfs.c (grub_jfs_opendir): Likewise.
36885 * fs/ntfs.c (list_file): Likewise.
36886 (grub_ntfs_mount): Likewise.
36887 * kern/disk.c (grub_disk_open): Likewise.
36888 * kern/dl.c (grub_dl_load_core): Likewise.
36889 * kern/elf.c (grub_elf_file): Likewise.
36890 * kern/env.c (grub_env_context_open): Likewise.
36891 (grub_env_set): Likewise.
36892 (grub_env_set_data_slot): Likewise.
36893 * kern/file.c (grub_file_open): Likewise.
36894 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36895 * loader/i386/multiboot.c (grub_module): Likewise.
36896 * loader/xnu.c (grub_xnu_create_key): Likewise.
36897 (grub_xnu_create_value): Likewise.
36898 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36899 (read_config_file): Likewise.
36900 * normal/menu_entry.c (make_screen): Likewise.
36901 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36902 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36903 * script/sh/script.c (grub_script_parse): Likewise.
36904 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36905 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36906 * video/readers/png.c (grub_png_output_byte): Likewise.
36907 (grub_video_reader_png): Likewise.
36909 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36911 Enable all targets that can be built by default
36913 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36914 grub-mkfont and grub-fstest if they can be built
36916 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36918 Fix hang and segmentation fault in grub-emu-usb
36920 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36921 * util/usb.c (grub_libusb_devices): likewise
36922 (grub_libusb_init): rename to ...
36923 (GRUB_MOD_INIT (libusb)):...this
36924 (grub_libusb_fini): rename to ..
36925 (GRUB_MOD_FINI (libusb)):...this
36926 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36927 * include/grub/disk.h (grub_raid_init): removed, it's useless
36928 (grub_raid_fini): likewise
36929 (grub_lvm_init): likewise
36930 (grub_lvm_fini): likewise
36931 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36934 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36938 * Makefile.in (LIBUSB): new macro
36939 * genmk.rb (Utility/print_tail): new method
36940 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36941 (top level): call util.print_tail at the end.
36943 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36945 Make FreeBSD accept zpool.cache
36947 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36948 type is /boot/zfs/zpool.cache
36950 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36954 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36955 correct wrong typedef
36956 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36958 2009-07-15 Pavel Roskin <proski@gnu.org>
36960 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36961 * kern/disk.c (struct grub_disk_cache): Likewise.
36963 * commands/probe.c (options): Typo fix.
36965 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36966 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36968 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36970 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36971 the end of "Error" to make the message more readable.
36973 * boot/i386/pc/boot.S (kernel_segment): Remove.
36974 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36977 * boot/i386/pc/boot.S (boot_version): Remove.
36978 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36981 * include/grub/i386/pc/boot.h: Sort all offsets.
36982 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36983 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36984 * boot/i386/pc/boot.S: Assert location of every offset listed in
36985 include/grub/i386/pc/boot.h.
36987 2009-07-13 Pavel Roskin <proski@gnu.org>
36989 * include/grub/i386/coreboot/machine.h: Rename
36990 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36991 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36992 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36994 * kern/dl.c: Force native word size to suppress warnings when
36995 compiling grub-emu.
36997 * kern/device.c (grub_device_iterate): Change struct part_ent to
36998 hold the name, not a pointer to it. Use one grub_malloc() per
36999 partition, not two. Free partition_name if grub_malloc() fails.
37000 Set ents to NULL only before grub_partition_iterate() is called.
37002 2009-07-11 Bean <bean123ch@gmail.com>
37004 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
37007 2009-07-10 Bean <bean123ch@gmail.com>
37008 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37010 * kern/ieee1275/openfw.c (grub_children_iterate)
37011 (grub_devalias_iterate): Fix size evaluation for property or path
37012 strings, which was broken since r2132.
37014 2009-07-07 Pavel Roskin <proski@gnu.org>
37016 * commands/search.c (search_file): Merge into ...
37017 (search_fs): ... this. Accept search type as argument.
37018 (grub_cmd_search): Pass search type to search_fs().
37020 * include/grub/util/console.h: New file.
37021 * util/console.c: Use it instead of grub/machine/console.h.
37022 * util/grub-emu.c: Likewise.
37024 * lib/arg.c (find_long_option): Remove.
37025 (find_long): Add `len' argument, make `s' const char *.
37026 (grub_arg_parse): Parse long options in place, not in a
37029 2009-07-06 Pavel Roskin <proski@gnu.org>
37031 * commands/search.c (search_fs): Fix potential NULL pointer
37034 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37037 2009-07-06 Daniel Mierswa <impulze@impulze.org>
37039 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37042 2009-07-05 Pavel Roskin <proski@gnu.org>
37044 * include/grub/i386/linux.h (struct linux_kernel_params):
37045 Restore padding3, it's still needed.
37047 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37049 * util/osdetect.lua: Likewise.
37051 2009-07-05 Bean <bean123ch@gmail.com>
37053 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37055 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37056 (grub_lua_getenv): Likewise.
37057 (grub_lua_setenv): Likewise.
37058 (save_errno): New function.
37059 (push_result): Likewise.
37060 (grub_lua_enum_device): Likewise.
37061 (grub_lua_enum_file): Likewise.
37062 (grub_lua_file_open): Likewise.
37063 (grub_lua_file_close): Likewise.
37064 (grub_lua_file_seek): Likewise.
37065 (grub_lua_file_read): Likewise.
37066 (grub_lua_file_getline): Likewise.
37067 (grub_lua_file_getsize): Likewise.
37068 (grub_lua_file_getpos): Likewise.
37069 (grub_lua_file_eof): Likewise.
37070 (grub_lua_file_exist): Likewise.
37071 (grub_lua_add_menu): Likewise.
37073 * script/lua/grub_lua.h (isupper): New inline function.
37074 (islower): Likewise.
37075 (ispunct): Likewise.
37076 (isxdigit): Likewise.
37077 (strcspn): Change to normal function.
37078 (strpbkr): New function declaration.
37079 (memchr): Likewise.
37081 * script/lua/grub_main.c (scan_str): New function.
37082 (strcspn): Likewise.
37083 (strpbrk): Likewise.
37084 (memchr): Likewise.
37086 * script/lua/linit.c (lualibs): Enable the string library.
37088 * util/osdetect.lua: New file.
37090 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37092 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37093 `capabilities' member.
37095 2009-07-02 Pavel Roskin <proski@gnu.org>
37097 * genparttoollist.sh: Add missing newline at the end.
37099 2009-07-01 Pavel Roskin <proski@gnu.org>
37101 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37103 * util/hostdisk.c (open_device): Remove `const' from
37104 `sysctl_size', as sysctlbyname() can change it (in this case it
37105 doesn't actually happen).
37107 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37108 using signed long int constants.
37110 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37111 constant to avoid a warning on FreeBSD.
37113 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37116 * Makefile.in: Install include/grub/machine symlink.
37118 * Makefile.in: When installing symlinks, use "cp -fR", which
37119 works on FreeBSD and MacOSX.
37120 From Yves Blusseau <cl7m42e02@sneakemail.com>
37122 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37123 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37125 * util/misc.c: Move grub_reboot() and grub_halt() ...
37126 * util/grub-emu.c: ... here. Make main_env static.
37127 * include/grub/util/misc.h: Remove main_env.
37129 * kern/mm.c: Use correct format to print size_t.
37131 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37132 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37133 * kern/powerpc/dl.c: Likewise.
37134 * kern/sparc64/dl.c: Likewise.
37135 * kern/x86_64/dl.c: Likewise.
37137 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37139 Fix grub-emu build on sparc64-ieee1275.
37141 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37144 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37146 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37147 (grub_reboot, grub_halt): New functions.
37149 * util/i386/pc/misc.c: Delete. Update all users.
37150 * util/sparc64/ieee1275/misc.c: Likewise.
37151 * util/powerpc/ieee1275/misc.c: Likewise.
37153 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37155 * conf/i386.rmk (setjmp_mod_SOURCES)
37156 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37157 * conf/common.rmk (setjmp_mod_SOURCES)
37158 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37159 to use $(target_cpu).
37160 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37161 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37162 * conf/powerpc-ieee1275.rmk: Likewise.
37163 * conf/sparc64-ieee1275.rmk: Likewise.
37165 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37166 $(target_cpu) for kern/$(target_cpu)/dl.c.
37167 * conf/i386-efi.rmk: Likewise.
37168 * conf/i386-ieee1275.rmk: Likewise.
37169 * conf/x86_64-efi.rmk: Likewise.
37170 * conf/i386-coreboot.rmk: Likewise.
37171 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37172 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37173 kern/$(target_cpu)/cache.S.
37174 * conf/sparc64-ieee1275.rmk: Likewise.
37176 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37178 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37179 type to `grub_uint8_t', and adjust `padding9' accordingly.
37181 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37183 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37185 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37186 assembly in final jump, using register constraints.
37188 (grub_linux_boot): For text mode, initialize `have_vga' using
37189 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37191 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37192 right before the final jump.
37194 Set `video_mode' to 0x3.
37196 Document initialization of `video_page', `video_mode' and
37199 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37201 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37202 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37203 and set GRUB_LINUX_FLAG_QUIET appropriately.
37205 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37207 Fix build on Debian / sparc.
37209 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37211 2009-06-28 Pavel Roskin <proski@gnu.org>
37213 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37216 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37218 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37220 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37223 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37227 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37228 file can't be opened. grub_file_open() is already supposed to set
37229 grub_errno / grub_errmsg appropriately.
37230 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37232 2009-06-27 Pavel Roskin <proski@gnu.org>
37233 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37235 * include/grub/dl.h: Include grub/elf.h.
37236 (struct grub_dl): Add symtab field.
37237 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37238 GRUB_MODULES_MACHINE_READONLY.
37239 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37240 of the header for read-only modules.
37241 (grub_dl_unload): Free mod->symtab for read-only modules.
37242 * kern/i386/dl.c: Use mod->symtab.
37243 * kern/powerpc/dl.c: Likewise.
37244 * kern/sparc64/dl.c: Likewise.
37245 * kern/x86_64/dl.c: Likewise.
37247 * conf/i386-qemu.rmk: New file.
37248 * kern/i386/qemu/startup.S: Likewise.
37249 * kern/i386/qemu/mmap.c: Likewise.
37250 * boot/i386/qemu/boot.S: Likewise.
37251 * include/grub/i386/qemu/time.h: Likewise.
37252 * include/grub/i386/qemu/serial.h: Likewise.
37253 * include/grub/i386/qemu/kernel.h: Likewise.
37254 * include/grub/i386/qemu/console.h: Likewise.
37255 * include/grub/i386/qemu/boot.h: Likewise.
37256 * include/grub/i386/qemu/init.h: Likewise.
37257 * include/grub/i386/qemu/machine.h: Likewise.
37258 * include/grub/i386/qemu/loader.h: Likewise.
37259 * include/grub/i386/qemu/memory.h: Likewise.
37261 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37262 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37263 [qemu] (pkglib_IMAGES): Add `boot.img'.
37264 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37265 [qemu] (boot_img_FORMAT): New variables.
37266 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37267 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37268 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37269 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37270 [qemu] (kernel_img_FORMAT): New variables.
37272 * configure.ac: Recognise `i386-qemu'.
37274 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37275 (for no compression).
37276 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37277 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37278 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37279 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37282 2009-06-27 Pavel Roskin <proski@gnu.org>
37284 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37286 * efiemu/prepare32.c: Likewise.
37287 * efiemu/prepare64.c: Likewise.
37289 2009-06-26 Pavel Roskin <proski@gnu.org>
37291 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37292 * include/grub/elf.h: Define symbols without "32" or "64" based
37293 on GRUB_TARGET_WORDSIZE.
37294 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37295 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37297 * efiemu/loadcore64.c: Likewise.
37298 * loader/i386/bsd32.c: Likewise.
37299 * loader/i386/bsd64.c: Likewise.
37300 * kern/dl.c: Remove own ELF definitions.
37301 * util/i386/efi/grub-mkimage.c: Likewise.
37303 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37305 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37306 segment 0x0 unconditionally, because the reference generated by
37307 GAS is an absolute address.
37309 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37311 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37312 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37314 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37316 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37317 indexes. Check for -f explicitly.
37318 (search_file): Improve error message.
37319 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37321 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37323 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37324 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37326 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37328 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37329 * conf/i386-ieee1275.rmk: Likewise.
37330 * conf/i386-coreboot.rmk: Likewise.
37332 * kern/i386/pc/startup.S (grub_stop): Remove function.
37333 * kern/i386/ieee1275/startup.S: Likewise.
37334 * kern/i386/coreboot/startup.S: Likewise.
37335 * kern/i386/misc.S (grub_stop): New function.
37337 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37339 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37340 * kern/i386/realmode.S (real_to_prot): ... to here.
37342 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37344 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37346 (kernel_elf_SOURCES): Rename to ...
37347 (kernel_img_SOURCES): ... this.
37348 (kernel_elf_HEADERS): Rename to ...
37349 (kernel_img_HEADERS): ... this. Update all users.
37350 (kernel_elf_ASFLAGS): Rename to ...
37351 (kernel_img_ASFLAGS): ... this.
37352 (kernel_elf_CFLAGS): Rename to ...
37353 (kernel_img_CFLAGS): ... this.
37354 (kernel_elf_LDFLAGS): Rename to ...
37355 (kernel_img_LDFLAGS): ... this.
37356 * conf/i386-coreboot.rmk: Likewise.
37357 * conf/powerpc-ieee1275.rmk: Likewise.
37359 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37362 2009-06-21 Pavel Roskin <proski@gnu.org>
37364 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37365 to match nested functions.
37366 * loader/sparc64/ieee1275/linux.c: Likewise.
37368 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37370 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37372 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37373 all i386 platforms.
37375 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37377 Fix asm file handling on ELF, and remove workarounds.
37379 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37380 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37381 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37382 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37384 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37386 Load BSD ELF modules
37388 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37389 and loader/i386/bsd64.c
37390 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37391 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37392 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37393 (grub_freebsd_load_elfmodule32): New declaration
37394 (grub_freebsd_load_elfmoduleobj64): Likewise
37395 (grub_freebsd_load_elf_meta32): Likewise
37396 (grub_freebsd_load_elf_meta64): Likewise
37397 (grub_freebsd_add_meta): Likewise
37398 (grub_freebsd_add_meta_module): Likewise
37399 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37400 (grub_freebsd_add_meta_module): Likewise and move module-specific
37401 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37402 (grub_cmd_freebsd): Add elf-kernel specific parts
37403 based on grub_freebsd_add_meta_module
37404 (grub_cmd_freebsd_module): Add type parsing moved from
37405 grub_freebsd_add_meta_module
37406 (grub_cmd_freebsd_module_elf): New function
37407 (cmd_freebsd_module_elf): New variable
37408 (GRUB_MOD_INIT): Register freebsd_module_elf
37409 * loader/i386/bsd32.c: New file
37410 * loader/i386/bsd64.c: Likewise
37411 * loader/i386/bsdXX.c: Likewise
37412 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37413 (grub_elf64_load): Likewise
37414 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37416 (grub_elf64_load_hook_t): Likewise
37418 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37420 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37422 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37423 don't write a menu entry for recovery mode.
37425 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37427 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37428 after it's no longer needed.
37430 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37432 * include/grub/i386/loader.h (grub_linux_prot_size)
37433 (grub_linux_tmp_addr, grub_linux_real_addr)
37434 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37435 GRUB_MACHINE_PCBIOS.
37436 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37437 common grub_util_info() call to ...
37438 (generate_image): ... here.
37439 Fix use of uninitialized memory, comparison of signed with
37440 unsigned integers and memory leak.
37441 Remove bogus module address message.
37443 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37445 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37447 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37449 2009-06-19 Pavel Roskin <proski@gnu.org>
37451 * configure.ac: Remove stray AC_MSG_CHECKING.
37453 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37455 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37457 2009-06-18 Pavel Roskin <proski@gnu.org>
37459 * conf/common.rmk: Add fs_file.mod.
37460 * disk/fs_file.c: New file.
37461 * include/grub/disk.h (enum grub_disk_dev_id): Add
37462 GRUB_DISK_DEVICE_FILE_ID.
37464 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37466 Fix build with Apple's toolchain. Part 2
37468 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37471 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37473 Fix build with Apple's toolchain. Part 1
37475 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37477 * configure.ac: remove a leftover AC_MSG_RESULT
37478 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37481 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37485 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37486 (decomp_block): initialize ch
37487 use grub_memcpy instead of memcpy
37489 2009-06-17 Pavel Roskin <proski@gnu.org>
37491 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37492 version, use declarations needed to use vga_text as the startup
37495 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37496 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37498 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37499 and grub_at_keyboard_fini(), it's done on module load and
37502 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37504 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37505 file can't be found.
37506 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37508 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37510 Fix newline handling
37512 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37513 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37514 (grub_script_yylex): don't segfault on unterminated script
37515 newline terminates command and variable
37517 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37519 avoid double grub_adjust_range call. Bug reported by David Simner
37521 * kern/disk.c (grub_disk_write): change to raw disk access before
37524 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37526 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37527 spaces, for the benefit of help2man.
37528 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37530 2009-06-16 Pavel Roskin <proski@gnu.org>
37532 * kern/i386/halt.c: Include grub/machine/init.h.
37533 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37535 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37537 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37538 drivemap menuentry.
37540 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37542 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37545 2009-06-16 Pavel Roskin <proski@gnu.org>
37547 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37548 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37549 save %dx, we only need %dl and we never change it.
37550 * boot/i386/pc/cdboot.S: Don't set the root drive.
37551 * boot/i386/pc/pxeboot.S: Likewise.
37552 * include/grub/i386/pc/boot.h: Remove
37553 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37554 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37555 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37556 * kern/i386/pc/init.c (make_install_device): Remove references
37557 to grub_root_drive.
37558 * kern/i386/pc/startup.S: Likewise.
37559 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37561 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37565 * commands/xnu_uuid.c: new file
37566 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37567 (xnu_uuid_mod_SOURCES): new variable
37568 (xnu_uuid_mod_CFLAGS): likewise
37569 (xnu_uuid_mod_LDFLAGS): likewise
37570 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37571 * conf/i386-ieee1275.rmk: likewise
37572 * conf/i386-pc.rmk: likewise
37573 * conf/powerpc-ieee1275.rmk: likewise
37574 * conf/sparc64-ieee1275.rmk: likewise
37575 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37577 2009-06-16 Pavel Roskin <proski@gnu.org>
37579 * configure.ac: Avoid '==' in test command, it's not portable.
37581 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37585 * commands/probe.c: new file
37586 * conf/common.rmk (pkglib_MODULES): add probe.mod
37587 (probe_mod_SOURCES): new variable
37588 (probe_mod_CFLAGS): likewise
37589 (probe_mod_LDFLAGS): likewise
37590 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37591 * conf/i386-ieee1275.rmk: likewise
37592 * conf/i386-pc.rmk: likewise
37593 * conf/powerpc-ieee1275.rmk: likewise
37594 * conf/sparc64-ieee1275.rmk: likewise
37596 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37598 Fix handling of string like \"hello\" and "a
37601 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37602 (grub_script_yylex): fix parsing of quoting, escaping and newline
37604 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37606 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37609 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37611 * util/grub-mkconfig.in: Fix parsing of --output option.
37613 2009-06-12 Pavel Roskin <proski@gnu.org>
37615 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37616 genmk.rb don't need to be generated or installed.
37618 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37620 * commands/i386/pc/drivemap_int13h.S: add more comments
37622 2009-06-11 Pavel Roskin <proski@gnu.org>
37624 * Makefile.in (uninstall): Uninstall manuals.
37626 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37627 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37628 and update-grub_lib in two places.
37629 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37631 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37632 a compiler warning.
37634 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37635 `entry_lo' to fix variable shadowing.
37637 2009-06-11 Christian Franke <franke@computer.org>
37639 * kern/misc.c (__enable_execute_stack): Add missing return type
37640 to prevent gcc warning.
37642 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37644 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37646 2009-06-11 Pavel Roskin <proski@gnu.org>
37648 * Makefile.in: Don't rely on any scripts being executable.
37649 Always use $(SHELL) to run shell scripts.
37651 * configure.ac: Always define ___main if using -nostdlib. This
37652 fixes tests on Cygwin.
37654 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37658 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37659 is in bytes and not in blocks
37661 2009-06-11 Pavel Roskin <proski@gnu.org>
37663 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37666 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37668 * util/grub.d/30_os-prober.in: Fix a comment. Source
37669 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37670 to set the root device. Place drivemap command in the generated
37673 2009-06-11 Pavel Roskin <proski@gnu.org>
37675 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37676 have long been resolved.
37678 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37680 * util/grub.d/10_linux.in: Capitalise "Linux".
37682 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37684 2009-06-11 Pavel Roskin <proski@gnu.org>
37686 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37687 fix a gcc warning and ensure that the function won't ever exit.
37689 * kern/i386/ieee1275/init.c: Add missing prototype for
37690 grub_stop_floppy().
37692 * loader/ieee1275/multiboot2.c [__i386__]: Include
37693 grub/cpu/multiboot.h.
37695 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37696 casts to short - they are not portable and cause warnings. Fix
37697 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37699 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37703 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37705 (grub_get_root_biosnumber_saved): new variable
37706 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37707 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37708 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37709 %dx after the call if necessary
37710 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37711 (boot_mod_SOURCES): remove
37712 (boot_mod_CFLAGS): remove
37713 (boot_mod_LDFLAGS): remove
37714 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37715 (boot_mod_SOURCES): new variable
37716 (boot_mod_CFLAGS): likewise
37717 (boot_mod_LDFLAGS): likewise
37718 * conf/i386-efi.rmk: likewise
37719 * conf/i386-ieee1275.rmk: likewise
37720 * conf/i386-pc.rmk: likewise
37721 * conf/powerpc-ieee1275.rmk: likewise
37722 * conf/sparc64-ieee1275.rmk: likewise
37723 * conf/x86_64-efi.rmk: likewise
37724 * include/grub/i386/pc/biosnum.h: new file
37725 * lib/i386/pc/biosnum.c: likewise
37726 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37727 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37728 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37730 2009-06-10 Pavel Roskin <proski@gnu.org>
37732 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37733 Use separate variables. Read only the file size at the end, but
37734 not the checksum that we don't use.
37736 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37737 Adjust all callers.
37739 * kern/ieee1275/openfw.c: Remove libc includes.
37740 * kern/ieee1275/cmain.c: Likewise.
37741 * include/grub/ieee1275/ieee1275.h: Likewise.
37743 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37746 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37748 * Makefile.in: Remove all trailing whitespace.
37749 * conf/i386-pc.rmk: Likewise.
37750 * conf/powerpc-ieee1275.rmk: Likewise.
37751 * conf/sparc64-ieee1275.rmk: Likewise.
37752 * docs/grub.texi: Likewise.
37753 * docs/texinfo.tex: Likewise.
37754 * disk/fs_uuid.c: Likewise.
37755 * disk/lvm.c: Likewise.
37756 * disk/scsi.c: Likewise.
37757 * disk/ata.c: Likewise.
37758 * disk/ieee1275/ofdisk.c: Likewise.
37759 * disk/i386/pc/biosdisk.c: Likewise.
37760 * disk/host.c: Likewise.
37761 * disk/raid.c: Likewise.
37762 * disk/efi/efidisk.c: Likewise.
37763 * disk/usbms.c: Likewise.
37764 * disk/memdisk.c: Likewise.
37765 * disk/loopback.c: Likewise.
37766 * kern/powerpc/dl.c: Likewise.
37767 * kern/device.c: Likewise.
37768 * kern/dl.c: Likewise.
37769 * kern/sparc64/dl.c: Likewise.
37770 * kern/ieee1275/ieee1275.c: Likewise.
37771 * kern/term.c: Likewise.
37772 * kern/fs.c: Likewise.
37773 * kern/i386/dl.c: Likewise.
37774 * kern/i386/pc/startup.S: Likewise.
37775 * kern/i386/pc/init.c: Likewise.
37776 * kern/i386/pc/mmap.c: Likewise.
37777 * kern/i386/pc/lzo1x.S: Likewise.
37778 * kern/i386/ieee1275/init.c: Likewise.
37779 * kern/i386/realmode.S: Likewise.
37780 * kern/i386/tsc.c: Likewise.
37781 * kern/partition.c: Likewise.
37782 * kern/corecmd.c: Likewise.
37783 * kern/file.c: Likewise.
37784 * kern/efi/efi.c: Likewise.
37785 * kern/efi/init.c: Likewise.
37786 * kern/efi/mm.c: Likewise.
37787 * kern/main.c: Likewise.
37788 * kern/err.c: Likewise.
37789 * kern/env.c: Likewise.
37790 * kern/disk.c: Likewise.
37791 * kern/generic/millisleep.c: Likewise.
37792 * kern/generic/rtc_get_time_ms.c: Likewise.
37793 * kern/misc.c: Likewise.
37794 * kern/parser.c: Likewise.
37795 * genmk.rb: Likewise.
37796 * configure.ac: Likewise.
37797 * boot/i386/pc/diskboot.S: Likewise.
37798 * boot/i386/pc/pxeboot.S: Likewise.
37799 * boot/i386/pc/boot.S: Likewise.
37800 * boot/i386/pc/lnxboot.S: Likewise.
37801 * boot/i386/pc/cdboot.S: Likewise.
37802 * parttool/pcpart.c: Likewise.
37803 * video/readers/tga.c: Likewise.
37804 * video/video.c: Likewise.
37805 * video/bitmap.c: Likewise.
37806 * lib/envblk.c: Likewise.
37807 * lib/i386/setjmp.S: Likewise.
37808 * fs/xfs.c: Likewise.
37809 * fs/afs.c: Likewise.
37810 * fs/fat.c: Likewise.
37811 * fs/ntfs.c: Likewise.
37812 * fs/udf.c: Likewise.
37813 * fs/affs.c: Likewise.
37814 * fs/iso9660.c: Likewise.
37815 * fs/hfs.c: Likewise.
37816 * fs/fshelp.c: Likewise.
37817 * fs/ext2.c: Likewise.
37818 * fs/jfs.c: Likewise.
37819 * fs/reiserfs.c: Likewise.
37820 * fs/hfsplus.c: Likewise.
37821 * fs/minix.c: Likewise.
37822 * fs/cpio.c: Likewise.
37823 * fs/sfs.c: Likewise.
37824 * fs/ufs.c: Likewise.
37825 * efiemu/prepare.c: Likewise.
37826 * efiemu/loadcore_common.c: Likewise.
37827 * efiemu/runtime/efiemu.sh: Likewise.
37828 * efiemu/runtime/efiemu.S: Likewise.
37829 * efiemu/runtime/efiemu.c: Likewise.
37830 * efiemu/pnvram.c: Likewise.
37831 * efiemu/main.c: Likewise.
37832 * efiemu/i386/pc/cfgtables.c: Likewise.
37833 * efiemu/i386/loadcore64.c: Likewise.
37834 * efiemu/i386/loadcore32.c: Likewise.
37835 * efiemu/loadcore.c: Likewise.
37836 * efiemu/symbols.c: Likewise.
37837 * efiemu/mm.c: Likewise.
37838 * include/grub/autoefi.h: Likewise.
37839 * include/grub/datetime.h: Likewise.
37840 * include/grub/term.h: Likewise.
37841 * include/grub/hfs.h: Likewise.
37842 * include/grub/lvm.h: Likewise.
37843 * include/grub/i386/tsc.h: Likewise.
37844 * include/grub/i386/linux.h: Likewise.
37845 * include/grub/i386/xnu.h: Likewise.
37846 * include/grub/i386/efiemu.h: Likewise.
37847 * include/grub/i386/pc/biosdisk.h: Likewise.
37848 * include/grub/i386/pc/memory.h: Likewise.
37849 * include/grub/i386/pc/vbe.h: Likewise.
37850 * include/grub/parttool.h: Likewise.
37851 * include/grub/video.h: Likewise.
37852 * include/grub/memory.h: Likewise.
37853 * include/grub/fs.h: Likewise.
37854 * include/grub/partition.h: Likewise.
37855 * include/grub/xnu.h: Likewise.
37856 * include/grub/efi/api.h: Likewise.
37857 * include/grub/efi/pe32.h: Likewise.
37858 * include/grub/efi/memory.h: Likewise.
37859 * include/grub/multiboot.h: Likewise.
37860 * include/grub/usbdesc.h: Likewise.
37861 * include/grub/multiboot2.h: Likewise.
37862 * include/grub/acpi.h: Likewise.
37863 * include/grub/efiemu/efiemu.h: Likewise.
37864 * include/grub/disk.h: Likewise.
37865 * include/grub/ieee1275/ieee1275.h: Likewise.
37866 * include/grub/net.h: Likewise.
37867 * include/grub/machoload.h: Likewise.
37868 * include/grub/macho.h: Likewise.
37869 * include/multiboot.h: Likewise.
37870 * genmoddep.awk: Likewise.
37871 * normal/main.c: Likewise.
37872 * normal/menu_entry.c: Likewise.
37873 * normal/menu_viewer.c: Likewise.
37874 * normal/completion.c: Likewise.
37875 * normal/cmdline.c: Likewise.
37876 * normal/misc.c: Likewise.
37877 * normal/datetime.c: Likewise.
37878 * bus/usb/usbtrans.c: Likewise.
37879 * bus/usb/ohci.c: Likewise.
37880 * bus/usb/uhci.c: Likewise.
37881 * bus/usb/usb.c: Likewise.
37882 * mmap/efi/mmap.c: Likewise.
37883 * mmap/i386/pc/mmap_helper.S: Likewise.
37884 * mmap/i386/pc/mmap.c: Likewise.
37885 * mmap/i386/mmap.c: Likewise.
37886 * mmap/i386/uppermem.c: Likewise.
37887 * mmap/mmap.c: Likewise.
37888 * commands/acpi.c: Likewise.
37889 * commands/echo.c: Likewise.
37890 * commands/blocklist.c: Likewise.
37891 * commands/loadenv.c: Likewise.
37892 * commands/usbtest.c: Likewise.
37893 * commands/boot.c: Likewise.
37894 * commands/parttool.c: Likewise.
37895 * commands/search.c: Likewise.
37896 * commands/cat.c: Likewise.
37897 * commands/i386/pc/play.c: Likewise.
37898 * commands/i386/pc/drivemap.c: Likewise.
37899 * commands/i386/pc/vbeinfo.c: Likewise.
37900 * commands/i386/pc/acpi.c: Likewise.
37901 * commands/i386/pc/vbetest.c: Likewise.
37902 * commands/ls.c: Likewise.
37903 * commands/cmp.c: Likewise.
37904 * commands/test.c: Likewise.
37905 * commands/efi/acpi.c: Likewise.
37906 * commands/gptsync.c: Likewise.
37907 * commands/help.c: Likewise.
37908 * partmap/amiga.c: Likewise.
37909 * partmap/apple.c: Likewise.
37910 * partmap/acorn.c: Likewise.
37911 * partmap/pc.c: Likewise.
37912 * partmap/sun.c: Likewise.
37913 * partmap/gpt.c: Likewise.
37914 * script/sh/lexer.c: Likewise.
37915 * script/sh/function.c: Likewise.
37916 * font/font.c: Likewise.
37917 * font/font_cmd.c: Likewise.
37918 * loader/powerpc/ieee1275/linux.c: Likewise.
37919 * loader/efi/chainloader.c: Likewise.
37920 * loader/multiboot_loader.c: Likewise.
37921 * loader/macho.c: Likewise.
37922 * loader/i386/multiboot.c: Likewise.
37923 * loader/i386/linux.c: Likewise.
37924 * loader/i386/pc/linux.c: Likewise.
37925 * loader/i386/pc/multiboot2.c: Likewise.
37926 * loader/i386/pc/chainloader.c: Likewise.
37927 * loader/i386/pc/xnu.c: Likewise.
37928 * loader/i386/bsd_trampoline.S: Likewise.
37929 * loader/i386/efi/linux.c: Likewise.
37930 * loader/i386/multiboot_elfxx.c: Likewise.
37931 * loader/i386/bsd_helper.S: Likewise.
37932 * loader/i386/bsd.c: Likewise.
37933 * loader/i386/linux_trampoline.S: Likewise.
37934 * loader/i386/xnu_helper.S: Likewise.
37935 * loader/i386/xnu.c: Likewise.
37936 * loader/i386/bsd_pagetable.c: Likewise.
37937 * loader/i386/multiboot_helper.S: Likewise.
37938 * loader/xnu.c: Likewise.
37939 * loader/xnu_resume.c: Likewise.
37940 * io/gzio.c: Likewise.
37941 * term/efi/console.c: Likewise.
37942 * term/terminfo.c: Likewise.
37943 * term/ieee1275/ofconsole.c: Likewise.
37944 * term/i386/pc/serial.c: Likewise.
37945 * term/i386/pc/vesafb.c: Likewise.
37946 * term/i386/pc/vga.c: Likewise.
37947 * term/usb_keyboard.c: Likewise.
37948 * term/gfxterm.c: Likewise.
37949 * aclocal.m4: Likewise.
37950 * util/lvm.c: Likewise.
37951 * util/grub.d/30_os-prober.in: Likewise.
37952 * util/grub.d/10_hurd.in: Likewise.
37953 * util/console.c: Likewise.
37954 * util/grub-macho2img.c: Likewise.
37955 * util/grub-probe.c: Likewise.
37956 * util/hostfs.c: Likewise.
37957 * util/i386/pc/grub-mkimage.c: Likewise.
37958 * util/i386/pc/grub-setup.c: Likewise.
37959 * util/i386/efi/grub-mkimage.c: Likewise.
37960 * util/grub-mkconfig.in: Likewise.
37961 * util/raid.c: Likewise.
37962 * util/resolve.c: Likewise.
37963 * util/grub-mkdevicemap.c: Likewise.
37964 * util/grub-emu.c: Likewise.
37965 * util/getroot.c: Likewise.
37966 * util/hostdisk.c: Likewise.
37967 * util/usb.c: Likewise.
37968 * util/grub-editenv.c: Likewise.
37969 * util/misc.c: Likewise.
37971 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37973 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37974 `genparttoollist.sh'.
37975 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37976 Add `*.sh' to the list find searches for and change `mdate.sh'
37979 2009-06-10 Pavel Roskin <proski@gnu.org>
37981 * include/grub/multiboot2.h: Provide compatibility defines for
37983 * include/multiboot2.h: Include stdint.h only if needed, using
37985 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37987 * loader/ieee1275/multiboot2.c: Likewise.
37988 * loader/multiboot2.c: Likewise.
37989 * loader/multiboot_loader.c: Likewise.
37991 * configure.ac: Use -nostdlib when probing for the target. It
37992 should not be required to have libc for the target.
37994 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37995 they fail without libc headers for the target.
37996 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37998 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37999 preprocessor conditionals.
38001 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
38002 build system doesn't need to be aware of the tar.c internals.
38004 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
38006 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
38008 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38010 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38011 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38013 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
38015 * util/i386/pc/grub-install.in: Change the error message if UUIDs
38016 aren't available if ata.mod gets used.
38018 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
38020 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
38021 initialising controller.
38022 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38024 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38026 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38027 to choose between ata and biosdisk module on i386-pc.
38029 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
38031 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38032 Subclass and Programming Interface fields in terms of the 3 byte
38033 Class Code register.
38034 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38036 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38037 interface is OHCI. Add grub_dprintf for symmetry with
38039 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38040 interface is UHCI. Add interf variable for programming
38041 interface. Print interface with class/subclass.
38043 * bus/usb/ohci.c: Set interf with correct field.
38045 * bus/usb/uhci.c: Remove unneeded doubled lines.
38046 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38047 Remove whitespace inside comment.
38049 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38051 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38052 as fallback an equivalent option without depth.
38054 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38056 Not fail if unable to retrieve C/H/S on LBA disks
38058 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38059 if unable to retrieve C/H/S on LBA disks
38061 2009-06-08 Pavel Roskin <proski@gnu.org>
38063 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38066 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38068 * Makefile.in (uninstall): Remove all $lib_DATA files.
38070 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38072 Bugfix: install on partitionless device
38074 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38077 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38079 * Makefile.in (uninstall): Remove all $include_DATA files.
38081 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38083 * commands/true.c: New file. Implement the true and false commands.
38084 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38085 (true_mod_SOURCES): New variable.
38086 (true_mod_CFLAGS): Likewise.
38087 (true_mod_LDFLAGS): Likewise.
38089 2009-06-05 Colin D Bennett <colin@gibibit.com>
38091 Optimized font character lookup using binary search instead of linear
38092 search. Fonts now are required to have the character index ordered by
38095 * font/font.c (load_font_index): Verify that fonts have ordered
38097 (find_glyph): Use binary search instead of linear search to find a
38098 character in a font.
38100 2009-06-05 Michael Scherer <misc@mandriva.org>
38102 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38103 uses case sensitive btree.
38104 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38105 only for case insensitive filesystems.
38107 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38109 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38110 * conf/common.rmk (search_mod_CFLAGS): likewise
38112 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38114 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38115 compensate a compiler bug
38117 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38119 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38122 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38124 Definitions for creating asm symbols with Apple's CC
38126 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38127 [APPLE_CC] (VARIABLE): likewise
38129 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38131 Disable lnxboot.img when compiled
38134 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38135 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38136 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38137 [! APPLE_CC] (CODE_LENG): skip
38138 [! APPLE_CC] (setup_sects): likewise
38139 [! APPLE_CC]: skip filling
38141 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38143 Address in trampolines based on 32-bit registers when compiled
38146 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38148 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38150 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38152 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38154 * kern/misc.c [APPLE_CC] (memcpy): new function
38155 [APPLE_CC] (memmove): likewise
38156 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38157 (memcpy): define alias conditionally on !APPLE_CC
38160 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38161 APPLE_CC are defined
38162 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38163 (grub_assert_fail): make prototype conditional
38165 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38167 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38169 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38171 (CLEANFILES): add grub-macho2img
38172 (grub_macho2img_SOURCES): new variable
38173 * kern/i386/pc/startup.S (bss_start): new variable
38174 (bss_end): likewise
38175 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38176 * util/grub-macho2img.c: new file
38178 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38180 Use objconv when compiling with Apple's CC
38182 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38183 (efiemu64.o): likewise
38184 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38185 when compiling with Apple's CC
38186 (efiemu64_s.o): likewise
38187 * configure.ac: check for objconv when compiling with Apple's CC
38188 * genmk.rb: use objconv for modules when compiled with Apple's CC
38190 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38192 Define segment as well as section when compiling with
38195 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38196 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38197 (efiemu_convert_pointer): likewise
38198 (efiemu_set_virtual_address_map): likewise
38199 (efiemu_convert_pointer): likewise
38200 (efiemu_getcrc32): likewise
38201 (init_crc32_table): likewise
38202 (reflect): likewise
38203 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38204 (GRUB_MOD_DEP): likewise
38206 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38208 Allow a compilation without -mcmodel=large
38210 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38211 when compiled without -mcmodel=large
38212 (filter_memory_map): remove memory post 4 GiB when compiled
38213 without -mcmodel=large
38214 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38215 TARGET_CFLAGS when -mcmodel=large isn't supported
38217 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38219 Remove nested functions in efiemu core
38221 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38223 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38225 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38227 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38229 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38231 (grub_cpu_is_tsc_supported): likewise
38232 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38234 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38236 Absolute addressing through constant with Apple's cc
38238 * kern/i386/pc/startup.S: Define necessary constants
38239 and address through it when using ABS with Apple's CC
38240 * boot/i386/pc/diskboot.S: likewise
38241 * boot/i386/pc/boot.S: likewise
38242 * boot/i386/pc/lnxboot.S: likewise
38243 * boot/i386/pc/cdboot.S: likewise
38244 * mmap/i386/pc/mmap_helper.S: likewise
38245 * commands/i386/pc/drivemap_int13h.S: likewise
38247 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38249 Check if compiler is apple cc
38251 * Makefile.in (ASFLAGS): new variable
38252 (TARGET_ASFLAGS): likewise
38253 (TARGET_MODULE_FORMAT): likewise
38254 (TARGET_APPLE_CC): likewise
38255 (OBJCONV): likewise
38256 (TARGET_IMG_CFLAGS): likewise
38257 (TARGET_CPPFLAGS): add includedir
38258 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38259 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38260 Check for linker script only if compiler isn't Apple's CC
38261 (TARGET_MODULE_FORMAT): set
38262 (TARGET_APPLE_CC): likewise
38263 (TARGET_ASFLAGS): likewise
38264 (ASFLAGS): likewise
38265 Check for objcopy only if compiler isn't Apple's CC
38266 Check for BSS symbol only if compiler isn't Apple's CC
38267 * genmk.rb: adapt nm options if we use Apple's utils
38268 * aclocal.m4 (grub_apple_cc): new test
38269 (grub_apple_target_cc): likewise
38271 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38273 Simplify sed expressions and improve awk
38275 * Makefile.in (install-local): simplify sed expression
38276 * gencmdlist.sh: likewise
38277 * genmoddep.awk: avoid adding module as a dependency of itself
38279 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38281 Add missing start symbols
38283 * boot/i386/pc/boot.S: add start
38284 * boot/i386/pc/pxeboot.S: likewise
38286 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38288 Fix wrong assumptions with grub-mkimage on EFI
38290 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38291 (relocate_addresses): consider both r_addend and value at offset
38292 (make_mods_section): zerofill modinfo and header
38293 (convert_elf): write prefix here
38295 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38297 Use .asciz instead of .string
38299 * i386/pc/diskboot.S: use .asciz instead of .string
38300 * i386/pc/boot.S: likewise
38301 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38302 (GRUB_MOD_NAME): likewise
38304 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38308 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38309 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38310 (grub_video_setup): remove
38311 (grub_video_set_mode): new prototype
38312 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38314 (linux_vesafb_res): compile only on PCBIOS
38315 (grub_linux_boot): support gfxpayload
38316 * loader/i386/pc/xnu.c (video_hook): new function
38317 (grub_xnu_set_video): support gfxpayload
38318 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38319 (DEFAULT_VIDEO_HEIGHT): likewise
38320 (DEFAULT_VIDEO_FLAGS): likewise
38321 (DEFAULT_VIDEO_MODE): new definition
38322 (video_hook): new function
38323 (grub_gfxterm_init): use grub_video_set_mode
38324 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38326 * video/video.c (grub_video_setup): removed
38327 (grub_video_set_mode): new function based on grub_gfxterm_init and
38330 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38332 Avoid calling biosdisk in drivemap
38334 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38335 (revparse_biosdisk): likewise
38336 (list_mappings): derive name from id directly
38337 (grub_cmd_drivemap): use tryparse_diskstring
38339 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38343 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38344 (grub_lexer_param): add tokenonhold
38345 (grub_script_create_cmdline): remove cmdline. All callers updated
38346 (grub_script_function_create): make functionname
38347 grub_script_arg. All callers updated
38348 (grub_script_execute_argument_to_string): new prototype
38349 * kern/parser.c (state_transitions): reorder
38350 (grub_parser_cmdline_state): fix a bug and make more compact
38351 * script/sh/execute.c (grub_script_execute_argument_to_string):
38353 (grub_script_execute_cmdline): use new format
38354 * script/sh/function.c (grub_script_function_create): make functionname
38355 grub_script_arg. All callers updated
38356 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38357 (grub_script_yylex): remove
38358 (grub_script_yylex2): renamed to ...
38359 (grub_script_yylex): ...renamed
38360 parse the expressions like a${b}c
38361 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38362 (GRUB_PARSER_TOKEN_VAR): remove
38363 (GRUB_PARSER_TOKEN_NAME): likewise
38364 ("if"): declare as typeless
38365 ("while"): likewise
38366 ("function"): likewise
38371 (argument): likewise
38372 (script): accept empty scripts and make exit on error
38373 (arguments): use GRUB_PARSER_TOKEN_ARG
38374 (function): likewise
38375 (command): move error handling to script
38376 (menuentry): move grub_script_lexer_ref before
38377 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38378 argument. All callers updated
38380 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38382 Prevent GRUB from probing floppies during boot.
38384 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38385 * commands/search.c (options): Add --no-floppy.
38386 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38387 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38388 --no-floppy when searching for UUIDs.
38390 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38392 Simplify the code duplication in commands/search.c.
38394 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38395 (search_fs): ... this. Update all users.
38397 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38399 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38401 2009-05-28 Pavel Roskin <proski@gnu.org>
38403 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38404 Remove the original symlink explicitly.
38406 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38407 just one slash. That's how grub_fshelp_find_file() does it.
38409 2009-05-26 Pavel Roskin <proski@gnu.org>
38411 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38414 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38417 2009-05-25 Christian Franke <franke@computer.org>
38419 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38421 (grub_atapi_identify): Add wait after drive select.
38422 (grub_ata_identify): Do more strict status register check before
38423 calling grub_atapi_identify (). Suppress error message if status
38424 register is 0x00 after command failure. Add status register
38425 check after PIO read to avoid bogus identify due to stuck DRQ.
38426 Thanks to Pavel Roskin for testing.
38427 (grub_device_initialize): Remove unsafe status register check.
38428 Thanks to 'phcoder' for problem report and patch.
38429 Prevent sign extension in debug message.
38431 2009-05-23 Colin D Bennett <colin@gibibit.com>
38433 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38434 definition file, and functions defined in `normal/menu.c' have had
38435 their prototypes moved to `include/grub/menu.h' for consistency.
38437 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38439 (grub_menu_get_entry): Likewise.
38440 (grub_menu_get_timeout): Likewise.
38441 (grub_menu_set_timeout): Likewise.
38442 (grub_menu_execute_entry): Likewise.
38443 (grub_menu_execute_with_fallback): Likewise.
38444 (grub_menu_entry_run): Likewise.
38446 * include/grub/normal.h: Re-ordered and grouped function
38447 prototypes by file that the function is defined in.
38448 (grub_menu_execute_callback): Removed; moved to menu.h.
38449 (grub_menu_get_entry): Likewise.
38450 (grub_menu_get_timeout): Likewise.
38451 (grub_menu_set_timeout): Likewise.
38452 (grub_menu_execute_entry): Likewise.
38453 (grub_menu_execute_with_fallback): Likewise.
38454 (grub_menu_entry_run): Likewise.
38455 (grub_menu_addentry): Renamed from this ...
38456 (grub_normal_add_menu_entry): ... to this.
38458 * normal/main.c (grub_menu_addentry): Renamed from this ...
38459 (grub_normal_add_menu_entry): ... to this.
38461 * script/sh/execute.c (grub_script_execute_menuentry): Update
38462 reference to renamed grub_menu_addentry function.
38464 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38466 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38468 2009-05-22 Pavel Roskin <proski@gnu.org>
38470 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38471 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38472 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38473 compiling for the i386 targets, but not for the utilities.
38475 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38477 (grub_root_drive): Likewise.
38478 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38480 (grub_root_drive): Change size to byte.
38481 (grub_start_addr): Remove.
38482 (grub_end_addr): Likewise.
38483 (grub_apm_bios_info): Likewise.
38485 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38487 * normal/i386: Remove.
38488 * normal/powerpc: Likewise.
38489 * normal/sparc64: Likewise.
38490 * normal/x86_64: Likewise.
38492 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38494 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38495 * loader/i386/linux_trampoline.S: Fix indentation
38496 * loader/i386/xnu_helper.S: Likewise
38498 2009-05-18 Colin D Bennett <colin@gibibit.com>
38500 Display error messages when parsing a Lua statement fails.
38501 Previously, executing a syntactically invalid statement like
38502 ")foo" or "bar;" would silently fail.
38504 * script/lua/grub_main.c (handle_lua_error): New function.
38505 (grub_lua_parse_line): Improved reporting of Lua parser and
38508 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38510 Remove -Werror which causes build to fail on some systems
38512 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38513 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38514 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38516 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38518 trampoline for linux on 64-bit platform
38520 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38521 loader/i386/efi/linux_trampoline.S
38522 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38524 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38526 * loader/i386/linux_trampoline.S: moved here
38527 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38529 (jumpvector): removed
38530 (grub_linux_trampoline_start): new declaration
38531 (grub_linux_trampoline_end): likewise
38532 (grub_linux_boot): use trampoline when on 64-bit platform
38533 * loader/i386/linux.c: likewise
38535 2009-05-16 Pavel Roskin <proski@gnu.org>
38537 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38538 const to avoid a warning.
38539 (grub_lua_setenv): Likewise.
38540 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38541 lmsg to fix a warning.
38543 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38545 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38546 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38547 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38548 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38549 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38550 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38551 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38552 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38554 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38556 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38558 2009-05-16 Bean <bean123ch@gmail.com>
38560 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38561 (lua_mod_SOURCES): New variable.
38562 (lua_mod_CFLAGS): Likewise.
38563 (lua_mod_LDFLAGS): Likewise.
38565 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38566 (setjmp_mod_SOURCES): New variable.
38567 (setjmp_mod_CFLAGS): Likewise.
38568 (setjmp_LDFLAGS): Likewise.
38570 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38571 (setjmp_mod_SOURCES): New variable.
38572 (setjmp_mod_CFLAGS): Likewise.
38573 (setjmp_LDFLAGS): Likewise.
38575 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38576 (setjmp_mod_SOURCES): New variable.
38577 (setjmp_mod_CFLAGS): Likewise.
38578 (setjmp_LDFLAGS): Likewise.
38580 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38581 (setjmp_mod_SOURCES): New variable.
38582 (setjmp_mod_CFLAGS): Likewise.
38583 (setjmp_LDFLAGS): Likewise.
38585 * normal/i386/setjmp.S: Moved from here ...
38586 * lib/i386/setjmp.S: ... Moved here
38587 * normal/x86_64/setjmp.S: Moved from here ...
38588 * lib/x86_64/setjmp.S: ... Moved here
38589 * normal/powerpc/setjmp.S: Moved from here ...
38590 * lib/powerpc/setjmp.S: ... Moved here
38591 * normal/sparc64/setjmp.S: Moved from here ...
38592 * lib/sparc64/setjmp.S: ... Moved here
38594 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38595 returns_twice in mingw.
38597 * script/lua/grub_lib.c: New file.
38598 * script/lua/grub_lib.h: Likewise.
38599 * script/lua/grub_lua.h: Likewise.
38600 * script/lua/grub_main.c: Likewise.
38601 * script/lua/lapi.c: Likewise.
38602 * script/lua/lapi.h: Likewise.
38603 * script/lua/lauxlib.c: Likewise.
38604 * script/lua/lauxlib.h: Likewise.
38605 * script/lua/lbaselib.c: Likewise.
38606 * script/lua/lcode.c: Likewise.
38607 * script/lua/lcode.h: Likewise.
38608 * script/lua/ldblib.c: Likewise.
38609 * script/lua/ldebug.c: Likewise.
38610 * script/lua/ldebug.h: Likewise.
38611 * script/lua/ldo.c: Likewise.
38612 * script/lua/ldo.h: Likewise.
38613 * script/lua/ldump.c: Likewise.
38614 * script/lua/lfunc.c: Likewise.
38615 * script/lua/lfunc.h: Likewise.
38616 * script/lua/lgc.c: Likewise.
38617 * script/lua/lgc.h: Likewise.
38618 * script/lua/linit.c: Likewise.
38619 * script/lua/liolib.c: Likewise.
38620 * script/lua/llex.c: Likewise.
38621 * script/lua/llex.h: Likewise.
38622 * script/lua/llimits.h: Likewise.
38623 * script/lua/lmathlib.c: Likewise.
38624 * script/lua/lmem.c: Likewise.
38625 * script/lua/lmem.h: Likewise.
38626 * script/lua/loadlib.c: Likewise.
38627 * script/lua/lobject.c: Likewise.
38628 * script/lua/lobject.h: Likewise.
38629 * script/lua/lopcodes.c: Likewise.
38630 * script/lua/lopcodes.h: Likewise.
38631 * script/lua/loslib.c: Likewise.
38632 * script/lua/lparser.c: Likewise.
38633 * script/lua/lparser.h: Likewise.
38634 * script/lua/lstate.c: Likewise.
38635 * script/lua/lstate.h: Likewise.
38636 * script/lua/lstring.c: Likewise.
38637 * script/lua/lstring.h: Likewise.
38638 * script/lua/lstrlib.c: Likewise.
38639 * script/lua/ltable.c: Likewise.
38640 * script/lua/ltable.h: Likewise.
38641 * script/lua/ltablib.c: Likewise.
38642 * script/lua/ltm.c: Likewise.
38643 * script/lua/ltm.h: Likewise.
38644 * script/lua/lua.h: Likewise.
38645 * script/lua/luaconf.h: Likewise.
38646 * script/lua/lualib.h: Likewise.
38647 * script/lua/lundump.c: Likewise.
38648 * script/lua/lundump.h: Likewise.
38649 * script/lua/lvm.c: Likewise.
38650 * script/lua/lvm.h: Likewise.
38651 * script/lua/lzio.c: Likewise.
38652 * script/lua/lzio.h: Likewise.
38654 2009-05-16 Bean <bean123ch@gmail.com>
38656 * include/grub/kernel.h (grub_module_header_types): Add type
38659 * kern/main.c (grub_load_config): New function.
38660 (grub_main): Call grub_load_config to read boot config.
38662 * grub-mkimage (generate_image): New parameter config_path.
38663 (options): New option --config.
38664 (main): Parse --config option, and pass it to generate_image.
38666 2009-05-14 Christian Franke <franke@computer.org>
38668 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38669 This fixes build on Cygwin.
38671 2009-05-14 Pavel Roskin <proski@gnu.org>
38673 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38674 jump. This saves two bytes, so the typical case of 2 swapped
38675 drives would fit 32 bytes.
38677 2009-05-13 Pavel Roskin <proski@gnu.org>
38679 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38680 grub_uint32_t to avoid a warning.
38682 * loader/i386/linux.c (allocate_pages): When assigning
38683 real_mode_mem, cast through grub_size_t to fix a warning. The
38684 code already makes sure that the value would fit a pointer.
38685 (grub_linux_setup_video): Cast render_target->data to
38686 grub_size_t to fix a warning.
38688 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38690 * commands/i386/pc/drivemap.c: New file - implement drivemap
38692 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38693 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38695 2009-05-13 Pavel Roskin <proski@gnu.org>
38697 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38698 embedding_area_exists.
38700 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38702 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38703 it easier to understand / work with.
38704 Improve warning messages for cases where there's no embedding area,
38705 or when it is too small (or core.img too large).
38707 2009-05-13 Pavel Roskin <proski@gnu.org>
38709 * loader/i386/pc/multiboot2.c: Add necessary includes for
38710 grub_multiboot2_real_boot().
38712 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38713 PX record is always little-endian. We only need the lower 2
38716 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38717 facilitate code reuse.
38718 (grub_cpio_mount): Use "struct head", not a char buffer. This
38719 fixes a warning reported by gcc 4.4.
38721 * kernel/disk.c (grub_disk_read): Use void pointer for the
38723 (grub_disk_write): Use const void pointer for the buffer.
38724 Adjust all callers. Remove unnecessary casts.
38726 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38728 * util/i386/pc/grub-install.in: Update copyright year.
38730 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38734 * commands/gptsync.c: new file
38735 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38736 (gptsync_mod_SOURCES): new variable
38737 (gptsync_mod_CFLAGS): likewise
38738 (gptsync_mod_LDFLAGS): likewise
38739 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38741 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38742 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38743 * conf/i386-ieee1275.rmk: likewise
38744 * conf/i386-pc.rmk: likewise
38745 * conf/powerpc-ieee1275.rmk: likewise
38747 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38751 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38752 (grub_dl_ref): likewise
38754 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38756 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38757 split in two functions (one for msdos and one for gpt).
38759 2009-05-08 Pavel Roskin <proski@gnu.org>
38761 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38764 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38765 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38766 Initialize them with -1. Add sanity check for bad1. Eliminate
38769 2009-05-08 David S. Miller <davem@davemloft.net>
38771 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38773 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38775 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38778 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38781 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38783 2009-05-05 David S. Miller <davem@davemloft.net>
38785 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38787 2009-05-05 Pavel Roskin <proski@gnu.org>
38789 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38790 of grub_dl_ref() and grub_dl_unref().
38791 * commands/parttool.c: Remove preprocessor conditionals around
38792 grub_dl_ref() and grub_dl_unref().
38793 * fs/affs.c: Likewise.
38794 * fs/afs.c: Likewise.
38795 * fs/cpio.c: Likewise.
38796 * fs/ext2.c: Likewise.
38797 * fs/fat.c: Likewise.
38798 * fs/hfs.c: Likewise.
38799 * fs/hfsplus.c: Likewise.
38800 * fs/iso9660.c: Likewise.
38801 * fs/jfs.c: Likewise.
38802 * fs/minix.c: Likewise.
38803 * fs/ntfs.c: Likewise.
38804 * fs/reiserfs.c: Likewise.
38805 * fs/sfs.c: Likewise.
38806 * fs/udf.c: Likewise.
38807 * fs/ufs.c: Likewise.
38808 * fs/xfs.c: Likewise.
38809 * include/grub/dl.h: Likewise.
38810 * loader/xnu.c: Likewise.
38812 2009-05-04 Pavel Roskin <proski@gnu.org>
38814 * commands/acpi.c: Remove unused variable my_mod.
38815 * partmap/amiga.c: Likewise.
38816 * partmap/apple.c: Likewise.
38817 * partmap/gpt.c: Likewise.
38818 * partmap/pc.c: Likewise.
38819 * partmap/sun.c: Likewise.
38820 * term/gfxterm.c: Likewise.
38821 * term/i386/pc/vesafb.c: Likewise.
38822 * term/i386/pc/vga.c: Likewise.
38824 2009-05-04 David S. Miller <davem@davemloft.net>
38826 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38827 pointer args to grub_ieee1275_get_property().
38829 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38831 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38832 devices, and do not traverse down under controller nodes.
38834 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38835 (grub_ofdisk_open): Use it to un-escape "," characters.
38836 * kern/disk.c (find_part_sep): New.
38837 (grub_disk_open): Use it to find the first non-escaped ','
38838 character in the disk name.
38839 * util/ieee1275/devicemap.c (escape_of_path): New.
38840 (grub_util_emit_devicemap_entry): Use it.
38841 * util/sparc64/ieee1275/grub-install.in: Update script to
38842 strip partition specifiers properly by not triggering on
38843 '\' escaped ',' characters.
38845 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38847 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38849 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38851 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38852 on documentation from Wikipedia).
38854 2009-05-04 Pavel Roskin <proski@gnu.org>
38856 * disk/ata.c: Spelling fixes.
38857 * disk/raid.c: Likewise.
38858 * disk/usbms.c: Likewise.
38859 * disk/dmraid_nvidia.c: Likewise.
38860 * kern/ieee1275/openfw.c: Likewise.
38861 * kern/ieee1275/init.c: Likewise.
38862 * kern/ieee1275/cmain.c: Likewise.
38863 * boot/i386/pc/cdboot.S: Likewise.
38864 * video/readers/png.c: Likewise.
38865 * video/i386/pc/vbe.c: Likewise.
38866 * fs/udf.c: Likewise.
38867 * fs/hfs.c: Likewise.
38868 * fs/reiserfs.c: Likewise.
38869 * efiemu/runtime/efiemu.c: Likewise.
38870 * efiemu/main.c: Likewise.
38871 * efiemu/mm.c: Likewise.
38872 * include/grub/elf.h: Likewise.
38873 * include/grub/xnu.h: Likewise.
38874 * include/grub/usbdesc.h: Likewise.
38875 * include/grub/usb.h: Likewise.
38876 * include/grub/script_sh.h: Likewise.
38877 * include/grub/lib/LzmaEnc.h: Likewise.
38878 * include/grub/efiemu/efiemu.h: Likewise.
38879 * include/grub/command.h: Likewise.
38880 * normal/menu.c: Likewise.
38881 * normal/main.c: Likewise.
38882 * normal/datetime.c: Likewise.
38883 * bus/usb/uhci.c: Likewise.
38884 * mmap/i386/uppermem.c: Likewise.
38885 * mmap/mmap.c: Likewise.
38886 * commands/acpi.c: Likewise.
38887 * commands/test.c: Likewise.
38888 * partmap/apple.c: Likewise.
38889 * font/font.c: Likewise.
38890 * loader/sparc64/ieee1275/linux.c: Likewise.
38891 * loader/macho.c: Likewise.
38892 * loader/i386/bsd_trampoline.S: Likewise.
38893 * loader/i386/bsd.c: Likewise.
38894 * loader/xnu.c: Likewise.
38895 * term/i386/pc/vesafb.c: Likewise.
38896 * term/usb_keyboard.c: Likewise.
38897 * util/resolve.c: Likewise.
38898 * util/getroot.c: Likewise.
38900 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38902 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38904 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38906 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38909 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38911 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38912 parameter only available on BIOS.
38914 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38916 Removed wrong semicolon in declaration
38918 * grub/misc.h (grub_dprintf): remove semicolon
38920 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38922 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38923 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38924 is done by grub_cmd_linux() now).
38925 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38926 restore video to text mode.
38927 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38928 indicates lack of "vga=" parameter. "vga=0" is mapped to
38929 `GRUB_LINUX_VID_MODE_NORMAL'.
38931 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38933 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38934 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38935 and `normal/script.c'. Add `kern/rescue_reader.c',
38936 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38937 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38938 `grub_script.tab.c'.
38940 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38941 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38942 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38943 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38944 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38946 * Makefile.in: Remove duplicated 2008 in Copyright line.
38948 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38950 * util/misc.c (grub_util_warn): New function. Emits a warning
38952 * include/grub/util/misc.h (grub_util_warn): New declaration.
38954 * util/i386/pc/grub-install.in: Understand --force and pass it down
38957 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38959 (setup): Improve error messages and add warnings when requested to
38960 install in odd layouts. Refuse to install using blocklists unless
38963 2009-05-04 martin f. krafft <madduck@madduck.net>
38965 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38967 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38969 Updated copyright year
38971 * fs/hfsplus.c: updated copyright year
38973 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38977 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38978 in the space previously used by unused3
38979 (grub_hfsplus_uuid): new function
38980 (grub_hfsplus_fs): added uuid field
38982 2009-05-03 Pavel Roskin <proski@gnu.org>
38984 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38985 suppress warnings. It's no longer needed.
38986 * disk/host.c: Likewise.
38987 * disk/ata_pthru.c: Likewise.
38988 * disk/loopback.c: Likewise.
38989 * hook/datehook.c: Likewise.
38990 * parttool/pcpart.c: Likewise.
38991 * fs/i386/pc/pxe.c: Likewise.
38992 * fs/ntfscomp.c: Likewise.
38993 * efiemu/main.c: Likewise.
38994 * mmap/mmap.c: Likewise.
38995 * commands/crc.c: Likewise.
38996 * commands/hexdump.c: Likewise.
38997 * commands/hdparm.c: Likewise.
38998 * commands/acpi.c: Likewise.
38999 * commands/echo.c: Likewise.
39000 * commands/minicmd.c: Likewise.
39001 * commands/blocklist.c: Likewise.
39002 * commands/memrw.c: Likewise.
39003 * commands/loadenv.c: Likewise.
39004 * commands/usbtest.c: Likewise.
39005 * commands/lsmmap.c: Likewise.
39006 * commands/boot.c: Likewise.
39007 * commands/parttool.c: Likewise.
39008 * commands/configfile.c: Likewise.
39009 * commands/search.c: Likewise.
39010 * commands/ieee1275/suspend.c: Likewise.
39011 * commands/cat.c: Likewise.
39012 * commands/i386/pc/pxecmd.c: Likewise.
39013 * commands/i386/pc/play.c: Likewise.
39014 * commands/i386/pc/halt.c: Likewise.
39015 * commands/i386/pc/vbeinfo.c: Likewise.
39016 * commands/i386/pc/vbetest.c: Likewise.
39017 * commands/lspci.c: Likewise.
39018 * commands/date.c: Likewise.
39019 * commands/handler.c: Likewise.
39020 * commands/ls.c: Likewise.
39021 * commands/test.c: Likewise.
39022 * commands/cmp.c: Likewise.
39023 * commands/efi/loadbios.c: Likewise.
39024 * commands/efi/fixvideo.c: Likewise.
39025 * commands/halt.c: Likewise.
39026 * commands/help.c: Likewise.
39027 * commands/reboot.c: Likewise.
39028 * hello/hello.c: Likewise.
39029 * script/sh/main.c: Likewise.
39030 * loader/xnu.c: Likewise.
39031 * term/terminfo.c: Likewise.
39032 * term/i386/pc/serial.c: Likewise.
39033 * term/usb_keyboard.c: Likewise.
39035 2009-05-03 David S. Miller <davem@davemloft.net>
39037 * normal/menu.c: Include grub/parser.h
39039 2009-05-03 Pavel Roskin <proski@gnu.org>
39041 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39043 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39044 Suggested by Javier Martín <lordhabbit@gmail.com>
39046 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39047 efiemu??.o doesn't exist.
39048 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39051 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39053 FreeBSD 64-bit support
39055 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39056 and loader/i386/bsd_trampoline.S
39057 (bsd_mod_ASFLAGS): new variable
39058 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39059 (FREEBSD_MODTYPE_KERNEL64): likewise
39060 (grub_bsd64_trampoline_start): likewise
39061 (grub_bsd64_trampoline_end): likewise
39062 (grub_bsd64_trampoline_selfjump): likewise
39063 (grub_bsd64_trampoline_gdt): likewise
39064 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39065 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39066 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39067 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39068 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39070 * loader/i386/bsd_pagetable.c: new file
39071 * loader/i386/bsd_trampoline.S: likewise
39072 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39073 (ALIGN_VAR): likewise
39074 (entry_hi): new variable
39075 (kern_end_mdofs): likewise
39076 (is_64bit): likewise
39077 (grub_freebsd_add_meta): use ALIGN_VAR
39078 (grub_e820_mmap): new declaration
39079 (grub_freebsd_add_mmap): new function
39080 (grub_freebsd_add_meta_module): support 64 bit kernels
39081 (grub_freebsd_list_modules): use ALIGN_VAR
39082 (gdt_descriptor): new declaration
39083 (grub_freebsd_boot): support 64 bit kernels
39084 (grub_bsd_elf64_hook): new function
39085 (grub_bsd_load_elf): support elf64
39087 2009-05-03 Bean <bean123ch@gmail.com>
39089 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39090 after we get the result of if statement.
39092 2009-05-03 Bean <bean123ch@gmail.com>
39094 * Makefile.in (enable_efiemu): New variable.
39096 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39098 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39100 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39101 path, add -mno-red-zone option.
39102 (efiemu64_s.o): Likewise.
39103 (efiemu64.o): Use macro $^ for source file.
39105 * configure.ac (--enable-efiemu): New option.
39107 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39111 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39112 (pkglib_MODULES): add xnu.mod
39113 (xnu_mod_SOURCES): new variable
39114 (xnu_mod_CFLAGS): likewise
39115 (xnu_mod_LDFLAGS): likewise
39116 (xnu_mod_ASFLAGS): likewise
39117 * conf/i386-pc.rmk: likewise
39118 * conf/x86_64-efi.rmk: likewise
39119 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39121 * include/grub/i386/macho.h: new file
39122 * include/grub/i386/xnu.h: likewise
39123 * include/grub/macho.h: likewise
39124 * include/grub/machoload.h: likewise
39125 * include/grub/x86_64/macho.h: likewise
39126 * include/grub/x86_64/xnu.h: likewise
39127 * include/grub/xnu.h: likewise
39128 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39129 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39130 * loader/i386/efi/xnu.c: new file
39131 * loader/i386/pc/xnu.c: likewise
39132 * loader/i386/xnu.c: likewise
39133 * loader/i386/xnu_helper.S: likewise
39134 * loader/macho.c: likewise
39135 * loader/xnu.c: likewise
39136 * loader/xnu_resume.c: likewise
39137 * util/grub-dumpdevtree: likewise
39138 * include/grub/i386/pit.h: include grub/err.h
39139 (grub_pit_wait): export
39140 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39142 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39146 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39147 _linux_efi, linux_efi.
39148 new files in grub-emu
39149 new targets efiemu32.o and efiemu64.o
39150 * loader/linux_normal_efiemu.c: likewise
39151 * loader/i386/efi/linux.c: added preliminary efiemu support
39152 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39154 * include/grub/autoefi.h: new file
39155 * include/grub/i386/efiemu.h: likewise
39156 * include/grub/i386/pc/efiemu.h: likewise
39157 * include/grub/efi/api.h: add LL suffix when necessary
39158 new definitions relating to tables
39159 * include/grub/efiemu/efiemu.h: new file
39160 * include/grub/efiemu/runtime.h: likewise
39161 * efiemu/prepare.c: likewise
39162 * efiemu/loadcore_common.c: likewise
39163 * efiemu/loadcore64.c: likewise
39164 * efiemu/runtime/efiemu.sh: likewise
39165 * efiemu/runtime/efiemu.S: likewise
39166 * efiemu/runtime/efiemu.c: likewise
39167 * efiemu/runtime/config.h: likewise
39168 * efiemu/prepare32.c: likewise
39169 * efiemu/main.c: likewise
39170 * efiemu/modules/pnvram.c: likewise
39171 * efiemu/modules/i386: likewise
39172 * efiemu/modules/i386/pc: likewise
39173 * efiemu/modules/acpi.c: likewise
39174 * efiemu/i386/pc/cfgtables.c: likewise
39175 * efiemu/i386/loadcore64.c: likewise
39176 * efiemu/i386/loadcore32.c: likewise
39177 * efiemu/prepare64.c: likewise
39178 * efiemu/loadcore.c: likewise
39179 * efiemu/symbols.c: likewise
39180 * efiemu/mm.c: likewise
39181 * efiemu/loadcore32.c: likewise
39183 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39187 * commands/acpi.c: new file
39188 * commands/i386/pc/acpi.c: likewise
39189 * commands/efi/acpi.c: likewise
39190 * include/grub/acpi.h: likewise
39191 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39192 (acpi_mod_SOURCES): new variable
39193 (acpi_mod_CFLAGS): likewise
39194 (acpi_mod_LDFLAGS): likewise
39195 * conf/i386-efi.rmk: likewise
39196 * conf/x86_64-efi.rmk: likewise
39198 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39200 Missing part from mmap patch
39202 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39203 (grub_mmap_unregister)
39204 (grub_mmap_free_and_unregister): use grub_mmap_register
39206 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39210 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39211 * loader/i386/linux.c (find_mmap_size): likewise
39212 (allocate_pages): likewise
39213 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39214 (grub_fill_multiboot_mmap): likewise
39215 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39216 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39217 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39218 (OPENBSD_MMAP_RESERVED): likewise
39219 * include/grub/i386/pc/memory.h: include grub/memory.h
39220 (grub_lower_mem): removed
39221 (grub_upper_mem): likewise
39222 (GRUB_MACHINE_MEMORY_ACPI): new definition
39223 (GRUB_MACHINE_MEMORY_NVS): likewise
39224 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39225 (GRUB_MACHINE_MEMORY_HOLE): likewise
39226 (grub_machine_mmap_register): likewise
39227 (grub_machine_mmap_unregister): likewise
39228 (grub_machine_get_upper): likewise
39229 (grub_machine_get_lower): likewise
39230 (grub_machine_get_post64): likewise
39231 * include/grub/i386/efi/memory.h: new file
39232 * include/grub/x86_64/efi/memory.h: likewise
39233 * include/grub/efi/memory.h: likewise
39234 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39235 (mmap_mod_SOURCES): new variable
39236 (mmap_mod_LDFLAGS): likewise
39237 (mmap_mod_ASFLAGS): likewise
39238 * conf/i386-coreboot.rmk: likewise
39239 * conf/i386-ieee1275.rmk: likewise
39240 * conf/i386-efi.rmk: likewise
39241 * conf/x86_64-efi.rmk: likewise
39242 * include/grub/types.h (UINT_TO_PTR): new macro
39243 (PTR_TO_UINT32): likewise
39244 (PTR_TO_UINT64): likewise
39245 * include/grub/memory.h: new file
39246 * mmap/i386/pc/mmap.c: likewise
39247 * mmap/i386/pc/mmap_helper.S: likewise
39248 * mmap/i386/uppermem.c: likewise
39249 * mmap/mmap.c: likewise
39250 * mmap/efi/mmap.c: likewise
39251 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39253 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39254 (grub_upper_mem): likewise
39255 (grub_machine_init): don't use grub_upper_mem,
39256 make grub_lower_mem local
39257 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39258 grub_mmap_iterate and grub_mmap_get_upper
39259 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39261 2009-05-02 Bean <bean123ch@gmail.com>
39263 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39264 script/sh/parser.y.
39265 (pkglib_MODULES): Add normal.mod and sh.mod.
39266 (normal_SOURCES): New variable.
39267 (normal_mod_CFLAGS): Likewise.
39268 (normal_mod_LDFLAGS): Likewise.
39269 (sh_mod_SOURCES): Likewise.
39270 (sh_mod_CFLAGS): Likewise.
39271 (sh_mod_LDFLAGS): Likewise.
39273 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39274 script/sh/lexer.c_DEPENDENCIES.
39275 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39276 kern/rescue_reader.c and kern/rescue_parser.c.
39277 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39278 (grub_emu_SOURCES): Change source files.
39279 (pkglib_MODULES): Remove normal.mod.
39280 (normal_SOURCES): Removed.
39281 (normal_mod_CFLAGS): Likewise.
39282 (normal_mod_LDFLAGS): Likewise.
39283 * conf/i386-coreboot.rmk: Likewise.
39284 * conf/i386-efi.rmk: Likewise.
39285 * conf/i386-ieee1276.rmk: Likewise.
39286 * conf/powerpc-ieee1275.rmk: Likewise.
39287 * conf/sparc64-ieee1275.rmk: Likewise.
39288 * conf/x86_64-efi.rmk: Likewise.
39290 * include/grub/command.h (grub_command_execute): New inline function.
39292 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39294 * include/grub/normal.h: Remove <grub/setjmp.h>.
39295 (grub_fs_module_list): Moved to normal/autofs.c.
39296 (grub_exit_env): Removed.
39297 (grub_command_execute): Likewise.
39298 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39300 (read_command_list): New function declaration.
39301 (read_fs_list): Likewise.
39303 * include/parser.h: Include <grub/reader.h>.
39304 (grub_parser_split_cmdline): Change type of getline parameter.
39305 (grub_parser): New structure.
39306 (grub_parser_class): New variable.
39307 (grub_parser_execute): New function declaration.
39308 (grub_register_rescue_parser): Likewise.
39309 (grub_parser_register): New inline function.
39310 (grub_parser_unregister): Likewise.
39311 (grub_parser_get_current): Likewise.
39312 (grub_parser_set_current): Likewise.
39314 * include/grub/reader.h: New file.
39315 * kern/reader.c: Likewise.
39316 * kern/rescue_parser.c: Likewise.
39317 * kern/rescue_reader.c: Likewise.
39318 * normal/autofs.c: Likewise.
39319 * normal/dyncmd.c: Likewise.
39321 * include/grub/rescue.h: Removed.
39322 * normal/command.h: Likewise.
39324 * include/grub/script.h: Moved to ...
39325 * include/grub/script_sh.h: ... Moved here.
39326 * normal/execute.c: Moved to ...
39327 * script/sh/execute.c: ... Moved here.
39328 * normal/function.c: Moved to ...
39329 * script/sh/function.c: ... Moved here.
39330 * normal/lexer.c: Moved to ...
39331 * script/sh/lexer.c: ... Moved here.
39332 * normal/parser.y: Moved to ...
39333 * script/sh/parser.y: ... Moved here.
39334 * normal/script.c: Moved to ...
39335 * script/sh/script.c: ... Moved here.
39337 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39339 (grub_exit_env): Removed.
39340 (fs_module_list): Moved to normal/autofs.c.
39341 (grub_file_getline): Don't handle comment here.
39342 (free_menu): Skip removed field entry->commands.
39343 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39345 (read_config_file): Removed nested parameter, change getline function.
39346 (grub_enter_normal_mode): Removed.
39347 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39348 (read_command_list): Likewise.
39349 (autoload_fs_module): Moved to normal/autofs.c.
39350 (read_fs_list): Likewise.
39351 (reader_nested): New variable.
39352 (grub_normal_execute): Run parser.sh to switch to sh parser.
39353 (grub_cmd_rescue): Removed.
39354 (cmd_normal): Removed.
39355 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39357 (grub_cmdline_run): New function.
39358 (grub_normal_reader_init): Likewise.
39359 (grub_normal_read_line): Likewise.
39360 (grub_env_write_pager): Likewise.
39361 (cmdline): New variable.
39362 (grub_normal_reader): Likewise.
39363 (GRUB_MOD_INIT): Register normal reader and set as current, register
39364 pager hook, register normal command with grub_register_command_prio,
39365 so that it won't show up in command.lst.
39366 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39367 grub_fs_autoload_hook.
39369 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39370 (grub_menu_execute_entry): Replace grub_script_execute with
39371 grub_parser_execute, change parameter to grub_command_execute.
39373 * normal/menu_text.c: Remove <grub/script.h>.
39375 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39376 and <grub/parser.h>.
39377 (run): Change editor_getline to use new parser interface. Change
39378 parameter to grub_command_execute.
39380 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39381 <grub/reader.h> and <grub/parser.h>.
39382 (grub_load_normal_mode): Execute normal command.
39383 (grub_main): Call grub_register_core_commands,
39384 grub_register_rescue_parser and grub_register_rescue_reader, use
39385 grub_reader_loop to enter input loop.
39387 * kern/parser.c (grub_parser_split_cmdline): Change type of
39389 (grub_parser_class): New variable.
39390 (grub_parser_execute): New function.
39392 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39393 * loader/multiboot2.c: Likewise.
39394 * loader/sparc64/ieee1275/linux.c: Likewise.
39396 * util/grub-emu.c (read_command_list): New dummy function.
39398 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39400 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39401 count to 16 for CCISS and IDA.
39403 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39405 * normal/menu_text.c (grub_wait_after_message): Print a newline
39406 after waiting for user input.
39408 * loader/i386/linux.c: Include `<grub/normal.h>'.
39409 (grub_cmd_linux): Improve the error message about `ask' mode, by
39410 waiting for user input so it's not missed (we can do this, since
39411 user requested interaction).
39413 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39415 Added missing lst to grub-mkrescue
39417 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39418 and ${input_dir}/parttool.lst
39420 2009-04-30 David S. Miller <davem@davemloft.net>
39422 * util/hostdisk.c (device_is_wholedisk): New function.
39423 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39424 zero only if device_is_wholedisk() returns true.
39426 * util/hostdisk.c (convert_system_partition_to_system_disk):
39427 Handle virtual disk devices named /dev/vdiskX as found on sparc
39430 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39431 lettered partition specifier is found, convert to numbered.
39433 2009-04-29 David S. Miller <davem@davemloft.net>
39435 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39436 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39438 * normal/command.c: Add missing newline at end of file.
39440 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39442 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39443 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39444 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39445 ihandles have a 32-bit type but need to be stored in a "void *".
39447 2009-04-28 Pavel Roskin <proski@gnu.org>
39449 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39450 not disk. Adjust all dependencies.
39451 (grub_fs_uuid_close): Use grub_device_close(), not
39454 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39455 parent's partition, don't copy it by reference, as it gets freed
39458 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39460 Preboot hooks support
39462 * commands/boot.c (struct grub_preboot_t): new declaration
39463 (preboots_head): new variable
39464 (preboots_tail): likewise
39465 (grub_loader_register_preboot_hook): new function
39466 (grub_loader_unregister_preboot_hook): likewise
39467 (grub_loader_set): launch preboot hooks
39468 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39469 (grub_loader_register_preboot_hook): new declaration
39470 (grub_loader_unregister_preboot_hook): likewise
39472 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39476 * disk/scsi.c (grub_scsi_open): added missing cast when
39477 calling grub_dprintf
39479 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39481 Bug and warning fixes
39483 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39485 * commands/test.c (test_parse): fixed bug with file tests and corrected
39486 declaration of find_file
39488 2009-04-26 Pavel Roskin <proski@gnu.org>
39490 * Makefile.in: Don't install empty manual pages if help2man is
39491 missing. Use help2man option for output, not shell redirection.
39493 2009-04-26 David S. Miller <davem@davemloft.net>
39495 * util/grub-mkdevicemap.c (make_device_map): Add missing
39496 NESTED_FUNC_ATTR to process_device().
39498 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39502 * commands/test.c: rewritten to use bash-like test
39504 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39506 Parttool autoloading and improvements
39508 * Makefile.in (pkglib_DATA): add parttool.lst
39509 (parttool.lst): new target
39510 * genmk.rb: generate parttool-*
39511 (CLEANFILES): add #{parttool}
39512 (PARTTOOLFILES): new variable
39513 * genparttoollist.sh: new file
39514 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39515 (grub_pcpart_type): likewise
39516 * commands/parttool.c (helpmsg): new variable
39517 (grub_cmd_parttool): output help if not enough arguments are supplied
39519 (GRUB_MOD_INIT(parttool)): use helpmsg
39521 2009-04-24 David S. Miller <davem@davemloft.net>
39523 Avoiding opening same device multiple times in device iterator.
39525 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39526 and use it to build a list of partitions in iterate_disk() and
39527 iterate_partition().
39529 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39532 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39533 grub_devalias_iterate() result instead of unconditional 0.
39534 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39535 Also, capture hook return value, either directly or via
39536 grub_children_iterate(), and propagate to caller.
39537 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39538 grub_children_iterate): Return value is now 'int' instead of
39540 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39541 like a proper iterator, stopping when hooks return non-zero.
39542 (grub_devalias_iterate): Likewise.
39544 2009-04-23 David S. Miller <davem@davemloft.net>
39546 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39548 2009-04-22 David S. Miller <davem@davemloft.net>
39550 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39551 is larger than address_cells, use that value for address_cells too.
39553 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39554 IEEE1275_MAX_PATH_LEN): Define.
39555 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39556 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39557 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39558 'devtype'. Explicitly NULL terminate devalias expansion.
39560 * util/sparc64/ieee1275/misc.c: New file.
39561 * util/sparc64/ieee1275/grub-setup.c: New file.
39562 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39563 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39564 * util/sparc64/ieee1275/grub-install.in: New file.
39565 * util/ieee1275/ofpath.c: New file.
39566 * util/ieee1275/devicemap.c: New file.
39567 * util/devicemap.c: New file.
39568 * util/deviceiter.c: New file.
39569 * kern/sparc64/ieee1275/init.c: New file.
39570 * include/grub/util/ofpath.h: New file.
39571 * include/grub/util/deviceiter.h: New file.
39572 * util/grub-mkdevicemap.c: Include deviceiter.h.
39573 Implement using grub_util_emit_devicemap_entry and
39574 grub_util_iterate_devices.
39575 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39576 util/devicemap.c into grub-mkdevicemap
39577 * conf/i386-efi.rmk: Likewise.
39578 * conf/i386-ieee1275.rmk: Likewise.
39579 * conf/i386-pc.rmk: Likewise.
39580 * conf/powerpc-ieee1275.rmk: Likewise.
39581 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39582 images and installation utilities. Build kernel as image
39583 instead of as elf binary. Use common rules as much as possible.
39585 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39587 Correct GPT definition
39589 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39592 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39594 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39596 2009-04-19 David S. Miller <davem@davemloft.net>
39598 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39599 (grub_rescue_cmd_linux): Rename to...
39600 (grub_cmd_linux): and fix prototype.
39601 (grub_rescue_cmd_initrd): Rename to...
39602 (grub_cmd_initrd): and fix prototype.
39603 (cmd_linux, cmd_initrd): New.
39604 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39605 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39607 2009-04-17 Pavel Roskin <proski@gnu.org>
39609 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39611 (grub_ohci_transfer): Likewise.
39613 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39615 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39616 return without a value. Fix inconsistent indentation.
39618 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39619 match struct grub_fs.
39621 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39622 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39623 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39624 * commands/lspci.c (grub_lspci_iter): Likewise.
39626 2009-04-16 Bean <bean123ch@gmail.com>
39628 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39631 2009-04-15 Pavel Roskin <proski@gnu.org>
39633 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39634 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39635 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39638 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39640 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39641 that no multiple data or metadata areas are supported and `Unknown
39644 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39646 Move loader out of the kernel
39648 * kern/loader.c: moved to ...
39649 * commands/boot.c: ... moved here
39650 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39651 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39652 * include/grub/kernel.h (grub_machine_fini): export
39653 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39654 (grub_loader_set): likewise
39655 (grub_loader_unset): likewise
39656 (grub_loader_boot): likewise
39657 * conf/common.rmk: new module boot.mod
39658 (pkglib_MODULES): add boot.mod
39659 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39660 (grub_emu_SOURCES): likewise
39661 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39662 (grub_emu_SOURCES): likewise
39663 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39664 (grub_emu_SOURCES): likewise
39665 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39666 (grub_emu_SOURCES): likewise
39667 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39668 (grub_emu_SOURCES): likewise
39669 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39670 (grub_emu_SOURCES): likewise
39671 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39672 (grub_emu_SOURCES): likewise
39674 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39676 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39678 * kern/misc.c (grub_itoa): Removed function
39679 (grub_ltoa): likewise
39680 (grub_vsprintf): use grub_lltoa
39682 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39686 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39687 * conf/i386-coreboot.rmk: likewise
39688 * conf/i386-ieee1275.rmk: likewise
39689 * conf/powerpc-ieee1275.rmk: likewise
39691 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39693 * INSTALL: Add that `./autogen.sh' needs to be run before
39696 2009-04-14 Bean <bean123ch@gmail.com>
39698 * Makefile.in (pkglib_DATA): Add handler.lst.
39699 (handler.lst): New rule.
39701 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39702 * conf/i386-coreboot.rmk: Likewise.
39703 * conf/i386-ieee1275.rmk: Likewise.
39704 * conf/i386-efi.rmk: Likewise.
39705 * conf/x86_64-efi.rmk: Likewise.
39706 * conf/powerpc-ieee1275.rmk: Likewise.
39707 * conf/sparc64-ieee1275.rmk: Likewise.
39709 * genhandlerlist.sh: New file.
39711 * genmk.rb: Add rules to generate handler.lst.
39713 * include/grub/normal.h (grub_file_getline): New function definition.
39714 (read_handler_list): Likewise.
39715 (free_handler_list): Likewise.
39717 * include/grub/term.h (grub_term_register_input): Add name parameter
39718 for auto generation of handler.lst.
39719 (grub_term_register_output): Likewise.
39721 * normal/handler.c: New file.
39723 * normal/main.c (get_line): Renamed to grub_file_getline.
39724 (read_config_file): Use the newly renamed grub_file_getline.
39725 (read_command_list): Likewise.
39726 (read_fs_list): Likewise.
39727 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39728 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39730 * term/efi/console.c (grub_console_init): Add name parameter for auto
39731 generation of handler.lst.
39732 * term/gfxterm.c: Likewise.
39733 * term/i386/pc/at_keyboard.c: Likewise.
39734 * term/i386/pc/console.c: Likewise.
39735 * term/i386/pc/serial.c: Likewise.
39736 * term/i386/pc/vesafb.c: Likewise.
39737 * term/i386/pc/vga.c: Likewise.
39738 * term/i386/pc/vga_text.c: Likewise.
39739 * term/ieee1275/ofconsole.c: Likewise.
39740 * term/usb_keyboard.c: Likewise.
39742 2009-04-14 Bean <bean123ch@gmail.com>
39744 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39745 properly with null character.
39747 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39749 * configure: Remove.
39750 * config.h.in: Likewise.
39751 * stamp-h.in: Likewise.
39752 * DISTLIST: Likewise.
39753 * conf/common.mk: Likewise.
39754 * conf/i386-coreboot.mk: Likewise.
39755 * conf/i386-efi.mk: Likewise.
39756 * conf/i386-ieee1275.mk: Likewise.
39757 * conf/i386.mk: Likewise.
39758 * conf/i386-pc.mk: Likewise.
39759 * conf/powerpc-ieee1275.mk: Likewise.
39760 * conf/sparc64-ieee1275.mk: Likewise.
39761 * conf/x86_64-efi.mk: Likewise.
39763 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39766 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39767 David S. Miller <davem@davemloft.net>
39769 * util/hostdisk.c (make_device_name): Fix buffer length
39772 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39774 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39775 <sys/param.h> and <sys/sysctl.h>.
39776 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39777 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39778 opening the device and reset them afterwards.
39780 2009-04-13 Pavel Roskin <proski@gnu.org>
39782 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39783 Reported by John Stanley <jpsinthemix@verizon.net>
39785 2009-04-13 Robert Millan <rmh@aybabtu.com>
39787 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39788 that name for menuentries when appropriate.
39790 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39792 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39794 2009-04-13 Robert Millan <rmh@aybabtu.com>
39796 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39797 to Linux, simply abort telling the user it's no longer supported.
39799 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39801 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39802 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39803 `freebsd_loadenv' only when devices.hints exist.
39805 2009-04-13 Pavel Roskin <proski@gnu.org>
39807 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39809 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39811 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39813 (grub_drive): Likewise.
39815 2009-04-13 David S. Miller <davem@davemloft.net>
39817 * kern/sparc64/ieee1275/ieee1275.c: New file.
39818 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39819 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39820 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39821 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39822 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39823 grub_ieee1275_alloc_physmem): Declare new exported functions.
39825 * include/grub/sparc64/ieee1275/loader.h: New file.
39826 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39827 * include/grub/sparc64/kernel.h: Likewise.
39828 * loader/sparc64/ieee1275/linux.c: Likewise.
39830 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39831 (grub_fstest_SOURCES): Likewise.
39833 * util/hostdisk.c (make_device_name): Do not make any assumptions
39834 about the length of drive names.
39836 * kern/dl.c (grub_dl_load_file): Close file immediately when
39837 we are done using it.
39839 2009-04-12 David S. Miller <davem@davemloft.net>
39841 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39842 values. Noticed by Pavel Roskin.
39844 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39847 * genmk.rb: Add more flexible image type specification, also
39848 pass --strip-unneeded to objcopy.
39849 * conf/i386-pc.rmk: Use *_FORMAT.
39850 * conf/i386-pc.mk: Rebuilt.
39852 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39853 (OFDISK_HASH_SZ): Define.
39854 (ofdisk_hash): New hash table.
39855 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39856 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39857 instead of device phandle which is not unique.
39859 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39860 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39861 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39862 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39863 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39864 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39865 GRUB_KERNEL_MACHINE_DATA_END): Define.
39866 (grub_kernel_image_size, grub_total_module_size): Declare.
39868 2009-04-12 Pavel Roskin <proski@gnu.org>
39870 * configure.ac: Change the logic when we check for target tools.
39871 Do it when the target is specified and it's different from the
39872 specified value of the host.
39874 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39876 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39877 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39878 GNU/kFreeBSD. Check if a device is a character device. Use
39879 DIOCGMEDIASIZE to get the size.
39880 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39881 support for GNU/kFreeBSD.
39882 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39883 is a character device instead of a block device. Add support for
39884 FreeBSD device names.
39886 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39887 is a character device instead of a block device.
39889 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39890 is a character device instead of a block device.
39892 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39894 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39895 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39896 FreeBSD. Check if a device is a character device. Use
39897 DIOCGMEDIASIZE to get the size.
39898 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39899 support for FreeBSD.
39900 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39901 is a character device instead of a block device. Add support for
39902 FreeBSD device names.
39904 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39905 a character device instead of a block device.
39906 (grub_util_check_char_device): New function.
39908 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39909 a character device instead of a block device.
39911 * include/grub/util/getroot.h (grub_util_check_char_device): New
39914 2009-04-11 David S. Miller <davem@davemloft.net>
39916 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39918 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39919 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39920 function, if present.
39921 (__bswapdi2): Likewise.
39923 * include/grub/sparc64/ieee1275/boot.h: New file.
39924 * boot/sparc64/ieee1275/boot.S: Likewise.
39925 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39927 * kern/misc.c (grub_ltoa): New function.
39928 (grub_vsprintf): Use it to format 'long' integers.
39930 2009-04-10 David S. Miller <davem@davemloft.net>
39932 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39933 slots are of type grub_ieee1275_cell_t.
39934 (grub_nand_read): Likewise.
39935 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39936 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39937 macros are used to compare values in arg/ret block of the call.
39938 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39939 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39940 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39941 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39942 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39943 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39944 grub_ieee1275_close, grub_ieee1275_set_property,
39945 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39946 grub_ieee1275_cell_t.
39947 * kern/ieee1275/openfw.c (grub_map): Likewise.
39948 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39949 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39951 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39952 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39953 (grub_devalias_iterate): Likewise.
39955 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39959 * fs/ufs.c (INODE_NBLOCKS): new definition
39960 (struct grub_ufs_dirent): added fields for non-BSD dirents
39961 (grub_ufs_get_file_block): fixed double indirect handling
39962 (grub_ufs_lookup_symlink): use more robust way to determine whether
39964 (grub_ufs_find_file): support for non-BSD dirents
39965 (grub_ufs_dir): support for non-BSD dirents
39967 2009-04-10 Bean <bean123ch@gnail.com>
39969 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39970 attribute, otherwise the size would be wrong for i386 platform.
39972 * include/grub/pci.h (grub_pci_read_word): New inline function.
39973 (grub_pci_read_byte): Likewise.
39974 (grub_pci_write): Likewise.
39975 (grub_pci_write_word): Likewise.
39976 (grub_pci_write_byte): Likewise.
39978 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39980 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39981 (find_framebuf): Scan pci to locate the frame buffer address.
39983 * commands/efi/fixvideo.c: New file.
39985 * commands/efi/loadbios.c: Likewise.
39987 * commands/memrw.c: Likewise.
39989 * util/grub-dumpbios.in: Likewise.
39991 * conf/common.rmk (grub-dumpbios): New utility.
39992 (pkglib_MODULES): New module memrw.mod.
39993 (memrw_mod_SOURCE): New macro.
39994 (memrw_mod_CFLAGS): Likewise.
39995 (memrw_mod_LDFLAGS): Likewise.
39997 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39999 (loadbios_mod_SOURCE): New macro.
40000 (loadbios_mod_CFLAGS): Likewise.
40001 (loadbios_mod_LDFLAGS): Likewise.
40002 (fixvideo_mod_SOURCE): Likewise.
40003 (fixvideo_mod_CFLAGS): Likewise.
40004 (fixvideo_mod_LDFLAGS): Likewise.
40006 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
40008 (loadbios_mod_SOURCE): New macro.
40009 (loadbios_mod_CFLAGS): Likewise.
40010 (loadbios_mod_LDFLAGS): Likewise.
40011 (fixvideo_mod_SOURCE): Likewise.
40012 (fixvideo_mod_CFLAGS): Likewise.
40013 (fixvideo_mod_LDFLAGS): Likewise.
40015 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
40017 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40019 2009-04-07 David S. Miller <davem@davemloft.net>
40021 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40022 support for R_SPARC_OLO10 relocations. Fix compile warning for
40023 R_SPARC_WDISP30 case.
40024 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40026 2009-04-06 Pavel Roskin <proski@gnu.org>
40028 * include/grub/misc.h (ARRAY_SIZE): New macro.
40029 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40031 * loader/i386/linux.c (allocate_pages): Use free_pages().
40032 (grub_linux_unload): Don't use free_pages().
40033 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40034 wrong index. Treat all other modes as text modes.
40035 (grub_cmd_linux): Initialize vid_mode unconditionally to
40036 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40038 * commands/help.c (print_command_help): Use cmd->prio, not
40039 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40041 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40045 * parttool/pcpart.c: new file
40046 * commands/parttool.c: likewise
40047 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40048 (parttool_mod_SOURCES): new variable
40049 (parttool_mod_CFLAGS): likewise
40050 (parttool_mod_LDFLAGS): likewise
40051 (pcpart_mod_SOURCES): likewise
40052 (pcpart_mod_CFLAGS): likewise
40053 (pcpart_mod_LDFLAGS): likewise
40054 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40055 and parttool/pcpart.c
40056 * conf/i386-efi.rmk: likewise
40057 * conf/i386-ieee1275.rmk: likewise
40058 * conf/i386-pc.rmk: likewise
40059 * conf/powerpc-ieee1275.rmk: likewise
40060 * conf/sparc64-ieee1275.rmk: likewise
40061 * conf/x86_64-ieee1275.rmk: likewise
40063 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40065 Support for mtime and further expandability of dir command
40067 * include/grub/lib/datetime.h: moved to ...
40068 * include/grub/datetime.h: ... moved here and added
40069 declaration of grub_unixtime2datetime. All users updated
40070 * include/grub/fs.h: new syntax for dir and mtime functions in
40072 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40073 and GRUB_FSHELP_FLAGS_MASK
40074 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40075 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40076 (grub_ext2_mtime): new function
40077 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40078 (grub_hfsplus_mtime): new function
40079 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40080 (GRUB_UFS_ATTR_FILE): likewise
40081 (GRUB_UFS_ATTR_LNK): likewise
40082 (struct grub_ufs_sblock): new fields mtime
40083 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40085 (grub_ufs_dir): mtime support
40086 (grub_ufs_mtime): new function
40087 * fs/affs.c (grub_affs_dir): use new dir syntax
40088 * fs/afs.c (grub_afs_dir): likewise
40089 * fs/cpio.c (grub_cpio_dir): likewise
40090 * fs/fat.c (grub_fat_find_dir): likewise
40091 * fs/hfs.c (grub_hfs_dir): likewise
40092 * fs/iso9660.c (grub_iso9660_dir): likewise
40093 * fs/jfs.c (grub_jfs_dir): likewise
40094 * fs/minix.c (grub_minix_dir): likewise
40095 * fs/ntfs.c (grub_ntfs_dir): likewise
40096 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40097 * fs/sfs.c (grub_sfs_dir): likewise
40098 * fs/xfs.c (grub_xfs_dir): likewise
40099 * util/hostfs.c (grub_hostfs_dir): likewise
40100 * lib/datetime.c: moved to ...
40101 * normal/datetime.c: ... moved here
40102 (grub_unixtime2datetime): new function
40103 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40104 * normal/completion.c (iterate_dir): use new dir syntax
40105 * normal/misc.c (grub_normal_print_device_info): tell the
40106 last modification time of a volume
40107 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40108 * conf/common.rmk: added lib/datetime.c to ls.mod
40109 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40110 (normal_mod_SOURCES): likewise
40111 (datetime_mod_SOURCES): Removed lib/datetime.c
40112 * conf/i386-efi.rmk: likewise
40113 * conf/i386-ieee1275.rmk: likewise
40114 * conf/i386-pc.rmk: likewise
40115 * conf/powerpc-ieee1275.rmk: likewise
40116 * conf/sparc64-ieee1275.rmk: likewise
40117 * conf/x86_64-efi.rmk: likewise
40119 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40121 Trim trailing spaces in FAT label and support mtools-like labels
40123 * fs/fat.c (grub_fat_iterate_dir): New function based
40124 on grub_fat_find_dir
40125 (grub_fat_find_dir): use grub_fat_iterate_dir
40126 (grub_fat_label): likewise
40128 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40130 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40132 remove extraneous kernel_elf_HEADERS
40134 2009-04-04 Bean <bean123ch@gnail.com>
40136 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40138 * util/misc.c: Likewise.
40140 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40142 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40143 instead of grub_printf.
40145 2009-04-03 Robert Millan <rmh@aybabtu.com>
40147 * loader/i386/linux.c (grub_linux_setup_video): Fill
40148 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40149 values from `mode info' structure instead of hardcoded
40152 2009-04-01 Pavel Roskin <proski@gnu.org>
40154 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40156 * genmk.rb: Likewise.
40157 * configure.ac: Likewise.
40159 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40161 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40162 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40164 2009-04-01 David S. Miller <davem@davemloft.net>
40166 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40167 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40168 (grub_setjmp): Mark with 'returns_twice' attribute.
40169 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40170 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40171 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40173 2009-04-01 Robert Millan <rmh@aybabtu.com>
40175 Reapply fix from 2008-07-28 which was accidentally reverted; also
40176 perform the same fix to a similar check in same function.
40178 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40179 with the same number are found, just use issue a warning with
40180 grub_dprintf(), as this error has been reported to be non-fatal.
40182 2009-03-31 Pavel Roskin <proski@gnu.org>
40184 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40185 for cross-compilation.
40187 2009-03-30 Robert Millan <rmh@aybabtu.com>
40189 Fix i386-ieee1275 build.
40191 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40192 Remove declaration.
40194 2009-03-30 Pavel Roskin <proski@gnu.org>
40196 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40197 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40198 zero-terminated, rely only on the strlen value. Fix comparison
40199 of strings differing in length.
40201 2009-03-30 Robert Millan <rmh@aybabtu.com>
40203 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40204 checking for abi version. Improve error messages on BIOS to notify
40205 user about `linux16' command.
40207 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40211 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40212 in case of collision
40213 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40215 2009-03-29 Robert Millan <rmh@aybabtu.com>
40217 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40218 set `vid_mode' accordingly.
40219 (grub_linux_boot): Process `vid_mode' and set video mode.
40221 2009-03-29 Robert Millan <rmh@aybabtu.com>
40223 * util/grub.d/10_linux.in (linux_entry): New function.
40224 Factorize generation of Linux boot entries.
40226 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40228 Make the format of Environment Block plain text. The boot loader
40229 part is not tested well yet.
40231 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40233 (envblk): Likewise.
40234 (usage): Remove "info" and "clear". Add "unset". Update the
40235 description of "set", as this does not delete variables any
40237 (create_envblk_file): Complete rewrite.
40238 (open_envblk_file): Likewise.
40239 (cmd_info): Removed.
40240 (cmd_list): Likewise.
40241 (cmd_set): Likewise.
40242 (cmd_clear): Likewise.
40243 (list_variables): New function.
40244 (write_envblk): Likewise.
40245 (set_variables): Likewise.
40246 (unset_variables): Likewise.
40247 (main): Complete rewrite.
40249 * commands/loadenv.c (buffer): Removed.
40250 (envblk): Likewise.
40251 (open_envblk_file): New function.
40252 (read_envblk_file): Complete rewrite.
40253 (grub_cmd_load_env): Likewise.
40254 (grub_cmd_list_env): Likewise.
40255 (struct blocklist): New struct.
40256 (free_blocklists): New function.
40257 (check_blocklists): Likewise.
40258 (write_blocklists): Likewise.
40259 (grub_cmd_save_env): Complete rewrite.
40261 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40262 a plain text signature.
40263 (GRUB_ENVBLK_MAXLEN): Removed.
40264 (struct grub_envblk): Complete rewrite.
40265 (grub_envblk_find): Removed.
40266 (grub_envblk_insert): Likewise.
40267 (grub_envblk_open): New prototype.
40268 (grub_envblk_set): Likewise.
40269 (grub_envblk_delete): Put const to VALUE.
40270 (grub_envblk_iterate): Put const to NAME and VALUE.
40271 (grub_envblk_close): New prototype.
40272 (grub_envblk_buffer): New inline function.
40273 (grub_envblk_size): Likewise.
40275 * lib/envblk.c: Include grub/mm.h.
40276 (grub_env_find): Removed.
40277 (grub_envblk_open): New function.
40278 (grub_envblk_close): Likewise.
40279 (escaped_value_len): Likewise.
40280 (find_next_line): Likewise.
40281 (grub_envblk_insert): Removed.
40282 (grub_envblk_set): New function.
40283 (grub_envblk_delete): Complete rewrite.
40284 (grub_envblk_iterate): Likewise.
40286 2009-03-28 Robert Millan <rmh@aybabtu.com>
40288 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40289 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40290 variables. Use 16-bit loader.
40291 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40293 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40294 (grub_linux16_boot): ... this. Update all users.
40295 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40296 (grub_linux_boot): ... this. Update all users.
40298 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40299 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40300 commands to `linux16' and `initrd16'.
40301 (GRUB_MOD_FINI(linux)): Rename to ...
40302 (GRUB_MOD_FINI(linux16)): ... this.
40304 2009-03-24 Pavel Roskin <proski@gnu.org>
40306 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40307 not just for compilation.
40309 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40311 Move multiboot helper out of kernel
40313 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40314 `loader/i386/multiboot_helper.S'.
40315 * conf/i386-coreboot.rmk: Likewise
40316 * conf/i386-ieee1275.rmk: Likewise
40318 * kern/i386/loader.S: Move multiboot helpers from here...
40319 * loader/i386/multiboot_helper.S: ...moved here
40320 * include/grub/i386/loader.h: Move declarations of multiboot
40321 helpers from here...
40322 * include/grub/i386/multiboot.h: ...moved here
40323 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40325 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40327 * kern/env.c (grub_env_context_open): Added an argument to specify
40328 whether a new context inherits exported variables from current
40329 one. This is useful when making a sandbox to interpret a config
40331 All callers updated.
40333 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40335 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40337 * kern/env.c (grub_env_context_close): Fix memory leaks.
40339 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40341 * normal/main.c (grub_normal_execute): Added an argument
40342 BATCH to specify if an interactive interface should be provided
40343 after reading a config file.
40344 All callers updated.
40345 (read_command_list): Prevent being executed twice.
40346 (read_fs_list): Likewise.
40348 * include/grub/normal.h (grub_normal_execute): Updated the
40351 2009-03-22 Pavel Roskin <proski@gno.org>
40353 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40355 * kern/i386/pc/startup.S: Likewise.
40356 * kern/i386/efi/startup.S: Likewise.
40357 * kern/i386/ieee1275/startup.S: Likewise.
40358 * kern/i386/coreboot/startup.S: Likewise.
40359 * kern/x86_64/efi/startup.S: Likewise.
40361 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40362 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40363 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40365 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40367 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40369 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40371 Use vaddr of correct segment for entry_point.
40373 2009-03-21 Bean <bean123ch@gmail.com>
40375 * commands/blocklist.c: Add include file <grub/command.h>, remove
40376 <grub/normal.h> and <grub/arg.h>.
40377 (grub_cmd_blocklist): Use the new command interface.
40378 (GRUB_MOD_INIT): Likewise.
40379 (GRUB_MOD_FINI): Likewise.
40380 * commands/boot.c: Likewise.
40381 * commands/cat.c: Likewise.
40382 * commands/cmp.c: Likewise.
40383 * commands/configfile.c: Likewise.
40384 * commands/crc.c: Likewise.
40385 * commands/echo.c: Likewise.
40386 * commands/halt.c: Likewise.
40387 * commands/handler.c: Likewise.
40388 * commands/hdparm.c: Likewise.
40389 * commands/help.c: Likewise.
40390 * commands/hexdump.c: Likewise.
40391 * commands/loadenv.c: Likewise.
40392 * commands/ls.c: Likewise.
40393 * commands/lsmmap.c: Likewise.
40394 * commands/lspci.c: Likewise.
40395 * commands/loadenv.c: Likewise.
40396 * commands/read.c: Likewise.
40397 * commands/reboot.c: Likewise.
40398 * commands/search.c: Likewise.
40399 * commands/sleep.c: Likewise.
40400 * commands/test.c: Likewise.
40401 * commands/usbtest.c: Likewise.
40402 * commands/videotest.c: Likewise.
40403 * commands/i386/cpuid.c: Likewise.
40404 * commands/i386/pc/halt.c: Likewise.
40405 * commands/i386/pc/play.c: Likewise.
40406 * commands/i386/pc/pxecmd.c: Likewise.
40407 * commands/i386/pc/vbeinfo.c: Likewise.
40408 * commands/i386/pc/vbetest.c: Likewise.
40409 * commands/ieee1275/suspend.c: Likewise.
40410 * disk/loopback.c: Likewise.
40411 * font/font_cmd.c: Likewise.
40412 * hello/hello.c: Likewise.
40413 * loader/efi/appleloader.c: Likewise.
40414 * loader/efi/chainloader.c: Likewise.
40415 * loader/i386/bsd.c: Likewise.
40416 * loader/i386/efi/linux.c: Likewise.
40417 * loader/i386/ieee1275/linux.c: Likewise.
40418 * loader/i386/linux.c: Likewise.
40419 * loader/i386/pc/chainloader.c: Likewise.
40420 * loader/i386/pc/linux.c: Likewise.
40421 * loader/powerpc/ieee1275/linux.c: Likewise.
40422 * loader/multiboot_loader.c: Likewise.
40423 * term/gfxterm.c: Likewise.
40424 * term/i386/pc/serial.c: Likewise.
40425 * term/terminfo.c: Likewise.
40427 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40428 * term/i386/pc/vga.c: Likewise.
40429 * video/readers/jpeg.c: Likewise.
40430 * video/readers/png.c: Likewise.
40431 * video/readers/tga.c: Likewise.
40433 * util/grub-fstest (cmd_loopback): Removed.
40434 (cmd_blocklist): Likewise.
40435 (cmd_ls): Likewise.
40436 (grub_register_command): Likewise.
40437 (grub_unregister_command): Likewise.
40438 (execute_command): Use grub_command_find to locate command and execute
40441 * include/grub/efi/chainloader.h: Removed.
40442 * loader/efi/chainloader_normal.c: Likewise.
40443 * loader/i386/bsd_normal.c: Likewise.
40444 * loader/i386/pc/chainloader_normal.c: Likewise.
40445 * loader/i386/pc/multiboot_normal.c: Likewise.
40446 * loader/linux_normal.c: Likewise.
40447 * loader/multiboot_loader_normal.c: Likewise.
40448 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40450 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40451 and grub_register_command_p1.
40453 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40454 kern/command.c, lib/arg.c and commands/extcmd.c.
40455 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40456 (minicmd_mod_SOURCES): New variable.
40457 (minicmd_mod_CFLAGS): Likewise.
40458 (minicmd_mod_LDFLAGS): Likewise.
40459 (extcmd_mod_SOURCES): Likewise.
40460 (extcmd_mod_CFLAGS): Likewise.
40461 (extcmd_mod_LDFLAGS): Likewise.
40462 (boot_mod_SOURCES): Removed.
40463 (boot_mod_CFLAGS): Likewise.
40464 (boot_mod_LDFLAGS): Likewise.
40466 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40468 (kernel_img_HEADERS): Add command.h.
40469 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40470 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40472 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40473 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40474 remove the corresponding normal mode command.
40475 (normal_mod_SOURCES): Remove normal/arg.c.
40476 * conf/i386-coreboot.rmk: Likewise.
40477 * conf/i386-efi.rmk: Likewise.
40478 * conf/i386-ieee1275.rmk: Likewise.
40479 * conf/powerpc-ieee1275.rmk: Likewise.
40480 * conf/x86_64-efi.rmk: Likewise.
40482 * include/grub/arg.h: Move from here ...
40483 * include/grub/lib/arg.h: ... to here.
40485 * normal/arg.c: Move from here ...
40486 * lib/arg.c: ... to here.
40488 * commands/extcmd.c: New file.
40489 * commands/minicmd.c: Likewise.
40490 * include/grub/command.h: Likewise.
40491 * include/grub/extcmd.h: Likewise.
40492 * kern/command.c: Likewise.
40493 * kern/corecmd.c: Likewise.
40495 * kern/list.c (grub_list_iterate): Return int instead of void.
40496 (grub_list_insert): New function.
40497 (grub_prio_list_insert): Likewise.
40499 * kern/rescue.c (grub_rescue_command): Removed.
40500 (grub_rescue_command_list): Likewise.
40501 (grub_rescue_register_command): Likewise.
40502 (grub_rescue_unregister_command): Likewise.
40503 (grub_rescue_cmd_boot): Move to minicmd.c
40504 (grub_rescue_cmd_help): Likewise.
40505 (grub_rescue_cmd_info): Likewise.
40506 (grub_rescue_cmd_boot): Likewise.
40507 (grub_rescue_cmd_testload): Likewise.
40508 (grub_rescue_cmd_dump): Likewise.
40509 (grub_rescue_cmd_rmmod): Likewise.
40510 (grub_rescue_cmd_lsmod): Likewise.
40511 (grub_rescue_cmd_exit): Likewise.
40512 (grub_rescue_print_devices): Moved to corecmd.c.
40513 (grub_rescue_print_files): Likewise.
40514 (grub_rescue_cmd_ls): Likewise.
40515 (grub_rescue_cmd_insmod): Likewise.
40516 (grub_rescue_cmd_set): Likewise.
40517 (grub_rescue_cmd_unset): Likewise.
40518 (attempt_normal_mode): Use grub_command_find to get normal module.
40519 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40520 commands, remove grub_rescue_register_command calls.
40522 * normal/command.c (grub_register_command): Removed.
40523 (grub_unregister_command): Likewise.
40524 (grub_command_find): Likewise.
40525 (grub_iterate_commands): Likewise.
40526 (rescue_command): Likewise.
40527 (export_command): Moved to corecmd.c.
40528 (set_command): Removed.
40529 (unset_command): Likewise.
40530 (insmod_command): Likewise.
40531 (rmmod_command): Likewise.
40532 (lsmod_command): Likewise.
40533 (grub_command_init): Likewise.
40535 * normal/completion.c (iterate_command): Use cmd->prio to check for
40537 (complete_arguments): Use grub_extcmd_t structure to find options.
40538 (grub_normal_do_completion): Change function grub_iterate_commands to
40539 grub_command_iterate.
40541 * normal/execute.c (grub_script_execute_cmd): No need to parse
40544 * normal/main.c (grub_dyncmd_dispatcher): New function.
40545 (read_command_list): Register unload commands as dyncmd.
40546 (grub_cmd_normal): Use new command interface, register rescue,
40547 unregister normal at entry, register normal, unregister rescue at exit.
40549 * include/grub/list.h (grub_list_test_t): New type.
40550 (grub_list_iterate): Return int instead of void.
40551 (grub_list_insert): New function.
40552 (GRUB_AS_NAMED_LIST_P): New macro.
40553 (GRUB_AS_PRIO_LIST): Likewise.
40554 (GRUB_AS_PRIO_LIST_P): Likewise.
40555 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40556 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40557 (grub_prio_list): New structure.
40558 (grub_prio_list_insert): New function.
40559 (grub_prio_list_remove): New inline function.
40561 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40562 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40563 (GRUB_COMMAND_FLAG_MENU): Likewise.
40564 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40565 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40566 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40567 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40568 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40569 (grub_command): Likewise.
40570 (grub_register_command): Likewise.
40571 (grub_command_find): Likewise.
40572 (grub_iterate_commands): Likewise.
40573 (grub_command_init): Likewise.
40574 (grub_arg_parse): Likewise.
40575 (grub_arg_show_help): Likewise.
40577 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40578 (grub_rescue_unregister_command): Likewise.
40580 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40581 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40582 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40584 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40585 grub_rescue_cmd_initrd.
40586 * include/grub/i386/loader.h: Likewise.
40587 * include/grub/x86_64/loader.h: Likewise.
40589 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40591 2009-03-21 Bean <bean123ch@gmail.com>
40593 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40594 instead of stat in mingw environment.
40596 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40598 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40600 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40603 2009-03-21 Bean <bean123ch@gmail.com>
40605 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40606 out of range error.
40608 2009-03-18 Michel Dänzer <michel@daenzer.net>
40610 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40611 checking inode flags for EXT4_EXTENTS_FLAG.
40613 2009-03-18 Robert Millan <rmh@aybabtu.com>
40615 * loader/i386/linux.c: Include `<grub/video.h>' and
40616 `<grub/i386/pc/vbe.h>'..
40617 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40618 (grub_linux32_boot): Attempt to configure video settings with
40619 grub_linux_setup_video().
40620 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40621 to avoid grub_console_fini() which would step out of graphical mode
40624 2009-03-14 Robert Millan <rmh@aybabtu.com>
40626 Fix build on powerpc.
40627 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40629 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40631 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40632 background image command.
40634 2009-03-12 Colin D Bennett <colin@gibibit.com>
40636 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40637 (grub_gfxterm_putchar): Extract pairs of identical calls to
40638 draw_cursor out of conditional blocks.
40640 2009-03-11 Pavel Roskin <proski@gnu.org>
40642 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40643 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40645 2009-03-11 Robert Millan <rmh@aybabtu.com>
40647 * loader/i386/multiboot_elfxx.c
40648 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40650 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40652 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40655 2009-03-11 Robert Millan <rmh@aybabtu.com>
40657 * loader/i386/multiboot.c (code_size): New variable.
40658 (grub_multiboot): Define offsets by adding to `code_size' rather
40659 than subtracting from `grub_multiboot_payload_size'. Provide
40660 4-byte alignment to MBI and others by increasing
40661 `boot_loader_name_length' appropriately.
40663 * loader/i386/multiboot_elfxx.c
40664 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40666 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40668 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40671 2009-03-08 Robert Millan <rmh@aybabtu.com>
40673 Make loader/i386/linux.c usable on i386-pc again.
40675 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40677 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40680 2009-03-07 Bean <bean123ch@gmail.com>
40682 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40685 2009-03-06 Robert Millan <rmh@aybabtu.com>
40687 Fix display issue on terminals with screen size other than 80x25
40688 (e.g. gfxterm with resolution higher than 640x480).
40690 * normal/main.c (grub_normal_init_page): Display title text in a
40691 position relative to the center of the terminal instead of relying
40692 on a hardcoded offset.
40694 2009-03-04 Robert Millan <rmh@aybabtu.com>
40696 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40699 * Makefile.in (host_kernel): New variable.
40700 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40701 scripts instead of just the windows one.
40702 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40704 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40706 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40708 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40709 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40710 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40711 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40712 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40713 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40715 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40717 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40718 or if there's no space for the disk label and print the partition number on a
40721 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40723 * util/misc.c: Include <time.h>.
40724 (grub_millisleep): New function.
40726 2009-03-04 Bean <bean123ch@gmail.com>
40728 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40729 another option -mno-red-zone.
40731 * commands/handler.c: Change module description.
40733 * kern/handler.c: Add missing space at the end of description line.
40735 * kern/list.c: Likewise.
40737 2009-03-03 Robert Millan <rmh@aybabtu.com>
40739 Move more components to the relocation area, and fix mbi pointer
40740 handling to use the destination rather than the origin (thanks to
40741 Vladimir Serbinenko for spotting).
40743 * loader/i386/multiboot.c (mbi_dest): New variable.
40744 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40745 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40748 2009-03-01 Bean <bean123ch@gmail.com>
40750 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40751 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40752 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40753 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40755 * loader/i386/efi/linux.c (acpi_guid): New variable.
40756 (acpi_guid): Likewise.
40757 (EBDA_SEG_ADDR): New constant.
40758 (LOW_MEM_ADDR): Likewise.
40759 (FAKE_EBDA_SEG): Likewise.
40760 (fake_bios_data): New function.
40761 (grub_linux_boot): Call fake_bios_data.
40763 2009-03-01 Bean <bean123ch@gmail.com>
40765 * commands/terminal.c: Removed.
40767 * commands/handler.c: New file.
40769 * include/grub/list.h: Likewise.
40771 * include/grub/handler.h: Likewise.
40773 * kern/list.c: Likewise.
40775 * kern/handler.c: Likewise.
40777 * kern/term.h: Include header file <grub/handler.h>.
40778 (grub_term_input): Move next field to the beginning.
40779 (grub_term_output): Likewise.
40780 (grub_term_input_class): New variable.
40781 (grub_term_output_class): Likewise.
40782 (grub_term_register_input): Changed to inline function.
40783 (grub_term_register_output): Likewise.
40784 (grub_term_unregister_input): Likewise.
40785 (grub_term_unregister_output): Likewise.
40786 (grub_term_set_current_input): Likewise.
40787 (grub_term_set_current_output): Likewise.
40788 (grub_term_get_current_input): Likewise.
40789 (grub_term_get_current_output): Likewise.
40790 (grub_term_iterate_input): Removed.
40791 (grub_term_iterate_output): Likewise.
40793 * kern/term.c (grub_term_list_input): Removed.
40794 (grub_term_list_output): Likewise.
40795 (grub_term_input_class): New variable.
40796 (grub_term_output_class): Likewise.
40797 (grub_cur_term_input): Change variable as macro.
40798 (grub_cur_term_output): Likewise.
40799 (grub_term_register_input): Removed.
40800 (grub_term_register_output): Likewise.
40801 (grub_term_unregister_input): Likewise.
40802 (grub_term_unregister_output): Likewise.
40803 (grub_term_set_current_input): Likewise.
40804 (grub_term_set_current_output): Likewise.
40805 (grub_term_iterate_input): Likewise.
40806 (grub_term_iterate_output): Likewise.
40807 (grub_term_get_current_input): Likewise.
40808 (grub_term_get_current_output): Likewise.
40810 * util/grub-editenv.c: Include header file <grub/handler.h>.
40811 (grub_term_get_current_input): Removed.
40812 (grub_term_get_current_output): Likewise.
40813 (grub_term_input_class): New variable.
40814 (grub_term_output_class): Likewise.
40816 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40817 (grub_term_get_current_output): Likewise.
40818 (grub_term_input_class): New variable.
40819 (grub_term_output_class): Likewise.
40821 * util/grub-probe.c (grub_term_get_current_input): Removed.
40822 (grub_term_get_current_output): Likewise.
40823 (grub_term_input_class): New variable.
40824 (grub_term_output_class): Likewise.
40826 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
40827 (grub_term_get_current_output): Likewise.
40828 (grub_term_input_class): New variable.
40829 (grub_term_output_class): Likewise.
40831 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40832 (terminal_mod_SOURCES): Likewise.
40833 (terminal_mod_CFLAGS): Likewise.
40834 (terminal_mod_LDFLAGS): Likewise.
40836 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40838 (kernel_img_SOURCES): Add list.c and handler.c.
40839 (kernel_img_HEADERS): Add list.h and handler.h.
40841 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40843 (kernel_mod_SOURCES): Add list.c and handler.c.
40844 (kernel_mod_HEADERS): Add list.h and handler.h.
40846 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40848 (kernel_elf_SOURCES): Add list.c and handler.c.
40849 (kernel_elf_HEADERS): Add list.h and handler.h.
40851 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40853 (kernel_elf_SOURCES): Add list.c and handler.c.
40854 (kernel_elf_HEADERS): Add list.h and handler.h.
40856 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40858 (kernel_mod_SOURCES): Add list.c and handler.c.
40859 (kernel_mod_HEADERS): Add list.h and handler.h.
40861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40863 (kernel_elf_SOURCES): Add list.c and handler.c.
40864 (kernel_elf_HEADERS): Add list.h and handler.h.
40866 2009-02-27 Robert Millan <rmh@aybabtu.com>
40868 Factorize elf32 / elf64 code in Multiboot loader. This will
40869 prevent it from getting out of sync again.
40871 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40872 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40873 grub_multiboot_load_elf64): Move from here ...
40874 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40875 grub_multiboot_load_elf): ... to here (new file).
40877 2009-02-27 Robert Millan <rmh@aybabtu.com>
40879 * util/grub.d/10_linux.in: Rename "single-user mode" to
40882 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40884 Don't leak in SCSI code.
40885 * disk/scsi.c (grub_scsi_close): free `scsi'.
40887 2009-02-27 Robert Millan <rmh@aybabtu.com>
40889 * loader/i386/pc/multiboot.c: Move from here ...
40890 * loader/i386/multiboot.c: ... to here. Update all users.
40892 2009-02-27 Robert Millan <rmh@aybabtu.com>
40894 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40895 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40897 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40899 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40902 2009-02-27 Robert Millan <rmh@aybabtu.com>
40904 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40905 `0x' qualifier as 0 when base is specified as parameter).
40907 2009-02-24 Bean <bean123ch@gmail.com>
40909 * configure.ac: Check for -mcmodel=large in x86_64 target.
40911 * include/grub/efi/api.h (efi_call_10): New macro.
40912 (efi_wrap_10): New function.
40914 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40915 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40916 (GRUB_PE32_REL_BASED_LOW): Likewise.
40917 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40918 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40919 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40920 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40921 (GRUB_PE32_REL_BASED_REL): Likewise.
40922 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40923 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40924 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40926 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40929 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40930 (efi_wrap_10): New function.
40932 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40934 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40935 MB/MBP model (NV chipset).
40936 (devdata_devs): Add devpath_5 to the list.
40938 * load/i386/efi/linux.c (video_base): Remove variable.
40939 (RGB_MASK): New macro.
40940 (RGB_MAGIC): Likewise.
40941 (LINE_MIN): Likewise.
40942 (LINE_MAX): Likewise.
40943 (FBTEST_STEP): Likewise.
40944 (FBTEST_COUNT): Likewise.
40945 (fb_list): New variable.
40946 (grub_find_video_card): Remove function.
40947 (find_framebuf): New function.
40948 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40951 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40952 problem for x86_64.
40954 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40956 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40958 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40961 2009-02-22 Robert Millan <rmh@aybabtu.com>
40963 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40964 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40965 in our relocation, instead of using it directly from heap. Also
40966 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40968 2009-02-21 Robert Millan <rmh@aybabtu.com>
40970 Implement USB keyboard support (based on patch by Marco Gerards)
40972 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40973 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40974 (usb_keyboard_mod_LDFLAGS): New variables.
40976 * term/usb_keyboard.c: New file.
40978 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40980 Corrected wrong declaration
40982 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40984 2009-02-14 Christian Franke <franke@computer.org>
40986 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40987 (grub_lspci_iter): Print class code and programming interface byte.
40989 2009-02-14 Christian Franke <franke@computer.org>
40991 * gendistlist.sh: Ignore `.svn' directories.
40993 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40995 * fs/fat.c: Add 2009 to Copyright line.
40997 2009-02-14 Christian Franke <franke@computer.org>
40999 * commands/hdparm.c: New file. Provides `hdparm' command
41000 which sends ATA commands via grub_disk_ata_pass_through ().
41002 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
41004 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
41005 and <grub/cpu/io.h> to include/grub/ata.h.
41006 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
41007 (GRUB_CDROM_SECTOR_SIZE): Remove.
41008 (GRUB_ATA_*): Move to include/grub/ata.h.
41009 (GRUB_ATAPI_*): Likewise.
41010 (enum grub_ata_commands): Likewise.
41011 (enum grub_ata_timeout_milliseconds): Likewise.
41012 (struct grub_ata_device): Likewise.
41013 (grub_ata_regset): Likewise.
41014 (grub_ata_regget): Likewise.
41015 (grub_ata_regset2): Likewise.
41016 (grub_ata_regget2): Likewise.
41017 (grub_ata_check_ready): Likewise.
41018 (grub_ata_wait_not_busy): Remove static, exported in
41019 include/grub/ata.h.
41020 (grub_ata_wait_drq): Likewise.
41021 (grub_ata_pio_read): Likewise.
41023 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41024 function for hdparm.mod.
41026 * include/grub/ata.h: New file, contains declarations from
41028 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41030 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41031 (grub_disk_ata_pass_through): New exported variable.
41033 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41035 2009-02-13 Colin D Bennett <colin@gibibit.com>
41037 Support multiple fallback entries, and provide an API to support
41038 executing default+fallback menu entries. Renamed the `terminal' menu
41041 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41042 variable declaration.
41043 (grub_menu_execute_callback): New structure declaration.
41044 (grub_menu_execute_callback_t): New typedef.
41045 (grub_menu_execute_with_fallback): New function declaration.
41046 (grub_menu_get_entry): Likewise.
41047 (grub_menu_get_timeout): Likewise.
41048 (grub_menu_set_timeout): Likewise.
41050 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41052 * normal/menu.c (grub_wait_after_message): Moved to
41053 `normal/menu_text.c'.
41054 (draw_border): Likewise.
41055 (print_message): Likewise.
41056 (print_entry): Likewise.
41057 (print_entries): Likewise.
41058 (grub_menu_init_page): Likewise.
41059 (get_entry_number): Likewise.
41060 (print_timeout): Likewise.
41061 (run_menu): Likewise.
41062 (grub_menu_execute_entry): Likewise.
41063 (show_text_menu): Likewise.
41064 (get_and_remove_first_entry_number): New function.
41065 (grub_menu_execute_with_fallback): Likewise.
41066 (get_entry): Renamed to ...
41067 (grub_menu_get_entry): .. this and made it global.
41068 (get_timeout): Renamed to ...
41069 (grub_menu_get_timeout): ... this and made it global.
41070 (set_timeout): Renamed to ...
41071 (grub_menu_set_timeout): ... this and made it global.
41072 (grub_normal_terminal_menu_viewer): Renamed to ...
41073 (grub_normal_text_menu_viewer): ... this.
41075 * normal/menu_text.c: New file. Extracted text-menu-specific code
41076 from normal/menu.c.
41078 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41079 (normal_mod_SOURCES): Likewise.
41081 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41082 (normal_mod_SOURCES): Likewise.
41084 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41085 (normal_mod_SOURCES): Likewise.
41087 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41088 (normal_mod_SOURCES): Likewise.
41090 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41091 (normal_mod_SOURCES): Likewise.
41093 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41094 (normal_mod_SOURCES): Likewise.
41096 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41097 (normal_mod_SOURCES): Likewise.
41099 2009-02-11 Robert Millan <rmh@aybabtu.com>
41101 * util/grub.d/00_header.in: Update old reference to `font' command.
41103 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41105 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41107 Based on patch from Javier Martín.
41109 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41111 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41112 to avoid false positives with FAT.
41113 (grub_fstest_SOURCES): Likewise.
41114 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41115 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41116 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41117 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41118 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41119 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41121 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41123 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41124 bpb.version_specific.fat12_or_fat16.fstype and
41125 bpb.version_specific.fat32.fstype.
41127 2009-02-08 Robert Millan <rmh@aybabtu.com>
41129 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41131 2009-02-08 Robert Millan <rmh@aybabtu.com>
41133 * Makefile.in (host_os, host_cpu): New variables.
41134 (target_os): Remove. Update all users.
41136 2009-02-08 Marco Gerards <marco@gnu.org>
41138 * Makefile.in (enable_grub_emu_usb): New variable.
41139 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41140 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41141 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41142 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41143 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41144 `usbtest.mod' and `usbms.mod'.
41145 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41146 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41147 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41148 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41149 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41152 * disk/usbms.c: New file.
41154 * include/grub/usb.h: Likewise.
41156 * include/grub/usbtrans.h: Likewise.
41158 * include/grub/usbdesc.h: Likewise.
41160 * bus/usb/usbtrans.c: Likewise.
41162 * bus/usb/ohci.c: Likewise.
41164 * bus/usb/uhci.c: Likewise.
41166 * bus/usb/usbhub.c: Likewise.
41168 * bus/usb/usb.c: Likewise.
41170 * commands/usbtest.c: Likewise.
41172 * util/usb.c: Likewise.
41174 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41176 * configure.ac: Test for libusb presence.
41178 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41180 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41182 * kern/mm.c: Add more comments.
41184 2009-02-08 Robert Millan <rmh@aybabtu.com>
41186 Patch from Javier Martín.
41187 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41188 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41190 2009-02-08 Robert Millan <rmh@aybabtu.com>
41192 * fs/cpio.c: Split tar functionality to ...
41193 * fs/tar.c: ... here (new file). Update all users.
41195 2009-02-07 Robert Millan <rmh@aybabtu.com>
41197 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41198 backward-incompatible features.
41200 Based on patch from Javier Martín, with some adjustments.
41202 2009-02-07 Michael Scherer <misc@mandriva.org>
41204 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41206 2009-02-07 Robert Millan <rmh@aybabtu.com>
41208 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41209 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41210 after the RAID stuff.
41212 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41214 Fixes problem when running vbetest command as reported by
41215 Vladimir Serbinenko <phcoder@gmail.com>.
41217 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41219 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41221 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41222 /dev/md/NpN style mdraid devices.
41224 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41226 * util/unifont2pff.rb: Remove.
41228 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41230 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41233 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41235 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41236 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41237 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41238 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41239 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41240 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41241 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41243 2009-02-02 Christian Franke <franke@computer.org>
41245 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41247 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41249 * INSTALL: Note that we now require at least autoconf 2.59 and
41250 that LZO is optional.
41252 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41254 Base on patch on bug #24154 created by Tomas Tintera
41255 <trosos@seznam.cz>.
41257 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41259 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41261 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41262 <bero@arklinux.org>.
41264 * normal/parser.y (script_init): Add missing semicolon.
41266 2009-01-31 Colin D Bennett <colin@gibibit.com>
41268 * normal/main.c: Add include to grub/menu_viewer.h.
41269 (free_menu_entry_classes): Added.
41270 (grub_normal_menu_addentry): Added class property handling.
41271 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41272 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41274 * normal/menu_viewer.c: New file.
41276 * normal/menu.c (run_menu_entry): Renamed to ...
41277 (grub_menu_execute_entry): ... this and made it as global.
41278 (grub_menu_run): Renamed to ...
41279 (show_text_menu): ... this and made it local.
41280 (show_text_menu): Adapt to new function names.
41281 (grub_normal_terminal_menu_viewer): New global variable.
41283 * include/grub/menu.h: New file.
41285 * include/grub/menu_viewer.h: New file.
41287 * include/grub/normal.h: Added include to grub/menu.h.
41288 (grub_menu_entry): Moved to include/grub/menu.h.
41289 (grub_menu_entry_t): Likewise.
41290 (grub_menu): Likewise.
41291 (grub_menu_t): Likewise.
41292 (grub_normal_terminal_menu_viewer): Added.
41293 (grub_menu_execute_entry): Likewise.
41294 (grub_menu_run): Removed.
41296 * DISTLIST: Added include/grub/menu.h.
41297 Added include/grub/menu_viewer.h.
41298 Added normal/menu_viewer.c.
41300 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41302 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41303 arglist for menutitle arguments.
41305 * normal/main.c (grub_normal_menu_addentry): Likewise.
41307 * normal/parser.y (menuentry): Likewise.
41309 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41311 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41312 (grub_script_create_cmdmenu): Likewise.
41314 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41316 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41319 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41321 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41323 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41325 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41327 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41329 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41331 2009-01-30 Christian Franke <franke@computer.org>
41333 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41334 in option help text.
41336 2009-01-27 Pavel Roskin <proski@gnu.org>
41338 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41340 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41342 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41344 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41346 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41347 unregister function.
41349 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41351 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41353 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41355 * util/grub-mkfont.c (usage): Fix typo.
41357 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41359 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41361 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41363 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41365 * kern/misc.c (grub_strcasecmp): New function.
41366 (grub_strcasecmp): Use grub_size_t instead of int for length.
41368 * include/grub/misc.h: Update function prototypes.
41370 2009-01-26 Robert Millan <rmh@aybabtu.com>
41372 * configure.ac: Fix cross-compilation check.
41374 2009-01-22 Christian Franke <franke@computer.org>
41376 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41377 (precision) digit string. Allow `.format2' without `format1' (width).
41378 Limit input chars for `%s' output to `format2' if specified. This is
41379 compatible with standard printf ().
41381 2009-01-22 Christian Franke <franke@computer.org>
41383 * disk/ata.c (grub_ata_wait_status): Replace by ...
41384 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41385 other status bits may be invalid while BSY is asserted.
41386 (grub_ata_check_ready): New function.
41387 (grub_ata_cmd): Removed.
41388 (grub_ata_wait_drq): New function.
41389 (grub_ata_strncpy): Remove inline.
41390 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41391 and error check now done by grub_ata_wait_drq ().
41392 (grub_ata_pio_write): Likewise.
41393 (grub_atapi_identify): Set DEV before check for !BSY. Use
41394 grub_ata_wait_drq () to wait for data.
41395 (grub_ata_device_initialize): Add status register check to
41396 detect missing SATA slave devices. Add debug messages.
41397 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41398 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41399 transfer loop by grub_ata_pio_write ().
41400 (grub_ata_identify): Set DEV before check for !BSY. Use
41401 grub_ata_wait_drq () to wait for data.
41402 (grub_ata_setaddress): Set DEV before check for !BSY.
41403 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41404 read/write in one loop. Fix invalid command on write. Fix incomplete
41405 command on (size % batch) == 0. Add missing error check after write of
41406 last block. Add debug messages.
41407 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41409 2009-01-19 Christian Franke <franke@computer.org>
41411 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41412 (GRUB_ATAPI_IREASON_*): Likewise.
41413 (grub_ata_pio_write): Fix timeout error return.
41414 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41415 (grub_atapi_wait_drq): New function.
41416 (grub_atapi_packet): New parameter `size'.
41417 Use grub_atapi_wait_drq () and direct write instead of
41418 grub_ata_pio_write ().
41419 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41420 reads the number of bytes requested by the device for each DRQ
41422 (grub_atapi_write): Remove old implementation, return not
41423 implemented instead.
41425 2009-01-19 Christian Franke <franke@computer.org>
41427 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41428 of 512 to calculate data size.
41429 (grub_scsi_read12): Likewise.
41430 (grub_scsi_write10): Likewise.
41431 (grub_scsi_write12): Likewise.
41432 (grub_scsi_read): Adjust size according to blocksize.
41433 Add checks for invalid blocksize and unaligned transfer.
41435 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41437 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41439 * term/gfxterm.c (write_char): Fix background rendering for wide
41442 2009-01-19 Robert Millan <rmh@aybabtu.com>
41444 * config.guess: Update to latest version from config git.
41445 * config.sub: Likewise.
41447 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41449 * Makefile.in: Change font compilation to use new grub-mkfont instead
41452 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41453 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41454 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41455 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41456 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41457 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41458 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41459 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41460 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41462 2009-01-16 Christian Franke <franke@computer.org>
41464 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41465 (enum grub_ata_timeout_milliseconds): New enum.
41466 (grub_ata_wait_status): Add parameter milliseconds.
41467 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41468 recovery from timed-out commands.
41469 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41470 return grub_errno instead of REG_ERROR.
41471 (grub_ata_pio_write): Add parameter milliseconds.
41472 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41473 Pass milliseconds to grub_ata_wait_status () and
41474 grub_ata_pio_read ().
41475 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41476 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41477 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41478 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41479 It is not suitable for device detection, because DEV bit is ignored,
41480 the command may run too long, and not all devices set the signature
41482 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41483 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41484 Fix device selection, DEV bit must be set first to address the registers
41485 of the correct device.
41486 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41487 grub_ata_pio_read/write ().
41488 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41489 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41491 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41493 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41495 2009-01-13 Bean <bean123ch@gmail.com>
41497 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41499 2009-01-13 Bean <bean123ch@gmail.com>
41501 * Makefile.in: (enable_grub_mkfont): New variable.
41502 (freetype_cflags): Likewise.
41503 (freetype_libs): Likewise.
41505 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41506 (grub_mkfont_SOURCES): New variable.
41507 (grub_mkfont_CFLAGS): Likewise.
41508 (grub_mkfont_LDFLAGS): Likewise.
41510 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41511 library if `--enable-grub-mkfont' is requested.
41512 (enable_grub_mkfont): New variable.
41513 (freetype_cflags): Likewise.
41514 (freetype_libs): Likewise.
41516 * util/grub-mkfont.c: New file.
41518 2009-01-12 Christian Franke <franke@computer.org>
41520 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41521 mode check. Fix setting of compat_use[].
41523 2009-01-10 Robert Millan <rmh@aybabtu.com>
41525 Update a few copyright years which we forgot to do in 2008 (only for
41526 files whose changes made in 2008 were copyright-significant)
41528 * Makefile.in: Add 2008 to Copyright line.
41529 * disk/ieee1275/ofdisk.c: Likewise.
41530 * disk/efi/efidisk.c: Likewise.
41531 * kern/dl.c: Likewise.
41532 * kern/sparc64/ieee1275/init.c: Likewise.
41533 * kern/mm.c: Likewise.
41534 * kern/efi/mm.c: Likewise.
41535 * boot/i386/pc/boot.S: Likewise.
41536 * genfslist.sh: Likewise.
41537 * fs/iso9660.c: Likewise.
41538 * fs/hfs.c: Likewise.
41539 * fs/jfs.c: Likewise.
41540 * fs/minix.c: Likewise.
41541 * fs/ufs.c: Likewise.
41542 * gensymlist.sh.in: Likewise.
41543 * genkernsyms.sh.in: Likewise.
41544 * include/grub/misc.h: Likewise.
41545 * include/grub/types.h: Likewise.
41546 * include/grub/symbol.h: Likewise.
41547 * include/grub/elf.h: Likewise.
41548 * include/grub/kernel.h: Likewise.
41549 * include/grub/disk.h: Likewise.
41550 * include/grub/dl.h: Likewise.
41551 * include/grub/i386/linux.h: Likewise.
41552 * include/grub/i386/pc/biosdisk.h: Likewise.
41553 * include/grub/efi/api.h: Likewise.
41554 * include/grub/efi/pe32.h: Likewise.
41555 * include/grub/util/misc.h: Likewise.
41556 * normal/execute.c: Likewise.
41557 * normal/arg.c: Likewise.
41558 * normal/completion.c: Likewise.
41559 * normal/lexer.c: Likewise.
41560 * normal/parser.y: Likewise.
41561 * normal/misc.c: Likewise.
41562 * commands/i386/pc/vbeinfo.c: Likewise.
41563 * commands/hexdump.c: Likewise.
41564 * commands/terminal.c: Likewise.
41565 * commands/ls.c: Likewise.
41566 * commands/help.c: Likewise.
41567 * partmap/pc.c: Likewise.
41568 * loader/efi/chainloader.c: Likewise.
41569 * loader/multiboot_loader.c: Likewise.
41570 * loader/i386/pc/multiboot2.c: Likewise.
41571 * term/efi/console.c: Likewise.
41572 * term/i386/pc/serial.c: Likewise.
41573 * util/lvm.c: Likewise.
41574 * util/console.c: Likewise.
41575 * util/i386/efi/grub-mkimage.c: Likewise.
41576 * util/raid.c: Likewise.
41578 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41580 * commands/videotest.c: Removed include to grub/machine/memory.h.
41582 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41583 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41584 (video_mod_SOURCES): Removed.
41585 (video_mod_CFLAGS): Likewise.
41586 (video_mod_LDFLAGS): Likewise.
41587 (gfxterm_mod_SOURCES): Likewise.
41588 (gfxterm_mod_CFLAGS): Likewise.
41589 (gfxterm_mod_LDFLAGS): Likewise.
41590 (videotest_mod_SOURCES): Likewise.
41591 (videotest_mod_CFLAGS): Likewise.
41592 (videotest_mod_LDFLAGS): Likewise.
41593 (bitmap_mod_SOURCES): Likewise.
41594 (bitmap_mod_CFLAGS): Likewise.
41595 (bitmap_mod_LDFLAGS): Likewise.
41596 (tga_mod_SOURCES): Likewise.
41597 (tga_mod_CFLAGS): Likewise.
41598 (tga_mod_LDFLAGS): Likewise.
41599 (jpeg_mod_SOURCES): Likewise.
41600 (jpeg_mod_CFLAGS): Likewise.
41601 (jpeg_mod_LDFLAGS): Likewise.
41602 (png_mod_SOURCES): Likewise.
41603 (png_mod_CFLAGS): Likewise.
41604 (png_mod_LDFLAGS): Likewise.
41606 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41607 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41608 (video_mod_SOURCES): Added.
41609 (video_mod_CFLAGS): Likewise.
41610 (video_mod_LDFLAGS): Likewise.
41611 (videotest_mod_SOURCES): Likewise.
41612 (videotest_mod_CFLAGS): Likewise.
41613 (videotest_mod_LDFLAGS): Likewise.
41614 (bitmap_mod_SOURCES): Likewise.
41615 (bitmap_mod_CFLAGS): Likewise.
41616 (bitmap_mod_LDFLAGS): Likewise.
41617 (tga_mod_SOURCES): Likewise.
41618 (tga_mod_CFLAGS): Likewise.
41619 (tga_mod_LDFLAGS): Likewise.
41620 (jpeg_mod_SOURCES): Likewise.
41621 (jpeg_mod_CFLAGS): Likewise.
41622 (jpeg_mod_LDFLAGS): Likewise.
41623 (png_mod_SOURCES): Likewise.
41624 (png_mod_CFLAGS): Likewise.
41625 (png_mod_LDFLAGS): Likewise.
41626 (gfxterm_mod_SOURCES): Likewise.
41627 (gfxterm_mod_CFLAGS): Likewise.
41628 (gfxterm_mod_LDFLAGS): Likewise.
41630 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41631 grub/machine/console.h.
41633 2009-01-04 Jerone Young <jerone@gmail.com>
41635 Make on screen instructions clearer
41637 Based on patch created by Jidanni <jidanni@jidanni.org>
41639 * normal/menu.c: print clearer instructions on the screen
41641 2009-01-02 Colin D Bennett <colin@gibibit.com>
41645 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41646 build system and fixed gfxterm.c to work with different sized fonts.
41648 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41650 * configure: Re-generated.
41652 * DISTLIST: Removed font/manager.c.
41654 Added font/font_cmd.c.
41656 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41659 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41661 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41663 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41665 * normal/menu.c: Likewise.
41667 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41668 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41670 * include/grub/font.h: Replaced with new file.
41672 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41673 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41674 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41675 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41676 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41677 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41678 fg_red, fg_green, fg_blue, fg_alpha.
41679 (grub_video_adapter): Removed blit_glyph.
41680 (grub_video_blit_glyph): Removed.
41682 * font/manager.c: Removed file.
41684 * font/font.c: New file.
41686 * font/font_cmd.c: Likewise.
41688 * video/video.c (grub_video_blit_glyph): Removed.
41690 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41691 (grub_video_vbe_map_rgba): Likewise.
41692 (grub_video_vbe_unmap_color_int): Likewise.
41693 (grub_video_vbe_blit_glyph): Removed.
41694 (grub_video_vbe_adapter): Removed blit_glyph.
41696 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41697 (get_pixel): Likewise.
41698 (set_pixel): Likewise.
41700 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41702 * term/gfxterm.c: Adapted to new font engine.
41704 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41706 * term/i386/pc/vga.c: Likewise.
41708 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41710 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41712 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41714 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41716 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41718 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41720 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41722 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41724 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41726 * util/grub.d/00_header.in: Changed to use new loadfont command.
41728 * util/grub-mkconfig_lib.in: Changed font extension.
41730 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41732 * util/getroot.c (grub_util_get_grub_dev): Add support for
41733 /dev/md/dNNpNN style partitionable mdraid devices.
41735 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41737 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41738 at a time limit of the PXE TFTP API correctly.
41739 (grub_pxefs_close): Likewise.
41741 2008-11-29 Robert Millan <rmh@aybabtu.com>
41743 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41744 grub_ata_device_initialize() calls.
41746 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41748 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41750 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41752 2008-11-28 Robert Millan <rmh@aybabtu.com>
41754 Fix build on powerpc-ieee1275. Based on patch created by
41755 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41756 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41757 `kern/ieee1275/mmap.c'.
41758 * include/grub/powerpc/ieee1275/memory.h: New file.
41760 Provide grub-install on coreboot.
41761 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41762 (grub_install_SOURCES): New variable.
41763 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41764 usable on coreboot.
41766 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41768 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41769 to `grub_term_input_t'.
41770 (grub_term_get_current_output): Change return type to
41771 `grub_term_output_t'.
41773 2008-11-22 Robert Millan <rmh@aybabtu.com>
41775 Fix breakage on coreboot due to declaration mismatch.
41776 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41777 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41778 grub_vga_text_cls().
41780 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41781 comments. Avoid copying one more byte than necessary (just in case).
41783 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41784 to 0x200000 (avoids trouble with some OFW implementations, and matches
41785 with the one in Yaboot).
41786 Reported by Manoel Abranches
41788 2008-11-20 Robert Millan <rmh@aybabtu.com>
41790 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41791 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41793 * util/grub-mkconfig_lib.in (grub_warn): New function.
41794 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41795 warnings, to obtain consistent formatting.
41796 * util/grub.d/00_header.in: Likewise.
41797 * util/update-grub_lib.in: Likewise.
41799 * loader/i386/linux.c (allocate_pages): Fix a warning.
41800 Move comment text to `#error' stanza.
41802 Harmonize ieee1275's grub_available_iterate() with the generic
41803 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41804 build problem on i386-ieee1275):
41805 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41806 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41807 parameter `type'. Update all users of this function.
41808 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41809 `kern/ieee1275/mmap.c'.
41810 * kern/ieee1275/init.c
41811 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41813 (grub_machine_mmap_iterate): ... this.
41814 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41815 return type to `grub_err_t'. Update all implementations of this
41816 function prototype.
41817 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41820 Add `lsmmap' command (lists firmware-provided memory map):
41821 * commands/lsmmap.c: New file.
41822 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41823 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41825 * conf/powerpc-ieee1275.rmk: Likewise.
41826 * conf/i386-coreboot.rmk: Likewise.
41827 * conf/i386-ieee1275.rmk: Likewise.
41829 2008-11-19 Robert Millan <rmh@aybabtu.com>
41831 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41832 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41833 constraints to initrd allocation (based on code from
41834 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41835 for Linux to find it.
41837 2008-11-14 Robert Millan <rmh@aybabtu.com>
41839 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41840 order to cope with duplicate slashes.
41842 2008-11-14 Robert Millan <rmh@aybabtu.com>
41844 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41845 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41846 don't want to mess with lower memory, because it is used in the Linux
41849 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41850 an appropriate place in lower memory, between 0x10000 and 0x90000,
41851 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41852 is in our heap (probably as a result of it being corrupted during
41853 decompression). Add #error instance with comment to explain why this
41854 loader isn't currently usable on PC/BIOS.
41856 2008-11-14 Robert Millan <rmh@aybabtu.com>
41858 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41859 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41861 2008-11-12 Robert Millan <rmh@aybabtu.com>
41863 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41865 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41866 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41868 * include/grub/i386/pc/memory.h: ... to here.
41870 2008-11-12 Robert Millan <rmh@aybabtu.com>
41872 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41875 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41876 (grub_console_cur_color, grub_console_real_putchar)
41877 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41878 (grub_console_setcolorstate, grub_console_setcolor)
41879 (grub_console_getcolor): Move from here ...
41880 * include/grub/i386/vga_common.h: ... to here (new file).
41882 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41883 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41884 `<grub/i386/io.h>'.
41885 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41886 `<grub/i386/vga_common.h>'.
41888 2008-11-12 Robert Millan <rmh@aybabtu.com>
41890 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41891 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41892 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41894 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41895 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41897 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41898 grub_console_init() with call to grub_vga_text_init().
41899 (grub_machine_fini): Replace call to
41900 grub_console_fini() with call to grub_vga_text_fini() and
41901 grub_at_keyboard_fini().
41903 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41904 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41905 (grub_console_setcolorstate, grub_console_setcolor)
41906 (grub_console_getcolor): New function prototypes.
41908 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41909 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41910 (grub_vga_text_setcursor): Static-ize.
41911 (grub_vga_text_term): New structure.
41912 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41914 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41915 (grub_console_cur_color, grub_console_standard_color)
41916 (grub_console_normal_color, grub_console_highlight_color)
41917 (map_char, grub_console_putchar, grub_console_getcharwidth)
41918 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41919 (grub_console_getcolor): Move from here ...
41920 * term/i386/vga_common.c: ... to here (same function names).
41922 2008-11-12 Robert Millan <rmh@aybabtu.com>
41924 Use newly-added Multiboot support in coreboot.
41926 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41927 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41929 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41930 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41931 (codestart): Store the MBI in `startup_multiboot_info' when we're
41932 being loaded using Multiboot.
41934 * kern/i386/coreboot/init.c (grub_machine_init): Move
41935 grub_at_keyboard_init() call to beginning of function (useful for
41936 debugging). Call grub_machine_mmap_init() before attempting to use
41937 grub_machine_mmap_iterate().
41938 (grub_lower_mem, grub_upper_mem): Move from here ...
41939 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41942 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41943 function prototype.
41945 2008-11-12 Robert Millan <rmh@aybabtu.com>
41947 Fix a regression introduced by the at_keyboard.mod split. Because
41948 some terminals are default on some platforms and non-default on
41949 others, the first terminal being registered determines which is
41950 going to be default.
41952 * kern/term.c (grub_term_register_input): If this is the first
41953 terminal being registered, set it as the current one.
41954 (grub_term_register_output): Likewise.
41956 * term/efi/console.c (grub_console_init): Do not call
41957 grub_term_set_current_output() or grub_term_set_current_input().
41958 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41959 * term/i386/pc/console.c (grub_console_init): Likewise.
41960 (grub_console_fini): Do not call grub_term_set_current_input()
41961 (but leave grub_term_set_current_output() to restore text mode).
41963 2008-11-10 Robert Millan <rmh@aybabtu.com>
41965 * util/grub.d/00_header.in: Add backward compatibility check for
41966 versions of terminal.mod that don't understand `terminal_input' or
41969 2008-11-09 Robert Millan <rmh@aybabtu.com>
41971 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41972 `terminal_input' / `terminal_output', not `terminal'.
41974 2008-11-08 Robert Millan <rmh@aybabtu.com>
41976 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41977 (DISTCLEANFILES): Add `build_env.mk'.
41979 2008-11-08 Robert Millan <rmh@aybabtu.com>
41981 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41982 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41983 members. Update all users.
41984 * util/console.c (grub_ncurses_term): Split in ...
41985 (grub_ncurses_term_input): ... this, and ...
41986 (grub_ncurses_term_output): ... this. Update all users.
41987 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41989 2008-11-08 Robert Millan <rmh@aybabtu.com>
41991 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41992 (PKGDATA): Add $(pkgdata_SRCDIR).
41993 (pkglib_BUILDDIR): New variable.
41994 (pkgdata_SRCDIR): New variable.
41995 (build_env.mk): New target.
41996 (include_DATA): New variable.
41997 (install-local): Install $(include_DATA) files in $(includedir).
41999 2008-11-07 Pavel Roskin <proski@gnu.org>
42001 * gendistlist.sh: Use C locale for sorting to ensure consistent
42002 output on all systems.
42004 * util/grub.d/00_header.in: Remove incorrect space before
42007 2008-11-07 Robert Millan <rmh@aybabtu.com>
42009 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42011 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42012 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42013 (based on find_multi_boot1_header).
42014 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42015 using find_multi_boot2_header(), and abort if neither Multiboot or
42016 Multiboot headers were found.
42018 2008-11-07 Robert Millan <rmh@aybabtu.com>
42020 Modularize at_keyboard.mod:
42022 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42023 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42024 (at_keyboard_mod_LDFLAGS): New variables.
42026 Actual terminal split:
42028 * include/grub/term.h (struct grub_term): Split in ...
42029 (struct grub_term_input): ... this, and ...
42030 (struct grub_term_output): ... this. Update all users.
42031 (grub_term_set_current): Split in ...
42032 (grub_term_set_current_input): ... this, and ...
42033 (grub_term_set_current_output): ... this.
42034 (grub_term_get_current): Split in ...
42035 (grub_term_get_current_input): ... this, and ...
42036 (grub_term_get_current_output): ... this.
42037 (grub_term_register): Split in ...
42038 (grub_term_register_input): ... this, and ...
42039 (grub_term_register_output): ... this.
42040 (grub_term_unregister): Split in ...
42041 (grub_term_unregister_input): ... this, and ...
42042 (grub_term_unregister_output): ... this.
42043 (grub_term_iterate): Split in ...
42044 (grub_term_iterate_input): ... this, and ...
42045 (grub_term_iterate_output): ... this.
42047 * kern/term.c (grub_term_list): Split in ...
42048 (grub_term_list_input): ... this, and ...
42049 (grub_term_list_output): ... this. Update all users.
42050 (grub_cur_term): Split in ...
42051 (grub_cur_term_input): ... this, and ...
42052 (grub_cur_term_output): ... this. Update all users.
42053 (grub_term_set_current): Split in ...
42054 (grub_term_set_current_input): ... this, and ...
42055 (grub_term_set_current_output): ... this.
42056 (grub_term_get_current): Split in ...
42057 (grub_term_get_current_input): ... this, and ...
42058 (grub_term_get_current_output): ... this.
42059 (grub_term_register): Split in ...
42060 (grub_term_register_input): ... this, and ...
42061 (grub_term_register_output): ... this.
42062 (grub_term_unregister): Split in ...
42063 (grub_term_unregister_input): ... this, and ...
42064 (grub_term_unregister_output): ... this.
42065 (grub_term_iterate): Split in ...
42066 (grub_term_iterate_input): ... this, and ...
42067 (grub_term_iterate_output): ... this.
42069 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42070 a check for input and one for output (and only attempt to get keys
42071 from user when input works).
42073 * util/grub-probe.c (grub_term_get_current): Split in ...
42074 (grub_term_get_current_input): ... this, and ...
42075 (grub_term_get_current_output): ... this.
42076 * util/grub-fstest.c: Likewise.
42077 * util/i386/pc/grub-setup.c: Likewise.
42078 * util/grub-editenv.c: Likewise.
42080 Portability adjustments:
42082 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42083 `term/i386/pc/at_keyboard.c'.
42084 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42085 grub_keyboard_controller_init() (now handled by terminal .init).
42086 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42087 grub_at_keyboard_init().
42088 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42089 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42090 at_keyboard.mod via input terminal interface).
42091 * include/grub/i386/coreboot/console.h: Convert into a stub for
42092 `<grub/i386/pc/console.h>'.
42094 Migrate full terminals to new API:
42096 * term/efi/console.c (grub_console_term): Split into ...
42097 (grub_console_term_input): ... this, and ...
42098 (grub_console_term_output): ... this. Update all users.
42099 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42100 (grub_ofconsole_init): Split into ...
42101 (grub_ofconsole_init_input): ... this, and ...
42102 (grub_ofconsole_init_output): ... this.
42103 (grub_ofconsole_term): Split into ...
42104 (grub_ofconsole_term_input): ... this, and ...
42105 (grub_ofconsole_term_output): ... this. Update all users.
42106 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42107 (grub_serial_term_input): ... this, and ...
42108 (grub_serial_term_output): ... this. Update all users.
42109 * term/i386/pc/console.c (grub_console_term): Split into ...
42110 (grub_console_term_input): ... this, and ...
42111 (grub_console_term_output): ... this. Update all users.
42112 (grub_console_term_input): Only enable it on PC/BIOS platform.
42113 (grub_console_init): Remove grub_keyboard_controller_init() call.
42115 Migrate input terminals to new API:
42117 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42118 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42119 i386-specific anyway).
42120 (grub_console_checkkey): Rename to ...
42121 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42123 (grub_keyboard_controller_orig): New variable.
42124 (grub_console_getkey): Rename to ...
42125 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42127 (grub_keyboard_controller_init): Static-ize. Save original
42128 controller value so that it can be restored ...
42129 (grub_keyboard_controller_fini): ... here (new function).
42130 (grub_at_keyboard_term): New structure.
42131 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42134 Migrate output terminals to new API:
42136 * term/i386/pc/vga.c (grub_vga_term): Change type to
42137 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42138 members. Update all users.
42139 * term/gfxterm.c (grub_video_term): Change type to
42140 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42141 members. Update all users.
42142 * include/grub/i386/pc/console.h (grub_console_checkkey)
42143 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42146 Migrate `terminal' command and userland tools to new API:
42148 * commands/terminal.c (grub_cmd_terminal): Split into ...
42149 (grub_cmd_terminal_input): ... this, and ...
42150 (grub_cmd_terminal_output): ... this.
42151 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42152 `terminal_input' and `terminal_output'.
42153 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42154 `terminal_input' / `terminal_output' API.
42155 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42156 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42157 provided ${GRUB_TERMINAL}, convert it).
42159 2008-11-04 Robert Millan <rmh@aybabtu.com>
42161 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42163 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42165 2008-11-03 Bean <bean123ch@gmail.com>
42167 * kern/elf.c (grub_elf32_load): Revert to previous code.
42168 (grub_elf64_load): Likewise.
42170 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42172 2008-11-01 Robert Millan <rmh@aybabtu.com>
42174 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42175 (TARGET_CPPFLAGS): Likewise.
42176 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42178 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42180 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42182 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42184 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42185 addition of objects until the code is not going to be able to fail.
42187 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42189 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42190 (add a missing NULL check, and correct them by moving the pointer
42191 operations after the actual check).
42193 2008-10-29 Robert Millan <rmh@aybabtu.com>
42195 * util/i386/pc/grub-install.in: Handle empty string as output from
42196 make_system_path_relative_to_its_root().
42198 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42200 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42201 circular metadata worst case scenario. If the metadata is circular
42202 then copy the wrap in place.
42203 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42204 project lib/format_text/layout.h
42205 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42207 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42209 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42211 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42213 * util/update-grub_lib.in: Mention filename in warning message.
42215 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42217 * NEWS: Update for rename of update-grub to grub-mkconfig.
42219 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42221 * util/update-grub_lib.in: Copy to ...
42222 * util/grub-mkconfig_lib.in: ... this. Update all users.
42223 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42224 * util/update-grub.in: Rename to ...
42225 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42226 option. Add `--output' option to allow users to specify the generated
42227 configuration file. Default to stdout.
42228 (update_grub_dir): Rename to ...
42229 (grub_mkconfig_dir): ... this.
42230 (grub_cfg): Default to an empty string.
42231 * conf/common.rmk (update-grub): Rename to ...
42232 (grub-mkconfig): ... this.
42233 (update-grub_lib): Copy to ...
42234 (grub-mkconfig_lib): ... this.
42235 (update-grub_SCRIPTS): Copy to ...
42236 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42237 (update-grub_DATA): Rename to ...
42238 (grub-mkconfig_DATA): ... this.
42240 2008-09-28 Robert Millan <rmh@aybabtu.com>
42242 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42243 to `modified'. Add the real `created' field.
42244 (grub_iso9660_uuid): Use `modified' rather than `created' for
42245 constructing the UUID.
42247 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42249 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42250 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42252 2008-09-28 Bean <bean123ch@gmail.com>
42254 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42255 Thanks to Christian Franke for finding this bug.
42257 2008-09-25 Robert Millan <rmh@aybabtu.com>
42259 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42260 instances of grub_util_get_disk_name() (see previous commit).
42262 2008-09-25 Robert Millan <rmh@aybabtu.com>
42264 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42265 `util/i386/get_disk_name.c'.
42266 * conf/i386-efi.rmk: Likewise.
42267 * conf/x86_64-efi.rmk: Likewise.
42268 * conf/i386-coreboot.rmk: Likewise.
42269 * conf/i386-ieee1275.rmk: Likewise.
42270 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42271 `util/ieee1275/get_disk_name.c'.
42272 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42273 * util/ieee1275/get_disk_name.c: Remove file.
42274 * util/i386/get_disk_name.c: Remove file.
42275 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42276 "hd%d" for device.map entries, rather than using
42277 grub_util_get_disk_name().
42279 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42281 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42283 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42285 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42287 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42289 (GRUB_TERM_PPAGE): Changed to 0x4900.
42291 2008-09-24 Robert Millan <rmh@aybabtu.com>
42293 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42294 macros (they were i386-pc specific).
42295 * include/grub/sparc64/ieee1275/console.h: Likewise.
42296 * include/grub/efi/console.h: Likewise.
42298 2008-09-22 Bean <bean123ch@gmail.com>
42300 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42301 resident and in attribute list.
42303 * include/grub/ntfs.h (BMP_LEN): Removed.
42305 2008-09-22 Bean <bean123ch@gmail.com>
42307 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42308 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42310 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42311 error occurs, as grub_disk_open will call grub_disk_close, which will
42312 call p->close (scsi).
42314 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42316 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42317 (AC_PREREQ): Bumped to 2.59.
42318 (AC_TRY_COMPILE): Replace obsolete macro with ...
42319 (AC_COMPILE_IFELSE): ... this.
42320 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42321 (AC_LINK_IFELSE): ... this.
42323 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42325 * autogen.sh: Add a call to `gendistlist.sh'.
42327 2008-09-19 Christian Franke <franke@computer.org>
42329 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42330 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42331 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42332 Export __enable_execute_stack() to modules.
42333 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42336 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42338 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42341 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42343 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42344 #include <grub/util/hostdisk.h>.
42346 2008-09-08 Robert Millan <rmh@aybabtu.com>
42348 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42349 segments when their filesz is zero (grub_file_read() interprets
42350 zero-size as "read until EOF", which results in memory corruption).
42351 Use `lowest_segment' rather than 0 for calculating the current
42352 segment load address.
42354 2008-09-08 Robert Millan <rmh@aybabtu.com>
42356 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42357 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42358 clobbered useful information.
42360 2008-09-08 Robert Millan <rmh@aybabtu.com>
42362 * include/grub/util/biosdisk.h: Move to ...
42363 * include/grub/util/hostdisk.h: ... here. Update all users.
42364 * util/biosdisk.c: Move to ...
42365 * util/hostdisk.c: ... here. Update all users.
42367 2008-09-07 Robert Millan <rmh@aybabtu.com>
42369 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42371 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42372 and length can be stored directly in the `mbi->mmap_addr' and
42373 `mbi->mmap_length' struct fields.
42375 2008-09-07 Robert Millan <rmh@aybabtu.com>
42377 * conf/i386.rmk: New file. Provides declaration for building
42379 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42380 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42382 Include `conf/i386.mk'.
42383 * conf/i386-efi.rmk: Likewise.
42384 * conf/x86_64-efi.rmk: Likewise.
42385 * conf/i386-coreboot.rmk: Likewise.
42386 * conf/i386-ieee1275.rmk: Likewise.
42388 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42390 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42391 Adds optimization support for BGR based modes.
42393 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42394 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42395 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42396 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42397 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42398 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42399 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42400 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42401 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42402 (grub_video_i386_vbeblit_index_index): Likewise.
42403 (grub_video_i386_vbeblit_replace_directN): Added.
42404 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42405 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42406 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42407 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42408 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42409 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42410 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42411 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42412 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42413 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42414 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42415 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42416 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42418 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42419 (grub_video_i386_vbefill_R8G8B8): Likewise.
42420 (grub_video_i386_vbefill_index): Likewise.
42421 (grub_video_i386_vbefill_direct32): Added.
42422 (grub_video_i386_vbefill_direct24): Likewise.
42423 (grub_video_i386_vbefill_direct16): Likewise.
42424 (grub_video_i386_vbefill_direct8): Likewise.
42426 * include/grub/video.h (grub_video_blit_format): Removed
42427 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42428 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42429 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42430 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42431 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42433 * video/video.c (grub_video_get_blit_format): Updated to use new
42434 blit formats. Added handling for 16 bit color modes.
42436 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42438 (common_blitter): Updated to use new blitters.
42440 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42442 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42443 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42444 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42445 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42446 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42447 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42448 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42449 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42450 (grub_video_i386_vbeblit_index_index): Likewise.
42451 (grub_video_i386_vbeblit_replace_directN): Added.
42452 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42453 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42454 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42455 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42456 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42457 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42458 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42459 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42460 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42461 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42462 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42463 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42464 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42466 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42467 (grub_video_i386_vbefill_R8G8B8): Likewise.
42468 (grub_video_i386_vbefill_index): Likewise.
42469 (grub_video_i386_vbefill_direct32): Added.
42470 (grub_video_i386_vbefill_direct24): Likewise.
42471 (grub_video_i386_vbefill_direct16): Likewise.
42472 (grub_video_i386_vbefill_direct8): Likewise.
42474 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42477 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42480 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42483 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42486 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42488 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42491 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42493 * fs/iso9660.c (grub_iso9660_date): New structure.
42494 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42495 (grub_iso9660_uuid): New function.
42497 2008-09-05 Bean <bean123ch@gmail.com>
42499 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42501 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42502 insensitive bit for names in Win32 and Win32 & DOS namespace.
42504 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42506 * include/grub/types.h (LONG_MAX): Likewise.
42508 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42510 * util/getroot.c: Include <config.h>.
42511 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42512 add support for /dev/md/N devices and handle LVM double dash escaping.
42514 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42516 * config.guess: Update to latest version from config git.
42517 * config.sub: Likewise.
42519 2008-09-03 Robert Millan <rmh@aybabtu.com>
42521 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42522 `disk->total_sectors'.
42524 2008-09-01 Colin D Bennett <colin@gibibit.com>
42526 * include/grub/normal.h: Fixed incorrect comment for
42527 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42529 2008-09-01 Colin D Bennett <colin@gibibit.com>
42531 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42532 values with defines.
42534 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42535 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42536 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42537 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42538 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42539 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42540 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42541 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42542 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42543 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42544 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42545 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42546 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42547 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42548 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42549 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42550 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42551 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42552 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42554 2008-08-31 Robert Millan <rmh@aybabtu.com>
42556 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42558 (grub_multiboot): Fix a few warnings.
42560 2008-08-31 Robert Millan <rmh@aybabtu.com>
42562 * loader/i386/pc/multiboot.c: Update comment not to say that
42563 boot_device support is unimplemented.
42565 2008-08-31 Robert Millan <rmh@aybabtu.com>
42567 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42568 or memory map support are unimplemented.
42570 2008-08-31 Colin D Bennett <colin@gibibit.com>
42572 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42574 2008-08-31 Colin D Bennett <colin@gibibit.com>
42576 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42577 total video memory in 'vbeinfo' output; show color format details for
42580 2008-08-30 Pavel Roskin <proski@gnu.org>
42582 * util/genmoddep.c: Remove for real this time.
42583 * DISTLIST: Remove util/genmoddep.c.
42585 2008-08-30 Robert Millan <rmh@aybabtu.com>
42587 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42588 as required by Multiboot spec (it was already 4-byte aligned, but
42591 2008-08-29 Pavel Roskin <proski@gnu.org>
42593 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42594 * kern/powerpc/ieee1275/startup.S: ... this.
42595 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42596 * DISTLIST: Likewise.
42598 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42599 grub/cpu/kernel.h. Add start label for consistency with other
42600 platforms. Add grub_prefix immediately after start. Add jump
42601 to the code after grub_prefix.
42602 * include/grub/powerpc/kernel.h: Provide valid values for
42603 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42605 2008-08-29 Bean <bean123ch@gmail.com>
42607 * configure.ac: Change host_os to cygwin for mingw.
42608 (asprintf): New check for function.
42610 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42611 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42613 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42614 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42615 sync, sleep and grub_util_get_disk_size for mingw.
42617 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42618 to get size in mingw.
42619 (open_device): Use flag O_BINARY if it's defined.
42620 (find_root_device): Add dummy code for mingw.
42622 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42623 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42624 (get_scsi_disk_name): Return 0 for mingw.
42626 * util/hostfs.c: #include <grub/util/misc.h>.
42627 (grub_hostfs_open): Use "rb" flag to open file, use
42628 grub_util_get_disk_size to get disk size for mingw.
42630 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42631 (asprintf): New function if HAVE_ASPRINTF is not set.
42632 (sync): New function for mingw.
42634 (grub_util_get_disk_size): Likewise.
42636 2008-08-28 Pavel Roskin <proski@gnu.org>
42638 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42641 2008-08-28 Robert Millan <rmh@aybabtu.com>
42643 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42645 2008-08-28 Robert Millan <rmh@aybabtu.com>
42647 Change find_grub_drive() syntax so it doesn't prevent it from
42648 detecting NULL names as errors.
42650 * util/biosdisk.c (find_grub_drive): Move free slot search code
42652 (find_free_slot): ... to here.
42653 (read_device_map): Use find_free_slot() to search for free slots.
42655 2008-08-27 Marco Gerards <marco@gnu.org>
42657 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42658 (scsi_mod_SOURCES): New variable.
42659 (scsi_mod_CFLAGS): Likewise
42660 (scsi_mod_LDFLAGS): Likewise.
42662 * disk/scsi.c: New file.
42664 * include/grub/scsi.h: Likewise.
42666 * include/grub/scsicmd.h: Likewise.
42668 * disk/ata.c: Include <grub/scsi.h>.
42669 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42671 (grub_ata_iterate): Skip ATAPI devices.
42672 (grub_ata_open): Only handle ATAPI devices.
42673 (struct grub_atapi_read): Removed.
42674 (grub_atapi_readsector): Likewise.
42675 (grub_ata_read): No longer handle ATAPI devices.
42676 (grub_ata_write): Likewise.
42677 (grub_atapi_iterate): New function.
42678 (grub_atapi_read): Likewise.
42679 (grub_atapi_write): Likewise.
42680 (grub_atapi_open): Likewise.
42681 (grub_atapi_close): Likewise.
42682 (grub_atapi_dev): New variable.
42683 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42684 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42686 * include/grub/disk.h (enum grub_disk_dev_id): Add
42687 `GRUB_DISK_DEVICE_SCSI_ID'.
42689 2008-08-26 Robert Millan <rmh@aybabtu.com>
42691 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42692 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42695 2008-08-23 Bean <bean123ch@gmail.com>
42697 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42698 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42699 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42700 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42702 (raid5rec_mod_SOURCES): New macro.
42703 (raid5rec_mod_CFLAGS): Likewise.
42704 (raid5rec_mod_LDFLAGS): Likewise.
42705 (raid6rec_mod_SOURCES): Likewise.
42706 (raid6rec_mod_CFLAGS): Likewise.
42707 (raid6rec_mod_LDFLAGS): Likewise.
42708 (mdraid_mod_SOURCES): Likewise.
42709 (mdraid_mod_CFLAGS): Likewise.
42710 (mdraid_mod_LDFLAGS): Likewise.
42711 (dm_nv_mod_SOURCES): Likewise.
42712 (dm_nv_mod_CFLAGS): Likewise.
42713 (dm_nv_mod_LDFLAGS): Likewise.
42715 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42716 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42717 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42719 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42720 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42722 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42724 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42726 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42730 * disk/raid5_recover.c: New file.
42732 * disk/raid6_recover.c: Likewise.
42734 * disk/mdraid_linux.c: Likewise.
42736 * disk/dmraid_nvidia.c: Likewise.
42738 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42741 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42742 calculate the size of raid device.
42743 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42744 different layout of raid5.
42745 (grub_raid_scan_device): Remove code specific to mdraid.
42746 (grub_raid_list): New variable.
42747 (free_array): New function.
42748 (grub_raid_register): Likewise.
42749 (grub_raid_unregister): Likewise.
42750 (grub_raid_rescan): Likewise.
42751 (GRUB_MOD_INIT): Don't iterate device here.
42752 (GRUB_MOD_FINI): Use free_array to release resource.
42754 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42755 (grub_raid5_recover_func_t): New function variable type.
42756 (grub_raid6_recover_func_t): Likewise.
42757 (grub_raid5_recover_func): New variable.
42758 (grub_raid6_recover_func): Likewise.
42759 (grub_raid_register): New function.
42760 (grub_raid_unregister): Likewise.
42761 (grub_raid_rescan): Likewise.
42762 (grub_raid_block_xor): Likewise.
42764 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42765 (CMD_CRC): New macro.
42767 (read_file): Handle device as well as file.
42768 (cmd_crc): New function.
42769 (fstest): Handle multiple disks.
42770 (options): Remove part, raw and long, add root and diskcount.
42771 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42772 (main): Find the first non option entry and ignore subsequent options,
42773 add handling for the new options, support multiple disks.
42775 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42777 2008-08-23 Bean <bean123ch@gmail.com>
42779 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42781 * genfslist.sh: Ignore kernel.mod.
42783 * genpartmaplist.sh: Likewise.
42785 2008-08-23 Robert Millan <rmh@aybabtu.com>
42787 * util/getroot.c (find_root_device): Skip anything that starts with
42788 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42790 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42792 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42793 * util/grub.d/00_header.in: Allow the administrator to change default
42794 gfxmode via ${GRUB_GFXMODE}.
42796 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42798 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42800 2008-08-21 Robert Millan <rmh@aybabtu.com>
42802 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42804 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42805 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42807 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42809 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42810 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42812 2008-08-19 Robert Millan <rmh@aybabtu.com>
42814 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42815 (struct grub_virtual_screen): Remove `cursor_color'.
42816 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42818 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42820 2008-08-18 Robert Millan <rmh@aybabtu.com>
42822 Unify (identical) linux_normal.c files.
42823 * loader/i386/efi/linux_normal.c: Move from here ...
42824 * loader/linux_normal.c: ... to here. Update all users.
42825 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42826 * loader/i386/ieee1275/linux_normal.c: Likewise.
42828 2008-08-18 Robert Millan <rmh@aybabtu.com>
42830 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42831 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42832 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42833 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42834 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42836 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42837 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42838 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42839 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42840 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42841 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42842 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42843 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42844 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42845 portably using grub_getxy().
42846 Replace `-EFI' with `-bzImage' in boot message.
42848 2008-08-17 Robert Millan <rmh@aybabtu.com>
42850 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42852 2008-08-17 Robert Millan <rmh@aybabtu.com>
42854 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42856 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42857 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42858 (grub_machine_mmap_iterate): New function declaration.
42859 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42861 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42864 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42865 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42866 Move e820 parsing from here ...
42867 * kern/i386/pc/mmap.c: New file.
42868 (grub_machine_mmap_iterate): ... to here.
42870 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42871 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42872 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42873 (grub_available_iterate): Redeclare to return `void', and redeclare
42874 its hook to use grub_uint64_t as addr and size parameters, and rename
42876 (grub_machine_mmap_iterate): ... this. Update all users.
42878 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42879 to make it more readable. Rename to ...
42880 (grub_machine_mmap_iterate): ... this.
42882 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42883 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42884 (grub_multiboot): Allocate an extra region after the payload, and fill
42885 it with a Multiboot memory map. Adjust a.out loader to calculate size
42886 with the extra space.
42887 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42888 with the extra space.
42890 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42892 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42894 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42896 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42897 mdate-sh to the list `find' searches for.
42898 * DISTLIST: Regenerated.
42900 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42902 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42903 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42904 genmoddep.awk, gensymlist.sh.in.
42905 (DISTDIRS): Add bus, docs, hook, lib.
42906 * DISTLIST: Regenerated.
42907 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42909 2008-08-16 Robert Millan <rmh@aybabtu.com>
42911 * disk/raid.c (grub_raid_init): Handle/report errors set by
42912 grub_device_iterate().
42913 * disk/lvm.c (grub_lvm_init): Likewise.
42915 2008-08-15 Bean <bean123ch@gmail.com>
42917 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42919 (datetime_mod_SOURCES): New macro.
42920 (datetime_mod_CFLAGS): Likewise.
42921 (datetime_mod_LDFLAGS): Likewise.
42922 (date_mod_SOURCES): Likewise.
42923 (date_mod_CFLAGS): Likewise.
42924 (date_mod_LDFLAGS): Likewise.
42925 (datehook_mod_SOURCES): Likewise.
42926 (datehook_mod_CFLAGS): Likewise.
42927 (datehook_mod_LDFLAGS): Likewise.
42929 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42931 (datetime_mod_SOURCES): New macro.
42932 (datetime_mod_CFLAGS): Likewise.
42933 (datetime_mod_LDFLAGS): Likewise.
42934 (date_mod_SOURCES): Likewise.
42935 (date_mod_CFLAGS): Likewise.
42936 (date_mod_LDFLAGS): Likewise.
42937 (datehook_mod_SOURCES): Likewise.
42938 (datehook_mod_CFLAGS): Likewise.
42939 (datehook_mod_LDFLAGS): Likewise.
42941 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42943 (datetime_mod_SOURCES): New macro.
42944 (datetime_mod_CFLAGS): Likewise.
42945 (datetime_mod_LDFLAGS): Likewise.
42946 (date_mod_SOURCES): Likewise.
42947 (date_mod_CFLAGS): Likewise.
42948 (date_mod_LDFLAGS): Likewise.
42949 (datehook_mod_SOURCES): Likewise.
42950 (datehook_mod_CFLAGS): Likewise.
42951 (datehook_mod_LDFLAGS): Likewise.
42953 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42955 (datetime_mod_SOURCES): New macro.
42956 (datetime_mod_CFLAGS): Likewise.
42957 (datetime_mod_LDFLAGS): Likewise.
42958 (date_mod_SOURCES): Likewise.
42959 (date_mod_CFLAGS): Likewise.
42960 (date_mod_LDFLAGS): Likewise.
42961 (datehook_mod_SOURCES): Likewise.
42962 (datehook_mod_CFLAGS): Likewise.
42963 (datehook_mod_LDFLAGS): Likewise.
42965 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42967 (datetime_mod_SOURCES): New macro.
42968 (datetime_mod_CFLAGS): Likewise.
42969 (datetime_mod_LDFLAGS): Likewise.
42970 (date_mod_SOURCES): Likewise.
42971 (date_mod_CFLAGS): Likewise.
42972 (date_mod_LDFLAGS): Likewise.
42973 (datehook_mod_SOURCES): Likewise.
42974 (datehook_mod_CFLAGS): Likewise.
42975 (datehook_mod_LDFLAGS): Likewise.
42977 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42979 * commands/date.c: New file.
42981 * hook/datehook.c: Likewise.
42983 * include/grub/lib/datetime.h: Likewise.
42985 * include/grub/i386/cmos.h: Likewise.
42987 * lib/datetime.c: Likewise.
42989 * lib/i386/datetime.c: Likewise.
42991 * lib/efi/datetime.c: Likewise.
42993 2008-08-14 Robert Millan <rmh@aybabtu.com>
42995 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42996 (grub_mkelfimage_SOURCES): New variable.
42997 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42999 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
43000 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
43001 * conf/powerpc-ieee1275.rmk: Likewise.
43002 * conf/i386-ieee1275.rmk: Likewise.
43004 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
43005 * kern/i386/coreboot/init.c: Likewise.
43007 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
43008 with `<grub/cpu/kernel.h>'.
43009 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43011 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43012 * kern/i386/coreboot/startup.S: Likewise.
43014 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43015 (GRUB_MOD_GAP): Remove.
43016 * include/grub/powerpc/kernel.h: New file.
43017 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43018 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43019 * include/grub/i386/kernel.h: New file.
43020 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43021 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43022 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43024 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43026 Use --directory when invoking grub_mkimage.
43028 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43029 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43030 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43031 and GRUB_KERNEL_CPU_PREFIX.
43033 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
43035 * include/grub/err.h (grub_err_printf): New function prototype.
43036 * util/misc.c (grub_err_printf): New function.
43037 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43039 * kern/err.c (grub_print_error): Use grub_err_printf.
43041 2008-08-13 Robert Millan <rmh@aybabtu.com>
43043 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43045 2008-08-13 Robert Millan <rmh@aybabtu.com>
43047 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43050 2008-08-12 Robert Millan <rmh@aybabtu.com>
43052 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43053 of the relocation code from here ...
43054 (grub_multiboot): ... to here.
43055 (forward_relocator, backward_relocator): Move from here ...
43056 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43057 (grub_multiboot_backward_relocator): ... to here.
43058 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43059 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43060 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43061 (grub_multiboot_forward_relocator_end)
43062 (grub_multiboot_backward_relocator)
43063 (grub_multiboot_backward_relocator_end): New variables.
43065 2008-08-12 Bean <bean123ch@gmail.com>
43067 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43069 2008-08-11 Robert Millan <rmh@aybabtu.com>
43071 * kern/i386/linuxbios/startup.S: Move from here ...
43072 * kern/i386/coreboot/startup.S: ... to here.
43074 * kern/i386/linuxbios/init.c: Move from here ...
43075 * kern/i386/coreboot/init.c: ... to here.
43077 * kern/i386/linuxbios/table.c: Move from here ...
43078 * kern/i386/coreboot/mmap.c: ... to here.
43080 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43082 2008-08-11 Robert Millan <rmh@aybabtu.com>
43084 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43085 errors. Leave it to the upper layer to handle them.
43087 2008-08-09 Christian Franke <franke@computer.org>
43089 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43090 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43091 Install `grub.d/10_windows' only on Cygwin.
43092 * configure.ac: Add subst of `target_os'.
43093 Check `target_os' also before setting TARGET_OBJ2ELF.
43094 Add `--enable-grub-pe2elf'.
43096 2008-08-08 Robert Millan <rmh@aybabtu.com>
43098 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43099 (grub_last_time): Change type to grub_uint64_t.
43100 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43101 (grub_disk_close): Likewise.
43103 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43104 (run_menu): Migrate code from to using grub_get_time_ms().
43106 * util/misc.c (grub_get_time_ms): New function.
43108 2008-08-08 Marco Gerards <marco@gnu.org>
43110 * disk/ata.c (grub_ata_regget): Change return type to
43112 (grub_ata_regget2): Likewise.
43113 (grub_ata_wait_status): New function.
43114 (grub_ata_wait_busy): Removed function, updated all users to use
43115 `grub_ata_wait_status'.
43116 (grub_ata_wait_drq): Likewise.
43117 (grub_ata_cmd): New function.
43118 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43120 (grub_ata_pio_write): Add error handling.
43121 (grub_atapi_identify): Likewise.
43122 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43124 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43125 handling. Actually use the detected registers. Reorder the
43126 detection logic such that it is easier to read.
43127 (grub_ata_pciinit): Do not assign the same ID to each controller.
43128 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43130 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43132 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43134 2008-08-08 Marco Gerards <marco@gnu.org>
43138 2008-08-07 Bean <bean123ch@gmail.com>
43140 * include/grub/x86_64/pci.h: New file.
43142 2008-08-07 Christian Franke <franke@computer.org>
43144 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43145 (TIMER2_GATE): Likewise.
43146 (grub_pit_wait): Add enable/disable of the timer2 gate
43147 bit of port 0x61. This fixes a possible infinite loop.
43149 2008-08-07 Bean <bean123ch@gmail.com>
43151 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43152 kern/i386/tsc.c and kern/i386/pit.c.
43154 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43157 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43160 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43162 2008-08-07 Bean <bean123ch@gmail.com>
43164 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43166 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43168 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43169 multiple inclusion. Add #include <grub/types.h>.
43171 2008-08-06 Christian Franke <franke@computer.org>
43173 * conf/common.rmk: Build and install `10_windows'.
43174 * util/grub.d/10_windows.in: New script.
43176 2008-08-06 Pavel Roskin <proski@gnu.org>
43178 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43180 2008-08-06 Robert Millan <rmh@aybabtu.com>
43182 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43183 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43185 2008-08-06 Bean <bean123ch@gmail.com>
43187 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43188 (grub_pxefs_fs_int): Remove dummy definition.
43189 (grub_pxefs_open): Use data->block_size to store the current block
43191 (grub_pxefs_read): Use block size stored in data->block_size. As the
43192 value of grub_pxe_blksize can be changed after the file is opened.
43194 2008-08-06 Bean <bean123ch@gmail.com>
43196 * fs/i386/pc/pxe.c (curr_file): new variable.
43197 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43198 require the dummy internal file system anymore.
43199 (grub_pxefs_read): Removed.
43200 (grub_pxefs_close): Likewise.
43201 (grub_pxefs_fs_int): Likewise.
43202 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43203 connection when we switch file.
43204 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43206 2008-08-06 Robert Millan <rmh@aybabtu.com>
43208 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43210 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43211 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43213 * kern/i386/halt.c: New file.
43214 * kern/i386/reboot.c: Likewise.
43215 * include/grub/i386/reboot.h: Likewise.
43216 * include/grub/i386/halt.h: Likewise.
43218 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43219 Include `<grub/cpu/halt.h>'.
43220 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43221 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43223 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43224 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43225 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43226 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43227 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43228 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43230 * include/grub/i386/at_keyboard.h: ... to here.
43232 2008-08-05 Robert Millan <rmh@aybabtu.com>
43234 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43235 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43236 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43237 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43238 `kern/generic/millisleep.c'.
43240 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43241 instead of grub_get_rtc().
43242 (grub_tsc_init): Initialize `tsc_boot_time'.
43244 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43245 (grub_machine_init): Use grub_tsc_init() rather than
43246 installing an RTC-based handler via grub_install_get_time_ms().
43248 * kern/i386/pit.c: New file.
43249 * include/grub/i386/pit.h: Likewise.
43251 2008-08-05 Bean <bean123ch@gmail.com>
43253 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43255 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43256 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43257 (pxe_mod_SOURCES): New macro.
43258 (pxe_mod_CFLAGS): Likewise.
43259 (pxe_mod_LDFLAGS): Likewise.
43260 (pxecmd_mod_SOURCES): Likewise.
43261 (pxecmd_mod_CFLAGS): Likewise.
43262 (pxecmd_mod_LDFLAGS): Likewise.
43264 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43265 (grub_pxe_call): Likewise.
43267 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43269 * commands/i386/pc/pxecmd.c: New file.
43271 * fs/i386/pc/pxe.c: Likewise.
43273 * include/grub/i386/pc/pxe.h: Likewise.
43275 2008-08-05 Bean <bean123ch@gmail.com>
43277 * util/console.c (grub_console_cur_color): New variable.
43278 (grub_console_standard_color): Likewise.
43279 (grub_console_normal_color): Likewise.
43280 (grub_console_highlight_color): Likewise.
43281 (color_map): Likewise.
43282 (use_color): Likewise.
43283 (NUM_COLORS): New macro.
43284 (grub_ncurses_setcolorstate): Handle color properly.
43285 (grub_ncurses_setcolor): Don't change color here, just remember the
43286 settings, color will be set in grub_ncurses_setcolorstate.
43287 (grub_ncurses_getcolor): New function.
43288 (grub_ncurses_init): Initialize color pairs.
43289 (grub_ncurses_term): New member grub_ncurses_getcolor.
43291 2008-08-05 Colin D Bennett <colin@gibibit.com>
43293 High resolution timer support. Implemented for x86 CPUs using TSC.
43294 Extracted generic grub_millisleep() so it's linked in only as needed.
43295 This requires a Pentium compatible CPU; if the RDTSC instruction is
43296 not supported, then it falls back on the generic grub_get_time_ms()
43297 implementation that uses the machine's RTC.
43299 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43300 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43301 `kern/generic/millisleep.c'.
43303 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43304 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43306 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43307 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43309 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43311 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43312 `kern/generic/millisleep.c'.
43314 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43316 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43318 * kern/generic/rtc_get_time_ms.c: New file.
43320 * kern/generic/millisleep.c: New file.
43322 * kern/misc.c: Don't include
43323 <kern/time.h> anymore.
43324 (grub_millisleep_generic): Removed.
43326 * commands/sleep.c (grub_interruptible_millisleep): Uses
43327 grub_get_time_ms() instead of grub_get_rtc().
43329 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43331 (grub_cpu_is_cpuid_supported): New inline function.
43332 (grub_cpu_is_tsc_supported): New inline function.
43333 (grub_tsc_init): New function prototype.
43334 (grub_tsc_get_time_ms): New function prototype.
43336 * kern/i386/tsc.c (grub_get_time_ms): New file.
43338 * include/grub/time.h: Include <grub/types.h.
43339 (grub_millisleep_generic): Removed.
43340 (grub_get_time_ms): New prototype.
43341 (grub_install_get_time_ms): New prototype.
43342 (grub_rtc_get_time_ms): New prototype.
43344 * kern/time.c (grub_get_time_ms): New function.
43345 (grub_install_get_time_ms): New function.
43347 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43348 <grub/time.h> anymore.
43349 (grub_millisleep): Removed.
43350 (grub_machine_init): Call grub_tsc_init.
43352 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43353 get_time_ms() implementation.
43355 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43356 (ieee1275_get_time_ms): New function.
43357 (grub_machine_init): Install get_time_ms() implementation.
43359 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43360 (grub_machine_init): Call grub_tsc_init().
43361 (grub_millisleep): Removed.
43363 * kern/ieee1275/init.c (grub_millisleep): Removed.
43364 (grub_machine_init): Install ieee1275_get_time_ms()
43366 (ieee1275_get_time_ms): New function.
43367 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43370 2008-08-05 Marco Gerards <marco@gnu.org>
43372 * disk/ata.c: Include <grub/pci.h>.
43373 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43374 (grub_ata_initialize): Rewritten.
43375 (grub_ata_device_initialize): New function.
43377 2008-08-04 Pavel Roskin <proski@gnu.org>
43379 * kern/main.c: Include grub/mm.h.
43381 2008-08-04 Robert Millan <rmh@aybabtu.com>
43383 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43384 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43385 corruption problem).
43387 2008-08-04 Robert Millan <rmh@aybabtu.com>
43389 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43390 warnings introduced in my last commit.
43392 2008-08-03 Robert Millan <rmh@aybabtu.com>
43394 Make PCI available on all i386 architectures.
43396 * include/grub/i386/pc/pci.h: Move from here ...
43397 * include/grub/i386/pci.h: ... to here.
43399 * include/grub/i386/pc/pci.h: Remove.
43400 * include/grub/i386/efi/pci.h: Remove.
43401 * include/grub/x86_64/efi/pci.h: Remove.
43403 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43404 `<grub/cpu/pci.h>'.
43406 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43407 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43408 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43410 * conf/i386-ieee1275.rmk: Likewise.
43412 2008-08-03 Robert Millan <rmh@aybabtu.com>
43414 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43415 (grub_console_setcursor): Make it possible to set cursor off.
43417 2008-08-03 Robert Millan <rmh@aybabtu.com>
43419 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43420 of modules instead of assuming which platform provides what.
43421 * util/update-grub.in: Likewise.
43423 2008-08-03 Robert Millan <rmh@aybabtu.com>
43425 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43426 instead of `grub_install_dos_part' to determine whether a drive needs
43427 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43428 because it can be overridden when loading GRUB via Multiboot).
43430 2008-08-02 Robert Millan <rmh@aybabtu.com>
43432 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43434 2008-08-02 Robert Millan <rmh@aybabtu.com>
43436 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43437 of informational grub_dprintf() calls.
43439 2008-08-02 Robert Millan <rmh@aybabtu.com>
43441 * disk/memdisk.c (memdisk_size): Don't initialize.
43442 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43444 * include/grub/i386/pc/kernel.h
43445 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43446 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43447 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43448 (grub_arch_memdisk_size): Remove.
43450 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43451 field (was only used to transfer a constant). Add `type' field to
43452 support multiple module types.
43453 (grub_module_iterate): New function.
43455 * kern/device.c (grub_device_open): Do not hide error messages
43456 when grub_disk_open() fails. Use grub_print_error() instead.
43458 * kern/i386/pc/init.c (grub_arch_modules_addr)
43459 (grub_arch_memdisk_size): Remove functions.
43460 (grub_arch_modules_addr): Return the module address in high memory
43461 (now that it isn't copied anymore).
43463 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43464 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43465 decompression routine (grub_total_module_size already includes that
43466 now). Don't copy modules back to low memory.
43468 * kern/main.c: Include `<grub/mm.h>'.
43469 (grub_load_modules): Split out (and use) ...
43470 (grub_module_iterate): ... this function, which iterates through
43471 module objects and runs a hook.
43472 Comment out grub_mm_init_region() call, as it would cause non-ELF
43473 modules to be overwritten.
43475 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43476 the memdisk image in its own region, make it part of the module list.
43477 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43478 (main): Parse --memdisk|-m option, and pass user-provided path as
43479 parameter to generate_image().
43480 (add_segments): Pass `memdisk_path' down to load_modules().
43481 (load_modules): Embed memdisk image in module section when requested.
43482 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43483 `header.type' instead of `header.offset'.
43485 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43486 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43487 (memdisk_mod_LDFLAGS): New variables.
43488 * conf/i386-coreboot.rmk: Likewise.
43489 * conf/i386-ieee1275.rmk: Likewise.
43491 2008-08-02 Robert Millan <rmh@aybabtu.com>
43493 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43494 (backward_relocator): New variables. Used to allocate and relocate
43495 the payload, respectively.
43496 (grub_multiboot_load_elf32): Load into heap instead of requested
43497 address, install the appropriate relocator code in each bound of
43498 the payload, and set the entry point such that
43499 grub_multiboot_real_boot() will jump to one of them.
43501 * kern/i386/loader.S (grub_multiboot_payload_size)
43502 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43503 (grub_multiboot_payload_entry_offset): New variables.
43504 (grub_multiboot_real_boot): Set cpu context to what the relocator
43505 expects, and jump to the relocator instead of the payload.
43507 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43508 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43509 (grub_multiboot_payload_entry_offset): Export.
43511 2008-08-01 Bean <bean123ch@gmail.com>
43513 * normal/menu_entry.c (editor_getline): Don't return the original
43514 string as result, as it will be released by lexer once it has done
43517 2008-08-01 Robert Millan <rmh@aybabtu.com>
43519 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43520 within menuentries, not before them.
43521 util/grub.d/10_hurd.in: Likewise.
43523 2008-08-01 Bean <bean123ch@gmail.com>
43525 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43526 (bufio_mod_SOURCES): New macro.
43527 (bufio_mod_CFLAGS): Likewise.
43528 (bufio_mod_LDFLAGS): Likewise.
43530 * include/grub/bufio.h: New file.
43532 * io/bufio.c: Likewise.
43534 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43535 (grub_video_reader_png): Use grub_buffile_open to open file.
43537 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43538 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43540 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43541 (grub_video_reader_tga): Use grub_buffile_open to open file.
43543 * font/manager.c: Include <grub/bufio.h>.
43544 (add_font): Use grub_buffile_open to open file.
43546 2008-07-31 Robert Millan <rmh@aybabtu.com>
43548 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43549 ELF segments, use a macro for arbitrarily accessing any of them instead
43550 of preparing a pointer that allows access to one at a time.
43551 (grub_multiboot_load_elf64): Likewise.
43553 2008-07-31 Bean <bean123ch@gmail.com>
43555 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43556 GRUB_KERNEL_MACHINE_DATA_END.
43558 2008-07-30 Robert Millan <rmh@aybabtu.com>
43560 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43561 Increase from 0x50 to 0x60.
43562 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43563 use UUIDs to identify the root drive for them. If that's not
43565 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43566 check, for cross-disk installs.
43568 2008-07-30 Robert Millan <rmh@aybabtu.com>
43570 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43571 is non-empty, use it to set the `prefix' environment variable instead
43572 of the usual approach.
43573 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43574 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43575 environment variable instead of dummy make_install_device().
43577 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43578 (start): Insert a data section, with `grub_prefix' variable.
43579 * kern/i386/linuxbios/startup.S: Likewise.
43581 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43582 New variable reference.
43583 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43584 New macro. Defines offset of `grub_prefix' within startup.S (relative
43586 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43587 section within startup.S (relative to `start').
43588 * include/grub/i386/coreboot/kernel.h: Likewise.
43590 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43591 Overwrite grub_prefix with its contents, at the beginning of the
43593 (main): Understand -p|--prefix.
43595 2008-07-30 Robert Millan <rmh@aybabtu.com>
43597 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43599 2008-07-30 Robert Millan <rmh@aybabtu.com>
43601 * term/i386/pc/vga_text.c (grub_console_cls): Use
43602 grub_console_gotoxy() to go back to beginning of the screen.
43603 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43605 2008-07-29 Christian Franke <franke@computer.org>
43607 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43608 Add conversion of emulated mount points on Cygwin.
43610 2008-07-29 Christian Franke <franke@computer.org>
43612 * util/update-grub.in: Add a check for admin
43614 Remove old `grub.cfg.new' before creation.
43615 Add `-f' to `mv' to handle the different filesystem
43616 semantics of Windows.
43618 2008-07-29 Bean <bean123ch@gmail.com>
43620 * normal/main.c (get_line): Fix buffer overflow bug.
43622 2008-07-28 Robert Millan <rmh@aybabtu.com>
43624 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43625 (struct grub_apple_header): New struct. Describes the layout of
43626 the partmap header.
43627 (apple_partition_map_iterate): Check the header magic as well as the
43628 partition magic (which was already being checked).
43630 2008-07-28 Pavel Roskin <proski@gnu.org>
43632 * genmk.rb: Add a warning to the beginning of the output that
43633 it's a generated file and should not be edited.
43635 2008-07-28 Robert Millan <rmh@aybabtu.com>
43637 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43638 with the same number are found, just use issue a warning with
43639 grub_dprintf(), as this error has been reported to be non-fatal.
43641 2008-07-27 Robert Millan <rmh@aybabtu.com>
43643 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43646 2008-07-27 Bean <bean123ch@gmail.com>
43648 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43649 (grub_fat_find_dir): Ignore case when comparing filename.
43651 2008-07-27 Bean <bean123ch@gmail.com>
43653 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43654 smallino, as it's more descriptive, and i8count can be confused with
43655 the other field count.
43656 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43659 2008-07-27 Bean <bean123ch@gmail.com>
43661 * commands/crc.c: New file.
43663 * lib/crc.c: Likewise.
43665 * include/grub/lib/crc.h: Likewise.
43667 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43669 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43670 (hexdump): Move this function to ...
43672 * lib/hexdump.c: ... here.
43674 * include/grub/hexdump.h: Renamed to ...
43676 * include/grub/lib/hexdump.h: ... this.
43678 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43680 * util/grub-editenv.c: Likewise.
43682 * include/envblk.h: Renamed to ...
43684 * include/lib/envblk.h: ... this.
43686 * util/envblk.c: Renamed to ...
43688 * lib/envblk.c: ... this.
43690 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43692 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43693 (pkglib_MODULES): Add crc.mod.
43694 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43695 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43696 (crc_mod_SOURCES): New macro.
43697 (crc_mod_CFLAGS): Likewise.
43698 (crc_mod_LDFLAGS): Likewise.
43700 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43702 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43704 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43706 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43708 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43710 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43712 * commands/help.c: Include <grub/term.h>.
43713 (TERM_WIDTH): Removed. Updated all users.
43715 2008-07-27 Pavel Roskin <proski@gnu.org>
43717 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43718 spurious warnings about a comment within a comment.
43720 2008-07-25 Robert Millan <rmh@aybabtu.com>
43722 * util/getroot.c (find_root_device): Skip devices that match
43723 /dev/dm-[0-9]. This lets the real device be found for any type of
43724 abstraction (LVM, EVMS, RAID..).
43725 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43726 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43727 device is found first, find_root_device() will now skip it.
43729 2008-07-24 Pavel Roskin <proski@gnu.org>
43731 * include/grub/types.h: Use __builtin_bswap32() and
43732 __builtin_bswap64() with gcc 4.3 and newer.
43734 2008-07-24 Christian Franke <franke@computer.org>
43736 * util/i386/pc/grub-install.in: If `--debug' is specified,
43737 pass `--verbose' to grub-setup.
43738 Abort script if make_system_path_relative_to_its_root() fails.
43740 2008-07-24 Bean <bean123ch@gmail.com>
43742 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43743 variable `target_platform' should be `platform'.
43745 2008-07-24 Bean <bean123ch@gmail.com>
43747 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43748 (grub_png_init_fixed_block): New function.
43749 (grub_png_decode_image_data): Handle fixed huffman code compression.
43751 2008-07-24 Bean <bean123ch@gmail.com>
43753 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43754 (grub_pe2elf_SOURCES): New macro.
43755 (CLEANFILES): Add grub-pe2elf.
43757 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43758 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43759 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43760 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43761 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43762 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43763 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43764 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43765 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43766 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43767 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43768 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43769 (GRUB_PE32_DT_FUNCTION): Likewise.
43770 (GRUB_PE32_REL_I386_DIR32): Likewise.
43771 (GRUB_PE32_REL_I386_REL32): Likewise.
43772 (grub_pe32_symbol): New structure.
43773 (grub_pe32_reloc): Likewise.
43775 * util/grub-pe2elf.c: New file.
43777 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43778 start symbol in non pc platform.
43780 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43782 The following patches are from Christian Franke.
43784 * include/grub/dl.h: Remove .previous, gas supports this only
43787 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43788 Remove .type, gas supports this only for ELF format.
43790 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43791 nullbytes in symbol table. This fixes an infinite loop if table is
43794 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43795 TARGET_IMG_LDFLAGS and EXEEXT.
43797 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43798 TARGET_IMG_LDFLAGS_AC.
43799 (grub_CHECK_STACK_ARG_PROBE): New function.
43801 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43803 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43805 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43806 to set TARGET_IMG_LD* accordingly.
43807 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43808 Add call to grub_CHECK_STACK_ARG_PROBE.
43809 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43811 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43813 * genmk.rb: Add EXEEXT to CLEANFILES.
43815 2008-07-23 Robert Millan <rmh@aybabtu.com>
43817 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43818 define the codes for arrows and lines used for the menu).
43819 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43822 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43823 fonts, because the latter are too slow.
43825 2008-07-21 Bean <bean123ch@gmail.com>
43827 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43828 a20. Run keyboard test last, as it will cause macbook to halt.
43830 2008-07-18 Pavel Roskin <proski@gnu.org>
43832 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43833 load foreign architecture modules correctly anyway. Keep
43834 support for loading host architecture modules, whether we
43835 compile them or not.
43837 2008-07-17 Pavel Roskin <proski@gnu.org>
43839 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43840 change target_cpu. The compiler default can mismatch target_cpu
43843 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43844 * kern/efi/efi.c: Likewise.
43846 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43847 target compiler is functional.
43848 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43851 * configure.ac: Default to efi platform for x86_64-apple. Allow
43852 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43853 adjustments from the rest, only do them if target is not
43854 explicitly given. Merge other adjustments with the final sanity
43855 check. Remove an extraneous check for supported CPU. Be
43856 specific which CPU and which platform is not supported.
43858 * configure.ac: Default to pc platform for x86_64.
43860 2008-07-17 Robert Millan <rmh@aybabtu.com>
43862 Partial LinuxBIOS -> Coreboot rename.
43864 * conf/i386-linuxbios.rmk: Renamed to ...
43865 * conf/i386-coreboot.rmk: ... this.
43866 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43867 * configure.ac: Accept "coreboot" as input platform (but maintain
43868 compatibility with "linuxbios").
43869 * include/grub/i386/linuxbios: Renamed to ...
43870 * include/grub/i386/coreboot: ... this.
43872 2008-07-17 Bean <bean123ch@gmail.com>
43874 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43875 (appleldr_mod_SOURCE): New variable.
43876 (appleldr_mod_CFLAGS): Likewise.
43877 (appleldr_mod_LDFLAGS): Likewise.
43878 (pci_mod_SOURCES): Likewise.
43879 (pci_mod_CFLAGS): Likewise.
43880 (pci_mod_LDFLAGS): Likewise.
43881 (lspci_mod_SOURCES): Likewise.
43882 (lspci_mod_CFLAGS): Likewise.
43883 (lspci_mod_LDFLAGS): Likewise.
43885 * conf/x86_64-efi.rmk: New file.
43887 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43889 (grub_efidisk_write): Likewise.
43891 * include/efi/api.h (efi_call_0): New macro.
43892 (efi_call_1): Likewise.
43893 (efi_call_2): Likewise.
43894 (efi_call_3): Likewise.
43895 (efi_call_4): Likewise.
43896 (efi_call_5): Likewise.
43897 (efi_call_6): Likewise.
43899 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43900 grub_rescue_cmd_chainloader.
43902 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43903 (grub_pe32_optional_header): Change some fields based on i386 or
43905 (GRUB_PE32_PE32_MAGIC): Likewise.
43907 * include/grub/efi/uga_draw.h: New file.
43909 * include/grub/elf.h (STN_ABS): New constant.
43910 (R_X86_64_NONE): Relocation constant for x86_64.
43911 (R_X86_64_64): Likewise.
43912 (R_X86_64_PC32): Likewise.
43913 (R_X86_64_GOT32): Likewise.
43914 (R_X86_64_PLT32): Likewise.
43915 (R_X86_64_COPY): Likewise.
43916 (R_X86_64_GLOB_DAT): Likewise.
43917 (R_X86_64_JUMP_SLOT): Likewise.
43918 (R_X86_64_RELATIVE): Likewise.
43919 (R_X86_64_GOTPCREL): Likewise.
43920 (R_X86_64_32): Likewise.
43921 (R_X86_64_32S): Likewise.
43922 (R_X86_64_16): Likewise.
43923 (R_X86_64_PC16): Likewise.
43924 (R_X86_64_8): Likewise.
43925 (R_X86_64_PC8): Likewise.
43927 * include/grub/i386/efi/pci.h: New file.
43929 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43930 Change it value based on platform.
43931 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43932 (GRUB_E820_RAM): Likewise.
43933 (GRUB_E820_RESERVED): Likewise.
43934 (GRUB_E820_ACPI): Likewise.
43935 (GRUB_E820_NVS): Likewise.
43936 (GRUB_E820_EXEC_CODE): Likewise.
43937 (GRUB_E820_MAX_ENTRY): Likewise.
43938 (grub_e820_mmap): New structure.
43939 (linux_kernel_header): Change the efi field according to different
43940 kernel version, also field from linux_kernel_header.
43942 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43944 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43945 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43946 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43947 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43948 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43949 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43950 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43951 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43952 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43953 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43955 * include/grub/x86_64/efi/kernel.h: New file.
43957 * include/grub/x86_64/efi/loader.h: Likewise.
43959 * include/grub/x86_64/efi/machine.h: Likewise.
43961 * include/grub/x86_64/efi/pci.h: Likewise.
43963 * include/grub/x86_64/efi/time.h: Likewise.
43965 * include/grub/x86_64/linux.h: Likewise.
43967 * include/grub/x86_64/setjmp.h: Likewise.
43969 * include/grub/x86_64/time.h: Likewise.
43971 * include/grub/x86_64/types.h: Likewise.
43973 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43974 GRUB_TARGET_SIZEOF_VOID_P.
43976 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43977 (grub_efi_locate_handle): Likewise.
43978 (grub_efi_open_protocol): Likewise.
43979 (grub_efi_set_text_mode): Likewise.
43980 (grub_efi_stall): Likewise.
43981 (grub_exit): Likewise.
43982 (grub_reboot): Likewise.
43983 (grub_halt): Likewise.
43984 (grub_efi_exit_boot_services): Likewise.
43985 (grub_get_rtc): Likewise.
43987 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43988 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43989 (grub_efi_allocate_pages): Wrap efi calls.
43990 (grub_efi_free_pages): Wrap efi calls.
43991 (grub_efi_get_memory_map): Wrap efi calls.
43993 * kern/x86_64/dl.c: New file.
43995 * kern/x86_64/efi/callwrap.S: Likewise.
43997 * kern/x86_64/efi/startup.S: Likewise.
43999 * loader/efi/appleloader.c: Likewise.
44001 * loader/efi/chainloader.c (cmdline): New variable.
44002 (grub_chainloader_unload): Wrap efi calls.
44003 (grub_chainloader_boot): Likewise.
44004 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
44007 * loader/efi/chainloader_normal.c (chainloader_command):
44008 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44011 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44013 (grub_e820_add_region): New function.
44014 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44016 (grub_find_video_card): New function.
44017 (grub_linux_setup_video): New function.
44018 (grub_rescue_cmd_linux): Probe for video information.
44020 * normal/x86_64/setjmp.S: New file.
44022 * term/efi/console.c (map_char): New function.
44023 (grub_console_putchar): Map unicode char.
44024 (grub_console_checkkey): Wrap efi calls.
44025 (grub_console_getkey): Likewise.
44026 (grub_console_getwh): Likewise.
44027 (grub_console_gotoxy): Likewise.
44028 (grub_console_cls): Likewise.
44029 (grub_console_setcolorstate): Likewise.
44030 (grub_console_setcursor): Likewise.
44032 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44034 2008-07-16 Pavel Roskin <proski@gnu.org>
44036 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44039 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44040 pointer, not an integer. This fixes a warning and prevents
44041 precision loss on 64-bit systems.
44042 (relocate_addresses): Remove unneeded cast.
44044 2008-07-15 Pavel Roskin <proski@gnu.org>
44046 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44048 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44050 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44051 Fix comparison between signed and unsigned.
44053 * include/grub/i386/ieee1275/console.h: Declare
44054 grub_console_init() and grub_console_fini().
44056 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44057 It's empty and unused.
44059 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44060 beginning to avoid warnings with some compilers.
44062 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44063 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44065 2008-07-14 Pavel Roskin <proski@gnu.org>
44067 * kern/env.c (grub_register_variable_hook): Don't copy empty
44068 string, it leaks memory. Pass "" to grub_env_set(), it should
44069 handle constant strings.
44071 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44072 * commands/cmp.c (grub_cmd_cmp): Likewise.
44073 * kern/dl.c (grub_dl_flush_cache): Likewise.
44074 (grub_dl_load_core): Likewise.
44075 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44076 (grub_elf64_load_phdrs): Likewise.
44078 2008-07-13 Pavel Roskin <proski@gnu.org>
44080 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44081 between signed and unsigned.
44082 (LzmaEnc_Finish): Fix warning about an unused parameter.
44084 2008-07-13 Bean <bean123ch@gmail.com>
44086 * Makefile.in (enable_lzo): New rule.
44088 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44090 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44092 * boot/i386/pc/lnxboot.S: #include <config.h>.
44094 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44095 its value according to the compression algorithm used, lzo or lzma.
44097 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44098 compression algorithm according to configure macro.
44100 * kern/i386/pc/startup.S (codestart): Likewise.
44102 * kern/i386/pc/lzma_decode.S: New file.
44104 * include/grub/lib/LzFind.h: Likewise.
44106 * include/grub/lib/LzHash.h: Likewise.
44108 * include/grub/lib/LzmaDec.h: Likewise.
44110 * include/grub/lib/LzmaEnc.h: Likewise.
44112 * include/grub/lib/LzmaTypes.h: Likewise.
44114 * lib/LzFind.c: Likewise.
44116 * lib/LzmaDec.c: Likewise.
44118 * lib/LzmaEnc.c: Likewise.
44120 2008-07-13 Bean <bean123ch@gmail.com>
44122 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44123 (grub_ext4_extent_header): New structure.
44124 (grub_ext4_extent): Likewise.
44125 (grub_ext4_extent_idx): Likewise.
44126 (grub_ext4_find_leaf): New function.
44127 (grub_ext2_read_block): Handle extents.
44129 2008-07-12 Robert Millan <rmh@aybabtu.com>
44131 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44133 2008-07-11 Robert Millan <rmh@aybabtu.com>
44135 * util/grub.d/40_custom.in: New file. Example on how to add custom
44136 entries to /etc/grub.d.
44137 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44138 40_custom (implicitly, by merging all the grub.d rules).
44140 2008-07-11 Pavel Roskin <proski@gnu.org>
44142 * commands/read.c (grub_getline): Fix invalid memory access.
44143 Don't add newline to the variable value.
44145 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44146 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44147 (serial_hw_get_port): Check validity of the port number.
44148 (grub_cmd_serial): Check return value of serial_hw_get_port().
44150 2008-07-07 Pavel Roskin <proski@gnu.org>
44152 * boot/i386/pc/diskboot.S (notification_string): Replace
44153 "Loading kernel" with just "loading". This is shorter, less
44154 confusing and saves a few bytes for possible future changes.
44156 2008-07-05 Pavel Roskin <proski@gnu.org>
44158 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44159 size for ATAPI devices, they are undefined. Output sector
44160 number in decimal form.
44162 * disk/ata.c: Use named constants for status bits.
44164 2008-07-04 Pavel Roskin <proski@gnu.org>
44166 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44167 grub_addr_t before casting it to the void pointer to fix a
44168 warning. Non-addressable regions are discarded earlier.
44169 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44170 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44171 (check_signature): Don't shadow table_header.
44172 (grub_linuxbios_table_iterate): Cast numeric constants to
44173 grub_linuxbios_table_header_t.
44174 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44177 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44180 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44181 pointer, which can cause warnings. Support 64-bit addresses.
44183 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44184 of sizeof(long). This fixes PowerPC image generation on x86_64.
44186 2008-07-04 Robert Millan <rmh@aybabtu.com>
44188 This fixes a performance issue when pc & gpt partmap iterators
44189 didn't abort iteration even after our hook found what it was
44190 looking for (often causing expensive probes of non-existent drives).
44192 Some callers relied on previous buggy behaviour, since they would
44193 raise an error when their own hooks caused early abortion of its
44196 * kern/device.c (grub_device_open): Improve error message.
44197 * disk/lvm.c (grub_lvm_open): Likewise.
44198 * disk/raid.c (grub_raid_open): Likewise.
44200 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44201 when hook requests it, independently of grub_errno.
44202 (pc_partition_map_probe): Do not fail when find_func() caused
44203 early abortion of pc_partition_map_iterate().
44205 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44206 when hook requests it, independently of grub_errno.
44207 (gpt_partition_map_probe): Do not fail when find_func() caused
44208 early abortion of gpt_partition_map_iterate().
44210 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44211 when hook requests it, independently of grub_errno. Do not fail when
44212 part_map_iterate_hook() caused early abortion of p->iterate().
44214 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44215 when grub_partition_iterate() returned with non-zero.
44217 2008-07-03 Pavel Roskin <proski@gnu.org>
44219 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44220 like we do in grub_ata_pio_read().
44221 (grub_ata_readwrite): Always write individual sectors. Fix the
44222 sector count for the remainder.
44223 (grub_ata_write): Enable writing to ATA devices. Correctly
44224 report error for ATAPI devices.
44226 2008-07-02 Pavel Roskin <proski@gnu.org>
44228 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44231 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44232 for every read sector, we already increment it for the whole
44233 batch. This fixes reading more than 256 sectors at once.
44235 * util/grub-editenv.c (cmd_info): Cast argument to long
44236 explicitly. ptrdiff_t reduces to int on i386.
44238 * util/grub-editenv.c (main): Be specific which parameter is
44241 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44242 (memdisk): Make memdisk_orig_addr a pointer.
44244 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44245 for file offsets, use grub_off_t instead. Fix printf format
44248 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44249 there. Real unexpected warnings should not drown in the noise
44250 about known problems.
44252 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44253 grub_disk_addr_t for memory addresses.
44255 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44256 explicitly to fix a warning.
44258 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44260 * Makefile.in (MODULE_LDFLAGS): New variable.
44261 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44262 the linker accepts --build-id=none.
44263 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44265 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44267 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44268 those in Linux XFS code. Provide a way to access 64-bit parent
44270 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44271 the end of struct grub_xfs_dir_header.
44273 2008-07-02 Bean <bean123ch@gmail.com>
44275 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44276 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44277 and GRUB_IEEE1275_FLAG_NO_ANSI.
44279 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44280 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44281 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44283 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44284 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44286 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44287 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44289 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44290 esc sequence on non ANSI terminal.
44291 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44293 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44296 2008-07-02 Bean <bean123ch@gmail.com>
44298 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44299 (grub_editenv_SOURCES): New variable.
44300 (pkglib_MODULES): Add loadenv.mod.
44301 (loadenv_mod_SOURCES): New variable.
44302 (loadenv_mod_CFLAGS): Likewise.
44303 (loadenv_mod_LDFLAGS): Likewise.
44305 * include/grub/envblk.h: New file.
44307 * util/envblk.c: New file.
44309 * util/grub-editenv.c: New file.
44311 * commands/loadenv.c: New file.
44313 2008-07-01 Pavel Roskin <proski@gnu.org>
44315 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44316 not unsigned char. This fixes warnings and is consistent with
44319 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44321 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44323 * term/tparm.c (analyze): Always set *popcount.
44325 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44326 cast to fix a warning.
44328 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44329 cast to suppress a warning.
44331 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44332 grub_fshelp_read_file() expects.
44334 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44335 write uuid as a 32-bit value in CPU byte order, so declare and
44338 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44339 long if the format specifier expects it.
44340 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44341 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44342 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44343 long to fix a warning.
44344 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44345 grub_dprintf() arguments to fix warnings.
44347 2008-06-30 Pavel Roskin <proski@gnu.org>
44349 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44350 install_bsd_part immediately before core.img is embedded or
44351 modified on disk. This fixes core.img verification if core.img
44352 cannot be embedded.
44354 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44355 core_path to calculate the blocklist.
44356 Patch from Javier Martín <lordhabbit@gmail.com>
44358 2008-06-29 Robert Millan <rmh@aybabtu.com>
44360 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44361 block to disk block.
44362 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44363 Patch from Niels Böhm <bitbucket@arcor.de>
44365 2008-06-29 Robert Millan <rmh@aybabtu.com>
44367 * util/update-grub_lib.in (font_path): Search for fonts in
44368 /boot/grub first, which is more likely to be readable (we aren't
44369 deciding where fonts live, just looking for them).
44371 2008-06-26 Pavel Roskin <proski@gnu.org>
44373 * util/biosdisk.c (read_device_map): Don't leave dead map
44374 entries for devices failing stat() check.
44376 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44377 core_path_dev for the core.img path on the target device.
44379 2008-06-26 Robert Millan <rmh@aybabtu.com>
44381 * disk/fs_uuid.c: New file.
44382 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44383 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44384 (fs_uuid_mod_LDFLAGS): New variables.
44385 * include/grub/disk.h (grub_disk_dev_id): Add
44386 `GRUB_DISK_DEVICE_UUID_ID'.
44387 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44388 implement iterate().
44390 2008-06-26 Robert Millan <rmh@aybabtu.com>
44392 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44393 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44394 Linux image includes no initrd.
44396 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44398 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44399 call to resolve the core image location that effectively appended the
44402 2008-06-21 Robert Millan <rmh@aybabtu.com>
44404 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44407 * util/grub.d/10_hurd.in: ... to here ...
44408 * util/grub.d/10_linux.in: ... and here.
44410 2008-06-19 Robert Millan <rmh@aybabtu.com>
44412 * kern/main.c (grub_main): Export `prefix' variable immediately
44413 after it has been set by grub_machine_set_prefix().
44415 2008-06-19 Robert Millan <rmh@aybabtu.com>
44417 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44418 search result when not saving to variable, not the other way around.
44419 When saving to variable, abort iteration as soon as a match is found.
44421 2008-06-19 Robert Millan <rmh@aybabtu.com>
44423 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44424 check for partition that provides /boot/grub. Its logic is flawed,
44425 as it prevents prepare_grub_to_access_device() from being called
44428 2008-06-19 Robert Millan <rmh@aybabtu.com>
44430 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44431 "insmod" command directly when abstraction modules are needed,
44432 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44433 since it had already been processed).
44435 2008-06-19 Pavel Roskin <proski@gnu.org>
44437 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44438 changed. This is needed in case GRUB_LIBDIR changes.
44439 * conf/i386-ieee1275.rmk: Likewise.
44440 * conf/i386-linuxbios.rmk: Likewise.
44441 * conf/i386-pc.rmk: Likewise.
44442 * conf/powerpc-ieee1275.rmk: Likewise.
44444 2008-06-18 Pavel Roskin <proski@gnu.org>
44446 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44447 kernel_elf_symlist.c to symlist.c for consistency with other
44448 architectures. Update all users.
44449 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44451 2008-06-18 Robert Millan <rmh@aybabtu.com>
44453 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44456 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44457 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44458 a RAID device, run setup() for all members independently on whether
44459 LVM abstraction is being used.
44460 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44461 If grub-mkimage has set `*install_dos_part == -2', don't override this
44463 Perform *install_dos_part adjustments independently on whether
44464 we're embedding or not.
44465 Clarify error message when image is too big for embedding.
44466 Remove duplicate *install_dos_part stanza.
44468 2008-06-17 Robert Millan <rmh@aybabtu.com>
44470 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44471 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44473 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44474 values in grub_ofconsole_normal_color and
44475 grub_ofconsole_highlight_color (they're not directly related to
44476 background and foreground).
44477 (grub_ofconsole_setcolorstate): Extract background and foreground
44478 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44480 2008-06-17 Robert Millan <rmh@aybabtu.com>
44482 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44483 /boot/grub for the check in last commit, not /boot (they could be
44484 different partitions).
44486 2008-06-16 Robert Millan <rmh@aybabtu.com>
44488 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44489 asked to setup access for the same partition that provides /boot,
44490 don't bother using UUIDs since our root already has the value we
44493 2008-06-16 Robert Millan <rmh@aybabtu.com>
44495 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44497 Patch from Sven Mueller <sven@debian.org>.
44499 2008-06-16 Robert Millan <rmh@aybabtu.com>
44501 * util/update-grub.in: Check for $EUID instead of $UID.
44502 Reported by Vincent Zweije.
44504 2008-06-16 Bean <bean123ch@gmail.com>
44506 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44507 (grub_ext2_read_block): Likewise.
44508 (grub_ext2_read_inode): Likewise.
44509 (grub_ext2_mount): Likewise.
44510 (grub_ext2_close): Likewise.
44511 (grub_ext3_get_journal): Removed.
44513 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44514 (grub_reiserfs_read_symlink): Likewise.
44515 (grub_reiserfs_mount): Likewise.
44516 (grub_reiserfs_open): Likewise.
44517 (grub_reiserfs_read): Likewise.
44518 (grub_reiserfs_close): Likewise.
44519 (grub_reiserfs_get_journal): Removed.
44521 * fs/fshelp.c (grub_fshelp_read): Removed.
44522 (grub_fshelp_map_block): Likewise.
44524 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44525 (grub_fshelp_journal): Likewise.
44526 (grub_fshelp_read): Likewise.
44527 (grub_fshelp_map_block): Likewise.
44529 2008-06-16 Pavel Roskin <proski@gnu.org>
44531 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44532 floating point anymore.
44533 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44535 2008-06-15 Pavel Roskin <proski@gnu.org>
44537 * commands/ls.c (grub_ls_list_files): Use integer calculations
44538 for human readable format, avoid floating point use.
44539 * kern/misc.c (grub_ftoa): Remove.
44540 (grub_vsprintf): Remove floating point support.
44542 2008-06-15 Robert Millan <rmh@aybabtu.com>
44544 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44546 Reported by Max Vozeler.
44548 2008-06-15 Robert Millan <rmh@aybabtu.com>
44550 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44551 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44553 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44554 the beginning of the prefix.
44556 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44557 It is assumed that if we have a memdisk, grub-mkimage has set
44558 grub_prefix to include the "(memdisk)" drive in it.
44560 2008-06-15 Robert Millan <rmh@aybabtu.com>
44562 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44563 Initialize keyboard controller after registering the terminal, so that
44564 grub_printf() can be called from grub_keyboard_controller_init().
44566 2008-06-15 Robert Millan <rmh@aybabtu.com>
44568 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44569 extent-btree which is written as big endian on disk.
44570 Reported by Alain Greppin <al@chilibi.org>.
44572 2008-06-14 Robert Millan <rmh@aybabtu.com>
44574 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44575 * util/i386/pc/grub-install.in (modules): Likewise.
44577 2008-06-13 Pavel Roskin <proski@gnu.org>
44579 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44581 2008-06-13 Bean <bean123ch@gmail.com>
44583 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44585 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44587 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44588 to indicate sparse block.
44590 2008-06-12 Pavel Roskin <proski@gnu.org>
44592 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44593 number, grub_fshelp_read() does it for us.
44595 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44596 linear disk read with journal translation.
44597 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44598 * include/grub/fshelp.h: Declare grub_fshelp_read().
44600 2008-06-09 Pavel Roskin <proski@gnu.org>
44602 * fs/minix.c (grub_minix_mount): Handle error reading
44605 2008-06-08 Robert Millan <rmh@aybabtu.com>
44607 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44608 don't append the RAID prefix afterwards.
44609 Reported by Clint Adams.
44611 2008-06-08 Robert Millan <rmh@aybabtu.com>
44613 Based on description from Pavel:
44614 * kern/disk.c (grub_disk_check_range): Rename to ...
44615 (grub_disk_adjust_range): ... this. Add a comment explaining the
44616 tasks performed by this function.
44618 2008-06-08 Robert Millan <rmh@aybabtu.com>
44620 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44621 `num_serial' (for consistency with other variables).
44622 (struct grub_ntfs_data): Add `uuid' member.
44623 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44624 (grub_ntfs_uuid): New function.
44625 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44627 2008-06-07 Pavel Roskin <proski@gnu.org>
44629 * util/biosdisk.c (open_device): Revert last change to the
44630 function, it broke installation. The sector needs to be
44631 different dependent on which device is opened.
44633 2008-06-06 Robert Millan <rmh@aybabtu.com>
44635 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44636 rest of GRUB, and breakage doesn't happen if its value were modified.
44638 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44639 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44640 a constant (same value).
44641 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44642 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44644 2008-06-06 Robert Millan <rmh@aybabtu.com>
44646 * util/biosdisk.c (open_device): Do not modify sector offset when
44647 accessing a partition. kern/disk.c already handles this for us.
44649 2008-06-06 Robert Millan <rmh@aybabtu.com>
44651 * util/grub-emu.c (grub_machine_init): Move code in this function from
44653 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44654 segfault in case grub_printf() is called).
44656 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44657 grub_probe. Update all users not to explicitly add it again.
44658 (grub_device): New variable; contains corresponding device for grubdir.
44659 (fs_module, partmap_module, devabstraction_module): Pass
44660 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44663 2008-06-05 Robert Millan <rmh@aybabtu.com>
44665 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44666 is found, print it (same layout as with labels).
44668 2008-06-04 Robert Millan <rmh@aybabtu.com>
44670 * util/biosdisk.c (get_drive): Rename to ...
44671 (find_grub_drive): ... this. Update all users.
44673 (get_os_disk): Rename to ...
44674 (convert_system_partition_to_system_disk): ... this. Update all users.
44676 (find_drive): Rename to ...
44677 (find_system_device): ... this. Update all users.
44679 2008-06-04 Robert Millan <rmh@aybabtu.com>
44681 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44682 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44683 (make_device_map): Likewise.
44685 2008-06-01 Robert Millan <rmh@aybabtu.com>
44687 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44688 before dereferencing it.
44690 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44691 union with fat12/fat16-specific ones. Add some new fields, including
44692 `num_serial' for both versions.
44693 (struct grub_fat_data): Add `uuid' member.
44694 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44695 names. Initialize `data->uuid' using `num_serial'.
44696 (grub_fat_uuid): New function.
44697 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44699 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44700 (grub_reiserfs_uuid): New function.
44701 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44704 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44705 (grub_xfs_uuid): New function.
44706 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44708 2008-06-01 Robert Millan <rmh@aybabtu.com>
44710 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44711 code that is backward compatible with pre-uuid search command.
44713 2008-05-31 Robert Millan <rmh@aybabtu.com>
44715 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44716 floppies after everything else, to ensure floppy drive isn't accessed
44717 unnecessarily (patch from Bean).
44719 2008-05-31 Robert Millan <rmh@aybabtu.com>
44721 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44722 not print device names when we were asked to set a variable.
44724 2008-05-31 Robert Millan <rmh@aybabtu.com>
44726 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44727 using "cursor-on" and "cursor-off" commands (understood at least by
44728 the Open Firmware flavour on OLPC).
44730 2008-05-31 Michael Gorven <michael@gorven.za.net>
44732 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44733 on and off sequences.
44735 2008-05-31 Robert Millan <rmh@aybabtu.com>
44737 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44738 * util/update-grub.in: Likewise.
44740 2008-05-30 Pavel Roskin <proski@gnu.org>
44742 * util/biosdisk.c (linux_find_partition): Simplify logic and
44743 make the code more universal. Keep special processing for
44744 devfs, but use a simple rule for all other devices. If the
44745 device ends with a number, append 'p' and the partition number.
44746 Otherwise, append only the partition number.
44748 2008-05-30 Robert Millan <rmh@aybabtu.com>
44750 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44751 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44752 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44753 the `root' parameter to Linux.
44755 2008-05-30 Robert Millan <rmh@aybabtu.com>
44757 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44758 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44759 --fs_uuid with --fs-uuid.
44760 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44761 all filesystems support them).
44763 2008-05-30 Robert Millan <rmh@aybabtu.com>
44765 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44766 grub_printf() flags, since we're printing in units of 2 bytes.
44768 2008-05-30 Robert Millan <rmh@aybabtu.com>
44770 * util/grub.d/00_header.in: Remove obsolete comment referencing
44771 convert_system_path_to_grub_path().
44772 * util/update-grub.in: Likewise.
44773 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44774 (convert_system_path_to_grub_path): Add a warning message explaining
44775 that this function is deprecated. Rely on is_path_readable_by_grub()
44776 for the readability checks.
44777 (font_path): Use is_path_readable_by_grub() for the readability
44778 check rather than convert_system_path_to_grub_path().
44780 2008-05-30 Robert Millan <rmh@aybabtu.com>
44782 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44783 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44784 converting it first.
44785 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44786 grub.cfg for access to font file, and afterwards call it again to set
44789 2008-05-30 Robert Millan <rmh@aybabtu.com>
44791 * commands/search.c (options): Add --fs_uuid option.
44792 (search_fs_uuid): New function.
44793 (grub_cmd_search): Fix --set argument passing.
44794 Use search_fs_uuid() when requested via --fs_uuid.
44795 (grub_search_init): Update help message.
44796 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44797 and redeclare it as an array of 16-bit words.
44798 (grub_ext2_uuid): New function.
44799 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44800 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44801 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44802 (GRUB_DEVICE_BOOT_UUID): New variables.
44803 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44804 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44806 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44807 just assume `root' variable has the right value.
44808 * util/grub.d/10_linux.in: Likewise.
44809 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44811 (main): Recognise `-t fs_uuid' argument.
44813 2008-05-30 Robert Millan <rmh@aybabtu.com>
44815 * util/biosdisk.c (map): Redefine structure to hold information
44816 about GRUB drive name.
44817 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44819 (call_hook): Remove.
44820 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44821 member. Assume drive has partitions.
44822 (grub_util_biosdisk_open): Access device names via `.device' struct
44824 (open_device): Likewise.
44825 (find_drive): Likewise.
44826 (read_device_map): Adjust map[] usage to match the new struct
44827 definition. Don't check for duplicates (still possible, but not cheap
44829 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44830 (make_device_name): Remove assumption of BIOS-like drive names.
44832 2008-05-30 Pavel Roskin <proski@gnu.org>
44834 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44835 compiling execute.c doesn't need grub_script.tab.h anymore.
44836 (normal/command.c_DEPENDENCIES): Likewise.
44837 (normal/function.c_DEPENDENCIES): Likewise.
44838 * conf/i386-ieee1275.rmk: Likewise.
44839 * conf/i386-linuxbios.rmk: Likewise.
44840 * conf/i386-pc.rmk: Likewise.
44841 * conf/powerpc-ieee1275.rmk: Likewise.
44842 * conf/sparc64-ieee1275.rmk: Likewise.
44844 2008-05-29 Pavel Roskin <proski@gnu.org>
44846 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44847 when scanning metadata for volume group name.
44849 * include/grub/script.h: Don't include grub_script.tab.h. It's
44850 a generated file, which may only be included from the files with
44851 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44852 use union YYSTYPE, as the later allows forward declaration.
44853 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44855 2008-05-29 Robert Millan <rmh@aybabtu.com>
44857 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44858 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44859 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44860 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44863 2008-05-29 Robert Millan <rmh@aybabtu.com>
44865 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44866 control key combinations.
44868 2008-05-29 Robert Millan <rmh@aybabtu.com>
44870 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44871 * util/ieee1275/grub-install.in: ... to here.
44872 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44873 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44874 (grub_install_SOURCES): Likewise.
44876 2008-05-29 Robert Millan <rmh@aybabtu.com>
44878 * fs/affs.c: Update copyright year.
44879 * fs/ext2.c: Likewise.
44880 * fs/fshelp.c: Likewise.
44881 * fs/hfsplus.c: Likewise.
44882 * fs/ntfs.c: Likewise.
44883 * fs/xfs.c: Likewise.
44884 * include/grub/fshelp.h: Likewise.
44885 * util/grub-mkdevicemap.c: Likewise.
44887 2008-05-28 Robert Millan <rmh@aybabtu.com>
44889 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44890 might need to be fatfs to support some firmware implementations
44893 2008-05-28 Robert Millan <rmh@aybabtu.com>
44895 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44897 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44898 (make_device_map): Likewise.
44900 2008-05-20 Bean <bean123ch@gmail.com>
44902 * fs/fshelp.c (grub_fshelp_map_block): New function.
44903 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44904 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44906 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44907 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44908 (grub_fshelp_journal): New structure.
44909 (grub_fshelp_map_block): New function prototype.
44910 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44911 (grub_fshelp_map_block): Likewise.
44913 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44914 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44915 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44916 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44917 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44918 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44919 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44920 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44921 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44922 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44923 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44924 (grub_ext2_sblock): New members for journal support.
44925 (grub_ext3_journal_header): New structure.
44926 (grub_ext3_journal_revoke_header): Likewise.
44927 (grub_ext3_journal_block_tag): Likewise.
44928 (grub_ext3_journal_sblock): Likewise.
44929 (grub_fshelp_node): New members logfile and journal.
44930 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44931 grub_fshelp_map_block to get real block number.
44932 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44934 (grub_ext2_read_inode): Likewise.
44935 (grub_ext3_get_journal): New function.
44936 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44937 (grub_ext2_close): Release memory used by journal.
44939 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44940 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44941 (grub_reiserfs_transaction_header): Renamed to
44942 grub_reiserfs_description_block, replace field data with real_blocks.
44943 (grub_reiserfs_commit_block): New structure.
44944 (grub_reiserfs_data): New member journal.
44945 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44947 (grub_reiserfs_read_symlink): Likewise.
44948 (grub_reiserfs_iterate_dir): Likewise.
44949 (grub_reiserfs_open): Likewise.
44950 (grub_reiserfs_read): Likewise.
44951 (grub_reiserfs_get_journal): New function.
44952 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44953 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44954 using grub_reiserfs_get_journal.
44955 (grub_reiserfs_close): Release memory used by journal.
44957 * fs/affs.c (grub_affs_read_block): Change block type to
44958 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44960 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44962 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44964 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44966 * fs/udf.c (grub_udf_read_block): Change block type to
44967 grub_disk_addr_t. Use type cast to avoid warning.
44969 * fs/xfs.c (grub_xfs_read_block): Likewise.
44971 2008-05-16 Christian Franke <franke@computer.org>
44973 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44974 to ensure that break with ESC will always work.
44975 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44976 Remove ESC from keyboard queue.
44978 2008-05-16 Christian Franke <franke@computer.org>
44980 * util/biosdisk.c: [__CYGWIN__] Add includes.
44981 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44982 (get_os_disk): Move variable declarations to OS specific
44983 parts to avoid warning.
44984 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44985 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44986 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44988 * util/getroot.c: [__CYGWIN__] Add includes.
44989 (strip_extra_slashes): Fix "/" case.
44990 [__CYGWIN__] (get_win32_path): New function.
44991 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44992 [__CYGWIN__] (find_root_device): Disable.
44993 [__CYGWIN__] (get_bootsec_serial): New function.
44994 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44995 [__linux__] (grub_guess_root_device): Add early returns to simplify
44997 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44998 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44999 check for Linux only.
45001 2008-05-15 Bean <bean123ch@gmail.com>
45003 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
45004 keyboard hang problem in apple's intel mac.
45006 2008-05-09 Robert Millan <rmh@aybabtu.com>
45008 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45010 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45011 (make_device_map): Likewise.
45012 Reported by Aurelien Jarno <aurel32@debian.org>
45014 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
45016 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45017 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45018 (make_device_map): Output entries for xvd type disks.
45020 2008-05-07 Robert Millan <rmh@aybabtu.com>
45022 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45024 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45025 (make_device_map): Likewise.
45026 Reported by Roland Dreier <rdreier@cisco.com>
45028 2008-05-07 Robert Millan <rmh@aybabtu.com>
45030 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45031 grub_strstr() call. Correct a few mistakes in failure path handling.
45033 2008-05-06 Robert Millan <rmh@aybabtu.com>
45035 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45036 Do not print a trailing slash (therefore, the root directory is an
45038 (convert_system_path_to_grub_path): Do not remove trailing slash
45039 from make_system_path_relative_to_its_root() output.
45041 * util/i386/pc/grub-install.in: Add trailing slash to output from
45042 make_system_path_relative_to_its_root().
45044 2008-05-06 Robert Millan <rmh@aybabtu.com>
45046 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45047 ensures that output lines aren't intermangled with those sent to
45048 stderr (via grub_util_info()).
45049 * util/grub-probe.c (grub_refresh): Likewise.
45050 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45052 2008-05-05 Christian Franke <franke@computer.org>
45054 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45055 Add Cygwin device names.
45056 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45057 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45058 (check_device): Return error instead of success on empty name.
45059 (make_device_map): Move label inside linux specific code to
45060 prevent compiler warning.
45062 2008-04-30 Robert Millan <rmh@aybabtu.com>
45064 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45065 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45067 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45069 2008-04-29 Robert Millan <rmh@aybabtu.com>
45071 * docs/grub.cfg: New file (example GRUB configuration).
45073 2008-04-26 Robert Millan <rmh@aybabtu.com>
45075 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45076 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45077 and `disk/ieee1275/nand.c'.
45079 2008-04-25 Bean <bean123ch@gmail.com>
45081 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45084 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45085 change the buffer size to 4096 for cdrom device.
45087 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45089 (_linux_mod_SOURCES): New variable.
45090 (_linux_mod_CFLAGS): Likewise.
45091 (_linux_mod_LDFLAGS): Likewise.
45092 (linux_mod_SOURCES): Likewise.
45093 (linux_mod_CFLAGS): Likewise.
45094 (linux_mod_LDFLAGS): Likewise.
45095 (nand_mod_SOURCES): Likewise.
45096 (nand_mod_CFLAGS): Likewise.
45097 (nand_mod_LDFLAGS): Likewise.
45099 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45100 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45101 type property. (nand device in olpc don't have this property)
45103 * include/grub/disk.h (grub_disk_dev_id): New macro
45104 GRUB_DISK_DEVICE_NAND_ID.
45106 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45107 function prototype.
45108 (grub_rescue_cmd_initrd): Likewise.
45110 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45111 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45112 ofw_cif_handler and ofw_idt, adjust padding number.
45114 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45115 GRUB_MACHINE_IEEE1275 is defined.
45117 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45118 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45120 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45121 on nested function heap_init.
45122 (grub_upper_mem): New variable for i386-ieee1275.
45123 (grub_get_extended_memory): New function for i386-ieee1275.
45124 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45126 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45127 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45130 * loader/i386/ieee1275/linux.c: New file.
45132 * loader/i386/ieee1275/linux_normal.c: New file.
45134 * disk/ieee1275/nand.c: New file.
45136 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45138 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45140 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45142 2008-04-18 Robert Millan <rmh@aybabtu.com>
45144 Restructures early code path on ieee1275 to unify grub_main() as
45145 the first C function that is executed in every platform.
45147 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45148 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45150 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45151 * kern/ieee1275/cmain.c (cmain): Rename to ...
45152 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45153 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45156 2008-04-18 Robert Millan <rmh@aybabtu.com>
45158 * util/update-grub.in: Fix syntax error when setting
45159 `GRUB_PRELOAD_MODULES'.
45160 Reported by Stephane Chazelas <stephane@artesyncp.com>
45162 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45164 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45165 section into account, newer toolchains generate unique build ids
45166 * configure.ac: remove the test for --build-id=none acceptance,
45167 we want build ids to be preserved
45168 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45169 far from other sections don't cause the raw binary images grow
45172 2008-04-15 Robert Millan <rmh@aybabtu.com>
45174 * disk/lvm.c: Update copyright year.
45175 * kern/misc.c: Likewise.
45177 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45179 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45180 there is no memory left for physical volume name.
45182 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45184 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45185 volume name mapping to support bigger than 9 character names properly.
45187 2008-04-13 Robert Millan <rmh@aybabtu.com>
45189 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45190 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45192 2008-04-13 Christian Franke <franke@computer.org>
45194 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45195 to create a floppy emulation boot CD when non emulation mode
45197 Enable Joliet CD filesystem extension.
45199 2008-04-13 Robert Millan <rmh@aybabtu.com>
45201 * kern/misc.c (grub_strncat): Fix off-by-one error.
45202 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45204 * kern/env.c (grub_env_context_close): Clear current context, not
45206 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45208 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45210 2008-04-13 Robert Millan <rmh@aybabtu.com>
45212 Improve robustness when handling LVM.
45214 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45215 (and leave `*p' unmodified).
45216 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45218 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45219 iterating through it.
45220 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45222 (grub_lvm_scan_device): Check the return value (and fail gracefully
45223 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45224 Don't assume `vg->pvs != NULL' when iterating through it.
45226 2008-04-13 Robert Millan <rmh@aybabtu.com>
45228 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45229 * genmk.rb (partmap): New variable.
45230 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45231 (#{partmap}): New target rule.
45232 * genpartmaplist.sh: New file.
45233 * Makefile.in (pkglib_DATA): Add partmap.lst.
45234 (partmap.lst): New target rule.
45235 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45236 modules (including all partition maps), instead of preloading them.
45238 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45240 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45241 `linux-boot-prober' (if installed) to detect other operating
45242 systems which are installed on the computer and add them to
45244 * conf/common.rmk: Build and install 30_os-prober.
45246 2008-04-12 Robert Millan <rmh@aybabtu.com>
45248 * kern/powerpc/ieee1275/init.c: Move from here ...
45249 * kern/ieee1275/init.c: ... to here. Update all users.
45251 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45252 * kern/ieee1275/cmain.c: ... to here. Update all users.
45254 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45255 * kern/ieee1275/openfw.c: ... to here. Update all users.
45257 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45258 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45260 2008-04-10 Pavel Roskin <proski@gnu.org>
45262 * configure.ac: Always use "_cv_" in cache variables for
45263 compatibility with Autoconf 2.62.
45265 2008-04-07 Robert Millan <rmh@aybabtu.com>
45267 Revert grub/machine/init.h addition by Pavel (since it breaks on
45268 i386-ieee1275 and others):
45269 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45270 * util/powerpc/ieee1275/misc.c: Likewise.
45272 2008-04-07 Robert Millan <rmh@aybabtu.com>
45274 * util/grub-probe.c (probe): Improve error message.
45276 2008-04-07 Robert Millan <rmh@aybabtu.com>
45278 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45279 (this prevents the presence of a bogus entry from ruining the whole
45282 2008-04-06 Pavel Roskin <proski@gnu.org>
45284 * util/biosdisk.c: Include grub/util/biosdisk.h.
45285 * util/grub-fstest.c (execute_command): Make static.
45286 * util/grub-mkdevicemap.c (check_device): Likewise.
45287 * util/i386/pc/misc.c: Include grub/machine/init.h.
45288 * util/powerpc/ieee1275/misc.c: Likewise.
45289 * util/lvm.c: Include grub/util/lvm.h.
45290 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45292 * util/raid.c: Include grub/util/raid.h.
45293 (grub_util_getdiskname): Make static.
45295 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45296 grub_hostfs_fini(), as they are called from grub_init_all() and
45297 grub_fini_all() respectively. This fixes an infinite loop in
45298 grub-fstest due to double registration of hostfs.
45299 Reported by Christian Franke <Christian.Franke@t-online.de>
45301 2008-04-05 Pavel Roskin <proski@gnu.org>
45303 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45304 all 8 functions. Otherwise, probe function 0 only.
45306 2008-04-04 Pavel Roskin <proski@gnu.org>
45308 * commands/lspci.c (grub_lspci_iter): Print the bus number
45311 * commands/lspci.c (grub_pci_classes): Fix typos.
45312 (grub_lspci_iter): Don't print func twice. Print vendor ID
45313 before device ID, as it's normally done.
45315 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45316 Fix signedness warnings.
45317 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45319 * util/ieee1275/get_disk_name.c: Include config.h so that
45320 _GNU_SOURCE is defined and getline() is declared. Mark an
45321 unused argument as such. Fix a signedness warning.
45323 2008-04-02 Pavel Roskin <proski@gnu.org>
45325 * genkernsyms.sh.in: Use more robust assignments for CC and
45326 srcdir. Quote srcdir.
45327 * gensymlist.sh.in: Likewise. Assert at the compile time that
45328 the symbol table is not empty.
45330 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45331 * fs/cpio.c (grub_cpio_read): Likewise.
45333 2008-04-01 Pavel Roskin <proski@gnu.org>
45335 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45336 * disk/host.c (grub_host_open): Likewise.
45337 * disk/loopback.c (grub_loopback_open): Likewise.
45338 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45339 disk->id as in disk/host.c, not a multi-character constant.
45341 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45342 later is obsolete, potentially dangerous and sets a bad example.
45343 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45344 * util/misc.c (grub_util_get_image_size): Likewise.
45346 * disk/loopback.c (options): Improve help for "--partitions".
45348 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45349 options to align them with the short options, e.g. "echo -e".
45351 2008-03-31 Bean <bean123ch@gmail.com>
45353 * video/reader/png.c (grub_png_data): New member is_16bit and
45355 (grub_png_decode_image_header): Detect 16 bit png image.
45356 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45357 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45358 (grub_video_reader_png): Release memory occupied by image_data.
45360 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45362 (grub_nfs_mount): Skip the test for sector per cluster.
45364 * include/grub/ntfs.h (MAX_SPC): Removed.
45366 2008-03-31 Bean <bean123ch@gmail.com>
45368 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45369 (grub_probe_SOURCES): Add fs/afs.c.
45370 (grub_fstest_SOURCES): Likewise.
45371 (afs_mod_SOURCES): New variable.
45372 (afs_mod_CFLAGS): Likewise.
45373 (afs_mod_LDFLAGS): Likewise.
45375 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45376 (grub_emu_SOURCES): Likewise.
45378 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45380 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45382 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45384 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45386 * fs/afs.c: New file.
45388 2008-03-30 Pavel Roskin <proski@gnu.org>
45390 * disk/host.c: Include grub/misc.h to fix a warning.
45391 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45392 warnings about implicit declarations.
45394 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45396 * include/grub/i386/loader.h: Change declaration of
45397 grub_linux_boot() to match what grub_loader_set() expects.
45398 * util/getroot.c (grub_guess_root_device): Return const char* to
45400 * util/grub-probe.c (probe): Fix a warning about uninitialized
45401 abstraction_name variable.
45402 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45403 second argument as unused to fix a warning.
45405 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45406 missing grub_error() call.
45408 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45409 2.60 and newer uses it to define datadir.
45411 * commands/sleep.c: Fix warning about implicit declaration.
45412 * disk/memdisk.c: Likewise.
45413 * loader/aout.c: Likewise.
45414 * loader/i386/bsd_normal.c: Likewise.
45415 * util/grub-probe.c: Likewise.
45417 * commands/i386/cpuid.c (has_longmode): Make static.
45418 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45419 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45421 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45422 GDT. This is more robust, as %ds can change.
45423 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45424 calling real_to_prot().
45425 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45427 2008-03-28 Pavel Roskin <proski@gnu.org>
45429 * kern/i386/pc/startup.S: Assert that uncompressed functions
45430 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45431 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45432 code, as they push parts of the code (error handlers) beyond
45433 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45434 code as correctness and size.
45436 2008-03-28 Pavel Roskin <proski@gnu.org>
45438 * kern/i386/pc/startup.S
45439 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45440 data block address to the real mode, keep offset minimal. This
45441 works around a bug in AWARD BIOS on old Athlon systems, which
45442 makes CD detection hang.
45444 2008-03-26 Pavel Roskin <proski@gnu.org>
45446 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45448 * include/grub/normal.h: Add grub_parse_color_name_pair()
45451 2008-03-24 Bean <bean123ch@gmail.com>
45453 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45454 (cd_count): Removed.
45455 (cd_drive): New variable.
45456 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45457 (grub_biosdisk_call_hook): Likewise.
45458 (grub_biosdisk_iterate): Change cdrom detection method.
45459 (grub_biosdisk_open): Replace cd_start with cd_drive.
45460 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45461 detect cdrom device.
45463 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45465 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45466 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45467 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45468 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45469 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45470 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45471 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45472 (grub_biosdisk_cdrp): New structure.
45473 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45475 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45477 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45480 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45483 2008-03-20 Robert Millan <rmh@aybabtu.com>
45485 Remove 2 TiB limit in ata.mod.
45486 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45487 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45488 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45489 grub_uint64_t instead of grub_uint32_t.
45491 2008-03-05 Bean <bean123ch@gmail.com>
45493 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45494 (grub_multiboot): Set boot device.
45496 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45498 2008-03-02 Bean <bean123ch@gmail.com>
45500 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45503 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45505 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45508 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45511 * docs/fdl.texi: New file.
45513 * docs/mdate-sh: New file. Copied from gnulib.
45514 * docs/texinfo.tex: Likewise.
45516 * config.guess: Updated from gnulib.
45517 * install-sh: Likewise.
45519 2008-02-28 Robert Millan <rmh@aybabtu.com>
45521 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45522 (aout_mod_SOURCES): New variable.
45523 (aout_mod_CFLAGS): Likewise.
45524 (aout_mod_LDFLAGS): Likewise.
45526 * conf/i386-ieee1275.rmk: Likewise.
45528 2008-02-28 Robert Millan <rmh@aybabtu.com>
45530 * util/update-grub.in: Reorganise terminal validity check. Accept
45531 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45532 Based on suggestion by Franklin PIAT.
45534 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45536 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45538 * util/getroot.c (grub_util_check_block_device): New function that
45539 returns the given argument if it is a block device and returns NULL else.
45540 * util/grub-probe.c (argument_is_device): New variable.
45541 (probe): Promote device_name from a variable to an argument. Receive
45542 device_name from grub_util_check_block_device() if path is NULL and from
45543 grub_guess_root_device() else. Do not free() device_name anymore.
45544 (options): Introduce new parameter '-d, --device'.
45545 (main): Add description of the new parameter to the help screen.
45546 Rename path variable to argument. Set argument_is_device if the '-d'
45547 option is given. Pass argument to probe() depending on
45548 argument_is_device.
45550 2008-02-24 Bean <bean123ch@gmail.com>
45552 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45553 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45554 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45555 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45556 (GRUB_ISO9660_VOLDESC_END): Likewise.
45557 (grub_iso9660_primary_voldesc): New member escape.
45558 (grub_iso9660_data): New member joliet.
45559 (grub_iso9660_convert_string): New function.
45560 (grub_iso9660_mount): Detect joliet extension.
45561 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45562 (grub_iso9660_iso9660_label): Likewise.
45564 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45565 (grub_setup_SOURCES): Add fs/udf.c.
45566 (grub_fstest_SOURCES): Likewise.
45567 (udf_mod_SOURCES): New variable.
45568 (udf_mod_CFLAGS): Likewise.
45569 (udf_mod_LDFLAGS): Likewise.
45571 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45572 (grub_emu_SOURCES): Likewise.
45574 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45576 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45578 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45580 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45582 * fs/udf.c: New file.
45584 2008-02-24 Robert Millan <rmh@aybabtu.com>
45586 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45587 (normal/lexer.c_DEPENDENCIES): New variables.
45588 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45589 (normal/lexer.c_DEPENDENCIES): Likewise.
45590 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45591 (normal/lexer.c_DEPENDENCIES): Likewise.
45592 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45593 (normal/lexer.c_DEPENDENCIES): Likewise.
45594 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45595 (normal/lexer.c_DEPENDENCIES): Likewise.
45596 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45597 (normal/lexer.c_DEPENDENCIES): Likewise.
45599 2008-02-23 Robert Millan <rmh@aybabtu.com>
45601 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45602 since they were intended to be in hex. This didn't break previously
45603 because of a bug in gpt_partition_map_iterate() (see below).
45605 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45606 when checking the validity of GPT header.
45607 Remove `partno', since it always provides the same information as `i'.
45609 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45611 * include/grub/efi/time.h: Fix a wrong comment.
45613 2008-02-19 Pavel Roskin <proski@gnu.org>
45615 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45618 2008-02-19 Bean <bean123ch@gmail.com>
45620 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45621 (aout_mod_SOURCES): New variable.
45622 (aout_mod_CFLAGS): Likewise.
45623 (aout_mod_LDFLAGS): Likewise.
45624 (_bsd_mod_SOURCES): New variable.
45625 (_bsd_mod_CFLAGS): Likewise.
45626 (_bsd_mod_LDFLAGS): Likewise.
45627 (bsd_mod_SOURCES): New variable.
45628 (bsd_mod_CFLAGS): Likewise.
45629 (bsd_mod_LDFLAGS): Likewise.
45631 * include/grub/aout.h: New file.
45633 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45635 * include/grub/i386/bsd.h: New file.
45637 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45640 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45641 function is called, so that it's possible to change it inside the hook.
45642 (grub_elf64_load): Likewise.
45643 (grub_elf_file): Don't close the file if elf header is not found.
45644 (grub_elf_close): Close the file if grub_elf_file fails (The new
45645 grub_elf_file won't close it).
45646 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45647 (grub_elf64_size): Likewise.
45649 * kern/i386/loader.S (grub_unix_real_boot): New function.
45651 * loader/aout.c: New file.
45653 * loader/i386/bsd.c: New file.
45655 * loader/i386/bsd_normal.c: New file.
45657 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45659 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45660 can test other formats.
45662 2008-02-19 Robert Millan <rmh@aybabtu.com>
45664 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45665 (grub_gpt_partition_type_empty): Redefine with macro from
45666 `<grub/gpt_partition.h>'.
45667 (gpt_partition_map_iterate): Adjust partition type comparison.
45669 Export `entry' as partmap-specific `part.data' struct.
45670 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45672 * include/grub/gpt_partition.h (grub_gpt_header)
45673 (grub_gpt_partentry): ... to here (new file).
45675 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45677 (grub_gpt_partition_type_bios_boot): New const variable, defined
45678 with macro from `<grub/gpt_partition.h>'.
45680 (setup): Replace `first_start' with `embed_region', which keeps
45681 track of the embed region (and is partmap-agnostic).
45683 Replace find_first_partition_start() with find_usable_region(),
45684 which finds a usable region for embedding using partmap-specific
45685 knowledge (supports PC/MSDOS and GPT).
45687 Fix all assumptions that the embed region start at sector 1, using
45688 `embed_region.start' from now on. Similarly, use `embed_region.end'
45689 rather than `first_start' to calculate available size.
45691 In grub_util_info() message, replace "into after the MBR" with an
45692 indication of the specific sector our embed region starts at.
45694 2008-02-19 Robert Millan <rmh@aybabtu.com>
45696 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45697 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45698 `commands/reboot.c'.
45699 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45700 (halt_mod_SOURCES): Likewise.
45701 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45702 (halt_mod_SOURCES): Likewise.
45704 2008-02-17 Christian Franke <franke@computer.org>
45706 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45708 2008-02-17 Robert Millan <rmh@aybabtu.com>
45710 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45711 set `first_start' to 0 for non-PC/MSDOS partition maps.
45713 2008-02-16 Robert Millan <rmh@aybabtu.com>
45715 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45716 do not assume partition map is PC/MSDOS before performing checks that
45717 are specific to that layout.
45719 2008-02-13 Robert Millan <rmh@aybabtu.com>
45721 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45722 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45723 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45725 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45727 * configure.ac: Only a cosmetic change on the handling of
45728 -fno-stack-protector.
45730 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45732 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45733 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45735 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45736 (halt_mod_SOURCES): New variable.
45737 (halt_mod_CFLAGS): Likewise.
45738 (halt_mod_LDFLAGS): Likewise.
45739 (reboot_mod_SOURCES): Likewise.
45740 (reboot_mod_CFLAGS): Likewise.
45741 (reboot_mod_LDFLAGS): Likewise.
45743 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45744 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45746 (halt_mod_SOURCES): Likewise.
45747 (reboot_mod_SOURCES): Likewise.
45749 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45750 commands/i386/pc/reboot.c by commands/reboot.c.
45751 (reboot_mod_SOURCES): Likewise.
45753 * commands/i386/pc/reboot.c: merge this file ...
45755 * commands/ieee1275/reboot.c: ... and this file ...
45757 * commands/reboot.c: ... to this file.
45758 Add some precompiler directive to include the correct header for
45761 * commands/ieee1275/halt.c: move this file ...
45763 * commands/halt.c: ... to here.
45764 Add some precompiler directive to include the correct header for
45767 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45768 (grub_halt): Likewise.
45770 * kern/efi/efi.c (grub_reboot): New function.
45771 (grub_halt): Likewise.
45773 2008-02-12 Robert Millan <rmh@aybabtu.com>
45775 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45776 /dev (like it is done for /dev/mapper). This doesn't provide support
45777 for EVMS, but at least it is now easy to identify the problem when it
45780 2008-02-11 Robert Millan <rmh@aybabtu.com>
45782 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45783 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45784 comparing it with -1, not 0.
45786 2008-02-10 Robert Millan <rmh@aybabtu.com>
45788 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45790 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45791 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45793 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45794 `disk/lvm.c' to the end of the list.
45795 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45796 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45798 2008-02-10 Robert Millan <rmh@aybabtu.com>
45800 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45801 grub_print_error() instead. This will let user know why we're entering
45803 Based on suggestions from Sam Morris.
45805 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45807 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45808 on remaining N args, instead of "--" arg N times.
45810 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45812 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45813 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45814 pattern for unknown glyphs.
45816 2008-02-09 Robert Millan <rmh@aybabtu.com>
45818 * configure.ac: Probe for `help2man'.
45819 * Makefile.in (builddir): New variable.
45820 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45821 or otherwise add a few flags/options to it.
45822 (install-local): For every executable utility or script that is
45823 installed, invoke $(HELP2MAN) to install a manpage based on --help
45826 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45827 that it doesn't prevent --help from working in build tree.
45829 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45830 with `bug-grub@gnu.org'.
45831 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45832 * util/update-grub.in (usage): New function.
45833 Implement proper argument check, with support for --help and --version
45834 (as well as existing -y).
45836 2008-02-09 Christian Franke <franke@computer.org>
45838 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45839 avoid overwriting previous output.
45840 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45842 2008-02-09 Robert Millan <rmh@aybabtu.com>
45844 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45847 2008-02-09 Robert Millan <rmh@aybabtu.com>
45849 * commands/sleep.c: New file.
45850 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45851 (sleep_mod_SOURCES): New variable.
45852 (sleep_mod_CFLAGS): Likewise.
45853 (sleep_mod_LDFLAGS): Likewise.
45855 2008-02-09 Robert Millan <rmh@aybabtu.com>
45857 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45858 situations in which we can deduce the RAID size and the superblock
45861 2008-02-09 Robert Millan <rmh@aybabtu.com>
45863 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45864 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45865 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45867 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45868 and return a grub_diskmemberlist_t composed of physical array members.
45869 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45871 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45873 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45874 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45875 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45877 * util/grub-probe.c (probe): Move partmap probing code from here ...
45878 (probe_partmap): ... to here.
45879 (probe): Use probe_partmap() once for the disk we're probing, and
45880 additionally, when such disk contains a memberlist() struct member,
45881 once for each disk that is contained in the structure returned by
45884 2008-02-09 Robert Millan <rmh@aybabtu.com>
45886 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45887 environment variable to 'all' in order to obtain debug output from
45889 * util/i386/pc/grub-setup.c (main): Likewise.
45891 2008-02-08 Robert Millan <rmh@aybabtu.com>
45893 * disk/raid.c (grub_raid_scan_device): Check for
45894 `array->device[sb.this_disk.number]' rather than for
45895 `array->device[sb.this_disk.number]->name', since the latter is not
45896 guaranteed to be accessible.
45898 2008-02-08 Robert Millan <rmh@aybabtu.com>
45900 * disk/raid.c: Update copyright.
45901 * fs/cpio.c: Likewise.
45902 * include/grub/raid.h: Likewise.
45903 * loader/i386/pc/multiboot.c: Likewise.
45904 * util/hostfs.c: Likewise.
45906 2008-02-08 Robert Millan <rmh@aybabtu.com>
45908 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45909 to a grub_disk_t array.
45910 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45912 (grub_raid_scan_device): Replace `device[x].name' accesses with
45913 `device[x]->name'. Simplify initialization of `array->device[x]'.
45915 2008-02-08 Robert Millan <rmh@aybabtu.com>
45917 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45918 grub_dprintf() calls.
45919 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45922 2008-02-07 Christian Franke <franke@computer.org>
45924 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45925 instead of fseek and ftell to support large files.
45926 (grub_hostfs_read): Likewise.
45928 2008-02-07 Robert Millan <rmh@aybabtu.com>
45930 Patch from Jeroen Dekkers.
45931 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45932 failure, since successfully reading all array members might not be
45935 2008-02-06 Robert Millan <rmh@aybabtu.com>
45937 * util/grub-probe.c (probe): Simplify partmap probing (with the
45938 assumption that the first word up to the underscore equals to
45941 2008-02-06 Christian Franke <franke@computer.org>
45943 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45944 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45945 last block of a cpio or tar stream.
45946 Check for "TRAILER!!!" instead of any empty data
45947 block to detect last block of a cpio stream.
45948 (grub_cpio_dir): Fix constness of variable np.
45949 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45950 cpio or tar trailer is detected. This fixes a crash
45951 on open of a non existing file.
45953 2008-02-05 Bean <bean123ch@gmail.com>
45955 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45957 (grub_multiboot_load_elf64): Likewise.
45958 (grub_multiboot): Initialize mbi structure.
45960 * util/grub-fstest.c: Don't include unused header file script.h.
45962 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45964 (grub_fstest_SOURCES): Likewise.
45966 2008-02-05 Robert Millan <rmh@aybabtu.com>
45968 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45969 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45970 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45971 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45973 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45974 (translation_table): Replace hardcoded values with macros
45975 provided by `<grub/term.h>'.
45977 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45978 (keyboard_map): Correct/add a few values, with macros provided
45979 by `<grub/term.h>'.
45980 (keyboard_map_shift): Zero values that don't differ from their
45981 `keyboard_map' equivalents.
45982 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45983 Discard the second scan code that is always sent by Caps lock.
45984 Only use `keyboard_map_shift' when it provides a non-zero value,
45985 otherwise fallback to `keyboard_map'.
45987 2008-02-04 Bean <bean123ch@gmail.com>
45989 * Makefile.in (enable_grub_fstest): New variable.
45991 * conf/common.rmk (grub_fstest_init.lst): New rule.
45992 (grub_fstest_init.h): Likewise.
45993 (grub_fstest_init.c): Likewise.
45994 (util/grub-fstest.c_DEPENDENCIES): New variable.
45995 (grub_fstest_SOURCES): Likewise.
45997 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45999 * util/grub-fstest.c: New file.
46001 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46003 Make grub-setup handle a separate root device.
46005 * util/i386/pc/grub-setup.c (setup): Always open the root device,
46006 so that the root device can be compared with the destination
46008 When embedding the core image, if the root and destination devices
46009 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46011 When not embedding, set ROOT_DRIVE to 0xFF.
46013 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46015 Add support for having a grub directory in a different drive. This
46016 is still only the data handling part.
46018 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46019 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46020 (grub_root_drive): New variable.
46022 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46023 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46024 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46027 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46029 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46031 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46033 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46034 is bogus, because PXE booting does not specify any drive
46037 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46038 am not sure if this is really correct.
46040 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46041 is always identical to the boot drive when booting from a CD.
46043 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46045 (root_drive): New variable.
46046 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46047 (setup_sectors): Push %dx right after popping it, because %dh will
46049 (copy_buffer): Restore %dx.
46051 2008-02-03 Robert Millan <rmh@aybabtu.com>
46053 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46054 use `cdboot.img' for cdrom images.
46056 2008-02-03 Robert Millan <rmh@aybabtu.com>
46058 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46059 only setup gfxterm when `font' command has succeeded.
46061 2008-02-03 Robert Millan <rmh@aybabtu.com>
46063 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46064 (grub_rescue_cmd_multiboot_loader)
46065 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46067 2008-02-03 Pavel Roskin <proski@gnu.org>
46069 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46070 %edx and %esi from stack only after grub_gate_a20() is called.
46071 grub_gate_a20() clobbers %edx.
46073 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46075 * configure.ac (AC_INIT): Bumped to 1.96.
46077 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46078 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46079 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46080 video/readers/png.c.
46082 2008-02-03 Bean <bean123ch@gmail.com>
46084 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46085 (cdboot_img_SOURCES): New variable.
46086 (cdboot_img_ASFLAGS): New variable.
46087 (cdboot_img_LDFLAGS): New variable.
46089 * boot/i386/pc/cdboot.S: New file.
46091 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46092 (cd_count): Likewise.
46093 (grub_biosdisk_get_drive): Add support for cd device.
46094 (grub_biosdisk_call_hook): Likewise.
46095 (grub_biosdisk_iterate): Likewise.
46096 (grub_biosdisk_open): Likewise.
46097 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46098 (grub_biosdisk_rw): Support reading from cd device.
46099 (GRUB_MOD_INIT): Iterate cd devices.
46101 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46102 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46103 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46105 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46107 2008-02-02 Robert Millan <rmh@aybabtu.com>
46109 * commands/read.c: New file.
46110 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46111 (read_mod_SOURCES): New variable.
46112 (read_mod_CFLAGS): Likewise.
46113 (read_mod_LDFLAGS): Likewise.
46115 2008-02-02 Robert Millan <rmh@aybabtu.com>
46117 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46118 determining whether menu has to be displayed.
46120 2008-02-02 Marco Gerards <marco@gnu.org>
46122 * bus/pci.c: New file.
46124 * include/grub/pci.h: Likewise.
46126 * include/grub/i386/pc/pci.h: Likewise.
46128 * commands/lspci.c: Likewise.
46130 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46132 (pci_mod_SOURCES): New variable.
46133 (pci_mod_CFLAGS): Likewise.
46134 (pci_mod_LDFLAGS): Likewise.
46135 (lspci_mod_SOURCES): Likewise.
46136 (lspci_mod_CFLAGS): Likewise.
46137 (lspci_mod_LDFLAGS): Likewise.
46139 2008-02-02 Bean <bean123ch@gmail.com>
46141 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46142 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46144 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46145 (grub_xfs_btree_node): New structure.
46146 (grub_xfs_btree_root): New structure.
46147 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46148 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46149 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46150 (GRUB_XFS_EXTENT_SIZE): Likewise.
46151 (grub_xfs_read_block): Support btree format type.
46152 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46153 Use directory block as basic unit.
46155 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46157 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46158 __attribute__ ((__regparm__ (1))).
46160 2008-02-01 Robert Millan <rmh@aybabtu.com>
46162 Correct a mistake in previous commit.
46164 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46166 (normal/command.c_DEPENDENCIES): New variable.
46168 2008-02-01 Robert Millan <rmh@aybabtu.com>
46170 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46172 (normal/command.c_DEPENDENCIES): New variable.
46173 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46174 * conf/i386-ieee1275.rmk: Likewise.
46175 * conf/i386-linuxbios.rmk: Likewise.
46176 * conf/i386-pc.rmk: Likewise.
46177 * conf/sparc64-ieee1275.rmk: Likewise.
46178 * conf/powerpc-ieee1275.rmk: Likewise.
46179 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46181 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46183 2008-02-01 Robert Millan <rmh@aybabtu.com>
46185 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46186 call at beginning of function.
46188 2008-01-31 Pavel Roskin <proski@gnu.org>
46190 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46191 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46192 (grub_mkrescue_SOURCES): Likewise.
46193 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46195 2008-01-30 Robert Millan <rmh@aybabtu.com>
46197 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46198 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46199 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46200 (grub_probe_SOURCES): ... to here.
46202 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46203 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46204 * conf/i386-ieee1275.rmk: Likewise.
46205 * conf/i386-linuxbios.rmk: Likewise.
46206 * conf/powerpc-ieee1275.rmk: Likewise.
46208 2008-01-30 Tristan Gingold <gingold@free.fr>
46210 * kern/rescue.c: Silently accept empty lines.
46212 2008-01-29 Bean <bean123ch@gmail.com>
46214 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46215 (real_code_2): Code cleanup and change comment style.
46216 (move_memory): Avoid using 32-bit address mode.
46218 2008-01-29 Bean <bean123ch@gmail.com>
46220 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46221 (png_mod_SOURCES): New variable.
46222 (png_mod_CFLAGS): Likewise.
46223 (png_mod_LDFLAGS): Likewise.
46225 * video/readers/png.c: New file.
46227 2008-01-28 Robert Millan <rmh@aybabtu.com>
46229 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46230 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46231 `ifndef GRUB_MOD_GAP' hack.
46232 * util/elf/grub-mkimage.c (add_segments): Likewise.
46234 2008-01-27 Robert Millan <rmh@aybabtu.com>
46236 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46237 `GRUB_MOD_GAP' for platforms in which it's not defined.
46238 * util/elf/grub-mkimage.c (add_segments): Likewise.
46240 2008-01-27 Robert Millan <rmh@aybabtu.com>
46242 Get grub-emu to build again (including parallel builds).
46244 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46246 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46247 (normal/execute.c_DEPENDENCIES): ... this, ...
46248 (grub-emu_DEPENDENCIES): ... and this.
46250 * conf/i386-efi.rmk: Likewise.
46251 * conf/i386-linuxbios.rmk: Likewise.
46252 * conf/i386-ieee1275.rmk: Likewise.
46253 * conf/powerpc-ieee1275.rmk: Likewise.
46254 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46256 2008-01-27 Robert Millan <rmh@aybabtu.com>
46258 * NEWS: Add a few items.
46260 2008-01-27 Robert Millan <rmh@aybabtu.com>
46262 Fix parallel builds with grub-emu. Based on earlier commit for
46263 grub-probe and grub-setup.
46265 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46266 (util/grub-emu.c_DEPENDENCIES): ... this.
46267 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46268 (util/grub-emu.c_DEPENDENCIES): ... this.
46269 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46270 (util/grub-emu.c_DEPENDENCIES): ... this.
46271 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46272 (util/grub-emu.c_DEPENDENCIES): ... this.
46273 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46274 (util/grub-emu.c_DEPENDENCIES): ... this.
46276 2008-01-27 Pavel Roskin <proski@gnu.org>
46278 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46279 to create a gap between _end and the modules added to the image
46280 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46281 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46282 * util/elf/grub-mkimage.c (add_segments): Likewise.
46284 2008-01-26 Pavel Roskin <proski@gnu.org>
46286 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46287 just return an error.
46289 2008-01-26 Bean <bean123ch@gmail.com>
46291 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46292 (grub_reiserfs_get_item): Save offset of the next item.
46293 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46295 2008-01-25 Robert Millan <rmh@aybabtu.com>
46297 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46298 make all filesystem sources appear together (possibly fixing omissions
46300 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46301 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46302 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46303 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46305 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46307 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46308 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46309 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46310 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46312 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46313 (probe): Add a sanity check to make sure of our ability to read
46314 requested files when probing for filesystem type.
46316 * genmk.rb: Update copyright year (2007).
46318 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46319 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46320 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46321 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46322 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46323 : Remove function prototypes.
46325 2008-01-25 Robert Millan <rmh@aybabtu.com>
46327 Revert my previous commits (based on wrong assumption of how grub_errno
46330 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46331 * kern/file.c (grub_file_open): Likewise.
46333 2008-01-24 Pavel Roskin <proski@gnu.org>
46335 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46336 that hang if GRUB tries to setup colors.
46337 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46338 colors for firmwares that don't support it.
46339 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46340 Recognize Open Hack'Ware, set flags to work around its
46343 2008-01-24 Robert Millan <rmh@aybabtu.com>
46345 * kern/file.c (grub_file_open): Do not account previous failures of
46346 unrelated functions when grub_errno is checked for.
46347 Reported by Oleg Strikov.
46349 2008-01-24 Bean <bean123ch@gmail.com>
46351 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46352 (grub_ufs_sblock): New member volume name.
46353 (grub_ufs_find_file): Fix string copy bug.
46354 (grub_ufs_label): Implement this function properly.
46356 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46357 (grub_hfs_iterate_records): Use the correct file number for extents
46358 and catalog file. Fix problem in next index calculation.
46359 (grub_hfs_find_node): Replace recursive function call with loop.
46360 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46362 2008-01-23 Robert Millan <rmh@aybabtu.com>
46364 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46365 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46366 (grub_multiboot2_real_boot): New function prototype.
46368 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46369 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46371 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46372 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46374 2008-01-23 Robert Millan <rmh@aybabtu.com>
46376 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46377 #ifdef'ed out grub_printf().
46379 2008-01-23 Robert Millan <rmh@aybabtu.com>
46381 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46382 grub_dprintf calls, since they make "debug=all" mode unusable.
46383 (grub_console_checkkey): Likewise.
46385 2008-01-23 Robert Millan <rmh@aybabtu.com>
46387 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46388 `term/i386/pc/at_keyboard.c'.
46389 (pkglib_MODULES): Add `serial.mod'.
46390 (serial_mod_SOURCES): New variable.
46391 (serial_mod_CFLAGS): Likewise.
46392 (serial_mod_LDFLAGS): Likewise.
46394 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46395 `<grub/powerpc/ieee1275/console.h>'.
46396 (grub_keyboard_controller_init): New function prototype.
46397 (grub_console_checkkey): Likewise.
46398 (grub_console_getkey): Likewise.
46400 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46403 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46404 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46406 2008-01-23 Robert Millan <rmh@aybabtu.com>
46408 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46409 present, "(memdisk)/boot/grub" becomes the default prefix.
46411 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46412 a memdisk tarball with all the modules. Add --overlay=DIR option that
46413 allows users to overlay additional files into the image.
46415 2008-01-23 Robert Millan <rmh@aybabtu.com>
46417 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46418 and `machine/memory.h'.
46419 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46420 (_multiboot_mod_SOURCES): New variable.
46421 (_multiboot_mod_CFLAGS): Likewise.
46422 (_multiboot_mod_LDFLAGS): Likewise.
46423 (multiboot_mod_SOURCES): Likewise.
46424 (multiboot_mod_CFLAGS): Likewise.
46425 (multiboot_mod_LDFLAGS): Likewise.
46427 * include/grub/i386/ieee1275/loader.h: New file.
46429 * include/grub/i386/ieee1275/machine.h: Likewise.
46431 * include/grub/i386/ieee1275/memory.h: Likewise.
46433 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46434 variable declaration.
46435 (grub_os_area_size): Likewise.
46437 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46438 (grub_lower_mem, grub_upper_mem): New variables.
46439 (grub_stop_floppy): New function (just to make
46440 grub_multiboot2_real_boot() happy).
46442 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46443 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46444 (grub_stop): New function.
46445 Include `"../realmode.S"' and `"../loader.S"'.
46447 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46448 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46450 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46451 rely on grub_multiboot2_real_boot() for final boot.
46453 2008-01-22 Robert Millan <rmh@aybabtu.com>
46455 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46456 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46457 device that doesn't look like an SD card.
46458 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46459 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46460 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46461 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46464 2008-01-22 Robert Millan <rmh@aybabtu.com>
46466 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46467 avoid claiming over our own code.
46469 2008-01-22 Bean <bean123ch@gmail.com>
46471 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46472 (jpeg_mod_SOURCES): New variable.
46473 (jpeg_mod_CFLAGS): Likewise.
46474 (jpeg_mod_LDFLAGS): Likewise.
46476 * video/readers/jpeg.c : New file.
46478 2008-01-22 Bean <bean123ch@gmail.com>
46480 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46481 there are no more items.
46483 2008-01-21 Robert Millan <rmh@aybabtu.com>
46485 * kern/mm.c (grub_mm_init_region): Improve debug message.
46487 2008-01-21 Robert Millan <rmh@aybabtu.com>
46489 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46490 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46492 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46494 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46495 Indicates start of upper memory.
46496 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46497 (generate_image): Abort when image size is big enough to corrupt
46500 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46501 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46502 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46503 instead of hardcoding 0xA0000.
46504 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46505 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46506 instead of hardcoding 0xA0000.
46508 2008-01-21 Robert Millan <rmh@aybabtu.com>
46510 * disk/memdisk.c (memdisk_size): New variable.
46511 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46513 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46514 image to dynamic memory.
46515 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46516 `memdisk_size'. Free memdisk block.
46518 2008-01-21 Robert Millan <rmh@aybabtu.com>
46520 Fix detection of very small filesystems (like tar).
46522 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46523 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46524 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46525 a problem with this disk).
46527 2008-01-21 Robert Millan <rmh@aybabtu.com>
46529 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46530 on grub_biosdisk_rw_standard() error.
46532 2008-01-21 Robert Millan <rmh@aybabtu.com>
46534 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46536 * kern/elf.c: Likewise.
46537 * kern/ieee1275/ieee1275.c: Likewise.
46538 * kern/powerpc/ieee1275/openfw.c: Likewise.
46539 * term/ieee1275/ofconsole.c: Likewise.
46541 2008-01-21 Robert Millan <rmh@aybabtu.com>
46543 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46545 * include/grub/kernel.h (grub_arch_memdisk_addr)
46546 (grub_arch_memdisk_size): Moved from here ...
46548 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46549 (grub_arch_memdisk_size): ... to here.
46551 2008-01-21 Robert Millan <rmh@aybabtu.com>
46553 Mostly based on bugfix from Bean.
46555 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46556 attribute with hook() parameter.
46557 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46559 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46560 attribute with hook() parameter.
46561 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46564 2008-01-21 Robert Millan <rmh@aybabtu.com>
46566 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46567 (pkglib_MODULES): Add `memdisk.mod'.
46568 (memdisk_mod_SOURCES): New variable.
46569 (memdisk_mod_CFLAGS): Likewise.
46570 (memdisk_mod_LDFLAGS): Likewise.
46572 * disk/memdisk.c: New file.
46574 * include/grub/disk.h (grub_disk_dev_id): Add
46575 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46577 * include/grub/i386/pc/kernel.h
46578 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46579 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46580 (grub_kernel_image_size): New variable declaration.
46581 (grub_total_module_size): Likewise.
46582 (grub_memdisk_image_size): Likewise.
46584 * include/grub/i386/pc/memory.h
46585 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46587 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46588 (grub_arch_memdisk_addr): New variable declaration.
46589 (grub_arch_memdisk_size): Likewise.
46591 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46592 (grub_arch_memdisk_size): Likewise.
46594 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46595 (codestart): Replace hardcoded `0x100000' with
46596 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46598 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46599 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46600 not NULL, append the contents of the file it refers to, at the end of
46601 the compressed kernel image. Initialize `grub_memdisk_image_size'
46602 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46603 (options): Add "memdisk"|'m' option.
46604 (main): Parse --memdisk|-m option, and pass user-provided path as
46605 parameter to generate_image().
46607 2008-01-20 Robert Millan <rmh@aybabtu.com>
46609 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46610 grub_dprintf() calls from here ...
46611 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46613 2008-01-20 Robert Millan <rmh@aybabtu.com>
46615 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46617 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46619 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46620 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46621 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46622 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46624 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46625 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46627 2008-01-19 Robert Millan <rmh@aybabtu.com>
46629 Get rid of confusing function (superseded by
46630 `grub_ieee1275_get_integer_property')
46631 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46633 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46635 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46636 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46637 in native endianness from grub_ieee1275_get_integer_property().
46639 2008-01-19 Robert Millan <rmh@aybabtu.com>
46641 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46642 command after "shut-down", since implementations differ on which
46643 the command for halt is.
46645 2008-01-19 Robert Millan <rmh@aybabtu.com>
46647 * include/grub/i386/linuxbios/console.h: Add header protection.
46648 (grub_keyboard_controller_init): New function prototype.
46649 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46650 (KEYBOARD_COMMAND_READ): Likewise.
46651 (KEYBOARD_COMMAND_WRITE): Likewise.
46652 (KEYBOARD_SCANCODE_SET1): Likewise.
46653 (grub_keyboard_controller_write): New function.
46654 (grub_keyboard_controller_read): Likewise.
46655 (grub_keyboard_controller_init): Likewise.
46657 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46658 (grub_console_init): On coreboot/LinuxBIOS, call
46659 grub_keyboard_controller_init().
46661 2008-01-19 Robert Millan <rmh@aybabtu.com>
46663 PowerPC changes provided by Pavel Roskin.
46665 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46666 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46667 don't rely on cmain() doing it.
46668 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46669 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46671 2008-01-16 Robert Millan <rmh@aybabtu.com>
46673 * include/grub/i386/linuxbios/memory.h
46674 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46675 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46676 receive `table_header' as argument. Instead, probe for it in the
46677 known memory ranges where it can be present.
46678 (grub_available_iterate): Do not pass a fixed `table_header' address
46679 to grub_linuxbios_table_iterate().
46681 2008-01-15 Robert Millan <rmh@aybabtu.com>
46683 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46684 * conf/i386-ieee1275.rmk: New file.
46685 * include/grub/i386/ieee1275/console.h: Likewise.
46686 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46687 * include/grub/i386/ieee1275/kernel.h: Likewise.
46688 * include/grub/i386/ieee1275/time.h: Likewise.
46689 * kern/i386/ieee1275/init.c: Likewise.
46690 * kern/i386/ieee1275/startup.S: Likewise.
46692 2008-01-15 Robert Millan <rmh@aybabtu.com>
46694 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46695 when pointers are 32-bit (but still do set it to one when they are
46698 2008-01-15 Robert Millan <rmh@aybabtu.com>
46700 * include/grub/ieee1275/ieee1275.h
46701 (grub_ieee1275_get_integer_property): New function prototype.
46703 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46704 (grub_ieee1275_get_integer_property): New function. Wraps around
46705 grub_ieee1275_get_property() to handle endianness.
46707 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46708 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46710 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46711 (grub_map): Likewise.
46712 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46714 2008-01-15 Bean <bean123ch@gmail.com>
46716 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46717 (grub_script_execute_cmdline): Reset grub_errno.
46719 * normal/main.c (read_config_file): Reset grub_errno.
46721 * normal/parse.y (script_init): New.
46722 (script): Move function and menuentry here.
46724 (command): Add delimiter at the end of command.
46725 (commands): Adjust to match the new command.
46726 (commandblock): Remove grub_script_lexer_record_start.
46727 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46728 (if): Use the new commands.
46730 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46732 2008-01-15 Robert Millan <rmh@aybabtu.com>
46734 * normal/menu.c (run_menu): Move timeout message from here ...
46735 (print_timeout): ... to here.
46736 (run_menu): Use print_timeout() once during initial draw to print
46737 the whole message, and again in every clock tick to update only
46738 the number of seconds.
46740 2008-01-15 Robert Millan <rmh@aybabtu.com>
46742 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46743 actual size of `available' from grub_ieee1275_get_property(), and
46744 restrict parsing to that bound.
46746 2008-01-15 Christian Franke <franke@computer.org>
46748 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46749 (argp_program_version): Remove variable.
46750 (argp_program_bug_address): Likewise.
46751 (options): Convert from struct argp_option to struct option.
46752 (struct arguments): Remove.
46753 (parse_opt): Remove.
46754 (usage): New function.
46755 (main): Replace struct args members by simple variables.
46756 Replace argp_parse() by getopt_long().
46757 Add switch to evaluate options.
46758 Add missing "(...)" around root_dev in prefix string.
46760 2008-01-14 Robert Millan <rmh@aybabtu.com>
46762 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46763 for grub_ieee1275_exit(), in order to improve portability.
46765 2008-01-14 Robert Millan <rmh@aybabtu.com>
46767 * util/grub.d/10_linux.in (prefix): Define.
46768 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46770 2008-01-13 Pavel Roskin <proski@gnu.org>
46772 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46773 grub_errno if no errors have been detected.
46775 2008-01-12 Robert Millan <rmh@aybabtu.com>
46777 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46778 (grub_util_get_dev_abstraction): New function prototype.
46780 * util/getroot.c: Include `<grub/util/getroot.h>'
46781 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46782 (grub_util_get_dev_abstraction): ... here (new function).
46784 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46785 `PRINT_ABSTRACTION'.
46786 (probe): Probe for abstraction type when requested.
46787 (main): Understand `--target=abstraction'.
46789 * util/i386/efi/grub-install.in: Add abstraction module to core
46790 image when it is found to be necessary.
46791 * util/i386/pc/grub-install.in: Likewise.
46792 * util/powerpc/ieee1275/grub-install.in: Likewise.
46794 * util/update-grub_lib.in (font_path): Return system path without
46795 converting to GRUB path.
46796 * util/update-grub.in: Convert system path returned by font_path()
46797 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46798 abstraction module is needed for loading fonts (if any). Export
46799 that as `GRUB_PRELOAD_MODULES'.
46800 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46803 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46805 Remove some unused code from reiserfs.
46807 * fs/reiserfs.c (struct grub_reiserfs_key)
46808 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46809 (struct grub_reiserfs_node_body): Removed.
46810 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46812 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46814 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46816 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46818 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46820 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46822 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46823 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46824 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46826 2008-01-10 Robert Millan <rmh@aybabtu.com>
46828 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46829 Determines if a file is garbage left by packaging systems, etc.
46830 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46831 for processing /etc/grub.d scripts.
46832 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46833 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46834 as a condition for processing Linux images.
46836 2008-01-10 Pavel Roskin <proski@gnu.org>
46838 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46839 to compile reiserfs.c on PowerPC.
46841 2008-01-10 Robert Millan <rmh@aybabtu.com>
46843 * kern/device.c (grub_device_iterate): Do not abort device iteration
46844 when one of the devices cannot be opened.
46845 * kern/disk.c (grub_disk_open): Do not account previous failures of
46846 unrelated functions when grub_errno is checked for.
46848 2008-01-08 Robert Millan <rmh@aybabtu.com>
46850 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46851 `! grub_linux_is_bzimage', change order of address comparison to make
46852 it more intuitive, and improve "too big zImage" error message.
46854 2008-01-08 Robert Millan <rmh@aybabtu.com>
46856 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46857 `$(update-grub_DATA)'.
46858 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46861 2008-01-07 Robert Millan <rmh@aybabtu.com>
46863 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46864 which instruction is modified by grub-setup during installation
46865 (since it wasn't obvious by only looking at this file).
46867 2008-01-07 Robert Millan <rmh@aybabtu.com>
46869 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46870 listing actual TODO items.
46872 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46874 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46876 (grub_reiserfs_get_key_offset): Likewise.
46877 (grub_reiserfs_set_key_offset): Likewise.
46878 (grub_reiserfs_set_key_type): Likewise.
46879 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46881 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46882 better to remove the bitfield version completely.
46884 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46886 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46887 allocated from the heap, due to the fshelp implementation.
46888 (grub_reiserfs_dir): Free NODE, due to the same reason.
46890 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46892 Mostly from Vincent Pelletier:
46894 * fs/reiserfs.c: New file.
46896 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46897 (reiserfs_mod_SOURCES): New variable.
46898 (reiserfs_mod_CFLAGS): Likewise.
46899 (reiserfs_mod_LDFLAGS): Likewise.
46901 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46902 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46903 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46906 2008-01-06 Robert Millan <rmh@aybabtu.com>
46908 * normal/color.c: Remove `<grub/env.h>'.
46910 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46912 * include/grub/normal.h: Include <grub/env.h>.
46914 2008-01-05 Robert Millan <rmh@aybabtu.com>
46916 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46917 usage example with `(hd0,1)'.
46918 Reported by Samuel Thibault.
46920 2008-01-05 Robert Millan <rmh@aybabtu.com>
46922 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46923 (grub_linux_boot_zimage): Rename to ...
46924 (grub_linux_boot): ... this.
46925 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46926 (grub_linux_boot_zimage): Conditionalize zImage copy.
46928 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46929 (grub_linux_boot_bzimage): Remove prototype.
46930 (grub_linux_boot_zimage): Rename to ...
46931 (grub_linux_boot): ... this.
46933 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46934 (grub_linux_boot): Remove function.
46936 2008-01-05 Robert Millan <rmh@aybabtu.com>
46938 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46939 (grub_env_write_color_highlight): Likewise.
46940 (grub_wait_after_message): Likewise.
46942 * normal/color.c: New file.
46944 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46945 (normal_mod_DEPENDENCIES): Likewise.
46947 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46948 (normal_mod_DEPENDENCIES): Likewise.
46950 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46951 (normal_mod_DEPENDENCIES): Likewise.
46953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46954 (normal_mod_DEPENDENCIES): Likewise.
46956 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46957 for waiting after a message is printed.
46958 * normal/main.c (read_config_file): Likewise.
46959 (grub_normal_init): Register grub_env_write_color_normal() and
46960 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46961 `color_highlight' variables as global.
46963 * normal/menu.c (grub_wait_after_message): New function.
46964 (grub_color_menu_normal): New variable. Replaces ...
46965 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46966 (grub_color_menu_highlight): New variable. Replaces ...
46967 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46968 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46969 `GRUB_TERM_COLOR_STANDARD'.
46970 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46971 `normal_code' and `highlight_code' to `old_color_normal' and
46972 `old_color_highlight', respectively.
46973 (grub_menu_init_page): Update colors when drawing the menu, based on
46974 `menu_color_normal' and `menu_color_highlight' variables.
46975 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46976 a message is printed.
46978 2008-01-05 Robert Millan <rmh@aybabtu.com>
46980 * kern/env.c (grub_env_context_open): Propagate hooks for global
46981 variables to new context.
46983 * kern/main.c (grub_set_root_dev): Export `root' variable.
46985 2008-01-05 Robert Millan <rmh@aybabtu.com>
46987 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46988 discs unconditionally, since udev and others have options to provide
46991 2008-01-05 Robert Millan <rmh@aybabtu.com>
46993 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46995 2008-01-04 Christian Franke <franke@computer.org>
46997 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
47000 2008-01-03 Pavel Roskin <proski@gnu.org>
47002 * kern/i386/linuxbios/init.c: Put "void" to all function
47003 declarations with no arguments.
47004 * kern/powerpc/ieee1275/init.c: Likewise.
47005 * term/i386/pc/at_keyboard.c: Likewise.
47006 * term/i386/pc/vga_text.c: Likewise.
47007 * util/grub-mkdevicemap.c: Likewise.
47009 2008-01-02 Robert Millan <rmh@aybabtu.com>
47011 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47012 message when loaded image is out of bounds.
47013 (grub_multiboot_load_elf64): Likewise.
47015 2008-01-02 Pavel Roskin <proski@gnu.org>
47017 * util/grub.d/10_linux.in: Try version without ".old" when
47018 looking for initrd. It's better to use initrd from the newer
47019 kernel of the same version than no initrd at all.
47021 2008-01-01 Robert Millan <rmh@aybabtu.com>
47023 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47025 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47027 * include/grub/video.h: Added grub_video_unmap_color and
47028 grub_video_get_active_render_target.
47029 (grub_video_adapter): Added unmap_color and get_active_render_target.
47031 * video/video.c: Added grub_video_unmap_color and
47032 grub_video_get_active_render_target.
47033 (grub_video_get_info): Changed method to accept NULL pointer as an
47034 argument to allow detection of active video adapter.
47036 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47037 grub_video_vbe_unmap_color_int.
47038 Added grub_video_vbe_unmap_color and
47039 grub_video_vbe_get_active_render_target.
47040 (grub_video_vbe_adapter): Added unmap_color and
47041 get_active_render_target.
47043 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47044 with grub_video_vbe_unmap_color_int.
47046 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47047 (DEFAULT_NORMAL_COLOR): Likewise.
47048 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47049 (DEFAULT_FG_COLOR): Removed.
47050 (DEFAULT_BG_COLOR): Likewise.
47051 (DEFAULT_CURSOR_COLOR): Changed value.
47052 (grub_virtual_screen): Added standard_color_setting,
47053 normal_color_setting, highlight_color_setting and term_color.
47054 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47055 (bitmap_width): Added.
47056 (bitmap_height): Likewise.
47057 (bitmap): Likewise.
47058 (set_term_color): Likewise.
47059 (grub_virtual_screen_setup): Changed to use new terminal coloring
47061 (grub_gfxterm_init): Added init for bitmap.
47062 (grub_gfxterm_fini): Added destroy for bitmap.
47063 (redraw_screen_rect): Updated to use background bitmap and new
47065 (scroll_up): Added optimization for case when there is no bitmap.
47066 (grub_gfxterm_cls): Fixed to use correct background color.
47067 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47069 (grub_virtual_screen_setcolor): Likewise.
47070 (grub_virtual_screen_getcolor): Added.
47071 (grub_gfxterm_background_image_cmd): Likewise.
47072 (grub_video_term): Added setcolor and getcolor.
47073 (MOD_INIT): Added registration of background_image command.
47074 (MOD_TERM): Added unregistration for background_image command.
47076 2007-12-30 Pavel Roskin <proski@gnu.org>
47078 * loader/multiboot_loader.c: Fix multiboot command
47079 unregistration. Fix all typos in the word "multiboot".
47081 2007-12-29 Pavel Roskin <proski@gnu.org>
47083 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47084 support for initrd names used in Fedora.
47086 2007-12-26 Bean <bean123ch@gmail.com>
47088 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47089 (cpio_mod_SOURCES): New variable.
47090 (cpio_mod_CFLAGS): Likewise.
47091 (cpio_mod_LDFLAGS): Likewise.
47093 * fs/cpio.c: New file.
47095 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47097 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47099 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47101 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47103 2007-12-25 Robert Millan <rmh@aybabtu.com>
47105 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47106 (grub_getcolor): New function.
47108 * kern/term.c (grub_getcolor): New function.
47109 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47110 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47111 (print_entry): Set normal and highlight colors to
47112 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47113 respectively, before printing and restore them to old
47115 (grub_menu_init_page): Likewise. Fill an additional colored space
47116 that would otherwise be left blank.
47118 * term/efi/console.c (grub_console_getcolor): New function.
47119 (struct grub_console_term.getcolor): New variable.
47120 * term/i386/pc/console.c (grub_console_getcolor): New function.
47121 (struct grub_console_term.getcolor): New variable.
47122 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47123 (struct grub_console_term.getcolor): New variable.
47125 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47126 (struct grub_console_term.setcolor): Remove variable.
47127 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47128 (struct grub_console_term.setcolor): Remove variable.
47129 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47130 (struct grub_console_term.setcolor): Remove variable.
47131 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47132 (struct grub_console_term.setcolor): Remove variable.
47134 2007-12-25 Robert Millan <rmh@aybabtu.com>
47136 * configure.ac: Search for possible unifont.hex locations, and
47137 define UNIFONT_HEX if found.
47139 * Makefile.in (UNIFONT_HEX): Define variable.
47140 (DATA): Rename to ...
47141 (PKGLIB): ... this. Update all users.
47142 (PKGDATA): New variable.
47143 (pkgdata_IMAGES): Rename to ...
47144 (pkglib_IMAGES): ... this. Update all users.
47145 (pkgdata_MODULES): Rename to ...
47146 (pkglib_MODULES): ... this. Update all users.
47147 (pkgdata_PROGRAMS): Rename to ...
47148 (pkglib_PROGRAMS): ... this. Update all users.
47149 (pkgdata_DATA): Rename to ...
47150 (pkglib_DATA): ... this. Update all users.
47151 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47152 (unicode.pff, ascii.pff): New rules.
47153 (all-local): Add `$(PKGDATA)' dependency.
47154 (install-local): Process `$(PKGDATA)'.
47156 * util/update-grub_lib.in (font_path): Search for *.pff files in
47157 a few more locations, including `${pkgdata}'.
47159 2007-12-23 Robert Millan <rmh@aybabtu.com>
47161 Patch from Bean <bean123ch@gmail.com>:
47162 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47165 2007-12-21 Bean <bean123ch@gmail.com>
47167 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47168 (ntfscomp_mod_SOURCES): New variable.
47169 (ntfscomp_mod_CFLAGS): Likewise.
47170 (ntfscomp_mod_LDFLAGS): Likewise.
47172 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47173 (grub_probe_SOURCES): Likewise.
47174 (grub_emu_SOURCES): Likewise.
47176 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47177 (grub_emu_SOURCES): Likewise.
47179 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47180 (grub_emu_SOURCES): Likewise.
47182 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47183 (grub_emu_SOURCES): Likewise.
47185 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47186 (read_run_list): Renamed to grub_ntfs_read_run_list.
47187 (decomp_nextvcn): Moved to ntfscomp.c.
47188 (decomp_getch): Likewise.
47189 (decomp_get16): Likewise.
47190 (decomp_block): Likewise.
47191 (read_block): Likewise.
47192 (read_data): Partially moved to ntfscomp.c.
47193 (fixup): Change unsigned to grub_uint16_t.
47194 (read_mft): Change unsigned long to grub_uint32_t.
47195 (read_attr): Likewise.
47196 (read_data): Likewise.
47197 (read_run_data): Likewise.
47198 (read_run_list): Likewise.
47199 (read_mft): Likewise.
47201 * fs/ntfscomp.c: New file.
47203 * include/grub/ntfs.h: New file.
47205 2007-12-16 Robert Millan <rmh@aybabtu.com>
47207 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47208 IDE disk check, since Linux is known to support 20 IDE disks.
47209 Reported by Colin Watson.
47211 2007-12-15 Bean <bean123ch@gmail.com>
47213 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47214 (lnxboot_img_SOURCES): New variable.
47215 (lnxboot_img_ASFLAGS): Likewise.
47216 (lnxboot_img_LDFLAGS): Likewise.
47218 * boot/i386/pc/lnxboot.S: New file.
47220 2007-11-24 Pavel Roskin <proski@gnu.org>
47222 * configure.ac: Test if '--build-id=none' is supported by the
47223 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47224 objcopy to generate incorrect binary files (binutils
47225 2.17.50.0.18-1 as shipped by Fedora 8).
47226 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47227 linking, so that build ID doesn't break the test.
47229 2007-11-24 Pavel Roskin <proski@gnu.org>
47231 * include/grub/i386/time.h: use "void" in the argument list
47232 of grub_cpu_idle().
47233 * include/grub/powerpc/time.h: Likewise.
47234 * include/grub/sparc64/time.h: Likewise.
47236 2007-11-18 Christian Franke <franke@computer.org>
47238 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47239 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47240 This fixes the problem that function keys did not work in grub-emu.
47242 2007-11-18 Christian Franke <franke@computer.org>
47244 * disk/host.c (grub_host_open): Remove attribute unused from
47245 name parameter. Add check for "host". This fixes the problem
47246 that grub-emu does not find partitions.
47248 2007-11-18 Christian Franke <franke@computer.org>
47250 * util/hostfs.c (is_dir): New function.
47251 (grub_hostfs_dir): Handle missing dirent.d_type case.
47252 (grub_hostfs_read): Add missing fseek().
47253 (grub_hostfs_label): Clear label pointer. This fixes a crash
47254 of grub-emu on "ls (host)".
47256 2007-11-18 Christian Franke <franke@computer.org>
47258 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47259 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47260 to 64 bit boundary by default.
47262 2007-11-18 Bean <bean123ch@gmail.com>
47264 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47265 (hexdump_mod_SOURCES): New variable.
47266 (hexdump_mod_CFLAGS): Likewise.
47267 (hexdump_mod_LDFLAGS): Likewise.
47269 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47271 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47273 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47275 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47277 * include/grub/hexdump.h: New file.
47279 * commands/hexdump.c: New file.
47281 2007-11-10 Robert Millan <rmh@aybabtu.com>
47283 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47284 in grub_outb() calls.
47285 (beep_on): Likewise.
47287 2007-11-10 Christian Franke <franke@computer.org>
47289 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47290 (grub_menu_run): Likewise.
47292 2007-11-10 Robert Millan <rmh@aybabtu.com>
47294 * include/grub/i386/efi/machine.h: New file.
47295 * include/grub/i386/linuxbios/machine.h: Likewise.
47296 * include/grub/i386/pc/machine.h: Likewise.
47297 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47298 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47300 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47301 (serial_hw_io_addr): New variable.
47302 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47303 instead of `(unsigned short *) 0x400'.
47305 2007-11-10 Bean <bean123ch@gmail.com>
47307 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47309 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47311 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47312 (vga_mod_SOURCES): Added.
47313 (vga_mod_CFLAGS): Likewise.
47314 (vga_mod_LDFLAGS): Likewise.
47316 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47318 (set_map_mask): Likewise.
47319 (set_read_map): Likewise.
47320 (set_read_address): Likewise.
47321 (vga_font): Removed variable.
47322 (get_vga_glyph): Removed function.
47323 (invalidate_char): Likewise.
47324 (write_char): Changed to use grub_font_get_glyph() for font
47326 (grub_vga_putchar): Likewise.
47327 (grub_vga_getcharwidth): Likewise.
47329 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47331 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47333 (pxeboot_img_LDFLAGS): Likewise.
47334 (diskboot_img_LDFLAGS): Likewise.
47335 (kernel_img_LDFLAGS): Likewise.
47337 2007-11-06 Robert Millan <rmh@aybabtu.com>
47339 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47340 in grub_outb() calls.
47341 (serial_hw_init): Likewise.
47343 2007-11-05 Robert Millan <rmh@aybabtu.com>
47345 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47346 spaces. Skip non-regular files.
47348 2007-11-05 Robert Millan <rmh@aybabtu.com>
47350 * kern/disk.c (grub_disk_firmware_fini)
47351 (grub_disk_firmware_is_tainted): New variables.
47353 * include/grub/disk.h (grub_disk_firmware_fini)
47354 (grub_disk_firmware_is_tainted): Likewise.
47356 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47357 (grub_disk_biosdisk_fini): ... to here.
47358 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47359 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47360 is set. Register grub_disk_biosdisk_fini() in
47361 `grub_disk_firmware_fini'.
47363 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47364 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47365 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47366 to finish existing firmware disk interface.
47368 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47369 (ata_mod_SOURCES): New variable.
47370 (ata_mod_CFLAGS): Likewise.
47371 (ata_mod_LDFLAGS): Likewise.
47373 2007-11-05 Robert Millan <rmh@aybabtu.com>
47375 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47376 (grub_ata_wait): Reimplement using grub_millisleep().
47378 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47379 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47381 2007-11-03 Marco Gerards <marco@gnu.org>
47383 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47384 (CRTC_ADDR_PORT): New macro.
47385 (CRTC_DATA_PORT): Likewise.
47386 (CRTC_CURSOR): Likewise.
47387 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47388 (CRTC_CURSOR_ADDR_LOW): Likewise.
47389 (update_cursor): New function.
47390 (grub_console_real_putchar): Call `update_cursor'.
47391 (grub_console_gotoxy): Likewise.
47392 (grub_console_cls): Set the default color when clearing the
47394 (grub_console_setcursor): Implemented.
47396 2007-11-03 Marco Gerards <marco@gnu.org>
47398 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47400 (grub_ata_pio_write): Likewise.
47402 (grub_atapi_identify): Wait after issuing an ATA command.
47403 (grub_atapi_packet): Likewise.
47404 (grub_ata_identify): Likewise.
47405 (grub_ata_readwrite): Likewise.
47407 2007-11-03 Marco Gerards <marco@gnu.org>
47409 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47410 (grub_ata_pio_write): Likewise.
47411 (grub_ata_readwrite): Use `grub_error', instead of
47412 returning `grub_errno'.
47414 2007-11-03 Marco Gerards <marco@gnu.org>
47416 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47417 grub_ata_pio_write once for every single sector, instead of for
47420 2007-10-31 Robert Millan <rmh@aybabtu.com>
47422 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47424 * conf/i386-linuxbios.rmk: New file.
47426 * kern/i386/pc/hardware.c: Likewise.
47427 * term/i386/pc/at_keyboard.c: Likewise.
47428 * term/i386/pc/vga_text.c: Likewise.
47430 * include/grub/i386/linuxbios/boot.h: Likewise.
47431 * include/grub/i386/linuxbios/console.h: Likewise.
47432 * include/grub/i386/linuxbios/init.h: Likewise.
47433 * include/grub/i386/linuxbios/kernel.h: Likewise.
47434 * include/grub/i386/linuxbios/loader.h: Likewise.
47435 * include/grub/i386/linuxbios/memory.h: Likewise.
47436 * include/grub/i386/linuxbios/serial.h: Likewise.
47437 * include/grub/i386/linuxbios/time.h: Likewise.
47439 * kern/i386/linuxbios/init.c: Likewise.
47440 * kern/i386/linuxbios/startup.S: Likewise.
47441 * kern/i386/linuxbios/table.c: Likewise.
47443 2007-10-31 Marco Gerards <marco@gnu.org>
47445 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47446 (ata_mod_SOURCES): New variable.
47447 (ata_mod_CFLAGS): Likewise.
47448 (ata_mod_LDFLAGS): Likewise.
47450 * disk/ata.c: New file.
47452 * include/grub/disk.h (grub_disk_dev_id): Add
47453 `GRUB_DISK_DEV_ATA_ID'.
47455 2007-10-31 Robert Millan <rmh@aybabtu.com>
47457 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47458 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47460 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47461 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47463 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47466 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47468 2007-10-27 Robert Millan <rmh@aybabtu.com>
47470 * include/grub/types.h (ULONG_MAX): Define macro.
47472 2007-10-22 Robert Millan <rmh@aybabtu.com>
47474 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47476 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47478 2007-10-22 Robert Millan <rmh@aybabtu.com>
47480 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47481 (pkgdata_MODULES): Add `biosdisk.mod'.
47482 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47485 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47486 (grub_biosdisk_init): Replace with ...
47487 (GRUB_MOD_INIT(biosdisk)): ... this.
47488 (grub_biosdisk_fini): Replace with ...
47489 (GRUB_MOD_FINI(biosdisk)): ... this.
47491 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47492 (grub_machine_init): Remove call to grub_biosdisk_init().
47493 (grub_machine_fini): Remove call to grub_machine_fini().
47495 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47497 2007-10-22 Robert Millan <rmh@aybabtu.com>
47499 * include/grub/time.h: New file.
47500 * include/grub/i386/time.h: Likewise.
47501 * include/grub/powerpc/time.h: Likewise.
47502 * include/grub/sparc64/time.h: Likewise.
47504 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47506 (KERNEL_MACHINE_TIME_HEADER): ... this.
47507 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47509 (KERNEL_MACHINE_TIME_HEADER): ... this.
47510 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47512 (KERNEL_MACHINE_TIME_HEADER): ... this.
47514 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47515 (grub_millisleep): New function.
47516 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47517 (grub_millisleep): New function.
47518 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47519 Remove `grub/machine/time.h' include.
47520 (grub_millisleep): New function.
47521 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47522 Remove `grub/machine/time.h' include.
47523 (grub_millisleep): New function.
47525 * include/grub/misc.h (grub_div_roundup): New function.
47527 * kern/misc.c: Include `<grub/time.h>'.
47528 (grub_millisleep_generic): New function.
47530 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47532 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47534 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47535 `machine/time.h'. Add `time.h'.
47536 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47538 2007-10-21 Robert Millan <rmh@aybabtu.com>
47540 * include/grub/misc.h (grub_max): New function.
47542 2007-10-21 Robert Millan <rmh@aybabtu.com>
47544 * util/misc.c (grub_util_info): Call fflush() before returning.
47546 2007-10-20 Robert Millan <rmh@aybabtu.com>
47548 * genmk.rb (Image): Copy `extra_flags' from here ...
47549 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47551 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47552 to `argc' and `args' arguments.
47554 2007-10-17 Robert Millan <rmh@aybabtu.com>
47556 * kern/i386/loader.S: New file.
47558 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47559 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47560 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47561 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47562 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47563 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47564 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47565 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47566 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47567 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47568 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47569 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47570 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47571 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47573 * kern/i386/realmode.S: New file.
47575 * kern/i386/pc/startup.S (protstack): Moved from here ...
47576 * kern/i386/realmode.S (protstack)... to here.
47577 * kern/i386/pc/startup.S (gdt): Moved from here ...
47578 * kern/i386/realmode.S (gdt)... to here.
47579 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47580 * kern/i386/realmode.S (prot_to_real)... to here.
47582 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47583 `kern/i386/realmode.S'.
47585 2007-10-17 Robert Millan <rmh@aybabtu.com>
47587 * include/grub/i386/loader.h: New file.
47589 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47590 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47591 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47592 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47593 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47594 * include/grub/i386/loader.h (grub_linux_prot_size)
47595 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47596 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47597 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47598 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47600 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47602 2007-10-15 Robert Millan <rmh@aybabtu.com>
47604 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47605 filesystem when dev->disk is unset.
47606 Do probe for filesystem even when dev->disk->has_partitions is set.
47607 In case a filesystem is found, always report it.
47608 In case it isn't, if dev->disk->has_partitions is set, report that
47609 a partition table was found instead of reporting that no filesystem
47610 could be identified.
47612 2007-10-12 Robert Millan <rmh@aybabtu.com>
47614 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47615 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47617 * include/grub/types.h (grub_host_to_target16): New macro.
47618 (grub_host_to_target32): Likewise.
47619 (grub_host_to_target64): Likewise.
47620 (grub_target_to_host16): Likewise.
47621 (grub_target_to_host32): Likewise.
47622 (grub_target_to_host64): Likewise.
47624 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47625 Renamed from to ...
47626 (GRUB_MOD_ALIGN): ...this. Update all users.
47628 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47629 grub_host_to_target32.
47630 Replace grub_be_to_cpu32 with grub_target_to_host32.
47631 (load_modules): Likewise.
47632 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47633 Replace grub_be_to_cpu32 with grub_target_to_host32.
47634 Replace grub_cpu_to_be16 with grub_host_to_target16.
47635 Replace grub_cpu_to_be32 grub_host_to_target32.
47637 2007-10-12 Robert Millan <rmh@aybabtu.com>
47639 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47640 * util/elf/grub-mkimage.c: ... here.
47642 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47643 `util/powerpc/ieee1275/grub-mkimage.c'.
47645 2007-10-07 Robert Millan <rmh@aybabtu.com>
47647 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47648 and make it easier to figure out.
47649 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47650 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47651 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47652 leave us with less than HEAP_MIN_SIZE total heap.
47653 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47655 2007-10-03 Robert Millan <rmh@aybabtu.com>
47657 * include/grub/i386/io.h: New file.
47658 * commands/i386/pc/play.c (inb): Removed.
47660 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47662 * term/i386/pc/serial.c (inb): Removed.
47664 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47666 * term/i386/pc/vga.c (inb): Removed.
47668 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47671 2007-10-02 Robert Millan <rmh@aybabtu.com>
47673 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47674 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47675 Reported by Marcin Kurek.
47677 2007-09-07 Robert Millan <rmh@aybabtu.com>
47679 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47680 SmartFirmware version updates (as released by Sven Luther), and avoid
47681 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47682 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47685 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47687 From Hitoshi Ozeki:
47688 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47689 when merging two regions.
47691 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47693 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47694 * normal/completion.c (grub_normal_do_completion): Likewise.
47695 Reported by Hitoshi Ozeki.
47697 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47699 Do not use devices at boot in chainloading.
47701 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47702 (boot_part_addr): Likewise.
47703 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47704 with BOOT_DRIVE and BOOT_PART_ADDR.
47705 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47706 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47708 2007-08-29 Robert Millan <rmh@aybabtu.com>
47710 Patch from Simon Peter <dn.tlp@gmx.net>:
47711 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47712 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47713 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47714 util/i386/pc/grub-setup.c_DEPENDENCIES.
47715 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47716 util/grub-probe.c_DEPENDENCIES.
47717 * conf/powerpc-ieee1275.rmk: Likewise.
47719 2007-08-28 Robert Millan <rmh@aybabtu.com>
47721 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47722 to tell grub-mkdevicemap how to name devices.
47723 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47726 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47727 util/i386/get_disk_name.c.
47728 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47729 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47730 util/ieee1275/get_disk_name.c.
47732 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47734 * DISTLIST: Add util/i386/get_disk_name.c and
47735 util/ieee1275/get_disk_name.c.
47737 * util/grub-mkdevicemap.c: Replace device naming logic with
47738 grub_util_get_disk_name() calls.
47740 2007-08-20 Robert Millan <rmh@aybabtu.com>
47742 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47743 (so that it works for both plural and singular quantities).
47745 2007-08-05 Robert Millan <rmh@aybabtu.com>
47747 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47748 so that [xz] isn't taken into account when determining order.
47750 2007-08-02 Marco Gerards <marco@gnu.org>
47752 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47753 `include/multiboot2.h', `include/grub/elfload.h',
47754 `include/multiboot.h', `include/grub/multiboot.h',
47755 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47756 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47757 `kern/elf.c', `loader/multiboot_loader.c',
47758 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47759 `loader/i386/pc/multiboot2.c',
47760 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47761 `util/i386/pc/grub-mkrescue.in'. Remove
47762 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47763 `include/grub/i386/pc/util/biosdisk.h' and
47764 `include/grub/powerpc/ieee1275/multiboot.h'.
47766 2007-08-02 Bean <bean123ch@gmail.com>
47768 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47769 (ntfs_mod_SOURCES): New variable.
47770 (ntfs_mod_CFLAGS): Likewise.
47771 (ntfs_mod_LDFLAGS): Likewise.
47773 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47774 (grub_probe_SOURCES): Likewise.
47775 (grub_emu_SOURCES): Likewise.
47777 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47778 (grub_emu_SOURCES): Likewise.
47780 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47781 (grub_emu_SOURCES): Likewise.
47783 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47785 * fs/ntfs.c: New file.
47787 2007-08-02 Bean <bean123ch@gmail.com>
47789 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47791 * file.h (grub_file): Likewise.
47793 * fshelp.h (grub_fshelp_read_file): Likewise.
47795 * util/i386/pc/grub-setup.c (setup): Likewise.
47796 (save_first_sector): Likewise.
47797 (save_blocklists): Likewise.
47799 * fs/affs.c (grub_affs_read_file): Likewise.
47801 * fs/ext2.c (grub_ext2_read_file): Likewise.
47803 * fs/fat.c (grub_fat_read_data): Likewise.
47805 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47807 * fs/hfs.c (grub_hfs_read_file): Likewise.
47809 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47811 * fs/jfs.c (grub_jfs_read_file): Likewise.
47813 * fs/minix.c (grub_minix_read_file): Likewise.
47815 * fs/sfs.c (grub_sfs_read_file): Likewise.
47817 * fs/ufs.c (grub_ufs_read_file): Likewise.
47819 * fs/xfs.c (grub_xfs_read_file): Likewise.
47821 * command/blocklist.c (read_blocklist): Likewise.
47822 (print_blocklist): Likewise.
47824 2007-08-02 Marco Gerards <marco@gnu.org>
47826 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47829 * disk/host.c: New file.
47831 * util/hostfs.c: Likewise.
47833 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47834 return `GRUB_ERR_BAD_FS'.
47835 * fs/sfs.c (grub_sfs_mount): Likewise.
47836 * fs/xfs.c (grub_xfs_mount): Likewise.
47838 * include/grub/disk.h (enum grub_disk_dev_id): Add
47839 `GRUB_DISK_DEVICE_HOST_ID'.
47841 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47843 2007-07-24 Jerone Young <jerone@gmail.com>
47845 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47846 modules for compilation.
47847 * conf/powerpc-ieee1275.rmk: Likewise.
47849 * include/multiboot.h: Move multiboot definitions to one file. Rename
47850 many definitions to not get grub specific.
47851 * include/multiboot2.h: Create header with multiboot 2 definitions.
47852 * include/grub/multiboot.h: Header for grub specific function
47853 prototypes and definitions.
47854 * include/grub/multiboot2.h: Likewise.
47855 * include/grub/multiboot_loader.h: Likewise.
47856 * include/grub/i386/pc/multiboot.h: Removed.
47857 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47859 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47860 and 2 to allow for one multiboot and module commands.
47861 * loader/multiboot2.c: Add multiboot2 functionality.
47862 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47863 and definition names.
47864 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47866 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47867 ieee1275 specific multiboot2 code.
47869 * kern/i386/pc/startup.S: Change headers and definition names for
47870 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47872 2007-07-22 Robert Millan <rmh@aybabtu.com>
47874 * geninitheader.sh: Process file specified in first parameter rather
47875 than hardcoding grub_modules_init.lst.
47876 * geninit.sh: Likewise. Also, construct header name dynamically rather
47877 than hardcoding grub_modules_init.h.
47879 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47880 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47881 grub_probe_init.[ch] and grub_setup_init.[ch].
47883 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47884 grub_modules_init.h with grub_emu_init.h.
47885 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47886 grub_probe_init.[ch] files.
47887 * conf/i386-efi.rmk: Likewise.
47888 * conf/i386-pc.rmk: Likewise.
47889 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47890 grub_setup_init.[ch] files.
47892 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47893 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47894 to initialize modules rather than a list of hardcoded functions.
47895 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47896 grub_init_all() to initialize modules rather than a list of hardcoded
47899 2007-07-22 Robert Millan <rmh@aybabtu.com>
47901 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47902 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47904 2007-07-22 Robert Millan <rmh@aybabtu.com>
47906 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47907 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47908 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47909 flag when running on SmartFirmware.
47910 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47911 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47914 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47915 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47916 rather than decreasing it.
47918 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47919 there's not enough space to do it, fail in the same way as when it
47920 can't be done because there are no partitions.
47922 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47923 when nvsetenv failed.
47925 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47927 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47928 because this rule is automatically generated.
47929 (grub-mkrescue): Removed for the same reason as above.
47931 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47933 Migrate to GNU General Public License Version 3.
47935 * COPYING: Replaced with the plain text version of GPLv3.
47937 * config.guess: Updated from gnulib.
47938 * config.sub: Likewise.
47940 * geninit.sh: Output a GPLv3 copyright notice.
47941 * geninitheader.sh: Likewise.
47942 * genmodsrc.sh: Likewise.
47943 * gensymlist.sh.in: Likewise.
47945 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47946 * boot/i386/pc/diskboot.S: Likewise.
47947 * boot/i386/pc/pxeboot.S: Likewise.
47948 * commands/blocklist.c: Likewise.
47949 * commands/boot.c: Likewise.
47950 * commands/cat.c: Likewise.
47951 * commands/cmp.c: Likewise.
47952 * commands/configfile.c: Likewise.
47953 * commands/echo.c: Likewise.
47954 * commands/help.c: Likewise.
47955 * commands/ls.c: Likewise.
47956 * commands/search.c: Likewise.
47957 * commands/terminal.c: Likewise.
47958 * commands/test.c: Likewise.
47959 * commands/videotest.c: Likewise.
47960 * commands/i386/cpuid.c: Likewise.
47961 * commands/i386/pc/halt.c: Likewise.
47962 * commands/i386/pc/play.c: Likewise.
47963 * commands/i386/pc/reboot.c: Likewise.
47964 * commands/i386/pc/vbeinfo.c: Likewise.
47965 * commands/i386/pc/vbetest.c: Likewise.
47966 * commands/ieee1275/halt.c: Likewise.
47967 * commands/ieee1275/reboot.c: Likewise.
47968 * commands/ieee1275/suspend.c: Likewise.
47969 * disk/loopback.c: Likewise.
47970 * disk/lvm.c: Likewise.
47971 * disk/raid.c: Likewise.
47972 * disk/efi/efidisk.c: Likewise.
47973 * disk/i386/pc/biosdisk.c: Likewise.
47974 * disk/ieee1275/ofdisk.c: Likewise.
47975 * font/manager.c: Likewise.
47976 * fs/affs.c: Likewise.
47977 * fs/ext2.c: Likewise.
47978 * fs/fat.c: Likewise.
47979 * fs/fshelp.c: Likewise.
47980 * fs/hfs.c: Likewise.
47981 * fs/hfsplus.c: Likewise.
47982 * fs/iso9660.c: Likewise.
47983 * fs/jfs.c: Likewise.
47984 * fs/minix.c: Likewise.
47985 * fs/sfs.c: Likewise.
47986 * fs/ufs.c: Likewise.
47987 * fs/xfs.c: Likewise.
47988 * hello/hello.c: Likewise.
47989 * include/grub/acorn_filecore.h: Likewise.
47990 * include/grub/arg.h: Likewise.
47991 * include/grub/bitmap.h: Likewise.
47992 * include/grub/boot.h: Likewise.
47993 * include/grub/cache.h: Likewise.
47994 * include/grub/device.h: Likewise.
47995 * include/grub/disk.h: Likewise.
47996 * include/grub/dl.h: Likewise.
47997 * include/grub/elfload.h: Likewise.
47998 * include/grub/env.h: Likewise.
47999 * include/grub/err.h: Likewise.
48000 * include/grub/file.h: Likewise.
48001 * include/grub/font.h: Likewise.
48002 * include/grub/fs.h: Likewise.
48003 * include/grub/fshelp.h: Likewise.
48004 * include/grub/gzio.h: Likewise.
48005 * include/grub/hfs.h: Likewise.
48006 * include/grub/kernel.h: Likewise.
48007 * include/grub/loader.h: Likewise.
48008 * include/grub/lvm.h: Likewise.
48009 * include/grub/misc.h: Likewise.
48010 * include/grub/mm.h: Likewise.
48011 * include/grub/net.h: Likewise.
48012 * include/grub/normal.h: Likewise.
48013 * include/grub/parser.h: Likewise.
48014 * include/grub/partition.h: Likewise.
48015 * include/grub/pc_partition.h: Likewise.
48016 * include/grub/raid.h: Likewise.
48017 * include/grub/rescue.h: Likewise.
48018 * include/grub/script.h: Likewise.
48019 * include/grub/setjmp.h: Likewise.
48020 * include/grub/symbol.h: Likewise.
48021 * include/grub/term.h: Likewise.
48022 * include/grub/terminfo.h: Likewise.
48023 * include/grub/tparm.h: Likewise.
48024 * include/grub/types.h: Likewise.
48025 * include/grub/video.h: Likewise.
48026 * include/grub/efi/api.h: Likewise.
48027 * include/grub/efi/chainloader.h: Likewise.
48028 * include/grub/efi/console.h: Likewise.
48029 * include/grub/efi/console_control.h: Likewise.
48030 * include/grub/efi/disk.h: Likewise.
48031 * include/grub/efi/efi.h: Likewise.
48032 * include/grub/efi/pe32.h: Likewise.
48033 * include/grub/efi/time.h: Likewise.
48034 * include/grub/i386/linux.h: Likewise.
48035 * include/grub/i386/setjmp.h: Likewise.
48036 * include/grub/i386/types.h: Likewise.
48037 * include/grub/i386/efi/kernel.h: Likewise.
48038 * include/grub/i386/efi/loader.h: Likewise.
48039 * include/grub/i386/efi/time.h: Likewise.
48040 * include/grub/i386/pc/biosdisk.h: Likewise.
48041 * include/grub/i386/pc/boot.h: Likewise.
48042 * include/grub/i386/pc/chainloader.h: Likewise.
48043 * include/grub/i386/pc/console.h: Likewise.
48044 * include/grub/i386/pc/init.h: Likewise.
48045 * include/grub/i386/pc/kernel.h: Likewise.
48046 * include/grub/i386/pc/loader.h: Likewise.
48047 * include/grub/i386/pc/memory.h: Likewise.
48048 * include/grub/i386/pc/multiboot.h: Likewise.
48049 * include/grub/i386/pc/serial.h: Likewise.
48050 * include/grub/i386/pc/time.h: Likewise.
48051 * include/grub/i386/pc/vbe.h: Likewise.
48052 * include/grub/i386/pc/vbeblit.h: Likewise.
48053 * include/grub/i386/pc/vbefill.h: Likewise.
48054 * include/grub/i386/pc/vbeutil.h: Likewise.
48055 * include/grub/i386/pc/vga.h: Likewise.
48056 * include/grub/ieee1275/ieee1275.h: Likewise.
48057 * include/grub/ieee1275/ofdisk.h: Likewise.
48058 * include/grub/powerpc/libgcc.h: Likewise.
48059 * include/grub/powerpc/setjmp.h: Likewise.
48060 * include/grub/powerpc/types.h: Likewise.
48061 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48062 * include/grub/powerpc/ieee1275/console.h: Likewise.
48063 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48064 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48065 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48066 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48067 * include/grub/powerpc/ieee1275/time.h: Likewise.
48068 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48069 * include/grub/sparc64/libgcc.h: Likewise.
48070 * include/grub/sparc64/setjmp.h: Likewise.
48071 * include/grub/sparc64/types.h: Likewise.
48072 * include/grub/sparc64/ieee1275/console.h: Likewise.
48073 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48074 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48075 * include/grub/sparc64/ieee1275/time.h: Likewise.
48076 * include/grub/util/biosdisk.h: Likewise.
48077 * include/grub/util/getroot.h: Likewise.
48078 * include/grub/util/lvm.h: Likewise.
48079 * include/grub/util/misc.h: Likewise.
48080 * include/grub/util/raid.h: Likewise.
48081 * include/grub/util/resolve.h: Likewise.
48082 * io/gzio.c: Likewise.
48083 * kern/device.c: Likewise.
48084 * kern/disk.c: Likewise.
48085 * kern/dl.c: Likewise.
48086 * kern/elf.c: Likewise.
48087 * kern/env.c: Likewise.
48088 * kern/err.c: Likewise.
48089 * kern/file.c: Likewise.
48090 * kern/fs.c: Likewise.
48091 * kern/loader.c: Likewise.
48092 * kern/main.c: Likewise.
48093 * kern/misc.c: Likewise.
48094 * kern/mm.c: Likewise.
48095 * kern/parser.c: Likewise.
48096 * kern/partition.c: Likewise.
48097 * kern/rescue.c: Likewise.
48098 * kern/term.c: Likewise.
48099 * kern/efi/efi.c: Likewise.
48100 * kern/efi/init.c: Likewise.
48101 * kern/efi/mm.c: Likewise.
48102 * kern/i386/dl.c: Likewise.
48103 * kern/i386/efi/init.c: Likewise.
48104 * kern/i386/efi/startup.S: Likewise.
48105 * kern/i386/pc/init.c: Likewise.
48106 * kern/i386/pc/lzo1x.S: Likewise.
48107 * kern/i386/pc/startup.S: Likewise.
48108 * kern/ieee1275/ieee1275.c: Likewise.
48109 * kern/powerpc/cache.S: Likewise.
48110 * kern/powerpc/dl.c: Likewise.
48111 * kern/powerpc/ieee1275/cmain.c: Likewise.
48112 * kern/powerpc/ieee1275/crt0.S: Likewise.
48113 * kern/powerpc/ieee1275/init.c: Likewise.
48114 * kern/powerpc/ieee1275/openfw.c: Likewise.
48115 * kern/sparc64/cache.S: Likewise.
48116 * kern/sparc64/dl.c: Likewise.
48117 * kern/sparc64/ieee1275/init.c: Likewise.
48118 * kern/sparc64/ieee1275/openfw.c: Likewise.
48119 * loader/efi/chainloader.c: Likewise.
48120 * loader/efi/chainloader_normal.c: Likewise.
48121 * loader/i386/efi/linux.c: Likewise.
48122 * loader/i386/efi/linux_normal.c: Likewise.
48123 * loader/i386/pc/chainloader.c: Likewise.
48124 * loader/i386/pc/chainloader_normal.c: Likewise.
48125 * loader/i386/pc/linux.c: Likewise.
48126 * loader/i386/pc/linux_normal.c: Likewise.
48127 * loader/i386/pc/multiboot.c: Likewise.
48128 * loader/i386/pc/multiboot_normal.c: Likewise.
48129 * loader/powerpc/ieee1275/linux.c: Likewise.
48130 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48131 * normal/arg.c: Likewise.
48132 * normal/cmdline.c: Likewise.
48133 * normal/command.c: Likewise.
48134 * normal/completion.c: Likewise.
48135 * normal/execute.c: Likewise.
48136 * normal/function.c: Likewise.
48137 * normal/lexer.c: Likewise.
48138 * normal/main.c: Likewise.
48139 * normal/menu.c: Likewise.
48140 * normal/menu_entry.c: Likewise.
48141 * normal/misc.c: Likewise.
48142 * normal/parser.y: Likewise.
48143 * normal/script.c: Likewise.
48144 * normal/i386/setjmp.S: Likewise.
48145 * normal/powerpc/setjmp.S: Likewise.
48146 * normal/sparc64/setjmp.S: Likewise.
48147 * partmap/acorn.c: Likewise.
48148 * partmap/amiga.c: Likewise.
48149 * partmap/apple.c: Likewise.
48150 * partmap/gpt.c: Likewise.
48151 * partmap/pc.c: Likewise.
48152 * partmap/sun.c: Likewise.
48153 * term/gfxterm.c: Likewise.
48154 * term/terminfo.c: Likewise.
48155 * term/efi/console.c: Likewise.
48156 * term/i386/pc/console.c: Likewise.
48157 * term/i386/pc/serial.c: Likewise.
48158 * term/i386/pc/vesafb.c: Likewise.
48159 * term/i386/pc/vga.c: Likewise.
48160 * term/ieee1275/ofconsole.c: Likewise.
48161 * util/biosdisk.c: Likewise.
48162 * util/console.c: Likewise.
48163 * util/genmoddep.c: Likewise.
48164 * util/getroot.c: Likewise.
48165 * util/grub-emu.c: Likewise.
48166 * util/grub-mkdevicemap.c: Likewise.
48167 * util/grub-probe.c: Likewise.
48168 * util/lvm.c: Likewise.
48169 * util/misc.c: Likewise.
48170 * util/raid.c: Likewise.
48171 * util/resolve.c: Likewise.
48172 * util/update-grub.in: Likewise.
48173 * util/update-grub_lib.in: Likewise.
48174 * util/grub.d/00_header.in: Likewise.
48175 * util/grub.d/10_hurd.in: Likewise.
48176 * util/grub.d/10_linux.in: Likewise.
48177 * util/i386/efi/grub-install.in: Likewise.
48178 * util/i386/efi/grub-mkimage.c: Likewise.
48179 * util/i386/pc/grub-install.in: Likewise.
48180 * util/i386/pc/grub-mkimage.c: Likewise.
48181 * util/i386/pc/grub-mkrescue.in: Likewise.
48182 * util/i386/pc/grub-setup.c: Likewise.
48183 * util/i386/pc/misc.c: Likewise.
48184 * util/powerpc/ieee1275/grub-install.in: Likewise.
48185 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48186 * util/powerpc/ieee1275/misc.c: Likewise.
48187 * video/bitmap.c: Likewise.
48188 * video/video.c: Likewise.
48189 * video/i386/pc/vbe.c: Likewise.
48190 * video/i386/pc/vbeblit.c: Likewise.
48191 * video/i386/pc/vbefill.c: Likewise.
48192 * video/i386/pc/vbeutil.c: Likewise.
48193 * video/readers/tga.c: Likewise.
48195 2007-07-02 Robert Millan <rmh@aybabtu.com>
48197 * conf/i386-efi.rmk: Replace obsolete reference to
48198 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48199 with util/getroot.c.
48200 * conf/powerpc-ieee1275.rmk: Likewise.
48201 * conf/sparc64-ieee1275.rmk: Likewise.
48203 * util/grub-emu.c (main): Fix unchecked pointer handling.
48205 2007-07-02 Robert Millan <rmh@aybabtu.com>
48207 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48208 invocation to fail, in order to support partition-less media.
48210 * util/i386/pc/grub-install.in: Likewise.
48212 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48213 which fs or partmap modules are needed (akin to its sister scripts).
48215 Also use grub-probe to get rid of unportable /proc/mounts check.
48217 Print the same informational message that the other scripts do, before
48220 2007-06-23 Robert Millan <rmh@aybabtu.com>
48222 * util/update-grub_lib.in (font_path): New function. Determine whether
48223 a font file can be found and, if so, echo the GRUB path to it.
48225 * util/update-grub.in: Handle multiple terminals depending on user
48226 input, platform availability and font file presence. Propagate
48227 variables of our findings to /etc/grub.d/ children.
48229 * util/grub.d/00_header.in: Handle multiple terminals, based on
48230 environment setup by update-grub.
48232 2007-06-23 Robert Millan <rmh@aybabtu.com>
48234 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48236 2007-06-21 Robert Millan <rmh@aybabtu.com>
48238 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48239 indicate end of data section in kernel image.
48240 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48241 GRUB_KERNEL_MACHINE_DATA_END.
48243 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48245 * kern/i386/efi/startup.S: Likewise.
48247 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48248 during image generation. Implement --prefix option to override this
48250 * util/i386/efi/grub-mkimage.c: Likewise.
48252 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48253 code to make path relative to its root into a separate function.
48255 * util/i386/pc/grub-install.in: Use newly provided
48256 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48257 pass the result to grub-install --prefix.
48259 2007-06-13 Robert Millan <rmh@aybabtu.com>
48261 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48262 DEFAULT_DEVICE_MAP.
48263 * util/grub-emu.c: Use above definitions from misc.h instead of
48265 * util/grub-mkdevicemap.c: Likewise.
48266 * util/i386/pc/grub-setup.c: Likewise.
48267 * util/grub-probe.c: Likewise.
48268 (probe): Abort with grub_util_error() when either
48269 grub_guess_root_device or grub_util_get_grub_dev fails.
48271 2007-06-12 Robert Millan <rmh@aybabtu.com>
48273 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48274 "pager" assignment.
48275 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48277 * util/grub-probe.c (probe): Likewise for "drive_name".
48279 2007-06-11 Robert Millan <rmh@aybabtu.com>
48281 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48282 not just the cdrom one.
48284 2007-06-11 Robert Millan <rmh@aybabtu.com>
48286 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48287 Add --pkglibdir=DIR option to override pkglibdir.
48288 Mention --image-type=TYPE in help output.
48289 Fix --grub-mkimage (it was a no-op).
48290 Abort gracefully when no parameter is given.
48292 2007-06-11 Robert Millan <rmh@aybabtu.com>
48294 * util/i386/pc/grub-mkrescue.in: New file.
48295 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48296 * Makefile.in: Handle bin_SCRIPTS.
48298 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48300 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48301 list of video modes.
48303 2007-06-06 Robert Millan <rmh@aybabtu.com>
48305 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48306 file doesn't exist, or if it is in a filesystem grub can't read.
48308 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48309 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48310 header comment to fit in 80 columns when the variables are resolved.
48312 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48313 could be identified by update-grub. Remove redundant check for
48314 unifont.pff existence (since convert_system_path_to_grub_path now
48317 2007-06-04 Robert Millan <rmh@aybabtu.com>
48319 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48321 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48323 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48325 2007-06-04 Robert Millan <rmh@aybabtu.com>
48327 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48329 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48330 grub_apple_partition_map_fini.
48333 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48334 to access >2 TiB disks).
48336 Print disk->total_sectors with %llu instead of %lu, since this
48337 variable is always 64-bit (prevents wrong disk size from being displayed
48338 on either >2 TiB disk or big-endian CPU).
48340 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48341 into a generic case that supports all (sane) partition maps.
48343 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48346 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48347 and grub_apple_partition_map_fini() after that.
48349 2007-06-01 Robert Millan <rmh@aybabtu.com>
48351 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48353 * util/grub.d/00_header.in: Only enable gfxterm when
48354 convert_system_path_to_grub_path() succeeds.
48356 2007-05-20 Robert Millan <rmh@aybabtu.com>
48358 * util/update-grub_lib.in: New file.
48359 * DISTLIST: Add update-grub_lib.in.
48360 * conf/common.rmk: Generate update-grub_lib and install it in
48362 * Makefile.in: Add install routine for $(lib_DATA).
48364 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48365 function provided by update-grub_lib to support arbitrary paths of
48367 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48368 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48370 2007-05-19 Robert Millan <rmh@aybabtu.com>
48372 * commands/i386/cpuid.c: New module.
48373 * DISTLIST: Add it.
48374 * conf/i386-efi.rmk: Enable cpuid.mod.
48375 * conf/i386-pc.rmk: Likewise.
48377 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48379 * kern/disk.c (grub_disk_read): Check return value of
48382 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48384 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48386 * disk/raid.c (grub_raid_open): Likewise.
48388 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48390 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48391 stack instead of on the heap.
48393 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48394 before doing a read on it.
48396 * configure.ac: Only use -fno-stack-protector for the target
48399 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48401 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48402 __attribute_ ((unused)) to mode_type argument.
48404 * util/getroot.c (grub_guess_root_device): Fix #endif.
48406 * kern/misc.c (memcmp): Fix prototype.
48408 * include/grub/partition.h [GRUB_UTIL]
48409 (grub_gpt_partition_map_init): Add prototype.
48410 (grub_gpt_partition_map_fini): Likewise.
48412 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48413 at the right place.
48415 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48416 (grub_fat_read_data): Likewise.
48417 (grub_fat_find_dir): Likewise.
48419 * font/manager.c (find_glyph): Make table a const.
48420 (grub_font_get_glyph): Remove bitmap from if statement.
48422 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48424 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48425 code, first search for device in /dev/mapper, then in /dev.
48426 (grub_util_get_grub_dev): New function.
48427 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48429 * util/grub-probe.c (probe): Remove check for RAID, call
48430 grub_util_get_grub_dev() instead of
48431 grub_util_biosdisk_get_grub_dev().
48432 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48433 grub_util_biosdisk_get_grub_dev().
48434 * util/i386/pc/grub-setup.c (main): Likewise.
48436 2007-05-16 Robert Millan <rmh@aybabtu.com>
48438 * DISTLIST: Update for the latest changes.
48439 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48440 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48441 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48442 grub/util/biosdisk.h.
48443 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48444 grub/util/biosdisk.h.
48446 2007-05-16 Robert Millan <rmh@aybabtu.com>
48448 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48450 2007-05-16 Robert Millan <rmh@aybabtu.com>
48452 * util/i386/efi/grub-install.in: New.
48453 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48454 newly added grub-install.
48455 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48457 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48458 grub/util/biosdisk.h.
48459 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48460 grub/util/biosdisk.h.
48462 2007-05-16 Robert Millan <rmh@aybabtu.com>
48464 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48465 * include/grub/util/biosdisk.h: ... here.
48466 * util/i386/pc/biosdisk.c: Moved to ...
48467 * util/biosdisk.c: ... here.
48468 * util/i386/pc/getroot.c: Moved to ...
48469 * util/getroot.c: ... here.
48470 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48471 * util/grub-mkdevicemap.c: ... here.
48472 * util/i386/pc/grub-probe.c: Moved to ...
48473 * util/grub-probe.c: ... here.
48475 2007-05-15 Robert Millan <rmh@aybabtu.com>
48477 * util/update-grub.in: Remove duplicated line in grub.cfg header
48480 2007-05-13 Robert Millan <rmh@aybabtu.com>
48482 * util/update-grub.in: Fix a few assumptions about the devices holding
48483 /, /boot and /boot/grub being the same.
48484 * util/grub.d/00_header.in: Likewise.
48485 * util/grub.d/10_hurd.in: Likewise.
48486 * util/grub.d/10_linux.in: Likewise.
48488 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48489 patterns. Use that to define the `.old' suffix as older than `'.
48491 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48493 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48494 the grub.cfg header message.
48496 2007-05-11 Robert Millan <rmh@aybabtu.com>
48498 * util/update-grub.in: Create device.map if it doesn't already exist,
48499 before attempting to run grub-probe.
48500 Check for grub-probe and grub-mkdevicemap with the same code
48501 grub-install is using.
48504 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48506 * Makefile.in: Add the datarootdir autoconf variable.
48508 2007-05-09 Robert Millan <rmh@aybabtu.com>
48510 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48511 fail gracefully if dev->disk->partition == NULL.
48513 2007-05-07 Robert Millan <rmh@aybabtu.com>
48515 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48516 determine partition map module.
48517 * util/i386/pc/grub-install.in: Use this feature to decide which
48518 partition module to load, instead of hardcoding pc and gpt.
48520 2007-05-07 Robert Millan <rmh@aybabtu.com>
48522 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48523 source directory differs from build directory.
48525 2007-05-05 Robert Millan <rmh@aybabtu.com>
48527 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48530 2007-05-05 Robert Millan <rmh@aybabtu.com>
48532 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48534 2007-05-05 Robert Millan <rmh@aybabtu.com>
48536 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48537 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48539 2007-05-05 Robert Millan <rmh@aybabtu.com>
48541 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48542 (grub_probe_SOURCES): Likewise.
48543 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48544 GPT and initialize dos_part and bsd_part accordingly.
48545 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48547 (main): Activate gpt module for use during partition identification,
48548 and deactivate it afterwards.
48549 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48550 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48551 partition identification, and deactivate it afterwards.
48553 2007-05-05 Robert Millan <rmh@aybabtu.com>
48555 * term/i386/pc/console.c (grub_console_fini): Call
48556 grub_term_set_current() before grub_term_unregister().
48558 2007-05-04 Robert Millan <rmh@aybabtu.com>
48560 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48561 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48562 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48563 and update-grub_DATA.
48564 * conf/common.rmk: Build and install update-grub components.
48565 * conf/common.mk: Regenerate.
48566 * util/update-grub.in: New. Core of update-grub.
48567 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48568 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48569 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48570 * util/grub.d/README: New. Document grub.d directory layout.
48572 2007-05-01 Robert Millan <rmh@aybabtu.com>
48574 * util/grub-emu.c: Move initialization functions
48575 grub_util_biosdisk_init() and grub_init_all() before
48576 grub_util_biosdisk_get_grub_dev(), which relies on them.
48578 2007-04-19 Robert Millan <rmh@aybabtu.com>
48580 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48583 2007-04-18 Jerone Young <jerone@gmail.com>
48585 * kernel/elf.c: Add missing parenthesis for conditional statement
48588 2007-04-10 Jerone Young <jerone@gmail.com>
48590 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48591 continue on and look for device node with real device name.
48593 2007-04-10 Jerone Young <jerone@gmail.com>
48595 * configure.ac: Add argument for autoconf to use transformation
48597 * Makefile.in: Add autoconf package transformation code.
48598 * util/i386/pc/grub-install.in: Likewise.
48599 * util/powerpc/ieee1275/grub-install.in: Likewise.
48601 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48603 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48604 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48605 (EXT2_REVISION): Likewise.
48606 (EXT2_INODE_SIZE): Likewise.
48607 (struct grub_ext2_block_group): Added a missing member
48609 (grub_ext2_read_inode): Divide by the inode size in a superblock
48610 instead of 128 to obtain INODES_PER_BLOCK.
48611 Use the macro EXT2_INODE_SIZE instead of directly using
48612 SBLOCK->INODE_SIZE.
48614 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48616 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48617 superblock instead of the structure size to compute an
48618 offset. This fixes the problem that GRUB could not read a
48619 filesystem when inode size is different from 128-byte.
48621 2007-03-05 Marco Gerards <marco@gnu.org>
48623 * normal/main.c (read_config_file): When "menu" is not set, create
48624 an initial context.
48626 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48628 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48629 (HEAP_LIMIT): New macro.
48630 (grub_claim_heap): Claim memory up to `heaplimit'.
48632 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48634 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48635 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48636 (_start): Likewise.
48637 (grub_arch_modules_addr): Return address after `_end'.
48638 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48639 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48640 (add_segments): Calculate `_end' from phdr size and location.
48641 (ALIGN_UP): Moved to ...
48642 * include/grub/misc.h: here.
48643 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48645 (GRUB_IEEE1275_MODULE_BASE): Removed.
48647 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48649 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48652 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48654 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48656 (grub_elf64_load_hook_t): Likewise.
48657 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48660 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48662 * kern/mm.c: Update copyright.
48663 (grub_mm_debug): Correct syntax error.
48664 (grub_mm_dump_free): New function.
48665 (grub_debug_free): Call `grub_free'.
48666 * include/grub/mm.h: Update copyright.
48667 (grub_mm_dump_free): Add declaration.
48669 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48671 * include/grub/ieee1275/ieee1275.h: Update copyright.
48672 * kern/powerpc/ieee1275/init.c: Likewise.
48673 * kern/powerpc/ieee1275/openfw.c: Likewise.
48675 * loader/powerpc/ieee1275/linux.c: Likewise.
48676 * include/grub/elfload.h: Likewise.
48677 * kern/elf.c: Likewise.
48678 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48680 (grub_elf64_load): Likewise.
48681 (grub_elf32_load_segment): Move to a nested function.
48682 (grub_elf64_load_segment): Likewise.
48684 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48686 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48688 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48689 (grub_heap_len): Likewise.
48690 (HEAP_SIZE): New macro.
48691 (grub_claim_heap): New function.
48692 (grub_machine_init): Don't claim heap directly. Call
48694 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48695 (grub_available_iterate): New function.
48697 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48699 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48700 * configure.ac: Use it for testing the HOST and TARGET compilers.
48702 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48704 * Makefile.in (enable_grub_emu): New variable.
48705 * configure.ac (--enable-grub-emu): New option.
48706 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48707 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48708 * conf/i386-pc.rmk: Likewise.
48709 * conf/powerpc-ieee1275.rmk: Likewise.
48710 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48712 2006-12-12 Marco Gerards <marco@gnu.org>
48714 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48716 * kern/env.c (grub_env_unset): Don't free the member `value' when
48717 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48720 * normal/main.c (current_menu): Removed.
48721 (free_menu): Unset the `menu' environment variable.
48722 (grub_normal_menu_addentry): Make use of the environment variable
48723 `menu', instead of using the global `current_menu'. Allocate
48724 memory for the sourcecode of this entry.
48725 (read_config_file): New argument `nested', changed all callers.
48726 Only in the case of a new context, initialize a new menu. Set the
48727 `menu' environment variable.
48728 (grub_normal_execute): Don't set and unset the environment
48729 variable `menu' here anymore. Only free the menu when leaving the
48732 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48735 2006-12-11 Marco Gerards <marco@gnu.org>
48737 * normal/menu_entry.c (run): Fix off by one bug so the last line
48738 is executed. Move the loader check to outside the loop.
48740 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48742 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48744 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48746 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48747 the number of sectors. Reported by Andrey Shuvikov
48748 <mr_hyro@yahoo.com>.
48750 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48752 * kern/disk.c (grub_disk_read): When there is a read error, always
48753 try to read only the necessary data.
48755 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48757 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48759 [GRUB_UTIL] (grub_raid_fini): Likewise.
48760 [GRUB_UTIL] (grub_lvm_init): Likewise.
48761 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48762 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48763 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48764 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48765 and grub_raid_fini().
48767 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48769 * include/grub/types.h (__unused): Rename to UNUSED.
48770 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48771 (grub_elf64_size): Likewise.
48773 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48775 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48776 grub_error_push and grub_error_pop in the error-handling path.
48777 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48780 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48782 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48783 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48784 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48785 (kernel_elf_SOURCES): Likewise.
48786 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48787 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48788 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48789 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48790 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48791 (elf_mod_SOURCES): New variable.
48792 (elf_mod_CFLAGS): Likewise.
48793 (elf_mod_LDFLAGS): Likewise.
48794 * include/grub/types.h (__unused): New macro.
48795 * include/grub/elfload.h: New file.
48796 * kern/elf.c: Likewise.
48797 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48798 (ELF32_LOADMASK): New macro.
48799 (ELF64_LOADMASK): Likewise.
48800 (vmlinux): Removed.
48801 (grub_linux_load32): New function.
48802 (grub_linux_load64): Likewise.
48803 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48804 Use grub_elf_t instead of grub_file_t.
48806 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48808 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48809 `catch_result' to struct set_color_args.
48811 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48813 * normal/menu.c: Include grub/script.h.
48814 * normal/menu_entry.c: Likewise.
48815 * include/grub/normal.h: Do not include grub/script.h.
48817 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48819 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48821 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48823 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48825 (grub_disk_close): Print debug messages when closing a disk.
48826 (grub_disk_read): Print debug messages when disk read fails.
48827 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48829 * kern/partition.c: Include misc.h.
48830 (grub_partition_iterate): Print debug messages when detecting
48833 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48835 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48837 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48839 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48841 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48842 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48844 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48846 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48847 instead of sizeof(lv). Patch by Michael Guntsche.
48849 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48851 * disk/lvm.c: Rename VGS to VG_LIST.
48852 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48853 (grub_lvm_open): Likewise.
48854 Thanks to Michael Guntsche for finding this bug.
48856 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48858 * configure.ac (AC_INIT): Bumped to 1.95.
48860 2006-10-14 Robert Millan <rmh@aybabtu.com>
48862 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48863 with "/dev/.static/dev/md".
48865 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48867 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48868 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48869 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48870 DRIVE_NAME are always freed.
48872 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48873 DOS_PART, as a DOS partition is counted from one instead of zero
48874 now. Reported by Robert Millan.
48876 2006-10-14 Robert Millan <rmh@aybabtu.com>
48878 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48879 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48880 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48881 string returned by grub_guess_root_device.
48882 * util/i386/pc/grub-setup.c: Likewise.
48883 * util/i386/pc/grub-probefs.c: Likewise.
48885 * util/i386/pc/grub-probefs.c: Rename to ...
48886 * util/i386/pc/grub-probe.c: ... this.
48887 * DISTLIST: Remove grub-probefs, add grub-probe.
48888 * conf/i386-efi.rmk: Likewise.
48889 * conf/i386-pc.rmk: Likewise.
48890 * util/i386/pc/grub-install.in: Likewise.
48892 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48893 choose which information we want to print.
48895 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48897 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48898 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48899 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48900 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48901 video/readers/tga.c and video/i386/pc/vbeutil.c.
48903 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48905 Added support for RAID and LVM.
48907 * disk/lvm.c: New file.
48908 * disk/raid.c: Likewise.
48909 * include/grub/lvm.h: Likewise.
48910 * include/grub/raid.h: Likewise.
48911 * include/grub/util/lvm.h: Likewise.
48912 * include/grub/util/raid.h: Likewise.
48913 * util/lvm.c: Likewise.
48914 * util/raid.c: Likewise.
48916 * include/grub/disk.h (grub_disk_dev_id): Add
48917 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48918 (grub_disk_get_size): New prototype.
48919 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48920 returns a partition.
48921 (grub_disk_get_size): New function.
48923 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48924 verbatim if grub_install_dos_part is -2.
48926 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48929 * util/i386/pc/grub-setup.c (setup): New argument
48930 MUST_EMBED. Force embedding of GRUB when the argument is
48931 true. Close FILE before returning.
48932 (main): Add support for RAID and LVM.
48934 * conf/common.rmk: Add RAID and LVM modules.
48935 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48937 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48939 * kern/misc.c (grub_strstr): New function.
48940 * include/grub/misc.h (grub_strstr): New prototype.
48942 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48944 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48946 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48948 * kern/misc.c (grub_strtoull): Guess the base only if not
48951 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48953 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48956 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48958 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48960 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48961 Remove `flags' argument. All callers changed.
48962 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48963 (IEEE1275_IHANDLE_INVALID): New variable.
48964 (IEEE1275_CELL_INVALID): New variable.
48965 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48966 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48967 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48968 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48969 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48970 codes from Open Firmware. All callers updated.
48971 (grub_ieee1275_next_property): Directly return Open Firmware return
48973 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48974 Standardize error checking from `grub_ieee1275_get_property'.
48975 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48976 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48978 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48980 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48981 `instance_to_package_args' to `instance_to_path_args'.
48983 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48984 `grub_ieee1275_chosen'.
48986 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48987 `grub_ieee1275_interpret'.
48989 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48991 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48993 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48995 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48996 (__cmpdi): Likewise.
48998 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48999 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
49002 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
49004 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
49005 to type `grub_ssize_t'.
49006 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
49008 2006-09-22 Marco Gerards <marco@gnu.org>
49010 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49013 2006-09-22 Marco Gerards <marco@gnu.org>
49015 * commands/echo.c: New file.
49017 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49019 * conf/common.rmk (echo_mod_SOURCES): New variable.
49020 (echo_mod_CFLAGS): Likewise.
49021 (echo_mod_LDFLAGS): Likewise.
49023 2006-09-22 Marco Gerards <marco@gnu.org>
49025 * normal/main.c (get_line): Malloc memory instead of using
49026 preallocated memory. Removed the arguments `cmdline' and
49027 `max_len'. Updated all callers.
49029 2006-09-22 Marco Gerards <marco@gnu.org>
49031 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49032 (normal_mod_DEPENDENCIES): Likewise.
49034 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49035 (normal_mod_DEPENDENCIES): Likewise.
49037 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49039 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
49041 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49043 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49044 (normal_mod_DEPENDENCIES): Likewise.
49045 * conf/i386-pc.mk: Regenerate.
49046 * conf/i386-efi.mk: Likewise
49047 * conf/common.mk: Likewise.
49048 * conf/powerpc-ieee1275.mk: Likewise.
49049 * conf/sparc64-ieee1275.mk: Likewise.
49051 2006-09-22 Robert Millan <rmh@aybabtu.com>
49053 Sync with i386 version.
49054 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49055 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49057 2006-09-21 Robert Millan <rmh@aybabtu.com>
49059 Import from GRUB Legacy (lib/device.c):
49060 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49061 (init_device_map) [__linux__]: Add support for I2O devices.
49063 2006-09-14 Marco Gerards <marco@gnu.org>
49065 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49068 2006-09-14 Robert Millan <rmh@aybabtu.com>
49070 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49073 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49075 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49076 before adding it to device.map.
49078 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49080 * genmk.rb: Let GCC generate dependencies the first time it
49081 compiles a file; using the -MD option.
49082 * conf/common.mk: Regenerate.
49083 * conf/i386-pc.mk: Likewise.
49084 * conf/i386-efi.mk: Likewise.
49085 * conf/powerpc-ieee1275.mk: Likewise.
49086 * conf/sparc64-ieee1275.mk: Likewise.
49088 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49090 Move the prototypes of grub_setjmp and grub_longjmp to
49091 cpu/setjmp.h, so that each architecture may specify different
49094 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49095 (grub_longjmp): Likewise.
49096 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49097 (grub_longjmp): Likewise.
49098 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49099 (grub_longjmp): Likewise.
49101 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49102 [!GRUB_UTIL] (grub_longjmp): Removed.
49104 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49106 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49107 "color!" method does not return any value.
49109 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49111 * include/grub/bitmap.h: New file.
49113 * include/grub/i386/pc/vbeutil.h: Likewise.
49115 * video/bitmap.c: Likewise.
49117 * video/readers/tga.c: Likewise.
49119 * video/i386/pc/vbeutil.c: Likewise.
49121 * commands/videotest.c: Code cleanup and updated to reflect to new
49124 * term/gfxterm.c: Likewise.
49126 * video/video.c: Likewise.
49128 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49129 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49130 (bitmap_mod_SOURCES): New entry.
49131 (bitmap_mod_CFLAGS): Likewise.
49132 (bitmap_mod_LDFLAGS): Likewise.
49133 (tga_mod_SOURCES): Likewise.
49134 (tga_mod_CFLAGS): Likewise.
49135 (tga_mod_LDFLAGS): Likewise.
49137 * include/grub/video.h (grub_video_blit_operators): New enum type.
49138 (grub_video_render_target): Changed as forward declaration and moved
49139 actual definition to be video driver specific.
49140 (grub_video_adapter.blit_bitmap): Added blitting operator.
49141 (grub_video_adapter.blit_render_target): Likewise.
49142 (grub_video_blit_bitmap): Likewise.
49143 (grub_video_blit_render_target): Likewise.
49145 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49146 driver specific render target definition.
49147 (grub_video_vbe_map_rgba): Added driver internal helper.
49148 (grub_video_vbe_unmap_color): Updated to use
49149 grub_video_i386_vbeblit_info.
49150 (grub_video_vbe_get_video_ptr): Likewise.
49152 * include/grub/i386/pc/vbeblit.h
49153 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49154 grub_video_i386_vbeblit_info.
49155 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49156 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49157 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49158 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49159 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49160 (grub_video_i386_vbeblit_index_index): Likewise.
49161 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49162 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49163 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49164 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49166 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49169 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49170 include/grub/i386/pc/vbeblit.h.
49172 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49173 Updated to use grub_video_i386_vbeblit_info.
49174 (grub_video_i386_vbefill_R8G8B8): Likewise.
49175 (grub_video_i386_vbefill_index): Likewise.
49176 (grub_video_i386_vbefill): Added generic filler.
49178 * video/i386/pc/vbefill.c: Updated to reflect changes on
49179 include/grub/i386/pc/vbefill.h.
49181 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49182 grub_video_i386_vbeblit_info.
49183 (grub_video_vbe_unmap_color): Likewise.
49184 (grub_video_vbe_blit_glyph): Likewise.
49185 (grub_video_vbe_scroll): Likewise.
49186 (grub_video_vbe_draw_pixel): Removed function.
49187 (grub_video_vbe_get_pixel): Likewise.
49188 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49189 updated code to use it.
49190 (common_blitter): Added common blitter for render target and bitmap.
49191 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49192 (grub_video_vbe_blit_render_target): Likewise.
49194 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49196 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49197 is in text mode if there is no console control protocol instance
49200 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49202 * include/grub/video.h: Code cleanup.
49204 * include/grub/i386/pc/vbe.h: Likewise.
49206 * video/i386/pc/vbe.c: Likewise.
49208 * video/i386/pc/vbeblit.c: Likewise.
49210 * video/i386/pc/vbefill.c: Likewise.
49212 * video/video.c: Likewise. Also added more comments.
49214 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49216 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49217 (struct grub_biosdisk_dap): Likewise.
49219 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49220 linkage settings for all functions.
49222 2006-07-12 Marco Gerards <marco@gnu.org>
49224 * configure.ac (--enable-mm-debug): Fix typo.
49226 * genkernsyms.sh.in: Use proper quoting for `CC'.
49228 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49230 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49231 (normal_mod_ASFLAGS): Remove "-m32".
49233 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49235 * util/misc.c: Include config.h.
49236 [!HAVE_MEMALIGN]: Do not include malloc.h.
49237 (grub_memalign): Use posix_memalign, if present. Then, use
49238 memalign, if present. Otherwise, emit an error.
49240 * util/grub-emu.c: Do not include malloc.h.
49242 * include/grub/util/misc.h: Include unistd.h. This is required for
49243 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49244 D. Eades III <hde@foobar-qux.org>.
49246 * configure.ac (AC_GNU_SOURCE): Added.
49247 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49250 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49252 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49253 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49255 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49257 * include/grub/types.h (grub_host_addr_t): Rename to
49258 grub_target_addr_t.
49259 (grub_host_off_t): Rename to grub_target_off_t.
49260 (grub_host_size_t): Rename to grub_target_size_t.
49261 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49262 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49264 * include/grub/kernel.h (struct grub_module_header): Change type
49265 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49266 (grub_module_info): Likewise.
49268 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49270 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49271 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49272 Velazquez <jesus.velazquez@gmail.com>.
49274 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49276 Count partitions from 1 instead of 0 in the string representation
49277 of partitions. Still use 0-based internally.
49279 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49280 (sun_partition_map_iterate): Use grub_partition_t instead of
49281 struct grub_partition *. Cast DESC->START_CYLINDER to
49282 grub_uint64_t after converting the endian.
49283 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49284 (sun_partition_map_get_name): Add 1 to P->INDEX.
49286 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49288 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49290 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49291 zero instead of one.
49292 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49293 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49295 * partmap/apple.c (apple_partition_map_iterate): Change the type
49296 of POS to unsigned.
49297 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49298 (apple_partition_map_get_name): Add 1 into P->INDEX.
49300 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49301 of POS to unsigned.
49302 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49303 calculate the offset of a partition.
49304 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49305 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49307 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49308 SECTOR to grub_disk_addr_t.
49309 (acorn_partition_map_iterate): Likewise.
49310 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49311 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49313 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49315 * kern/i386/pc/init.c (make_install_device): Add 1 into
49316 GRUB_INSTALL_DOS_PART.
49318 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49321 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49323 Clean up the code to support 64-bit addressing in disks and
49324 files. This change is not enough for filesystems yet.
49326 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49327 type of "start" to grub_uint64_t.
49328 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49329 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49330 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49333 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49334 to grub_disk_addr_t.
49336 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49339 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49341 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49344 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49346 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49348 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49350 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49351 to grub_off_t, to detect an error from grub_file_seek.
49352 (grub_multiboot_load_elf32): Likewise.
49354 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49355 maximum unsigned long value when an overflow is detected.
49356 (grub_strtoull): New function.
49357 (grub_divmod64): Likewise.
49358 (grub_lltoa): use grub_divmod64.
49360 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49362 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49363 the pointer to next character. Use grub_strtoull instead of
49365 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49366 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49369 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49370 return value is signed.
49371 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49372 test if OFFSET is less than zero, as OFFSET is unsigned now.
49374 * kern/disk.c (struct grub_disk_cache): Change the type of
49375 "sector" to grub_disk_addr_t.
49376 (grub_disk_cache_get_index): Change the type of SECTOR to
49377 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49378 unsigned after shifting.
49379 (grub_disk_cache_invalidate): Change the type of SECTOR to
49381 (grub_disk_cache_unlock): Likewise.
49382 (grub_disk_cache_store): Likewise.
49383 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49384 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49385 grub_disk_addr_t and grub_uint64_t, respectively.
49386 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49387 body, as the value of OFFSET is tweaked by
49388 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49389 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49391 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49392 body, as the value of OFFSET is tweaked by
49393 grub_disk_check_range. Change the types of LEN and N to
49396 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49397 and "saved_offset" to grub_off_t.
49398 (test_header): Cast BUF to char *.
49399 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49401 (grub_gzio_read): Change the types of OFFSET and SIZE to
49402 grub_off_t and grub_size_t, respectively.
49404 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49406 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49407 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49408 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49409 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49410 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49412 * include/grub/types.h (grub_off_t): Unconditionally set to
49414 (grub_disk_addr_t): Changed to grub_uint64_t.
49416 * include/grub/partition.h (struct grub_partition): Change the
49417 types of "start", "len" and "offset" to grub_disk_addr_t,
49418 grub_uint64_t and grub_disk_addr_t, respectively.
49419 (grub_partition_get_start): Return grub_disk_addr_t.
49420 (grub_partition_get_len): Return grub_uint64_t.
49422 * include/grub/misc.h (grub_strtoull): New prototype.
49423 (grub_divmod64): Likewise.
49425 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49426 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49427 grub_off_t, respectively.
49428 All callers and references changed.
49430 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49431 grub_size_t in "read".
49432 All callers and references changed.
49434 * include/grub/file.h (struct grub_file): Change the types of
49435 "offset" and "size" to grub_off_t and grub_off_t,
49436 respectively. Change the type of SECTOR to grub_disk_addr_t in
49438 (grub_file_read): Change the type of LEN to grub_size_t.
49439 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49441 (grub_file_size): Return grub_off_t.
49442 (grub_file_tell): Likewise.
49443 All callers and references changed.
49445 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49446 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49448 (struct grub_disk): Change the type of "total_sectors" to
49449 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49451 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49452 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49453 (grub_disk_write): Likewise.
49454 All callers and references changed.
49456 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49457 char * for grub_strncmp to silence gcc.
49458 (grub_iso9660_mount): Likewise.
49459 (grub_iso9660_mount): Likewise.
49460 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49462 (grub_iso9660_iterate_dir): Likewise.
49463 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49465 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49466 LEN to grub_disk_addr_t and grub_size_t, respectively.
49468 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49470 * fs/jfs.c (grub_jfs_read_file): Likewise.
49472 * fs/minix.c (grub_jfs_read_file): Likewise.
49474 * fs/sfs.c (grub_jfs_read_file): Likewise.
49476 * fs/ufs.c (grub_jfs_read_file): Likewise.
49478 * fs/xfs.c (grub_jfs_read_file): Likewise.
49480 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49481 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49484 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49485 BLKNR to -1 instead of returning GRUB_ERRNO.
49486 (grub_ext2_read_file): Change the types of SECTOR and
49487 LEN to grub_disk_addr_t and grub_size_t, respectively.
49489 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49490 LEN to grub_disk_addr_t and grub_size_t, respectively.
49492 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49495 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49496 string. Do not cast SECTOR explicitly.
49498 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49499 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49500 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49501 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49502 over 2TB and LBA mode is not supported, raise an error.
49503 (get_safe_sectors): New function.
49504 (grub_biosdisk_read): Use get_safe_sectors.
49505 (grub_biosdisk_write): Likewise.
49507 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49508 (grub_efidisk_write): Likewise.
49510 * disk/loopback.c (delete_loopback): Cosmetic changes.
49511 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49513 (grub_loopback_open): Likewise.
49514 (grub_loopback_read): Likewise. Also, change the type of POS to
49515 grub_off_t, and fix the usage of grub_memset.
49517 * commands/i386/pc/play.c: Include grub/machine/time.h.
49519 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49522 * commands/configfile.c: Include grub/env.h.
49524 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49525 GRUB_ERRNO directly instead. Change the type of POS to
49526 grub_off_t. Follow the coding standard.
49528 * commands/blocklist.c: Include grub/partition.h.
49529 (grub_cmd_blocklist): Return an error if the underlying device is
49530 not a disk. Take the starting sector of a partition into account,
49531 if a partition is used.
49533 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49535 (lba_mode): Support 64-bit addresses.
49536 (chs_mode): Likewise.
49537 (copy_buffer): Adapted to the new offsets of a length field and a
49539 (blocklist_default_start): Allocate 64-bit space.
49541 * boot/i386/pc/boot.S (force_lba): Removed.
49542 (boot_drive): Moved to under KERNEL_SECTOR.
49543 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49545 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49547 (lba_mode): Refactored to support a 64-bit address. More size
49549 (setup_sectors): Likewise.
49551 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49553 * DISTLIST: Added include/grub/i386/linux.h. Removed
49554 include/grub/i386/pc/linux.h
49556 * configure.ac (AC_INIT): Bumped to 1.94.
49558 * config.guess: Updated from gnulib.
49559 * config.sub: Likewise.
49560 * install-sh: Likewise.
49561 * mkinstalldirs: Likewise.
49563 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49565 * conf/common.rmk (grub_modules_init.lst): Depended on
49566 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49569 * genmk.rb (PModule::rule): Reverted the previous change.
49571 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49573 * conf/common.rmk (grub_modules_init.lst): Depends on
49574 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49575 that the target does not exist before producing.
49576 (grub_modules_init.h): Remove the target before generating.
49577 (grub_emu_init.c): Likewise.
49579 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49581 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49583 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49584 for the target-specific tests. Make sure that we also have the
49585 up-to-date target variables for those tests.
49587 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49589 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49590 (PModule::rule): Likewise.
49592 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49594 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49595 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49596 target-specific flags should be prefixed.
49597 (PModule::rule): Likewise.
49599 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49601 * configure.ac (CMP): Check if cmp is available explicitly.
49603 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49605 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49606 (target_cpu): New variable.
49607 (pkglibdir): Use target_cpu instead of host_cpu.
49609 * util/i386/pc/grub-install.in (host_cpu): Removed.
49610 (target_cpu): New variable.
49611 (pkglibdir): Use target_cpu instead of host_cpu.
49613 * util/genmoddep.c: Removed.
49615 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49616 instead of GRUB_HOST_SIZEOF_VOID_P.
49617 * kern/dl.c: Likewise.
49619 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49621 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49622 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49623 (GRUB_TARGET_SIZEOF_LONG): ... this.
49624 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49625 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49626 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49628 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49629 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49630 (GRUB_TARGET_SIZEOF_LONG): ... this.
49631 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49632 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49633 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49635 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49636 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49637 (GRUB_TARGET_SIZEOF_LONG): ... this.
49638 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49639 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49641 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49642 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49643 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49644 instead of GRUB_HOST_SIZEOF_LONG.
49645 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49646 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49647 GRUB_CPU_WORDS_BIGENDIAN.
49648 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49649 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49652 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49653 (genmoddep_SOURCES): Likewise.
49654 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49655 (genmoddep_SOURCES): Likewise.
49656 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49657 (genmoddep_SOURCES): Likewise.
49658 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49660 (genmoddep_SOURCES): Likewise.
49662 * genmoddep.awk: New file.
49664 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49665 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49666 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49667 (PModule::rule): Likewise.
49668 (Program::rule): Likewise.
49669 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49670 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49673 * configure.ac: Rewritten intensively to use host and target
49674 instead of build and host, respectively.
49676 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49677 (host_cpu): Removed.
49678 (target_cpu): New variable.
49679 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49680 (BUILD_CC): Removed.
49681 (BUILD_CFLAGS): Likewise.
49682 (BUILD_CPPFLAGS): Likewise.
49683 (TARGET_CC): New variable.
49684 (TARGET_CFLAGS): Likewise.
49685 (TARGET_CPPFLAGS): Likewise.
49686 (TARGET_LDFLAGS): Likewise.
49688 (include): Use target_cpu instead of host_cpu.
49689 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49691 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49693 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49695 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49696 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49697 field 'false' to 'exec_on_false'.
49698 (grub_script_create_cmdif): Renamed argument names to reflect above
49701 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49703 * normal/script.c (grub_script_create_cmdif): Likewise.
49705 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49707 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49709 (grub_hfsplus_btree_recptr): Likewise.
49710 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49711 FILEBLOCK both to pass a block number and store next block
49713 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49714 overflow file correctly. Specify errors appropriately, because
49715 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49716 grub_hfsplus_btree_recptr to get the pointer to a found key.
49717 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49720 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49722 (_linux_mod_SOURCES): New variable.
49723 (_linux_mod_CFLAGS): Likewise.
49724 (_linux_mod_LDFLAGS): Likewise.
49725 (linux_mod_SOURCES): Likewise.
49726 (linux_mod_CFLAGS): Likewise.
49727 (linux_mod_LDFLAGS): Likewise.
49729 * DISTLIST: Added loader/i386/efi/linux.c,
49730 loader/i386/efi/linux_normal.c and
49731 include/grub/i386/efi/loader.h.
49733 * loader/i386/efi/linux.c: New file.
49734 * loader/i386/efi/linux_normal.c: Likewise.
49735 * include/grub/i386/efi/loader.h: Likewise.
49737 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49739 * commands/blocklist.c: New file.
49741 * DISTLIST: Added commands/blocklist.c.
49743 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49744 color for the background, and a darker color for the foreground.
49745 (grub_console_checkkey): Return READ_KEY.
49746 (grub_console_cls): Set the background to
49747 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49749 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49751 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49752 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49754 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49757 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49758 BG. The spec is wrong again.
49760 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49762 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49764 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49765 commands/blocklist.c.
49766 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49768 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49769 (blocklist_mod_SOURCES): New variable.
49770 (blocklist_mod_CFLAGS): Likewise.
49771 (blocklist_mod_LDFLAGS): Likewise.
49773 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49775 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49777 (lba_mode): Use %eax more intensively to reduce the code size.
49779 2006-05-20 Marco Gerards <marco@gnu.org>
49781 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49783 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49785 (script): Accept leading newlines.
49786 (newlines): New rule to describe 0 or more newlines.
49787 (commands): Accept `command' with trailing newline. Fixed the
49788 order in which arguments were passed to `grub_script_add_cmd'.
49789 Accept commands separated by newlines.
49790 (function): Changed to accept newlines.
49791 (menuentry) Rewritten.
49793 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49794 front of the list, instead of to the end.
49796 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49798 * util/i386/pc/grub-install.in (bindir): New variable.
49799 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49800 Shaver <lbgwjl@gmail.com>.
49802 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49804 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49805 grub/machine/linux.h
49806 * loader/i386/pc/linux.c: Likewise.
49808 * include/grub/i386/pc/linux.h: Moved to ...
49809 * include/grub/i386/linux.h: ... here.
49811 * include/grub/i386/linux.h (struct linux_kernel_params): New
49814 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49816 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49818 (grub_video_vbe_blit_glyph): Likewise.
49819 (grub_video_vbe_blit_bitmap): Likewise.
49820 (grub_video_vbe_blit_render_target): Likewise.
49822 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49824 * configure.ac (--with-platform): Properly quote the square
49827 2006-05-08 Marco Gerards <marco@gnu.org>
49829 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49831 (kernel_elf_HEADERS): ...to this. Updated all users.
49832 (grubof_symlist.c): Renamed from this...
49833 (kernel_elf_symlist.c): ...to this. Updated all users.
49834 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49835 (grubof_SOURCES): Renamed from this...
49836 (kernel_elf_SOURCES): ...to this.
49837 (grubof_HEADERS): Renamed from this...
49838 (kernel_elf_HEADERS): ...to this.
49839 (grubof_CFLAGS): Renamed from this...
49840 (kernel_elf_CFLAGS): ...to this.
49841 (grubof_ASFLAGS): Renamed from this...
49842 (kernel_elf_ASFLAGS): ...to this.
49843 (grubof_LDFLAGS): Renamed from this...
49844 (kernel_elf_LDFLAGS): ...to this.
49846 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49848 (kernel_elf_HEADERS): ...to this. Updated all users.
49849 (grubof_symlist.c): Renamed from this...
49850 (kernel_elf_symlist.c): ...to this. Updated all users.
49851 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49852 (grubof_SOURCES): Renamed from this...
49853 (kernel_elf_SOURCES): ...to this.
49854 (grubof_HEADERS): Renamed from this...
49855 (kernel_elf_HEADERS): ...to this.
49856 (grubof_CFLAGS): Renamed from this...
49857 (kernel_elf_CFLAGS): ...to this.
49858 (grubof_ASFLAGS): Renamed from this...
49859 (kernel_elf_ASFLAGS): ...to this.
49860 (grubof_LDFLAGS): Renamed from this...
49861 (kernel_elf_LDFLAGS): ...to this.
49863 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49864 `kernel.elf' instead of `grubof'.
49866 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49868 Add --with-platform to configure. Use pkglibdir instead of
49869 pkgdatadir. This is reported by Roger Leigh.
49871 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49872 (host_vendor): Likewise.
49873 (host_os): Likewise.
49874 (pkgdatadir): Likewise.
49875 (platform): New variable.
49876 (pkglibdir): Likewise.
49877 Use PKGLIBDIR instead of PKGDATADIR.
49879 * util/i386/pc/grub-install.in (datadir): Removed.
49880 (host_vendor): Likewise.
49881 (host_os): Likewise.
49882 (pkgdatadir): Likewise.
49883 (platform): New variable.
49884 (pkglibdir): Likewise.
49885 Use PKGLIBDIR instead of PKGDATADIR.
49887 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49888 instead of GRUB_DATADIR.
49890 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49892 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49895 * configure.ac (--with-platform): New option.
49896 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49898 * Makefile.in: Include a makefile based on PLATFORM instead of
49900 (pkgdatadir): Not appended by the machine type.
49901 (pkglibdir): Appended by the machine type.
49902 (host_vendor): Removed.
49903 (platform): New variable.
49904 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49905 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49906 (uninstall): Likewise.
49908 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49910 Use the environment context in the menu. Remove the commands
49911 "default" and "timeout", and use variables instead.
49913 * normal/menu.c: Include grub/env.h.
49914 (print_entry): Cast TITLE to silence gcc.
49915 (get_timeout): New function.
49916 (set_timeout): Likewise.
49917 (get_entry_number): Likewise.
49918 (run_menu): Use a default entry, a fallback entry and a timeout
49919 in the environment variables "default", "fallback" and
49920 "timeout". Also, tweak the default entry if it is not within the
49921 current menu entries.
49922 (grub_menu_run): Use a fallback entry in the environment variable
49925 * normal/main.c (read_config_file): Do not initialize
49926 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49928 (grub_normal_execute): Use a data slot to store the menu.
49930 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49931 fallback_entry and timeout.
49932 (struct grub_menu_list): Removed.
49933 (grub_menu_list_t): Likewise.
49934 (struct grub_context): Likewise.
49935 (grub_context_t): Likewise.
49936 (grub_context_get): Likewise.
49937 (grub_context_get_current_menu): Likewise.
49938 (grub_context_push_menu): Likewise.
49939 (grub_context_pop_menu): Likewise.
49940 (grub_default_init): Likewise.
49941 (grub_default_fini): Likewise.
49942 (grub_timeout_init): Likewise.
49943 (grub_timeout_fini): Likewise.
49945 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49947 (normal_mod_SOURCES): Removed normal/context.c.
49949 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49950 commands/default.c, commands/timeout.c and normal/context.c.
49951 (normal_mod_SOURCES): Removed normal/context.c.
49953 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49954 commands/timeout.c and normal/context.c.
49955 (normal_mod_SOURCES): Removed normal/context.c.
49957 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49958 commands/default.c, commands/timeout.c and normal/context.c.
49959 (normal_mod_SOURCES): Removed normal/context.c.
49961 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49963 (default_mod_SOURCES): Removed.
49964 (default_mod_CFLAGS): Likewise.
49965 (default_mod_LDFLAGS): Likewise.
49966 (timeout_mod_SOURCES): Removed.
49967 (timeout_mod_CFLAGS): Likewise.
49968 (timeout_mod_LDFLAGS): Likewise.
49970 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49973 * commands/default.c: Removed.
49974 * commands/timeout.c: Likewise.
49975 * normal/context.c: Likewise.
49977 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49979 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49981 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49983 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49984 "next" to "prev" for readability.
49985 (struct grub_env_sorted_var): New struct.
49986 (grub_env_context): Renamed to ...
49987 (initial_context): ... this.
49988 (grub_env_var_context): Renamed to ...
49989 (current_context): ... this.
49990 (grub_env_find): Look only at CURRENT_CONTEXT.
49991 (grub_env_context_open): Rewritten to copy exported variables from
49993 (grub_env_context_close): Rewritten according to the new
49994 scheme. Also, add an assertion to prevent the initial context from
49996 (grub_env_insert): Removed the code for the sorted list.
49997 (grub_env_remove): Likewise.
49998 (grub_env_export): Simply mark the variable with
49999 GRUB_ENV_VAR_GLOBAL.
50000 (grub_env_set): A cosmetic change for naming consistency.
50001 (grub_env_get): Likewise.
50002 (grub_env_unset): Likewise.
50003 (grub_env_iterate): Rewritten to sort variables within this
50005 (grub_register_variable_hook): Fixed for naming consistency. Call
50006 grub_env_find again, only if NAME is not found at the first time.
50007 (mangle_data_slot_name): New function.
50008 (grub_env_set_data_slot): Likewise.
50009 (grub_env_get_data_slot): Likewise.
50010 (grub_env_unset_data_slot): Likewise.
50012 * include/grub/env.h (grub_env_var_type): New enum.
50013 (GRUB_ENV_VAR_LOCAL): New constant.
50014 (GRUB_ENV_VAR_GLOBAL): Likewise.
50015 (GRUB_ENV_VAR_DATA): Likewise.
50016 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50018 (grub_env_set): Replace VAR with NAME for consistency.
50019 (grub_register_variable_hook): Likewise.
50020 (grub_env_export): Specify the name of the argument.
50021 (grub_env_set_data_slot): New prototype.
50022 (grub_env_get_data_slot): Likewise.
50023 (grub_env_unset_data_slot): Likewise.
50025 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50027 Extend the loader so that GRUB can accept a loader which comes
50028 back to GRUB when a loaded image exits. Also, this change adds
50029 support for a chainloader on EFI.
50031 * term/efi/console.c: Include grub/misc.h.
50032 (grub_console_checkkey): Display a scan code on the top for
50033 debugging. This will be removed once the EFI port gets stable.
50034 Correct the scan code mapping.
50036 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50037 allocate memory from larger regions, in order to reduce the number
50038 of allocated regions. Otherwise, the MacOSX loader panics.
50039 (filter_memory_map): Avoid less than 1MB for compatibility with
50041 (add_memory_regions): Allocate from the tail of a region, if
50042 possible, to avoid allocating a region near to 1MB, for the MacOSX
50045 * kern/efi/init.c (grub_efi_set_prefix): Specify
50046 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50048 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50049 argument IMAGE_HANDLE and specify it to get a loaded image.
50050 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50051 grub_efi_get_loaded_image.
50052 (grub_efi_get_filename): Divide the length by the size of
50054 (grub_efi_get_device_path): New function.
50055 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50056 the length by the size of grub_efi_char16_t for a file path device
50059 * kern/loader.c (grub_loader_noreturn): New variable.
50060 (grub_loader_set): Accept a new argument NORETURN. Set
50061 GRUB_LOADER_NORETURN to NORETURN.
50062 All callers changed.
50063 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50066 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50068 (grub_efi_get_loaded_image): Take an argument to specify an image
50071 * include/grub/loader.h (grub_loader_set): Added one more argument
50074 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50075 instead of grub_efi_open_protocol.
50076 (grub_efidisk_get_device_name): Likewise.
50077 (grub_efidisk_close): Print a newline.
50078 (grub_efidisk_get_device_handle): Fixed to use
50079 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50080 GRUB_EFI_DEVICE_PATH_TYPE.
50082 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50083 * kern/efi/efi.c (device_path_guid): ... here.
50085 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50087 (kernel_mod_HEADERS): Added efi/disk.h.
50088 (_chain_mod_SOURCES): New variable.
50089 (_chain_mod_CFLAGS): Likewise.
50090 (_chain_mod_LDFLAGS): Likewise.
50091 (chain_mod_SOURCES): Likewise.
50092 (chain_mod_CFLAGS): Likewise.
50093 (chain_mod_LDFLAGS): Likewise.
50095 * DISTLIST: Added include/grub/efi/chainloader.h,
50096 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50098 * include/grub/efi/chainloader.h: New file.
50099 * loader/efi/chainloader.c: Likewise.
50100 * loader/efi/chainloader_normal.c: Likewise.
50102 2006-04-30 Marco Gerards <marco@gnu.org>
50104 * commands/configfile.c (grub_cmd_source): New function.
50105 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50106 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50108 2006-04-30 Marco Gerards <marco@gnu.org>
50110 * normal/execute.c (grub_script_execute_cmd): Change the return
50111 type to `grub_err_t'. Correctly return the error.
50112 (grub_script_execute_cmdline): In case a command line is not a
50113 command or a function, try to interpret it as an assignment.
50115 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50117 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50118 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50119 skip a node whose name is obviously invalid as UTF-16,
50120 i.e. contains a NUL character. Stop the iteration when the last
50121 directory entry is found. Instead of using the return value of
50122 grub_hfsplus_btree_iterate_node, store the value in RET and use
50123 it, because the iterator can be stopped by the last directory
50126 2006-04-30 Marco Gerards <marco@gnu.org>
50128 * include/grub/env.h (grub_env_export): New prototype. Reported
50129 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50131 2006-04-30 Marco Gerards <marco@gnu.org>
50133 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50134 size of the extents in a catalog file record.
50136 2006-04-29 Marco Gerards <marco@gnu.org>
50138 * commands/configfile.c (grub_cmd_configfile): Execute the
50139 configfile within its own context.
50141 * include/grub/env.h (grub_env_context_open): New prototype.
50142 (grub_env_context_close): Likewise.
50144 * kern/env.c (grub_env): Removed.
50145 (grub_env_sorted): Likewise.
50146 (grub_env_context): New variable.
50147 (grub_env_var_context): Likewise.
50148 (grub_env_find): Search both the active context and the global
50150 (grub_env_context_open): New function.
50151 (grub_env_context_close): Likewise.
50152 (grub_env_insert): Likewise.
50153 (grub_env_remove): Likewise.
50154 (grub_env_export): Likewise.
50155 (grub_env_set): Changed to use helper functions to avoid code
50157 (grub_env_iterate): Rewritten so both the current context and the
50158 global context are being used.
50160 * normal/command.c (export_command): New function.
50161 (grub_command_init): Register the `export' function.
50163 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50165 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50166 explicitly to suppress gcc's warnings.
50167 * fs/fat.c (grub_fat_find_dir): Likewise.
50168 (grub_fat_label): Likewise.
50169 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50170 (grub_xfs_mount): Likewise.
50171 (grub_xfs_label): Likewise.
50172 * fs/affs.c (grub_affs_mount): Likewise.
50173 (grub_affs_label): Likewise.
50174 (grub_affs_iterate_dir): Likewise.
50175 * fs/sfs.c (grub_sfs_mount): Likewise.
50176 (grub_sfs_iterate_dir): Likewise.
50177 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50178 * fs/hfs.c (grub_hfs_mount): Likewise.
50179 (grub_hfs_cmp_catkeys): Likewise.
50180 (grub_hfs_find_dir): Likewise.
50181 (grub_hfs_dir): Likewise.
50182 (grub_hfs_label): Likewise.
50183 * fs/jfs.c (grub_jfs_mount): Likewise.
50184 (grub_jfs_opendir): Likewise.
50185 (grub_jfs_getent): Likewise.
50186 (grub_jfs_lookup_symlink): Likewise.
50187 (grub_jfs_label): Likewise.
50188 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50189 (grub_hfsplus_iterate_dir): Likewise.
50190 (grub_hfsplus_btree_iterate_node): Made static.
50192 * util/grub-emu.c (prefix): New variable.
50193 (grub_machine_set_prefix): New function.
50194 (main): Do not set the environment variable "prefix" here. Only
50195 set PREFIX, which is used later by grub_machine_set_prefix.
50197 * include/grub/video.h: Do not include grub/symbol.h.
50198 (grub_video_register): Not exported. This symbol is not defined in
50200 (grub_video_unregister): Likewise.
50201 (grub_video_iterate): Likewise.
50202 (grub_video_setup): Likewise.
50203 (grub_video_restore): Likewise.
50204 (grub_video_get_info): Likewise.
50205 (grub_video_get_blit_format): Likewise.
50206 (grub_video_set_palette): Likewise.
50207 (grub_video_get_palette): Likewise.
50208 (grub_video_set_viewport): Likewise.
50209 (grub_video_get_viewport): Likewise.
50210 (grub_video_map_color): Likewise.
50211 (grub_video_map_rgb): Likewise.
50212 (grub_video_map_rgba): Likewise.
50213 (grub_video_fill_rect): Likewise.
50214 (grub_video_blit_glyph): Likewise.
50215 (grub_video_blit_bitmap): Likewise.
50216 (grub_video_blit_render_target): Likewise.
50217 (grub_video_scroll): Likewise.
50218 (grub_video_swap_buffers): Likewise.
50219 (grub_video_create_render_target): Likewise.
50220 (grub_video_delete_render_target): Likewise.
50221 (grub_video_set_active_render_target): Likewise.
50223 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50225 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50227 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50228 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50229 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50230 instead of $(srcdir)/genkernsyms.sh.
50232 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50233 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50234 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50235 instead of $(srcdir)/genkernsyms.sh.
50237 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50238 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50239 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50240 instead of $(srcdir)/genkernsyms.sh.
50242 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
50243 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50244 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50245 instead of $(srcdir)/genkernsyms.sh.
50247 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50250 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50252 (gensymlist.sh): New target.
50253 (genkernsyms.sh): Likewise.
50255 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50256 genkernsyms.sh.in and gensymlist.sh.in.
50258 * genkernsyms.sh: Removed.
50259 * gensymlist.sh: Likewise.
50261 * genkernsyms.sh.in: New file.
50262 * gensymlist.sh.in: Likewise.
50264 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50266 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50267 clobber "prefix", since we may have already set it manually.
50269 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50271 * kern/misc.c (abort): New alias for grub_abort.
50273 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50275 A new machine-specific function "grub_machine_set_prefix" is
50276 defined. This is called after loading modules, so that a prefix
50277 initialization can use modules. Also, this change adds an
50278 intensive debugging feature for the memory manager via the
50279 configure option "--enable-mm-debug".
50281 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50284 * kern/sparc64/ieee1275/init.c (abort): Removed.
50285 (grub_stop): Likewise.
50286 (grub_exit): New function.
50287 (grub_set_prefix): Renamed to ...
50288 (grub_machine_set_prefix): ... this.
50289 (grub_machine_init): Do not call grub_set_prefix.
50291 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50292 (grub_machine_set_prefix): ... this.
50293 (grub_machine_init): Do not call grub_set_prefix.
50295 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50296 (grub_machine_init): Do not set the prefix here.
50298 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50300 * kern/efi/init.c: Include grub/mm.h.
50301 (grub_efi_set_prefix): New function.
50303 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50304 (grub_efi_get_filename): New function.
50305 (grub_print_device_path): Renamed to ...
50306 (grub_efi_print_device_path): ... this.
50308 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50309 [MM_DEBUG] (grub_realloc): Likewise.
50310 [MM_DEBUG] (grub_free): Likewise.
50311 [MM_DEBUG] (grub_memalign): Likewise.
50312 [MM_DEBUG] (grub_mm_debug): New variable.
50313 [MM_DEBUG] (grub_debug_malloc): New function.
50314 [MM_DEBUG] (grub_debug_free): New function.
50315 [MM_DEBUG] (grub_debug_realloc): New function.
50316 [MM_DEBUG] (grub_debug_memalign): New function.
50318 * kern/misc.c (grub_abort): Print a newline to distinguish
50321 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50322 grub_set_root_dev after loading modules. This is necessary when
50323 setting a prefix depends on modules.
50325 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50326 (grub_efi_print_device_path): ... this.
50327 (grub_efi_get_filename): New prototype.
50328 (grub_efi_set_prefix): Likewise.
50330 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50332 (grub_efidisk_get_device_handle): New prototype.
50333 (grub_efidisk_get_device_name): Likewise.
50335 * include/grub/mm.h: Include config.h.
50336 (MM_DEBUG): Removed.
50337 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50338 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50339 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50340 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50341 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50342 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50343 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50344 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50345 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50347 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50349 * disk/efi/efidisk.c: Include grub/partition.h.
50350 (iterate_child_devices): New function.
50351 (add_device): First, compare only last device path nodes, so that
50352 devices are sorted by the types.
50353 (grub_efidisk_get_device_handle): New function.
50354 (grub_efidisk_get_device_name): Likewise.
50356 * configure.ac (--enable-mm-debug): New option to enable the
50357 memory manager debugging feature. This makes the binary much
50358 bigger, so is disabled by default.
50360 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50362 Use grub_abort instead of grub_stop, and grub_exit must be
50363 define in each architecture now. Also, this change adds support
50366 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50367 (grub_getkey): New function.
50368 (grub_term_get_current): Likewise.
50370 * util/i386/pc/grub-setup.c: Include grub/term.h.
50371 (grub_getkey): New function.
50372 (grub_term_get_current): Likewise.
50374 * util/misc.c (grub_stop): Renamed to ...
50375 (grub_exit): ... this.
50377 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50378 (grub_exit): ... this.
50379 (grub_machine_init): Use grub_abort instead of abort.
50380 (grub_stop): Removed.
50382 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50385 * kern/i386/pc/startup.S (grub_exit): New function.
50386 (cold_reboot): New label.
50388 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50389 (grub_efi_init): Call grub_efidisk_init.
50390 (grub_efi_fini): Call grub_efidisk_fini.
50392 * kern/efi/efi.c: Include grub/mm.h.
50393 (grub_efi_console_control_guid): Renamed to ...
50394 (console_control_guid): ... this.
50395 (grub_efi_loaded_image_guid): Renamed to ...
50396 (loaded_image_guid): ... this.
50397 (grub_efi_locate_handle): New function.
50398 (grub_efi_open_protocol): Likewise.
50399 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50400 GRUB_EFI_CONSOLE_CONTROL_GUID.
50401 (grub_efi_exit): Removed.
50402 (grub_stop): Likewise.
50403 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50404 (grub_exit): New function.
50405 (grub_print_device_path): Likewise.
50407 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50408 (grub_enter_rescue_mode): Register "exit".
50410 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50411 (grub_abort): New function.
50413 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50415 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50417 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50419 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50420 (grub_print_device_path): New prototype.
50421 (grub_efi_locate_handle): Likewise.
50422 (grub_efi_open_protocol): Likewise.
50424 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50425 * disk/efi/efidisk.c: Likewise.
50427 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50429 * include/grub/efi/console_control.h
50430 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50432 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50433 last 8 bytes as an array.
50434 (GRUB_EFI_DISK_IO_GUID): New macro.
50435 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50436 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50437 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50439 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50440 (struct grub_efi_device_path): Rename the member "sub_type" to
50442 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50443 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50444 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50445 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50446 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50447 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50448 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50449 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50450 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50451 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50452 (struct grub_efi_pci_device_path): New structure.
50453 (grub_efi_pci_device_path_t): New type.
50454 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50455 (struct grub_efi_pccard_device_path): New structure.
50456 (grub_efi_pccard_device_path_t): New type.
50457 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50458 (struct grub_efi_memory_mapped_device_path): New structure.
50459 (grub_efi_memory_mapped_device_path_t): New type.
50460 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50461 (struct grub_efi_vendor_device_path): New structure.
50462 (grub_efi_vendor_device_path_t): New type.
50463 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50464 (struct grub_efi_controller_device_path): New structure.
50465 (grub_efi_controller_device_path_t): New type.
50466 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50467 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50468 (struct grub_efi_acpi_device_path): New structure.
50469 (grub_efi_acpi_device_path_t): New type.
50470 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50471 (struct grub_efi_expanded_acpi_device_path): New structure.
50472 (grub_efi_expanded_acpi_device_path_t): New type.
50473 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50474 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50475 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50476 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50477 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50478 (struct grub_efi_atapi_device_path): New structure.
50479 (grub_efi_atapi_device_path_t): New type.
50480 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50481 (struct grub_efi_fibre_channel_device_path): New structure.
50482 (grub_efi_fibre_channel_device_path_t): New type.
50483 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50484 (struct grub_efi_1394_device_path): New structure.
50485 (grub_efi_1394_device_path_t): New type.
50486 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50487 (struct grub_efi_usb_device_path): New structure.
50488 (grub_efi_usb_device_path_t): New type.
50489 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50490 (struct grub_efi_usb_class_device_path): New structure.
50491 (grub_efi_usb_class_device_path_t): New type.
50492 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50493 (struct grub_efi_i2o_device_path): New structure.
50494 (grub_efi_i2o_device_path_t): New type.
50495 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50496 (struct grub_efi_mac_address_device_path): New structure.
50497 (grub_efi_mac_address_device_path_t): New type.
50498 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50499 (struct grub_efi_ipv4_device_path): New structure.
50500 (grub_efi_ipv4_device_path_t): New type.
50501 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50502 (struct grub_efi_ipv6_device_path): New structure.
50503 (grub_efi_ipv6_device_path_t): New type.
50504 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50505 (struct grub_efi_infiniband_device_path): New structure.
50506 (grub_efi_infiniband_device_path_t): New type.
50507 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50508 (struct grub_efi_uart_device_path): New structure.
50509 (grub_efi_uart_device_path_t): New type.
50510 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50511 (struct grub_efi_vendor_messaging_device_path): New structure.
50512 (grub_efi_vendor_messaging_device_path_t): New type.
50513 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50514 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50515 (struct grub_efi_hard_drive_device_path): New structure.
50516 (grub_efi_hard_drive_device_path_t): New type.
50517 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50518 (struct grub_efi_cdrom_device_path): New structure.
50519 (grub_efi_cdrom_device_path_t): New type.
50520 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50521 (struct grub_efi_vendor_media_device_path): New structure.
50522 (grub_efi_vendor_media_device_path_t): New type.
50523 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50524 (struct grub_efi_file_path_device_path): New structure.
50525 (grub_efi_file_path_device_path_t): New type.
50526 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50527 (struct grub_efi_protocol_device_path): New structure.
50528 (grub_efi_protocol_device_path_t): New type.
50529 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50530 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50531 (struct grub_efi_bios_device_path): New structure.
50532 (grub_efi_bios_device_path_t): New type.
50533 (struct grub_efi_disk_io): New structure.
50534 (grub_efi_disk_io_t): New type.
50535 (struct grub_efi_block_io_media): New structure.
50536 (grub_efi_block_io_media_t): New type.
50537 (struct grub_efi_block_io): New structure.
50538 (grub_efi_block_io_t): New type.
50540 * include/grub/misc.h (grub_stop): Removed.
50541 (grub_exit): New prototype.
50542 (grub_abort): Likewise.
50544 * include/grub/disk.h (enum grub_disk_dev_id): Added
50545 GRUB_DISK_DEVICE_EFIDISK_ID.
50547 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50548 disk/efi/efidisk.c.
50549 (kernel_syms.lst): Remove the target if an error occurs.
50551 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50553 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50554 as it was simply too buggy.
50556 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50558 * kern/misc.c (grub_lltoa): New function.
50559 (grub_vsprintf): Added support for the long long suffix,
50562 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50564 * Makefile.in (LDFLAGS): Add variable.
50565 (LD): Remove variable.
50566 * configure.ac: Add -m32 to LDFLAGS.
50567 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50568 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50569 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50570 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50571 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50573 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50574 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50575 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50577 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50579 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50580 length for unknown glyph.
50582 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50584 Add support for pre-loaded modules into the EFI port.
50586 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50587 completely. Accept one more argument DIR. The caller has changed.
50589 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50591 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50592 (grub_efi_loaded_image_guid): New variable.
50593 (grub_efi_get_loaded_image): New function.
50594 (grub_arch_modules_addr): Likewise.
50596 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50599 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50600 (struct grub_efi_loaded_image): New structure.
50601 (grub_efi_loaded_image_t): New type.
50603 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50605 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50606 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50607 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50609 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50611 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50613 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50615 * DISTLIST: Added include/grub/efi/console.h,
50616 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50617 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50619 * include/grub/efi/console.h: New file.
50620 * include/grub/efi/time.h: Likewise.
50621 * include/grub/i386/efi/kernel.h: Likewise.
50622 * kern/efi/init.c: Likewise.
50623 * kern/efi/mm.c: Likewise.
50624 * term/efi/console.c: Likewise.
50626 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50627 (grub_stop): Removed.
50628 (grub_get_rtc): Likewise.
50629 (grub_machine_init): Simply call grub_efi_init.
50630 (grub_machine_fini): Call grub_efi_fini.
50632 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50633 (grub_efi_output_string): Removed.
50634 (grub_efi_stall): New function.
50635 (grub_stop): Likewise.
50636 (grub_get_rtc): Likewise.
50638 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50639 (grub_efi_stall): New prototype.
50640 (grub_efi_allocate_pages): Likewise.
50641 (grub_efi_free_pages): Likewise.
50642 (grub_efi_get_memory_map): Likewise.
50643 (grub_efi_mm_init): Likewise.
50644 (grub_efi_mm_fini): Likewise.
50645 (grub_efi_init): Likewise.
50646 (grub_efi_fini): Likewise.
50648 * include/grub/i386/efi/time.h: Do not include
50649 grub/symbol.h. Include grub/efi/time.h.
50650 (GRUB_TICKS_PER_SECOND): Removed.
50651 (grub_get_rtc): Likewise.
50653 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50654 Added padding. The EFI spec is buggy.
50655 (GRUB_EFI_BLACK): New macro.
50656 (GRUB_EFI_BLUE): Likewise.
50657 (GRUB_EFI_GREEN): Likewise.
50658 (GRUB_EFI_CYAN): Likewise.
50659 (GRUB_EFI_RED): Likewise.
50660 (GRUB_EFI_MAGENTA): Likewise.
50661 (GRUB_EFI_BROWN): Likewise.
50662 (GRUB_EFI_LIGHTGRAY): Likewise.
50663 (GRUB_EFI_BRIGHT): Likewise.
50664 (GRUB_EFI_DARKGRAY): Likewise.
50665 (GRUB_EFI_LIGHTBLUE): Likewise.
50666 (GRUB_EFI_LIGHTGREEN): Likewise.
50667 (GRUB_EFI_LIGHTCYAN): Likewise.
50668 (GRUB_EFI_LIGHTRED): Likewise.
50669 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50670 (GRUB_EFI_YELLOW): Likewise.
50671 (GRUB_EFI_WHITE): Likewise.
50672 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50673 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50674 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50675 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50676 (GRUB_EFI_BACKGROUND_RED): Likewise.
50677 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50678 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50679 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50680 (GRUB_EFI_TEXT_ATTR): Likewise.
50682 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50683 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50684 (kernel_mod_HEADERS): Added efi/time.h.
50686 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50688 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50689 include/grub/efi/api.h, include/grub/efi/console_control.h,
50690 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50691 include/grub/i386/efi/time.h, kern/efi/efi.c,
50692 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50693 and util/i386/efi/grub-mkimage.c.
50695 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50697 * genmk.rb (PModule#rule): Do not export symbols if
50698 #{prefix}_EXPORTS is set to "no".
50700 * conf/i386-efi.mk: New file.
50701 * conf/i386-efi.rmk: Likewise.
50702 * include/grub/efi/api.h: Likewise.
50703 * include/grub/efi/console_control.h: Likewise.
50704 * include/grub/efi/efi.h: Likewise.
50705 * include/grub/efi/pe32.h: Likewise.
50706 * include/grub/i386/efi/time.h: Likewise.
50707 * kern/efi/efi.c: Likewise.
50708 * kern/i386/efi/init.c: Likewise.
50709 * kern/i386/efi/startup.S: Likewise.
50710 * util/i386/efi/grub-mkimage.c: Likewise.
50712 2006-04-17 Marco Gerards <marco@gnu.org>
50714 * include/grub/script.h: Include <grub/parser.h> and
50715 "grub_script.tab.h".
50716 (struct grub_lexer_param): New struct.
50717 (struct grub_parser_param): Likewise.
50718 (grub_script_create_arglist): Pass the state in an argument.
50719 (grub_script_add_arglist): Likewise.
50720 (grub_script_create_cmdline): Likewise.
50721 (grub_script_create_cmdblock): Likewise.
50722 (grub_script_create_cmdif): Likewise.
50723 (grub_script_create_cmdmenu): Likewise.
50724 (grub_script_add_cmd): Likewise.
50725 (grub_script_arg_add): Likewise.
50726 (grub_script_lexer_ref): Likewise.
50727 (grub_script_lexer_deref): Likewise.
50728 (grub_script_lexer_record_start): Likewise.
50729 (grub_script_lexer_record_stop): Likewise.
50730 (grub_script_mem_record): Likewise.
50731 (grub_script_mem_record_stop): Likewise.
50732 (grub_script_malloc): Likewise.
50733 (grub_script_yylex): Likewise.
50734 (grub_script_yyparse): Likewise.
50735 (grub_script_yyerror): Likewise.
50736 (grub_script_yylex): Likewise.
50737 (grub_script_lexer_init): Return the state.
50739 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50740 (grub_script_lexer_done): Likewise.
50741 (grub_script_lexer_getline): Likewise.
50742 (grub_script_lexer_refs): Likewise.
50743 (script): Likewise.
50744 (newscript): Likewise.
50745 (record): Likewise.
50746 (recording): Likewise.
50747 (recordpos): Likewise.
50748 (recordlen): Likewise.
50749 (grub_script_lexer_init): Return the state instead of setting
50751 (grub_script_lexer_ref): Use the newly added argument for state
50752 instead of globals.
50753 (grub_script_lexer_deref): Likewise.
50754 (grub_script_lexer_record_start): Likewise.
50755 (grub_script_lexer_record_stop): Likewise.
50756 (recordchar): Likewise.
50757 (nextchar): Likewise.
50758 (grub_script_yylex2): Likewise.
50759 (grub_script_yylex): Likewise.
50760 (grub_script_yyerror): Likewise.
50762 * normal/parser.y (func_mem): Removed variable.
50763 (menu_entry): Likewise.
50765 (%lex-param): New parser option.
50766 (%parse-param): Likewise.
50767 (script): Always return the AST.
50768 (argument): Pass the state around.
50769 (arguments): Likewise.
50770 (grubcmd): Likewise.
50771 (commands): Likewise.
50772 (function): Likewise.
50773 (menuentry): Likewise.
50774 (if_statement): Likewise.
50777 * normal/script.c (grub_script_memused): Removed variable.
50778 (grub_script_parsed): Likewise.
50779 (grub_script_malloc): Added a state argument. Use that instead of
50781 (grub_script_mem_record): Likewise.
50782 (grub_script_mem_record_stop): Likewise.
50783 (grub_script_arg_add): Likewise.
50784 (grub_script_add_arglist): Likewise.
50785 (grub_script_create_cmdline): Likewise.
50786 (grub_script_create_cmdif): Likewise.
50787 (grub_script_create_cmdmenu): Likewise.
50788 (grub_script_add_cmd): Likewise.
50789 (grub_script_parse): Setup the state before calling the parser.
50791 2006-04-16 Marco Gerards <marco@gnu.org>
50793 * normal/command.c (grub_command_init): Remove the title command.
50795 * normal/lexer.c (grub_script_yylex): Renamed from this...
50796 (grub_script_yylex2): ... to this.
50797 (grub_script_yylex): New function. Temporary
50798 introduced to filter some tokens.
50799 (grub_script_yyerror): Print a newline.
50801 * normal/main.c (read_config_file): Output information about the
50802 lines that contain errors. Wait for a key after all lines have
50803 been processed. Don't return an empty menu.
50805 * normal/parser.y (func_mem): Don't initialize.
50806 (menu_entry): Likewise.
50807 (err): New variable.
50808 (script): Don't return anything when an error was encountered.
50809 (ws, returns): Removed rules.
50810 (argument): Disabled concatenated variable support.
50811 (arguments): Remove explicit separators.
50812 (grubcmd): Likewise.
50813 (function): Likewise.
50814 (menuentry): Likewise.
50816 (commands): Likewise. Add error handling.
50818 * normal/script.c (grub_script_create_cmdline): If
50819 `grub_script_parsed' is 0, assume the parser encountered an error.
50821 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50823 * configure.ac: Add support for EFI. Fix the typo
50824 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50826 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50828 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50829 foreign multibyte characters should be shown correctly.
50831 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50833 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50835 (read_config_file): Made it to close file before returning.
50837 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50839 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50840 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50841 video/i386/pc/vbefill.c.
50843 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50844 video/i386/pc/vbefill.c.
50846 * include/grub/video.h (grub_video_blit_format): New enum.
50847 (grub_video_mode_info): Added new member blit_format.
50848 (grub_video_get_blit_format): New function prototype.
50850 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50851 function prototype.
50852 (grub_video_vbe_map_rgb): Likewise.
50853 (grub_video_vbe_unmap_color): Likewise.
50855 * include/grub/i386/pc/vbeblit.h: New file.
50857 * include/grub/i386/pc/vbefill.h: New file.
50859 * video/video.c (grub_video_get_blit_format): New function.
50860 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50861 (grub_video_vbe_map_rgb): Likewise.
50862 (grub_video_vbe_unmap_color): Likewise.
50864 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50866 (grub_video_vbe_blit_render_target): Changed to use more optimized
50868 (grub_video_vbe_setup): Added detection for optimized settings.
50869 (grub_video_vbe_create_render_target): Likewise.
50871 * video/i386/pc/vbeblit.c: New file.
50873 * video/i386/pc/vbefill.c: New file.
50875 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50877 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50880 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50881 parsing to support both hex and dec ranges. If filename was missing
50882 show usage information.
50884 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50886 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50887 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50889 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50890 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50891 (video_mod_SOURCES): Added.
50892 (video_mod_CFLAGS): Likewise.
50893 (video_mod_LDFLAGS): Likewise.
50894 (gfxterm_mod_SOURCES): Likewise.
50895 (gfxterm_mod_CFLAGS): Likewise.
50896 (gfxterm_mod_LDFLAGS): Likewise.
50897 (videotest_mod_SOURCES): Likewise.
50898 (videotest_mod_CFLAGS): Likewise.
50899 (videotest_mod_LDFLAGS): Likewise.
50900 (vesafb_mod_SOURCES): Removed.
50901 (vesafb_mod_CFLAGS): Likewise.
50902 (vesafb_mod_LDFLAGS): Likewise.
50903 (vga_mod_SOURCES): Likewise.
50904 (vga_mod_CFLAGS): Likewise.
50905 (vga_mod_LDFLAGS): Likewise.
50907 * commands/videotest.c: New file.
50909 * font/manager.c (fill_with_default_glyph): Modified to use
50911 (grub_font_get_glyph): Likewise.
50912 (fontmanager): Renamed from this...
50913 (font_manager): ... to this.
50915 * include/grub/font.h (grub_font_glyph): Added new structure.
50916 (grub_font_get_glyph): Modified to use grub_font_glyph.
50918 * include/grub/misc.h (grub_abs): Added as inline function.
50920 * include/grub/video.h: New file.
50922 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50923 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50924 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50925 (grub_vbe_get_controller_info): Renamed from this...
50926 (grub_vbe_bios_get_controller_info): ... to this.
50927 (grub_vbe_get_mode_info): Renamed from this...
50928 (grub_vbe_bios_get_mode_info): ... to this.
50929 (grub_vbe_set_mode): Renamed from this...
50930 (grub_vbe_bios_set_mode): ... to this.
50931 (grub_vbe_get_mode): Renamed from this...
50932 (grub_vbe_bios_get_mode): ... to this.
50933 (grub_vbe_set_memory_window): Renamed from this...
50934 (grub_vbe_bios_set_memory_window): ... to this.
50935 (grub_vbe_get_memory_window): Renamed from this...
50936 (grub_vbe_bios_get_memory_window): ... to this.
50937 (grub_vbe_set_scanline_length): Renamed from this...
50938 (grub_vbe_set_scanline_length): ... to this.
50939 (grub_vbe_get_scanline_length): Renamed from this...
50940 (grub_vbe_bios_get_scanline_length): ... to this.
50941 (grub_vbe_set_display_start): Renamed from this...
50942 (grub_vbe_bios_set_display_start): ... to this.
50943 (grub_vbe_get_display_start): Renamed from this...
50944 (grub_vbe_bios_get_display_start): ... to this.
50945 (grub_vbe_set_palette_data): Renamed from this...
50946 (grub_vbe_bios_set_palette_data): ... to this.
50947 (grub_vbe_set_pixel_rgb): Removed.
50948 (grub_vbe_set_pixel_index): Likewise.
50950 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50952 (grub_vbe_bios_get_controller_info): ... to this.
50953 (grub_vbe_get_mode_info): Renamed from this...
50954 (grub_vbe_bios_get_mode_info): ... to this.
50955 (grub_vbe_set_mode): Renamed from this...
50956 (grub_vbe_bios_set_mode): ... to this.
50957 (grub_vbe_get_mode): Renamed from this...
50958 (grub_vbe_bios_get_mode): ... to this.
50959 (grub_vbe_set_memory_window): Renamed from this...
50960 (grub_vbe_bios_set_memory_window): ... to this.
50961 (grub_vbe_get_memory_window): Renamed from this...
50962 (grub_vbe_bios_get_memory_window): ... to this.
50963 (grub_vbe_set_scanline_length): Renamed from this...
50964 (grub_vbe_set_scanline_length): ... to this.
50965 (grub_vbe_get_scanline_length): Renamed from this...
50966 (grub_vbe_bios_get_scanline_length): ... to this.
50967 (grub_vbe_set_display_start): Renamed from this...
50968 (grub_vbe_bios_set_display_start): ... to this.
50969 (grub_vbe_get_display_start): Renamed from this...
50970 (grub_vbe_bios_get_display_start): ... to this.
50971 (grub_vbe_set_palette_data): Renamed from this...
50972 (grub_vbe_bios_set_palette_data): ... to this.
50973 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50974 getting corrupted after calling it. Added more pushes and pops.
50975 (grub_vbe_bios_set_mode): Likewise.
50976 (grub_vbe_bios_get_mode): Likewise.
50977 (grub_vbe_bios_get_memory_window): Likewise.
50978 (grub_vbe_bios_set_scanline_length): Likewise.
50979 (grub_vbe_bios_get_scanline_length): Likewise.
50980 (grub_vbe_bios_get_display_start): Likewise.
50981 (grub_vbe_bios_set_palette_data): Likewise.
50983 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50984 (cl_insert): Likewise.
50985 (cl_delete): Likewise.
50987 * term/gfxterm.c: New file.
50989 * term/i386/pc/vesafb.c: Removed file.
50991 * video/video.c: New file.
50993 * video/i386/pc/vbe.c (real2pm): Added new function.
50994 (grub_video_vbe_draw_pixel): Likewise.
50995 (grub_video_vbe_get_video_ptr): Likewise.
50996 (grub_video_vbe_get_pixel): Likewise
50997 (grub_video_vbe_init): Likewise.
50998 (grub_video_vbe_fini): Likewise.
50999 (grub_video_vbe_setup): Likewise.
51000 (grub_video_vbe_get_info): Likewise.
51001 (grub_video_vbe_set_palette): Likewise.
51002 (grub_video_vbe_get_palette): Likewise.
51003 (grub_video_vbe_set_viewport): Likewise.
51004 (grub_video_vbe_get_viewport): Likewise.
51005 (grub_video_vbe_map_color): Likewise.
51006 (grub_video_vbe_map_rgb): Likewise.
51007 (grub_video_vbe_map_rgba): Likewise.
51008 (grub_video_vbe_unmap_color): Likewise.
51009 (grub_video_vbe_fill_rect): Likewise.
51010 (grub_video_vbe_blit_glyph): Likewise.
51011 (grub_video_vbe_blit_bitmap): Likewise.
51012 (grub_video_vbe_blit_render_target): Likewise.
51013 (grub_video_vbe_scroll): Likewise.
51014 (grub_video_vbe_swap_buffers): Likewise.
51015 (grub_video_vbe_create_render_target): Likewise.
51016 (grub_video_vbe_delete_render_target): Likewise.
51017 (grub_video_vbe_set_active_render_target): Likewise.
51018 (grub_vbe_set_pixel_rgb): Remove function.
51019 (grub_vbe_set_pixel_index): Likewise.
51020 (index_color_mode): Remove static variable.
51021 (active_mode): Likewise.
51022 (framebuffer): Likewise.
51023 (bytes_per_scan_line): Likewise.
51024 (grub_video_vbe_adapter): Added new static variable.
51025 (framebuffer): Likewise.
51026 (render_target): Likewise.
51027 (initial_mode): Likewise.
51028 (mode_in_use): Likewise.
51029 (mode_list): Likewise.
51031 2006-03-10 Marco Gerards <marco@gnu.org>
51033 * configure.ac (AC_INIT): Bumped to 1.93.
51035 * DISTLIST: Added `include/grub/hfs.h'.
51037 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51039 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51040 18H, which might help the BIOS falling back to next boot media.
51042 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51044 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51045 Poe Chen <poe.poechen@gmail.com>.
51047 2006-01-17 Marco Gerards <marco@gnu.org>
51049 * include/grub/normal.h: Include <grub/script.h>.
51050 (grub_command_list): Removed struct.
51051 (grub_command_list_t): Removed type.
51052 (grub_menu_entry): Remove members `num' and `command_list'. Add
51053 members `commands' and `sourcecode'.
51054 * include/grub/script.h: Add inclusion guards.
51055 (grub_script_cmd_menuentry): New struct.
51056 (grub_script_execute_menuentry): New prototype.
51057 (grub_script_lexer_record_start): Likewise.
51058 (grub_script_lexer_record_stop): Likewise.
51059 * normal/execute.c (grub_script_execute_menuentry): New function.
51060 * normal/lexer.c (record, recording, recordpos, recordlen): New
51062 (grub_script_lexer_record_start): New function.
51063 (grub_script_lexer_record_stop): Likewise.
51064 (recordchar): Likewise.
51065 (nextchar): Likewise.
51066 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51067 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51068 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51069 (current_menu): New variable.
51070 (free_menu): Mainly rewritten.
51071 (grub_normal_menu_addentry): New function.
51072 (read_config_file): Rewritten.
51073 * normal/menu.c (run_menu_entry): Mainly rewritten.
51074 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51076 (run): Mainly rewritten.
51077 * normal/parser.y (menu_entry): New variable.
51078 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51079 (menuentry): New rule.
51080 (command): Add `menuentry'.
51081 (if_statement): Allow additional returns before `fi'.
51082 * normal/script.c (grub_script_create_cmdmenu): New function.
51084 2006-01-03 Marco Gerards <marco@gnu.org>
51086 * INSTALL: GNU Bison is required.
51087 * configure.ac: Rewritten the test to detect Bison.
51088 * Makefile.in (YACC): New variable. Reported by Xun Sun
51089 <xun.sun.cn@gmail.com>.
51091 2006-01-03 Marco Gerards <marco@gnu.org>
51093 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51094 the HFS+ filesystem to filesystem blocks.
51095 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51096 GCC warning is silenced.
51098 2006-01-03 Marco Gerards <marco@gnu.org>
51100 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51101 read from disk from big endian to host byte order.
51103 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51105 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51107 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51108 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51109 embedded HFS+ filesystem.
51110 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51111 (grub_hfs_sblock): Move from here...
51112 * include/grub/hfs.h: To here... New file.
51113 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51115 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51117 (grub_hfsplus_volheader): Change type of member `magic' to
51119 (grub_hfsplus_data): Add new member `embedded_offset'.
51120 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51122 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51123 Calculate the offset.
51125 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51127 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51129 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51131 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51133 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51134 ENV->NAME is NULL after allocating ENV->VALUE.
51136 2005-12-25 Marco Gerards <marco@gnu.org>
51138 * kern/env.c (grub_env_set): Rewritten the error handling code.
51140 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51142 * geninit.sh: Made more robust, and more portable.
51144 2005-12-25 Marco Gerards <marco@gnu.org>
51146 Add support for Apple HFS+ filesystems.
51148 * fs/hfsplus.c: New file.
51150 * DISTLIST: Added `fs/hfsplus.c'.
51152 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51153 (hfsplus_mod_SOURCES): New variable.
51154 (hfsplus_mod_CFLAGS): Likewise.
51155 (hfsplus_mod_LDFLAGS): Likewise.
51156 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51157 (grub_setup_SOURCES): Likewise.
51158 (grub_mkdevicemap_SOURCES): Likewise.
51159 (grub_emu_SOURCES): Likewise.
51160 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51162 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51164 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51166 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51168 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51169 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51170 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51171 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51172 normal/lexer.c, normal/parser.y, normal/script.c, and
51174 Removed kern/sparc64/cache.c.
51176 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51177 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51180 * configure.ac (AC_INIT): Bumped to 1.92.
51182 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51184 * kern/err.c (grub_error_push): Added new function to support error
51186 (grub_error_pop): Likewise.
51187 (grub_error_stack_items): New local variable to support error stacks.
51188 (grub_error_stack_pos): Likewise.
51189 (grub_error_stack_assert): Likewise.
51190 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51192 (grub_print_error): Added support to print errors from error stack.
51194 * include/grub/err.h (grub_error_push): Added function prototype.
51195 (grub_error_pop): Likewise.
51197 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51199 * configure.ac: Accept `powerpc64' as host_cpu.
51200 (amd64): Rename to `biarch32'.
51202 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51203 non-cacheline-aligned addresses.
51205 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51206 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51207 if `size' is non-zero.
51209 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51211 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51212 and `cd' to make sure the filename is not prefixed with a
51214 (pkgdata_MODULES): Add `gpt.mod'.
51215 (gpt_mod_SOURCES): New variable.
51216 (gpt_mod_CFLAGS): Likewise.
51217 (gpt_mod_LDFLAGS): Likewise.
51219 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51221 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51224 * partmap/gpt.c: New file.
51226 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51227 GPT partition map is detected.
51229 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51231 * commands/i386/pc/play.c: New file.
51232 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51233 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51236 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51238 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51239 ((unused))' to silence gcc warning.
51241 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51243 * configure.ac: Correct `AC_PROG_YACC' test.
51245 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51247 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51248 check before installing files.
51250 2005-11-22 Mike Small <smallm@panix.com>
51252 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51253 number regex so multidigit numbers are recognized correctly.
51255 2005-11-22 Mike Small <smallm@panix.com>
51257 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51258 debugging message before attempting to claim memory.
51259 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51260 multiple addresses in case of failure.
51262 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51264 * term/tparm.c (get_space): Remove empty `if' statement.
51266 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51268 * kern/parser.c (check_varstate): Rename `state' to 's'.
51270 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51272 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51273 variable definitions to the beginning of each function. Sort stack
51275 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51276 `buf' argument to `char *'.
51278 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51280 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51281 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51282 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51283 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51284 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51285 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51286 configfile.mod, search.mod, gzio.mod and test.mod.
51287 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51288 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51289 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51290 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51291 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51292 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51293 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51294 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51295 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51296 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51297 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51298 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51299 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51300 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51301 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51302 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51303 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51304 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51305 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51306 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51307 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51308 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51309 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51311 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51313 (pkgdata_MODULES): Add test.mod.
51315 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51317 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51318 appending to variables with "+=".
51319 (PModule): Use full pathname to generate *.lst filenames.
51321 * Makefile.in: Fixed list rules moved from genmk.rb.
51322 (.DELETE_ON_ERROR): New special target.
51323 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51325 * conf/i386-pc.rmk: Include conf/common.mk.
51326 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51327 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51328 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51329 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51330 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51331 configfile.mod, search.mod, gzio.mod and test.mod.
51332 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51333 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51334 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51335 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51336 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51337 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51338 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51339 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51340 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51341 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51342 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51343 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51344 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51345 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51346 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51347 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51348 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51349 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51350 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51351 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51352 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51353 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51354 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51356 * conf/common.rmk: ... to here. New file.
51358 * conf/common.mk: New file.
51360 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51362 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51363 (grub_script.tab.c): ... here.
51365 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51366 (grub_script.tab.c): ... here.
51368 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51369 (grub_script.tab.c): ... here.
51371 * normal/command.c (grub_command_find): Fixed a memory leak of
51372 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51374 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51376 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51377 "@" which marks the start of a comment on ARM.
51378 (VARIABLE): Likewise.
51380 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51382 Add support for Linux/ADFS partition tables.
51384 * partmap/acorn.c: New file.
51386 * include/grub/acorn_filecore.h: Likewise.
51388 * DISTLIST: Added `partmap/acorn.c' and
51389 `include/grub/acorn_filecore.h'.
51391 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51393 (pkgdata_MODULES): Add `acorn.mod'.
51394 (acorn_mod_SOURCES): New variable.
51395 (acorn_mod_CFLAGS): Likewise.
51397 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51399 (pkgdata_MODULES): Add `acorn.mod'.
51400 (acorn_mod_SOURCES): New variable.
51401 (acorn_mod_CFLAGS): Likewise.
51403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51404 (pkgdata_MODULES): Add `acorn.mod'.
51405 (acorn_mod_SOURCES): New variable.
51406 (acorn_mod_CFLAGS): Likewise.
51407 (acorn_mod_LDFLAGS): Likewise.
51409 * include/types.h (grub_disk_addr_t): New typedef.
51411 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51413 * geninit.sh: New file.
51415 * geninitheader.sh: Likewise.
51417 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51418 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51419 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51420 * commands/configfile.c (grub_configfile_init)
51421 (grub_configfile_fini): Likewise.
51422 * commands/default.c (grub_default_init, grub_default_fini):
51424 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51425 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51426 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51427 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51429 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51430 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51432 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51433 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51435 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51437 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51439 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51440 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51441 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51442 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51443 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51444 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51445 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51446 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51447 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51448 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51449 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51450 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51451 * partmap/amiga.c (grub_amiga_partition_map_init)
51452 (grub_amiga_partition_map_fini): Likewise.
51453 * partmap/apple.c (grub_apple_partition_map_init)
51454 (grub_apple_partition_map_fini): Likewise.
51455 * partmap/pc.c (grub_pc_partition_map_init)
51456 (grub_pc_partition_map_fini): Likewise.
51457 * partmap/sun.c (grub_sun_partition_map_init,
51458 grub_sun_partition_map_fini): Likewise.
51459 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51462 * util/grub-emu.c: Include <grub_modules_init.h>.
51463 (main): Don't initialize and de-initialize any modules directly,
51464 use `grub_init_all' and `grub_fini_all' instead.
51466 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51467 `grub_vesafb_mod_init'.
51468 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51470 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51471 `grub_vga_mod_init'. Updated all users.
51472 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51474 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51475 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51478 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51479 Generate a function to initialize the module in utilities.
51480 Updated all callers.
51481 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51482 initialize the module in utilities. Updated all callers.
51484 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51486 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51487 escape sequence and a literal ^L to clear the screen.
51489 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51490 when returning from Open Firmware.
51492 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51494 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51495 (grub_ofconsole_height): Likewise.
51496 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51497 manually insert a '\n'.
51498 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51499 `grub_ofconsole_height'. Return early if these are already set.
51501 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51503 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51504 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51505 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51506 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51507 and `normal/script.c'.
51508 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51509 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51510 (test_mod_SOURCES): New variable.
51511 (test_mod_CFLAGS): Likewise.
51512 (test_mod_LDFLAGS): Likewise.
51513 (pkgdata_MODULES): Add `test.mod'.
51514 (grub_script.tab.c): New rule.
51515 (grub_script.tab.h): Likewise.
51517 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51519 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51520 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51521 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51522 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51523 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51524 (test_mod_SOURCES): New variable.
51525 (test_mod_CFLAGS): Likewise.
51526 (pkgdata_MODULES): Add `test.mod'.
51527 (grub_script.tab.c): New rule.
51528 (grub_script.tab.h): Likewise.
51530 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51532 Add initial scripting support.
51534 * commands/test.c: New file.
51535 * include/grub/script.h: Likewise.
51536 * normal/execute.c: Likewise.
51537 * normal/function.c: Likewise.
51538 * normal/lexer.c: Likewise.
51539 * normal/parser.y: Likewise.
51540 * normal/script.c: Likewise.
51542 * configure.ac: Add `AC_PROG_YACC' test.
51544 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51545 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51546 `normal/function.c' and `normal/script.c'.
51547 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51548 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51549 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51551 (pkgdata_MODULES): Add `test.mod'.
51552 (grub_script.tab.c): New rule.
51553 (grub_script.tab.h): Likewise.
51555 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51557 * include/grub/normal.h (grub_test_init): New prototype.
51558 (grub_test_fini): Likewise.
51560 * normal/command.c: Include <grub/script.h>.
51561 (grub_command_execute): Rewritten.
51563 * util/grub-emu.c (main): Call `grub_test_init' and
51566 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51568 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51570 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51571 there are no pending characters.
51573 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51575 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51576 `grub_strndup' to drop device arguments. Replace unnecessary
51577 `grub_strndup' with `grub_strdup'.
51579 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51581 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51582 `debug' environment variable has been set.
51584 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51586 * Makefile.in (install-local): Use $(DATA).
51587 (uninstall): Likewise.
51588 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51589 (sbin_UTILITIES): ... to here.
51590 (sbin_SCRIPTS): New variable.
51591 (grub_install_SOURCES): New variable.
51592 * util/powerpc/ieee1275/grub-install.in: New file.
51593 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51595 (add_segments): Call `grub_util_get_path'.
51597 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51599 From Timothy Baldwin:
51600 * commands/ls.c (grub_ls_list_files): Close FILE with
51602 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51604 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51606 * include/grub/parser.h: New file.
51608 * kern/parser.c: Likewise.
51610 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51611 (grub_setup_SOURCES): Likewise.
51612 (grub_probefs_SOURCES): Likewise.
51613 (grub_emu_SOURCES): Likewise.
51614 (kernel_img_HEADERS): Add `parser.h'.
51616 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51617 (grub_emu_SOURCES): Add `kern/parser.c'.
51618 (grubof_SOURCES): Likewise.
51620 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51621 (grubof_SOURCES): Add `kern/parser.c'.
51623 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51625 * kern/misc.c (grub_split_cmdline): Removed function.
51627 * kern/rescue.c: Include <grub/parser.h>.
51628 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51629 of `grub_split_cmdline'.
51631 * normal/command.c: Include <grub/parser.h>.
51632 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51633 of `grub_split_cmdline'.
51635 * normal/completion.c: Include <grub/parser.h>.
51636 (cmdline_state): New variable.
51637 (iterate_dir): End the filename with a quote depending on the
51638 command line state.
51639 (get_state): new function.
51640 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51641 split the arguments and determine the current argument. When the
51642 argument string is not quoted, escape all spaces.
51644 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51646 * normal/sparc64/setjmp.S: New file.
51648 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51650 * include/grub/sparc64/libgcc.h: New file.
51651 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51652 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51653 normal/sparc64/setjmp.c.
51655 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51657 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51658 * kern/sparc64/cache.S: New file.
51659 * kern/sparc64/cache.c: Removed.
51660 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51661 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51663 (COMMON_LDFLAGS): Add -melf64_sparc.
51664 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51665 (grubof_SOURCES): Use cache.S instead of cache.c.
51666 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51667 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51668 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51670 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51671 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51672 (linux_mod_CFLAGS): Commented out.
51673 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51674 out because module isn't built.
51675 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51676 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51677 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51678 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51679 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51680 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51681 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51682 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51683 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51684 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51685 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51686 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51687 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51688 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51690 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51692 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51693 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51694 longer, because HFS should not be used on PC.
51696 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51698 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51699 consistently within the loop.
51701 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51703 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51704 directory can not be read.
51706 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51708 * configure.ac (AC_INIT): Increase the version number to 1.91.
51710 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51711 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51712 term/i386/pc/serial.c.
51714 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51716 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51717 file size must be permitted.
51719 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51720 between %ah and %al.
51722 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51724 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51726 Call the hook with a NUL-terminated filename.
51727 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51730 * kern/term.c (cursor_state): New variable.
51731 (grub_term_set_current): Reset the cursor state on a new
51733 (grub_setcursor): Rewritten to use CURSOR_STATE.
51734 (grub_getcursor): New function.
51736 * include/grub/term.h (grub_getcursor): New prototype.
51738 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51739 integers on ARM. Reported by Timothy Baldwin
51740 <T.E.Baldwin99@members.leeds.ac.uk>.
51742 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51744 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51746 (grub_sfs_dir): Likewise.
51748 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51750 Add support for the SFS filesystem.
51752 * fs/sfs.c: New file.
51754 * DISTLIST: Added `fs/sfs.c'.
51756 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51757 (grub_probefs_SOURCES): Likewise.
51758 (grub_emu_SOURCES): Likewise.
51759 (pkgdata_MODULES): Add `sfs.mod'.
51760 (sfs_mod_SOURCES): New variable.
51761 (sfs_mod_CFLAGS): Likewise.
51762 (sfs_mod_LDFLAGS): Likewise.
51764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51765 (pkgdata_MODULES): Add `sfs.mod'.
51766 (sfs_mod_SOURCES): New variable.
51767 (sfs_mod_CFLAGS): Likewise.
51769 * util/grub-emu.c (main): Call `grub_sfs_init' and
51772 * include/grub/fs.h (grub_sfs_init): New prototype.
51773 (grub_sfs_fini): Likewise.
51775 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51777 Add support for the AFFS filesystem.
51779 * fs/affs.c: New file.
51781 * DISTLIST: Added `fs/affs.c'.
51783 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51784 (grub_probefs_SOURCES): Likewise.
51785 (grub_emu_SOURCES): Likewise.
51786 (pkgdata_MODULES): Add `affs.mod'.
51787 (affs_mod_SOURCES): New variable.
51788 (affs_mod_CFLAGS): Likewise.
51789 (affs_mod_LDFLAGS): Likewise.
51791 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51792 (pkgdata_MODULES): Add `affs.mod'.
51793 (affs_mod_SOURCES): New variable.
51794 (affs_mod_CFLAGS): Likewise.
51796 * util/grub-emu.c (main): Call `grub_affs_init' and
51799 * include/grub/fs.h (grub_affs_init): New prototype.
51800 (grub_affs_fini): Likewise.
51802 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51804 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51806 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51808 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51811 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51814 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51815 (COMMON_LDFLAGS): New variable.
51816 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51817 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51818 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51819 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51820 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51821 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51822 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51823 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51824 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51825 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51826 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51827 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51828 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51829 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51830 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51832 (normal_mod_ASFLAGS): Add `-m32'.
51834 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51835 (grub_host_size_t, grub_host_ssize_t): New types.
51836 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51837 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51838 `GRUB_HOST_SIZEOF_VOID_P'.
51840 * include/grub/kernel.h (struct grub_module_header): Type of
51841 member offset changed to `grub_host_off_t'. Type of member size
51842 changed to `grub_host_size_t'.
51843 (struct grub_module_info): Type of member offset changed to
51844 `grub_host_off_t'. Type of member size changed to
51845 `grub_host_size_t'.
51847 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51849 Make GRUB's kernel compliant to Multiboot Specification.
51851 * kern/i386/pc/startup.S (multiboot_header): New label.
51852 (multiboot_entry): Likewise.
51853 (multiboot_trampoline): Likewise.
51855 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51856 Increased to 0x4A0.
51858 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51859 put parentheses after a question mark.
51860 [!GRUB_UTIL] (my_mod): New variable.
51862 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51864 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51866 Adds support for the XFS filesystem. Btrees are not supported
51869 * fs/xfs.c: New file.
51871 * DISTLIST: Added `fs/xfs.c'.
51873 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51874 (grub_probefs_SOURCES): Likewise.
51875 (grub_emu_SOURCES): Likewise.
51876 (pkgdata_MODULES): Add `xfs.mod'.
51877 (xfs_mod_SOURCES): New variable.
51878 (xfs_mod_CFLAGS): Likewise.
51880 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51881 (pkgdata_MODULES): Add `xfs.mod'.
51882 (xfs_mod_SOURCES): New variable.
51883 (xfs_mod_CFLAGS): Likewise.
51885 * util/grub-emu.c (main): Call `grub_xfs_init' and
51888 * include/grub/fs.h (grub_xfs_init): New prototype.
51889 (grub_xfs_fini): Likewise.
51892 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51894 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51895 color modes, allow greater than 16 colors to be configured as
51898 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51900 * normal/completion.c (complete_arguments): Add the qualifier
51901 const into OPTIONS.
51903 From Omniflux <omniflux+lists@omniflux.com>:
51904 * include/grub/terminfo.h: New file.
51905 * include/grub/tparm.h: Likewise.
51906 * include/grub/i386/pc/serial.h: Likewise.
51907 * term/terminfo.c: Likewise.
51908 * term/tparm.c: Likewise.
51909 * term/i386/pc/serial.c: Likewise.
51910 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51912 (terminfo_mod_SOURCES): New variable.
51913 (terminfo_mod_CFLAGS): Likewise.
51914 (serial_mod_SOURCES): Likewise.
51915 (serial_mod_CFLAGS): Likewise.
51917 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51919 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51920 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51921 and kern/powerpc/ieee1275/cmain.c, respectively.
51923 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51924 * kern/powerpc/ieee1275/crt0.S: ... here.
51926 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51927 * kern/powerpc/ieee1275/cmain.c: ... here.
51929 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51930 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51931 instead of boot/powerpc/ieee1275/crt0.S and
51932 boot/powerpc/ieee1275/cmain.c, respectively.
51934 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51935 sectors. It was not used anyway.
51937 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51939 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51940 `unused parameter' warning.
51942 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51944 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51946 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51949 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51951 * include/grub/normal.h (enum grub_completion_type): Added
51952 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51954 * normal/cmdline.c (print_completion): Handle
51955 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51956 * normal/menu_entry.c (store_completion): Likewise.
51958 * normal/completion.c (complete_arguments): New function.
51959 (grub_normal_do_completion): Call `complete_arguments' when the
51960 current words start with a dash.
51962 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51964 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51965 `gzio.mod' instead of `io.mod').
51967 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51969 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51970 (DISTDIRS): Added io and video.
51971 Rewrite the search routine to make an output consistently.
51973 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51974 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51975 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51976 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51977 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51978 util/powerpc/ieee1275/misc.c.
51980 * include/grub/gzio.h: New file.
51981 * io/gzio.c: Likewise.
51983 * kern/file.c (grub_file_close): Call grub_device_close only if
51984 FILE->DEVICE is not NULL.
51986 * include/grub/mm.h [!NULL] (NULL): New macro.
51988 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51990 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51991 (pkgdata_MODULES): Added gzio.mod.
51992 (gzio_mod_SOURCES): New variable.
51993 (gzio_mod_CFLAGS): Likewise.
51995 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51996 (pkgdata_MODULES): Added gzio.mod.
51997 (gzio_mod_SOURCES): New variable.
51998 (gzio_mod_CFLAGS): Likewise.
52000 * commands/cat.c: Include grub/gzio.h.
52001 (grub_cmd_cat): Use grub_gzfile_open instead of
52004 * commands/cmp.c: Include grub/gzio.h.
52005 (grub_cmd_cmp): Use grub_gzfile_open instead of
52008 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
52009 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52011 (grub_rescue_cmd_module): Likewise.
52013 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52015 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52016 kern/sparc64/ieee1275/init.c because it contains _start.
52017 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52019 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52021 * configure.ac: Add support for sparc64 host with ieee1275
52023 * configure: Generated from configure.ac.
52024 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52026 (grub_ofdisk_read): Likewise.
52027 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52028 pointers as (void *) to remove a warning.
52029 (grub_ofdisk_close): Likewise.
52030 (grub_ofdisk_read): Likewise.
52031 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52032 returns, so make it return void to remove a warning.
52033 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52034 Corresponding prototype change.
52035 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52036 values, and cast the pointers as (void *) to remove a warning.
52037 (grub_mm_dump): Likewise.
52038 * conf/sparc64-ieee1275.mk: New file.
52039 * conf/sparc64-ieee1275.rmk: Likewise.
52040 * include/grub/sparc64/setjmp.h: Likewise.
52041 * include/grub/sparc64/types.h: Likewise.
52042 * include/grub/sparc64/ieee1275/console.h: Likewise.
52043 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52044 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52045 * include/grub/sparc64/ieee1275/time.h: Likewise.
52046 * kern/sparc64/cache.c: Likewise.
52047 * kern/sparc64/dl.c: Likewise.
52048 * kern/sparc64/ieee1275/init.c: Likewise.
52049 * kern/sparc64/ieee1275/openfw.c: Likewise.
52051 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52053 * util/console.c (grub_ncurses_putchar): If C is greater than
52054 0x7f, set C to a question mark.
52055 (grub_ncurses_getcharwidth): New function.
52056 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52059 * normal/menu.c (print_entry): Made aware of Unicode. First,
52060 convert TITLE to UCS-4, and predict the cursor position by
52063 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52065 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52067 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52069 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52070 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52073 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52074 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52075 grub_strcpy and grub_strlen. Take it into account that a space
52076 character is inserted as a delimiter.
52078 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52080 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52081 invalid magic in the error.
52083 * commands/search.c: New file.
52085 * util/grub-emu.c (main): Call grub_search_init and
52088 * kern/rescue.c (grub_rescue_print_disks): Removed.
52089 (grub_rescue_print_devices): New function.
52090 (grub_rescue_cmd_ls): Use grub_device_iterate with
52091 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52092 grub_rescue_print_disks.
52094 * kern/partition.c (grub_partition_iterate): Return the result of
52095 PARTMAP->ITERATE instead of GRUB_ERRNO.
52097 * kern/device.c: Include grub/partition.h.
52098 (grub_device_iterate): New function.
52100 * include/grub/partition.h (grub_partition_iterate): Return int
52101 instead of grub_err_t.
52103 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52105 [GRUB_UTIL] (grub_search_fini): Likewise.
52107 * include/grub/device.h (grub_device_iterate): New prototype.
52109 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52111 (pkgdata_MODULES): Added search.mod.
52112 (search_mod_SOURCES): New variable.
52113 (search_mod_CFLAGS): Likewise.
52115 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52116 (pkgdata_MODULES): Added search.mod.
52117 (search_mod_SOURCES): New variable.
52118 (search_mod_CFLAGS): Likewise.
52120 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52121 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52122 All callers changed.
52124 * DISTLIST: Added commands/search.c.
52126 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52128 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52130 (grub_getcharwidth): New function.
52132 * kern/misc.c (grub_utf8_to_ucs4): New function.
52134 * include/grub/term.h (struct grub_term): Added a new member
52136 (grub_getcharwidth): New prototype.
52138 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52140 * term/i386/pc/console.c (map_char): New function. Segregated from
52141 grub_console_putchar.
52142 (grub_console_putchar): Use map_char.
52143 (grub_console_getcharwidth): New function.
52144 (grub_console_term): Specified grub_console_getcharwidth as
52147 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52148 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52150 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52152 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52153 on grub_strtoul completely.
52154 (write_char): Declare local variables in the beginning of the
52156 (grub_vesafb_getcharwidth): New function.
52157 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52160 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52162 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52163 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52164 commands/i386/pc/vbetest.c.
52166 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52167 call grub_vbe_get_controller_info again, because the returned
52168 information is volatile.
52169 (grub_vbe_set_video_mode): Mostly rewritten.
52170 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52171 grub_vbe_status_t correctly.
52172 (grub_vbe_get_video_mode_info): Likewise.
52173 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52174 several if statements.
52176 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52177 * commands/i386/pc/vbeinfo.c: ... this.
52179 * commands/i386/pc/vbe_test.c: Renamed to ...
52180 * commands/i386/pc/vbetest.c: ... this.
52182 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52184 (grub_cmd_vbeinfo): ... this. Save video modes before
52185 iterating. Skip a video mode, if it is not available, not enough
52186 information is given or it is monochrome. Show the memory
52187 model. Leave the interpretation of MODEVAR to grub_strtoul
52189 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52190 (GRUB_MOD_FINI): Likewise.
52192 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52193 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52194 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52195 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52196 grub_strtoul completely.
52197 (real2pm): Removed.
52198 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52199 (GRUB_MOD_FINI): Likewise.
52201 * normal/misc.c: Include grub/mm.h.
52203 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52204 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52205 (vbe_list_modes_mod_SOURCES): Removed.
52206 (vbe_list_modes_mod_CFLAGS): Likewise.
52207 (vbe_test_mod_SOURCES): Likewise.
52208 (vbe_test_mod_CFLAGS): Likewise.
52209 (vbeinfo_mod_SOURCES): New variable.
52210 (vbeinfo_mod_CFLAGS): Likewise.
52211 (vbetest_mod_SOURCES): Likewise.
52212 (vbetest_mod_CFLAGS): Likewise.
52214 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52216 * normal/misc.c: New file.
52218 * DISTLIST: Added normal/misc.c.
52220 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52221 DISK to HOOK. Call HOOK with DISK.
52222 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52223 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52224 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52226 * normal/menu_entry.c (struct screen): Added a new member
52227 "completion_shown".
52228 (completion_buffer): New global variable.
52229 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52230 (store_completion): New function.
52231 (complete): Likewise.
52232 (clear_completions): Likewise.
52233 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52234 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52235 a tab, call complete.
52237 * normal/completion.c (disk_dev): Removed.
52238 (print_simple_completion): Likewise.
52239 (print_partition_completion): Likewise.
52240 (print_func): New global variable.
52241 (add_completion): Do not take the arguments WHAT or PRINT any
52242 longer. Added a new argument TYPE. Instead of printing directly,
52243 call PRINT_FUNC if not NULL.
52244 All callers changed.
52245 (complete_device): Use a local variable DEV instead of
52246 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52247 (grub_normal_do_completion): Take a new argument HOOK. Do not
52248 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52249 empty string, return NULL instead.
52250 All callers changed.
52252 * normal/cmdline.c (print_completion): New function.
52254 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52256 All callers changed.
52258 * kern/disk.c (grub_print_partinfo): Removed.
52260 * include/grub/partition.h (struct grub_partition_map): Add a new
52261 argument DISK into HOOK of ITERATE.
52262 (grub_partition_iterate): Add a new argument DISK to HOOK.
52264 * include/grub/normal.h (enum grub_completion_type): New enum.
52265 (grub_completion_type_t): New type.
52266 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52267 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52268 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52269 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52270 (grub_normal_do_completion): Added a new argument HOOK.
52271 (grub_normal_print_device_info): New prototype.
52273 * include/grub/disk.h (grub_print_partinfo): Removed.
52275 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52276 (normal_mod_SOURCES): Likewise.
52277 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52278 (normal_mod_SOURCES): Likewise.
52280 * commands/ls.c (grub_ls_list_disks): Use
52281 grub_normal_print_device_info instead of grub_print_partinfo. Free
52283 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52284 duplicating the code.
52286 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52288 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52289 follow GCS more precisely.
52290 * commands/i386/pc/vbe_test.c: Likewise.
52291 * include/grub/i386/pc/vbe.h: Likewise.
52292 * term/i386/pc/vesafb.c: Likewise.
52293 * video/i386/pc/vbe.c: Likewise.
52295 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52297 * DISTLIST: Added term/i386/pc/vesafb.c
52298 DISTLIST: Added video/i386/pc/vbe.c
52299 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52300 DISTLIST: Added commands/i386/pc/vbe_test.c.
52301 * commands/i386/pc/vbe_list_modes.c: New file.
52302 * commands/i386/pc/vbe_test.c: Likewise.
52303 * term/i386/pc/vesafb.c: Likewise.
52304 * video/i386/pc/vbe.c: Likewise.
52305 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52306 (grub_vbe_probe) Added prototype.
52307 (grub_vbe_set_video_mode) Likewise.
52308 (grub_vbe_get_video_mode) Likewise.
52309 (grub_vbe_get_video_mode_info) Likewise.
52310 (grub_vbe_set_pixel_rgb) Likewise.
52311 (grub_vbe_set_pixel_index) Likewise.
52312 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52313 (pkgdata_MODULES): Added vesafb.mod.
52314 (pkgdata_MODULES): Added vbe_list_modes.mod.
52315 (pkgdata_MODULES): Added vbe_test.mod.
52316 (vbe_mod_SOURCES): Added.
52317 (vbe_mod_CFLAGS): Likewise.
52318 (vesafb_mod_SOURCES): Likewise.
52319 (vesafb_mod_CFLAGS): Likewise.
52320 (vbe_list_modes_mod_SOURCES): Likewise.
52321 (vbe_list_modes_mod_CFLAGS): Likewise.
52322 (vbe_test_mod_SOURCES): Likewise.
52323 (vbe_test_mod_CFLAGS): Likewise.
52325 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52327 * normal/command.c (grub_command_execute): If INTERACTIVE is
52328 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52329 CMDLINE. Disable the pager if INTERACTIVE is true.
52330 All callers are changed.
52332 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52333 before reading a config file.
52334 * normal/main.c (read_config_file): Even if a command is not
52335 found, register it if it is within an entry.
52337 * util/grub-emu.c: Include sys/types.h and unistd.h.
52338 (options): Added --hold.
52339 (struct arguments): Added a new member "hold".
52340 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52342 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52343 cleared by a debugger, if it is not zero.
52345 * include/grub/normal.h (grub_command_execute): Add an argument
52348 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52350 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52352 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52354 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52355 program with another one, because the old one didn't detect a bug
52356 in gcc-3.4. Always use regparm 2, because the new test is still
52357 not enough for gcc-4.0. Someone must investigate a simple test
52358 case which detects a bug in gcc-4.0.
52360 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52362 * DISTLIST: Added normal/completion.c.
52364 * normal/completion.c: New file.
52366 * term/i386/pc/console.c (grub_console_getwh): New function.
52367 (grub_console_term): Assign grub_console_getwh to getwh.
52369 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52370 function is defined in normal/completion.c as
52371 grub_normal_do_completion.
52372 (grub_cmdline_get): Use grub_normal_do_completion instead of
52375 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52376 returns non-zero, otherwise return 0.
52377 (grub_partition_iterate): First, probe the partition map. Then,
52378 call ITERATE only for this partition map.
52380 * kern/misc.c (grub_strncmp): Rewritten.
52382 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52383 returns non-zero. Otherwise return 0.
52385 * include/grub/partition.h (grub_partition_map_iterate): Return
52386 int instead of void.
52388 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52390 * include/grub/misc.h (grub_strncmp): Change the type of N to
52393 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52396 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52397 unsigned explicitly before comparing it with I.
52399 * kern/main.c (grub_env_write_root): Add the attribute unused into
52402 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52403 normal/completion.c.
52404 (normal_mod_SOURCES): Likewise.
52405 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52406 (normal_mod_SOURCES): Likewise.
52408 * normal/command.c (grub_iterate_commands): If ITERATE returns
52409 non-zero, return one immediately.
52411 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52413 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52414 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52416 (grub_vbe_get_controller_info): New function.
52417 (grub_vbe_get_mode_info): Likewise.
52418 (grub_vbe_set_mode): Likewise.
52419 (grub_vbe_get_mode): Likewise.
52420 (grub_vbe_set_memory_window): Likewise.
52421 (grub_vbe_get_memory_window): Likewise.
52422 (grub_vbe_set_scanline_length): Likewise.
52423 (grub_vbe_get_scanline_length): Likewise.
52424 (grub_vbe_set_display_start): Likewise.
52425 (grub_vbe_get_display_start): Likewise.
52426 (grub_vbe_set_palette_data): Likewise.
52427 * include/grub/i386/pc/vbe.h: New file.
52429 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52431 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52432 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52433 * DISTLIST: Likewise.
52434 * kern/ieee1275/of.c: Moved to ...
52435 * kern/ieee1275/ieee1275.c: ... here.
52437 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52439 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52440 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52441 Pass 0 as `end' parameter to grub_strtoul().
52443 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52445 * include/grub/powerpc/ieee1275/console.h: Do not include
52446 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52448 (grub_console_cur_color): Remove i386-specific prototype.
52449 (grub_console_real_putchar): Likewise.
52450 (grub_console_checkkey): Likewise.
52451 (grub_console_getkey): Likewise.
52452 (grub_console_getxy): Likewise.
52453 (grub_console_gotoxy): Likewise.
52454 (grub_console_cls): Likewise.
52455 (grub_console_setcursor): Likewise.
52456 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52457 Include <grub/machine/console.h>.
52458 * term/ieee1275/ofconsole.c: Likewise.
52460 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52462 * Makefile.in (LIBLZO): New variable.
52464 * configure.ac: Check for LZO version 2.
52466 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52467 lzo/lzo1x.h instead of lzo1x.h.
52469 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52472 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52473 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52475 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52476 copying the data from PARTITION to P.
52478 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52480 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52481 negative, unload the module.
52483 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52484 map is "pc_partition_map" but not "pc".
52485 (usage): Fix the description. The options are --boot-image and
52486 --core-image but not --boot-file or --core-file.
52487 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52488 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52491 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52492 --core-file. Specify INSTALL_DEVICE as an argument.
52494 * util/console.c: Include config.h.
52495 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52496 [HAVE_NCURSES_H]: Include ncurses.h.
52497 [HAVE_CURSES_H]: Include curses.h.
52498 [!A_NORMAL] (A_NORMAL): Defined as zero.
52499 [!A_STANDOUT] (A_STANDOUT): Likewise.
52501 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52503 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52505 * configure.ac: Check for curses libraries and headers.
52507 * Makefile.in (LIBCURSES): New variable.
52509 * genmk.rb (Script::rule): Set the executable bits.
52511 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52512 name of the PC partition map is "pc_partition_map" but not "pc".
52514 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52516 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52517 (modules): Likewise.
52518 (usage): Added descriptions for --modules and --grub-probefs.
52519 Handle --modules and --grub-probefs. Save the arguments in MODULES
52520 and GRUB_PROBEFS, respectively.
52521 Auto-detect a filesystem module against GRUBDIR. If the result is
52522 empty and modules are not specified explicitly, abort the
52523 installation. Add the result to MODULES.
52525 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52526 disk/powerpc/ieee1275/ofdisk.c,
52527 include/grub/powerpc/ieee1275/init.h and
52528 term/powerpc/ieee1275/ofconsole.c.
52529 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52530 term/ieee1275/ofconsole.c.
52532 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52534 * COPYING: Upgraded to the latest version. Only the address of the
52535 FSF office has changed.
52537 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52539 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52540 kern/ieee1275.c with kern/ieee1275/of.c.
52542 * kern/ieee1275.c: Moved to ...
52543 * kern/ieee1275/of.c: ... here.
52545 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52547 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52550 * config.guess: Updated to the latest version from gnulib.
52551 * config.sub: Likewise.
52552 * install.sh: Likewise.
52553 * mkinstalldirs: Likewise.
52555 * include/grub/console.h: Removed. This file is arch-specific. Do
52556 not put this in include/grub.
52558 * include/grub/i386/pc/console.h: Resurrected.
52560 * util/console.c: Include grub/machine/console.h instead of
52562 * util/grub-emu.c: Likewise.
52564 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52566 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52569 From Vincent Pelletier <subdino2004@yahoo.fr>
52570 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52571 Redefined to use grub_getwh.
52572 (grub_term): New member named getwh.
52573 (grub_getwh): New prototype.
52574 * kern/term.c (grub_getwh): New function.
52575 * term/i386/pc/console.c (grub_console_getwh): New function.
52576 (grub_console_term): New member `getwh'.
52577 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52578 (grub_vga_term): New member `getwh'.
52579 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52581 (grub_ofconsole_getw): New function.
52582 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52583 (grub_ofconsole_term): New field named getwh and new initial
52586 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52588 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52589 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52590 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52591 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52592 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52593 of <grub/machine/ieee1275.h>.
52594 * commands/ieee1275/reboot.c: Likewise.
52595 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52596 * kern/ieee1275.c: ... to here. All users updated. Change all
52597 parameter structs to use new type `grub_ieee1275_cell_t'.
52598 * term/powerpc/ieee1275/ofconsole.c: Move ...
52599 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52600 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52601 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52602 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52604 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52605 Remove unused prototypes. All users updated.
52606 * include/grub/powerpc/ieee1275/console.h: Removed.
52607 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52608 `grub_ieee1275_cell_t'.
52609 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52610 Cast comparisons with -1 to the correct type.
52611 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52612 type to match `grub_ieee1275_entry_fn'.
52614 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52616 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52618 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52619 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52621 (grub_probefs_SOURCES): New variable.
52623 * util/i386/pc/grub-probefs.c: New file.
52625 * util/i386/pc/grub-setup.c (main): Call
52626 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52627 grub_hfs_init and grub_jfs_init to initialize the system. Call
52628 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52629 grub_pc_partition_map_fini to finish the system.
52631 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52633 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52635 (grub_multiboot_load_elf32): Likewise.
52636 (grub_multiboot_is_elf64): Likewise.
52637 (grub_multiboot_load_elf64): Likewise.
52638 (grub_multiboot_load_elf): Likewise.
52639 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52640 an ELF32 or ELF64 file.
52641 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52643 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52644 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52645 NULL before calling FS->LABEL.
52646 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52647 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52648 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52649 before calling FS->LABEL.
52651 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52653 * util/i386/pc/grub-install.in (datadir): New variable.
52655 (pkgdatadir): New variable.
52656 (pkglibdir): Removed.
52658 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52660 * DISTLIST: Added util/i386/pc/grub-install.in.
52662 * util/i386/pc/grub-install.in: New file.
52664 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52665 (grub_install_SOURCES): Likewise.
52667 * genmk.rb: Added support for scripts.
52668 (Script): New class.
52669 (scripts): New variable.
52671 * Makefile.in (install-local): Install sbin_SCRIPTS by
52673 (uninstall): Remove sbin_SCRIPTS.
52675 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52676 device, try to get a GRUB device by
52677 grub_util_biosdisk_get_grub_dev.
52680 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52681 description for --device-map.
52683 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52685 Change the semantics of variable hooks. They now return strings
52686 instead of error values.
52688 * util/i386/pc/grub-setup.c: Include grub/env.h.
52689 (setup): Use grub_device_set_root instead of grub_env_set.
52691 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52692 grub_env_get instead of grub_device_set_root and
52693 grub_device_get_root, respectively.
52695 * kern/main.c (grub_env_write_root): New function.
52696 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52697 grub_env_set instead of grub_device_set_root.
52699 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52701 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52702 rather than calling ENV->WRITE_HOOK afterwards.
52703 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52704 passing a pointer of a pointer.
52705 (grub_register_variable_hook): Change the types of "read_hook" and
52706 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52708 Allocate the default empty string on the heap, because this string
52709 may be freed later.
52711 * kern/device.c: Include grub/env.h.
52712 (grub_device_set_root): Removed.
52713 (grub_device_get_root): Likewise.
52714 (grub_device_open): Use grub_env_get instead of
52715 grub_device_get_root.
52717 * include/grub/env.h (grub_env_read_hook_t): New type.
52718 (grub_env_write_hook_t): Likewise.
52719 (grub_env_var): Change the types of "read_hook" and "write_hook"
52720 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52721 (grub_register_variable_hook): Likewise.
52723 * include/grub/device.h (grub_device_set_root): Removed.
52724 (grub_device_set_root): Likewise.
52726 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52727 make sure that DIRNAME terminates with '/', so that
52728 grub_fat_find_dir will fail if PATH is not a directory.
52730 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52732 Use the qualifier auto for print_files and print_files_long.
52733 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52735 Put a newline only if there is no error.
52736 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52739 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52741 * kern/partition.c (grub_partition_probe): Initialize PART to
52742 NULL. Otherwise, when no partition map is registered, this returns
52745 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52747 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52748 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52751 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52753 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52754 information on each device, if it does not have partitions. Print
52755 "Device" instead of "Disk", because this function is not specific
52758 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52759 static to ensure that it is put on the memory rather than a
52762 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52764 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52765 (grub_cat_init): Likewise.
52766 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52767 (options): Likewise.
52768 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52769 (grub_configfile_init): Likewise.
52770 * font/manager.c (GRUB_MOD_INIT): Likewise.
52771 * commands/help.c (GRUB_MOD_INIT): Likewise.
52772 (grub_help_init): Likewise.
52773 * normal/command.c (grub_command_init): Likewise.
52774 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52775 * disk/loopback.c (grub_loop_init): Likewise.
52776 (GRUB_MOD_INIT): Likewise.
52777 * commands/ls.c (grub_ls_init): Likewise.
52778 (GRUB_MOD_INIT): Likewise.
52779 (options): Likewise.
52780 * commands/boot.c (grub_boot_init): Likewise.
52781 (GRUB_MOD_INIT): Likewise.
52782 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52783 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52784 (GRUB_MOD_INIT): Likewise.
52785 * commands/cmp.c (grub_cmp_init): Likewise.
52786 (GRUB_MOD_INIT): Likewise.
52788 * normal/arg.c: Use <> instead of "" to include header files.
52789 (SHORT_ARG_HELP): New macro.
52790 (SHORT_ARG_USAGE): Likewise.
52791 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52792 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52794 (find_short): Check if C is 'h' or 'u' explicitly.
52795 (grub_arg_show_help): Use space characters instead of tabs. Treat
52796 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52797 are shown with --help and --usage only if they are not used for
52798 the command itself.
52799 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52802 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52803 const into "longarg". Change the type of "shortarg" to int.
52805 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52807 * boot/i386/pc/boot.S (boot_drive_check): New label.
52809 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52812 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52813 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52815 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52817 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52818 When turning off Gate A20, skip the check and return immediately,
52819 because this is not fatal usually.
52821 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52823 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52824 be 0x7C00 instead of 0x8000.
52826 * boot/i386/pc/pxeboot.S: Rewritten.
52828 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52830 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52833 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52835 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52836 robustness. This routine now supports a BIOS call and System
52837 Control Port A to modify the gate A20.
52839 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52840 Increased to 0x440.
52842 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52844 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52845 device path and resulting ihandle.
52846 (grub_ofdisk_close): dprintf the ihandle being closed.
52847 (grub_ofdisk_read): dprintf function parameters.
52848 * kern/mm.c (grub_mm_init_region): Likewise.
52849 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52850 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52851 size, and boot arguments.
52852 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52853 before loading into memory.
52854 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52855 before loading into memory.
52857 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52859 * kern/mm.c: Added much documentation.
52860 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52861 8, set to 5 instead of 8.
52863 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52865 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52867 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52868 (grub_mkdevicemap_SOURCES): New variable.
52870 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52871 lib/device.c of GRUB Legacy.
52873 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52875 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52876 instead of PATH is NULL.
52878 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52880 * commands/cmp.c (BUFFER_SIZE): New macro.
52881 (grub_cmd_cmp): Close the right file at the right time. Compare
52882 only data just read. Don't report files of different size as
52883 identical. Dynamically allocate buffers. Move variable
52884 declarations at the beginning of function.
52886 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52888 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52891 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52893 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52894 when backspace is pressed at beginning of line.
52896 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52898 * DISTLIST: Added genfslist.sh.
52900 * normal/main.c (fs_module_list): New variable.
52901 (autoload_fs_module): New function.
52902 (read_fs_list): Likewise.
52903 (grub_normal_execute): Call read_fs_list.
52905 * kern/fs.c (grub_fs_autoload_hook): New variable.
52906 (grub_fs_probe): Added support for auto-loading.
52908 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52909 (grub_fs_module_list_t): New type.
52911 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52912 (grub_fs_autoload_hook): New prototype.
52914 * genfslist.sh: New file.
52916 * genmk.rb: Added a rule to generate a filesystem list.
52918 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52920 * configure.ac: Fix the test for cross-compiling.
52922 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52923 define GRUB_UTIL anymore.
52925 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52926 so this function works on other systems than just big endian.
52927 (load_modules): Likewise.
52928 (add_segments): Likewise.
52930 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52932 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52933 contains `l' modifier, get a long from va_arg().
52935 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52937 * kern/mm.c (grub_free): If the next free block which is being
52938 merged is the first free block, set the first block to the block
52940 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52942 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52944 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52945 `grub_ieee1275_chosen'.
52947 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52949 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52950 (grub_ieee1275_chosen): New variable.
52951 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52953 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52954 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52955 Rename first argument to `phandle' for consistency.
52956 (grub_ieee1275_get_property_length): Likewise.
52957 (grub_ieee1275_next_property): Likewise. Change type of first argument
52958 to grub_ieee1275_phandle_t.
52959 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52960 Move export next to declaration.
52961 (grub_ieee1275_chosen): New variable.
52962 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52963 Correct cosmetic typo.
52964 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52965 `grub_ieee1275_chosen'.
52966 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52967 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52968 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52969 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52970 `grub_ieee1275_chosen'.
52972 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52974 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52976 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52977 /chosen/bootargs as "variable=value" pairs.
52979 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52981 * include/grub/misc.h (grub_dprintf): New macro.
52982 (grub_real_dprintf): New prototype.
52983 (grub_strword): Likewise.
52984 (grub_iswordseparator): Likewise.
52985 * kern/misc.c (grub_real_dprintf): New function.
52986 (grub_strword): Likewise.
52987 (grub_iswordseparator): Likewise.
52989 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52991 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52992 (roundup): Remove macro.
52993 (grub_ieee1275_flags): Make static.
52994 (grub_ieee1275_realmode): Remove.
52995 (grub_ieee1275_test_flag): New function.
52996 (grub_ieee1275_set_flag): Likewise.
52997 (find_options): Rename to `grub_ieee1275_find_options'; update
52998 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52999 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
53000 (cmain): New prototype.
53001 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
53002 `grub_ieee1275_flags' directly.
53003 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
53004 machine/biosdisk.h.
53005 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
53006 Don't include grub/machine/init.h.
53007 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
53008 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53010 (grub_ieee1275_realmode): Likewise.
53011 (grub_ieee1275_flag): New enum.
53012 (grub_ieee1275_test_flag): New prototype.
53013 (grub_ieee1275_set_flag): New prototype.
53014 * include/grub/powerpc/ieee1275/init.h: Remove file.
53015 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53016 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53017 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53018 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53020 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53021 `grub_ieee1275_test_flag'.
53022 (grub_ieee1275_encode_devname): Likewise.
53024 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53026 * include/grub/powerpc/ieee1275/ieee1275.h
53027 (grub_ieee1275_encode_devname): New prototype.
53028 (grub_ieee1275_get_filename): Likewise.
53029 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53031 (grub_set_prefix): Likewise.
53032 (grub_machine_init): Call grub_set_prefix.
53033 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53034 (grub_parse_type): New enum.
53035 (grub_ieee1275_get_devargs): New function.
53036 (grub_ieee1275_get_devname): Likewise.
53037 (grub_ieee1275_parse_args): Likewise.
53038 (grub_ieee1275_get_filename): Likewise.
53039 (grub_ieee1275_encode_devname): Likewise.
53041 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53043 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53044 `grub_loader_unset'.
53046 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53048 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53049 instead of grub_ieee1275_interpret.
53050 (grub_halt_init): New function.
53051 (grub_halt_fini): Likewise.
53052 (GRUB_MOD_INIT): Correct message grammar.
53053 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53054 instead of grub_ieee1275_interpret.
53055 (grub_reboot_init): New function.
53056 (grub_reboot_fini): Likewise.
53057 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53058 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53059 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53060 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53061 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53063 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53065 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53067 (grub_halt): Likewise.
53068 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53069 (cmain): Remove __attribute__((unused)).
53070 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53071 (grub_heap_len): Likewise.
53072 (grub_machine_fini): New function.
53073 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53074 (grub_halt): Likewise.
53075 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53077 * util/powerpc/ieee1275/misc.c: New file.
53079 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53081 * DISTLIST: New file.
53082 * gendistlist.sh: Likewise.
53084 * Makefile.in (COMMON_DISTFILES): Removed.
53085 (BOOT_DISTFILES): Likewise.
53086 (CONF_DISTFILES): Likewise.
53087 (DISK_DISTFILES): Likewise.
53088 (FS_DISTFILES): Likewise.
53089 (INCLUDE_DISTFILES): Likewise.
53090 (KERN_DISTFILES): Likewise.
53091 (LOADER_DISTFILES): Likewise.
53092 (TERM_DISTFILES): Likewise.
53093 (UTIL_DISTFILES): Likewise.
53094 (DISTFILES): Likewise.
53095 (uninstall): Uninstall files in $(pkgdata_DATA).
53096 (DISTLIST): New target.
53097 (distdir): Use the contents of the file DISTLIST to get a list of
53100 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53102 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53103 descriptor. This is ported from GRUB Legacy.
53105 * gencmdlist.sh: Added an extra semicolon to make it work with
53106 old sed versions. Reported by Robert Bihlmeyer
53107 <robbe@orcus.priv.at>.
53109 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53111 Automatic loading of commands is supported.
53113 * normal/main.c (read_command_list): New function.
53114 (grub_normal_execute): Call read_command_list.
53116 * normal/command.c (grub_register_command): Return zero or CMD.
53117 Allocate CMD->NAME from the heap.
53118 Initialize CMD->MODULE_NAME to zero.
53119 Find the same name as well. If the same command is found and it is
53120 a dummy command, overwrite members. If it is not a dummy command,
53122 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53123 (grub_command_find): If a dummy command is found, load a module
53124 and retry to find a command only once.
53126 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53127 make sure that each command is loaded.
53129 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53131 (struct grub_command): Remove const from the member `name'.
53132 Add a new member `module_name'.
53133 (grub_register_command): Return grub_command_t.
53135 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53136 sure that each command is loaded.
53138 * genmk.rb (PModule::rule): Specify a module name without the
53139 suffix ".mod" to gencmdlist.sh.
53141 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53143 * gencmdlist.sh: New file.
53145 * genmk.rb (PModule::rule): Generate a rule for a command list.
53147 Generate command.lst from $(COMMANDFILES).
53149 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53150 (DATA): Added $(pkgdata_DATA).
53151 (install-local): Install files in $(pkgdata_DATA).
53153 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53155 * term/i386/pc/vga.c (debug_command): Removed.
53156 (GRUB_MOD_INIT): Do not register the command "debug".
53158 From Hollis Blanchard:
53159 * commands/configfile.c: New file.
53160 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53161 commands/configfile.c.
53162 (pkgdata_MODULES): Added configfile.mod.
53163 (configfile_mod_SOURCES): New variable.
53164 (configfile_mod_CFLAGS): Likewise.
53165 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53166 commands/configfile.c.
53167 (pkgdata_MODULES): Added configfile.mod.
53168 (configfile_mod_SOURCES): New variable.
53169 (configfile_mod_CFLAGS): Likewise.
53170 * util/grub-emu.c (main): Call grub_configfile_init and
53171 grub_configfile_fini.
53172 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53174 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53176 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53178 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53181 * commands/help.c (grub_cmd_help): Do not print newlines after
53182 the last command in print_command_help.
53184 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53186 * commands/default.h: New file.
53187 * commands/timeout.h: Likewise.
53188 * normal/context.c: Likewise.
53190 * util/misc.c: Do not include sys/times.h.
53191 Include sys/time.h and grub/machine/time.h.
53192 (grub_get_rtc): Rewritten with gettimeofday.
53194 * util/grub-emu.c (main): Call grub_default_init and
53195 grub_timeout_init before grub_normal_init, and call
53196 grub_timeout_fini and grub_default_fini after grub_main.
53198 * util/console.c (grub_ncurses_checkkey): Return the read
53201 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53204 * normal/main.c (read_config_file): Push MENU. If this fails,
53205 print an error and wait for a user input.
53206 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53207 If a menu is empty or an error occurs, pop MENU.
53208 (grub_normal_execute): Pop and free MENU after grub_menu_run
53211 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53213 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53215 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53217 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53219 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53222 * include/grub/normal.h (struct grub_menu_list): New struct.
53223 (grub_menu_list_t): New type.
53224 (struct grub_context): New struct.
53225 (grub_context_t): New type.
53226 (grub_register_command): Got rid of EXPORT_FUNC.
53227 (grub_unregister_command): Likewise.
53228 (grub_context_get): New prototype.
53229 (grub_context_get_current_menu): Likewise.
53230 (grub_context_push_menu): Likewise.
53231 (grub_context_pop_menu): Likewise.
53232 [GRUB_UTIL] (grub_default_init): Likewise.
53233 [GRUB_UTIL] (grub_default_fini): Likewise.
53234 [GRUB_UTIL] (grub_timeout_init): Likewise.
53235 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53237 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53238 commands/timeout.c and normal/context.c.
53239 (pkgdata_MODULES): Added default.mod and timeout.mod.
53240 (normal_mod_SOURCES): Added normal/context.c.
53241 (default_mod_SOURCES): New variable.
53242 (default_mod_CFLAGS): Likewise.
53243 (timeout_mod_SOURCES): Likewise.
53244 (timeout_mod_CFLAGS): Likewise.
53245 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53247 (pkgdata_MODULES): Added default.mod and timeout.mod.
53248 (normal_mod_SOURCES): Added normal/context.c.
53249 (default_mod_SOURCES): New variable.
53250 (default_mod_CFLAGS): Likewise.
53251 (timeout_mod_SOURCES): Likewise.
53252 (timeout_mod_CFLAGS): Likewise.
53254 * Makefile.in (all-local): Added $(MKFILES).
53256 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53258 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53259 (grub_emu_SOURCES): Likewise.
53260 (pkgdata_MODULES): Add `sun.mod'.
53261 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53264 (pkgdata_MODULES): Add `sun.mod'.
53265 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53266 * include/grub/partition.h (grub_sun_partition_map_init): New
53268 (grub_sun_partition_map_fini): Likewise.
53269 * partmap/sun.c: New file.
53270 * util/grub-emu.c (main): Initialize and de-initialize the sun
53271 partitionmap support.
53273 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53275 This implements an Emacs-like menu entry editor.
53277 * normal/menu_entry.c: New file.
53279 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53280 characters to ASCII.
53281 (saved_char): New variable.
53282 (grub_ncurses_checkkey): Rewritten completely.
53283 (grub_ncurses_getkey): Likewise.
53284 (grub_ncurses_init): Call raw instead of cbreak.
53286 * normal/menu.c (print_entry): Do not put a space.
53287 (init_page): Renamed to ...
53288 (grub_menu_init_page): ... this. All callers changed.
53289 (edit_menu_entry): Removed.
53290 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53292 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53294 * kern/misc.c (grub_vprintf): Call grub_refresh.
53296 * normal/menu.c (DISP_LEFT): Renamed to ...
53297 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53298 * normal/menu.c (DISP_UP): Renamed to ...
53299 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53300 * normal/menu.c (DISP_RIGHT): Renamed to ...
53301 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53302 * normal/menu.c (DISP_DOWN): Renamed to ...
53303 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53304 * normal/menu.c (DISP_HLINE): Renamed to ...
53305 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53306 * normal/menu.c (DISP_VLINE): Renamed to ...
53307 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53308 * normal/menu.c (DISP_UL): Renamed to ...
53309 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53310 * normal/menu.c (DISP_UR): Renamed to ...
53311 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53312 * normal/menu.c (DISP_LL): Renamed to ...
53313 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53314 * normal/menu.c (DISP_LR): Renamed to ...
53315 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53316 * normal/menu.c (TERM_WIDTH): Renamed to ...
53317 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53318 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53319 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53320 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53321 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53322 * normal/menu.c (TERM_MARGIN): Renamed to ...
53323 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53324 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53325 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53326 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53327 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53328 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53329 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53330 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53331 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53332 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53333 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53334 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53335 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53336 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53337 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53338 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53339 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53340 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53341 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53342 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53343 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53344 All callers changed.
53346 * include/grub/normal.h: New prototype.
53348 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53349 normal/menu_entry.c.
53350 (normal_mod_SOURCES): Likewise.
53351 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53352 (normal_mod_SOURCES): Likewise.
53354 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53356 * include/grub/normal.h (grub_halt_init): New prototype.
53357 (grub_halt_fini): Likewise.
53358 (grub_reboot_init): Likewise.
53359 (grub_reboot_fini): Likewise.
53361 * util/grub-emu.c: Include signal.h.
53362 (main_env): New global variable.
53363 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53365 (grub_machine_fini): New function.
53366 (main): Call grub_halt_init and grub_reboot_init before
53367 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53368 Call setjmp with MAIN_ENV to go back afterwards.
53369 Call grub_machine_fini right before return.
53371 * include/grub/util/misc.h: Include setjmp.h.
53372 (main_env): New prototype.
53374 * include/grub/kernel.h (grub_machine_fini): New prototype.
53375 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53376 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53378 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53379 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53380 * term/i386/pc/console.c (grub_console_fini): Likewise.
53382 * util/i386/pc/misc.c: New file.
53384 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53385 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53386 commands/i386/pc/reboot.c.
53388 2005-02-14 Guillem Jover <guillem@hadrons.org>
53390 * include/grub/dl.h (grub_dl_check_header): New prototype.
53391 (grub_arch_dl_check_header): Change return type to grub_err_t,
53392 remove size parameter and export function. Update all callers.
53393 * kern/dl.c (grub_dl_check_header): New function.
53394 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53395 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53396 are inside the core.
53397 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53398 independent ELF header checks.
53399 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53400 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53401 `grub_dl_check_header' instead of explicit checks. Check for the
53403 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53404 `grub_dl_check_header' instead of explicit checks. Remove arch
53405 specific ELF header checks.
53407 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53410 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53412 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53413 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53415 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53417 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53418 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53419 (part_map_iterate): Clear `grub_errno' and return 0 if
53420 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53421 * partmap/amiga.c (amiga_partition_map_iterate): Return
53422 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53423 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53425 2005-02-01 Guillem Jover <guillem@hadrons.org>
53427 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53430 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53432 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53434 (grub_rescue_cmd_linux): New prototype.
53435 (grub_rescue_cmd_initrd): Likewise.
53436 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53438 (grub_linux_release_mem): Release the memory for the initrd.
53439 (grub_load_linux): Renamed from this...
53440 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53441 Changed `entry' not to be static. Loop over memory regions to
53442 find another one when the default fails.
53443 (grub_rescue_cmd_initrd): New function.
53444 (grub_linux_init): Remove function.
53445 (grub_linux_fini): Likewise.
53446 (GRUB_MOD_INIT): Register `initrd'.
53447 (GRUB_MOD_FINI): Unregister `initrd'.
53448 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53450 (grub_linux_normal_fini): Likewise.
53451 (GRUB_MOD_INIT): Register `initrd'.
53452 (GRUB_MOD_FINI): Unregister `initrd'.
53454 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53456 * commands/help.c: New file.
53457 * normal/arg.c (show_help): Renamed to...
53458 (grub_arg_show_help): ... this.
53459 * commands/i386/pc/halt.c: New file.
53460 * commands/i386/pc/reboot.c: Likewise.
53461 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53462 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53463 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53464 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53466 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53468 (pkgdata_MODULES): Add `help.mod'.
53469 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53470 * grub/i386/pc/init.h (grub_reboot): New prototype.
53471 (grub_halt): Likewise.
53472 * include/grub/normal.h (grub_arg_show_help): New prototype.
53473 (grub_help_init): Likewise.
53474 (grub_help_fini): Likewise.
53475 * util/grub-emu.c (main): Initialize and deinitialize the help
53478 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53480 * normal/command.c (grub_command_init): Fixed the description of
53481 the `set' and `unset' commands.
53483 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53485 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53487 * commands/ieee1275/halt.c: New file.
53488 * commands/ieee1275/reboot.c: Likewise.
53489 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53490 `__attribute__ ((unused))'. Some GCS related fixed.
53491 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53492 (grub_suspend_fini): Likewise.
53493 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53495 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53496 (halt_mod_CFLAGS): New variables.
53497 * include/grub/powerpc/ieee1275/ieee1275.h
53498 (grub_ieee1275_interpret): New prototype.
53500 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53502 * include/grub/misc.h (memmove): New prototype.
53503 (memcpy): Likewise.
53505 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53507 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53508 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53510 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53512 * kern/misc.c (grub_strndup): Function rewritten.
53514 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53516 * normal/menu.c (TERM_WIDTH): Macro redefined.
53517 (TERM_TOP_BORDER_Y): Likewise.
53518 (draw_border): Replaced while-loop by a for-loop. Make the number
53519 of lines consistent with the number of lines displayed in
53520 print_entries. Added a margin below the rectangle.
53521 (print_entry): Make the entry fit in the rectangle.
53522 (print_entries): Display the scroll arrows next to the right
53525 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53527 * fs/minix.c (grub_minix_find_file): Reserve more space for
53528 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53529 `grub_strncpy' to copy `path' into it.
53531 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53533 Add the loopback device, a device via which files can be accessed
53536 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53537 (pkgdata_MODULES): Add loopback.mod.
53538 (loopback_mod_SOURCES): New variable.
53539 (loopback_mod_CFLAGS): Likewise.
53540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53542 (pkgdata_MODULES): Add loopback.mod.
53543 (loopback_mod_SOURCES): New variable.
53544 (loopback_mod_CFLAGS): Likewise.
53545 * disk/loopback.c: new file.
53546 * include/grub/normal.h (grub_loop_init): New prototype.
53547 (grub_loop_fini): New prototype.
53548 * util/grub-emu.c (main): Initialize and de-initialize loopback
53550 * include/grub/disk.h (grub_disk_dev_id): Add
53551 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53553 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53555 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53557 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53558 (suspend_mod_SOURCES): New variable.
53559 (suspend_mod_CFLAGS): Likewise.
53560 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53562 * commands/ieee1275/suspend.c: New file.
53564 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53566 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53567 ((unused))' to `__attribute__ ((used))'.
53568 (GRUB_MOD_FINI): Likewise.
53569 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53570 * genmk.rb (PModule): Assign space to common symbols when linking
53573 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53575 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53576 `unsigned' arguments to `grub_size_t'.
53577 (grub_malloc): Likewise.
53578 (grub_realloc): Likewise.
53579 (grub_memalign): Likewise.
53580 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53581 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53582 * util/misc.c (grub_malloc): Likewise.
53583 (grub_realloc): Likewise.
53584 * kern/mm.c (get_header_from_pointer): Change the casts to
53585 `unsigned' into a cast to `grub_size_t'.
53587 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53588 point to `currnode' when `currnode' is changed.
53590 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53591 Schottelius <nico-linux@schottelius.org>.
53593 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53595 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53596 (note_path): Remove variable.
53597 (GRUB_IEEE1275_NOTE_NAME): New macro.
53598 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53599 (grub_ieee1275_note_hdr): New structure.
53600 (grub_ieee1275_note_desc): Likewise.
53601 (grub_ieee1275_note): Likewise.
53602 (load_note): Remove `dir' argument. All callers updated. Remove
53603 `note_img' and `path'. Do not load a file from `note_path'.
53604 Initialize a struct grub_ieee1275_note and write that to `out'.
53605 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53607 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53609 * util/misc.c (grub_util_read_image): Revert last change. It
53610 called `grub_util_read_at', which seeks from the beginning of the
53613 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53615 * TODO: Add note about endianness in grub-mkimage.
53616 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53618 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53619 (grub_mkimage_SOURCES): New target.
53620 * include/grub/kernel.h (grub_start_addr): Remove variable.
53621 (grub_end_addr): Likewise.
53622 (grub_total_module_size): Likewise.
53623 (grub_kernel_image_size): Likewise.
53624 (GRUB_MODULE_MAGIC): New constant.
53625 (grub_module_info): New structure.
53626 (grub_arch_modules_addr): New prototype.
53627 (grub_get_end_addr): Remove prototype.
53628 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53629 * include/grub/powerpc/ieee1275/kernel.h: New file.
53630 * include/grub/util/misc.h (grub_util_get_fp_size): New
53632 (grub_util_read_at): Likewise.
53633 (grub_util_write_image_at): Likewise.
53634 * kern/main.c (grub_get_end_addr): Remove function.
53635 (grub_load_modules): Call grub_arch_modules_addr instead of using
53636 grub_end_addr. Look for a grub_module_info struct in memory. Use
53637 the grub_module_info fields instead of calling grub_get_end_addr
53638 as loop conditions. Move grub_add_unused_region code here.
53639 (grub_add_unused_region): Remove function.
53640 * kern/i386/pc/init.c: Include grub/cache.h.
53641 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53642 one call to add_mem_region.
53643 (grub_arch_modules_addr): New function.
53644 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53645 (grub_total_module_size): Likewise.
53646 Include grub/machine/kernel.h.
53647 (grub_arch_modules_addr): New function.
53648 * util/grub-emu.c (grub_end_addr): Remove variable.
53649 (grub_total_module_size): Likewise.
53650 (grub_arch_modules_addr): New function.
53651 * util/misc.c: Include unistd.h.
53652 (grub_util_get_fp_size): New function.
53653 (grub_util_read_at): Likewise.
53654 (grub_util_write_image_at): Likewise.
53655 (grub_util_read_image): Call grub_util_read_at.
53656 (grub_util_write_image): Call grub_util_write_image_at.
53657 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53658 additional memory in kernel_img for a struct grub_module_info.
53659 Fill in that grub_module_info.
53660 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53662 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53664 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53666 * include/grub/powerpc/ieee1275/ieee1275.h
53667 (grub_ieee1275_milliseconds): New prototype.
53668 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53670 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53671 grub_ieee1275_milliseconds.
53673 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53675 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53677 (find_options): New function.
53678 (cmain): Call find_options.
53679 * include/grub/powerpc/ieee1275/ieee1275.h
53680 (grub_ieee1275_realmode): New extern variable.
53681 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53682 grub_map if grub_ieee1275_realmode is false.
53684 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53686 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53687 lines are inserted and make it work like readline. Reported by
53688 Vincent Pelletier <subdino2004@yahoo.fr>.
53690 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53692 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53694 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53695 `kern/powerpc/cache.S'.
53697 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53699 * genmk.rb: Handle the `Program' class in the main loop. Written
53700 by Johan Rydberg <jrydberg@gnu.org>.
53701 (Program): New class.
53702 (programs): New variable.
53703 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53704 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53705 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53706 (help_arch): Function removed.
53707 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53708 `powerpc/libgcc.h' and `loader.h'.
53709 (pkgdata_PROGRAMS): New variable.
53710 (sbin_UTILITIES): Variable removed.
53711 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53712 (grubof_SOURCES): Variable re-defined so it only includes the
53713 core functionality.
53714 (grubof_CFLAGS): Remove `-DGRUBOF'.
53715 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53716 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53717 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53718 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53719 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53720 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53721 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53722 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53723 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53724 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53725 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53726 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53727 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53728 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53729 (pc_mod_CFLAGS): New variables.
53730 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53731 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53732 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53733 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53735 * include/grub/i386/pc/init.h (grub_os_area_addr)
53736 (rub_os_area_size): ... to here.
53737 * include/grub/powerpc/ieee1275/ieee1275.h
53738 (grub_ieee1275_entry_fn): Export symbol.
53739 * include/grub/powerpc/ieee1275/init.h: New file.
53740 * include/grub/powerpc/libgcc.h: Likewise.
53741 * include/grub/cache.h: Likewise.
53742 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53743 <hollis@penguinppc.org>.
53744 * kern/dl.c: Include <grub/cache.h>.
53745 (grub_dl_flush_cache): New function.
53746 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53748 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53749 (grub_console_init): Removed prototypes.
53750 (grub_machine_init): Don't initialize the modules anymore.
53751 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53753 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53754 Macro undef removed.
53755 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53756 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53757 relocation `R_PPC_REL32'. Return an error when the relocation is
53759 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53760 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53761 * util/misc.c (grub_arch_sync_caches): Likewise.
53763 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53765 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53766 `symlist.c', add `grubof_symlist.c'.
53767 (symlist.c): Variable removed.
53768 (grubof_HEADERS): Variable added.
53769 (grubof_symlist.c): New target.
53770 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53771 `kernel_img_HEADERS'.
53772 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53773 * kern/powerpc/dl.c: New file.
53774 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53776 (grub_arch_dl_relocate_symbols): Likewise.
53777 (grub_register_exported_symbols): Likewise.
53779 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53781 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53782 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53783 to fail instead. Reported by Vincent Pelletier
53784 <subdino2004@yahoo.fr>.
53786 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53787 it is not allocated. Reported by Vincent Pelletier
53788 <subdino2004@yahoo.fr>.
53790 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53791 output so the output looks better.
53793 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53795 Modulize the partition map support and add support for the amiga
53798 * commands/ls.c: Include <grub/partition.h> instead of
53799 <grub/machine/partition.h>.
53800 * kern/disk.c: Likewise.
53801 * kern/rescue.c: Likewise.
53802 * loader/i386/pc/chainloader.c: Likewise.
53803 * normal/cmdline.c: Likewise.
53804 * kern/powerpc/ieee1275/init.c: Likewise.
53805 (grub_machine_init): Call `grub_pc_partition_map_init',
53806 `grub_amiga_partition_map_init' and
53807 `grub_apple_partition_map_init'.
53808 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53809 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53810 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53811 `partition.h' and `pc_partition.h'.
53812 (grub_setup_SOURCES): Remove
53813 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53814 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53815 (grub_emu_SOURCES): Likewise.
53816 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53817 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53818 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53819 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53820 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53821 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53822 (grubof_SOURCES): Likewise.
53823 * disk/i386/pc/partition.c: File removed.
53824 * disk/powerpc/ieee1275/partition.c: Likewise.
53825 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53826 * include/grub/i386/pc/partition.h: Likewise.
53827 * kern/partition.c: New file.
53828 * partmap/amiga.c: Likewise.
53829 * partmap/apple.c: Likewise.
53830 * partmap/pc.c: Likewise.
53831 * include/grub/partition.h: Likewise..
53832 * include/grub/pc_partition.h: Likewise.
53833 * util/grub-emu.c: Include <grub/partition.h> instead of
53834 <grub/machine/partition.h>.
53835 (main): Call `grub_pc_partition_map_init',
53836 `grub_amiga_partition_map_init' and
53837 `grub_apple_partition_map_init' and deinitialize afterwards.
53838 * util/i386/pc/biosdisk.c: Include `#include
53839 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53840 `<grub/machine/partition.h>'.
53841 * util/i386/pc/grub-setup.c: Likewise.
53842 * util/i386/pc/biosdisk.c: Likewise.
53843 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53844 partition information in case of a PC partition.
53845 * util/i386/pc/grub-setup.c: Include `#include
53846 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53847 `<grub/machine/partition.h>'.
53848 (setup): Only access the PC specific partition information in case
53851 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53853 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53854 (grub_longjmp): Likewise.
53855 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53857 * normal/powerpc/setjmp.S: New file.
53858 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53859 `normal/powerpc/setjmp.S'.
53860 (grubof_CFLAGS): Add `-DGRUBOF'.
53861 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53862 [GRUB_UTIL && !GRUBOF].
53864 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53866 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53867 property named `name'. Correctly handle the error returned by
53868 `grub_ieee1275_finddevice' if a device can not be opened.
53870 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53872 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53873 `actual' for negativity.
53874 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53877 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53879 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53880 (PAGE_OFFSET): New macro.
53881 (CRTC_ADDR_PORT): Likewise.
53882 (CRTC_DATA_PORT): Likewise.
53883 (START_ADDR_HIGH_REGISTER): Likewise.
53884 (START_ADDR_LOW_REGISTER): Likewise.
53885 (GRAPHICS_ADDR_PORT): Likewise.
53886 (GRAPHICS_DATA_PORT): Likewise.
53887 (READ_MAP_REGISTER): Likewise.
53888 (INPUT_STATUS1_REGISTER): Likewise.
53889 (INPUT_STATUS1_VERTR_BIT): Likewise.
53890 (page): New variable.
53891 (wait_vretrace): New function.
53892 (set_read_map): Likewise.
53893 (set_start_address): Likewise.
53894 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53896 (check_vga_mem): Take the page into account.
53897 (write_char): Likewise.
53898 (write_cursor): Likewise.
53899 (scroll_up): Likewise. Copy the page to the page that is not
53900 shown and switch between both pages.
53901 (grub_vga_putchar): Fix off by one error.
53902 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53905 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53907 Add support for iso9660 (including rockridge).
53909 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53910 (iso9660_mod_SOURCES): New variable.
53911 (iso9660_mod_CFLAGS): Likewise.
53912 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53913 * include/grub/fs.h (grub_iso9660_init): New prototype.
53914 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53915 * fs/iso9660.c: New file.
53917 * include/grub/misc.h (grub_strncat): New prototype.
53918 * kern/misc.c (grub_strncat): New function.
53920 * fs/hfs.c (grub_hfs_mount): Translate the error
53921 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53922 * fs/jfs.c (grub_jfs_mount): Likewise.
53923 * fs/ufs.c (grub_ufs_mount): Likewise.
53925 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53927 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53928 which initialized BAT registers.
53929 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53930 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53932 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53933 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53935 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53936 (grub_mapclaim): Likewise.
53937 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53938 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53941 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53943 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53944 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53945 -ffreestanding and -msoft-float.
53947 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53949 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53950 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53951 set in grub_ieee1275_flags.
53953 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53955 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53957 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53958 grub_console_init first.
53959 Change the memory range used for grub_ieee1275_claim and
53960 grub_mm_init_region.
53961 Print an error message if the claim fails.
53962 Include <grub/misc.h>.
53964 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53966 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53967 Call grub_children_iterate for device nodes of type `scsi',
53969 (grub_ofdisk_open): Remove manual device alias resolution.
53970 Fix memory leak when device cannot be opened.
53971 * include/grub/powerpc/ieee1275/ieee1275.h
53972 (grub_children_iterate): New prototype.
53973 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53975 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53976 Return -1 if args.size was -1.
53978 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53980 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53981 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53982 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53983 Open Firmware's memory for it; claim memory from _start to _end.
53984 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53985 (_end): New extern.
53986 (_start): Zero BSS from __bss_start to _end.
53987 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53989 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53991 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53993 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53994 -1 if args.base was -1.
53996 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53998 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53999 escape sequence instead of a literal ^L. Also call
54000 grub_ofconsole_gotoxy.
54002 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
54004 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
54005 void * arguments to grub_addr_t. All callers updated. Also make
54006 the `result' argument optional.
54007 (grub_ieee1275_release): change void * arguments to grub_addr_t.
54008 All callers updated.
54010 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54012 * commands/ls.c (grub_ls_list_files): Use the string following the
54013 initial ')', if present, as the filesystem path.
54014 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54016 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54018 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54020 Make the source code of the menu interface more readable.
54022 * normal/menu.c: Include grub/mm.h.
54023 (TERM_WIDTH): New macro.
54024 (TERM_HEIGHT): Likewise.
54025 (TERM_INFO_HEIGHT): Likewise.
54026 (TERM_MARGIN): Likewise.
54027 (TERM_SCROLL_WIDTH): Likewise.
54028 (TERM_TOP_BORDER_Y): Likewise.
54029 (TERM_LEFT_BORDER_X): Likewise.
54030 (TERM_BORDER_WIDTH): Likewise.
54031 (TERM_MESSAGE_HEIGHT): Likewise.
54032 (TERM_BORDER_HEIGHT): Likewise.
54033 (TERM_NUM_ENTRIES): Likewise.
54034 (TERM_FIRST_ENTRY_Y): Likewise.
54035 (TERM_ENTRY_WIDTH): Likewise.
54036 (TERM_CURSOR_X): Likewise.
54037 (draw_border): Use macros instead of magic numbers.
54038 (print_entry): Likewise.
54039 (print_entries): Likewise.
54040 (run_menu): Likewise. Also, handle the key 'e'.
54041 (run_menu_entry): Ignore empty command lines.
54042 (print_message): Added a new argument EDIT. If EDIT is true,
54043 print a different message.
54044 (init_page): Likewise.
54045 (edit_menu_entry): New function. Not implemented yet.
54047 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54049 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54050 can be loaded from normal mode.
54052 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54054 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54055 (multiboot_mod_CFLAGS): New variables.
54056 * loader/i386/pc/linux_normal.c: New file.
54057 * loader/i386/pc/multiboot_normal.c: Likewise.
54059 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54060 attribute `unused'.
54062 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54063 `fdiro' to read the mode information from instead of `diro'.
54065 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54066 looking up a symlink.
54068 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54070 * normal/command.c (grub_command_execute): Don't parse the
54071 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54072 flags of the command.
54074 * normal/menu.c (grub_menu_run): Fix typo.
54076 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54078 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54080 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54081 `y + 1' instead of `y - 1'.
54083 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54085 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54087 From Hollis Blanchard <hollis@penguinppc.org>:
54088 * kern/misc.c (memmove): New alias for grub_memmove.
54089 (memcmp): New alias for grub_memcmp.
54090 (memset): New alias for grub_memset.
54091 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54092 Change "int handle" to "grub_ieee1275_phandle_t handle".
54093 * include/grub/powerpc/ieee1275/ieee1275.h
54094 (grub_ieee1275_get_property): Likewise.
54096 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54098 Added normal mode command `chainloader' as module chain.mod, which
54099 depends on normal.mod and _chain.mod.
54101 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54102 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54103 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54105 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54106 but arguments parsing moved to ...
54107 (grub_chainloader_cmd): ... here. New function.
54108 * include/grub/i386/pc/chainloader.h: New file.
54109 * loader/i386/pc/chainloader_normal.c: Likewise.
54111 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54113 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54114 (grub_mkimage_LDFLAGS): Likewise.
54115 (grub_emu_SOURCES): Likewise.
54116 (kernel_img_HEADERS): Added fshelp.h.
54117 * fs/ext2.c: Include <grub/fshelp.h>.
54118 (FILETYPE_REG): New macro.
54119 (FILETYPE_INO_REG): Likewise.
54120 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54122 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54124 (grub_fshelp_node): New struct.
54125 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54127 (grub_ext2_get_file_block): Removed function.
54128 (grub_ext2_read_block): New function.
54129 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54130 This function was written.
54131 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54132 (grub_ext2_find_file): Removed function.
54133 (grub_ext2_read_symlink): New function.
54134 (grub_ext2_iterate_dir): Likewise.
54135 (grub_ext2_open): Rewritten.
54136 (grub_ext2_dir): Rewritten.
54137 * include/grub/fshelp.h: New file.
54138 * fs/fshelp.c: Likewise.
54140 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54142 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54143 (print_message): Add a missing newline.
54144 (run_menu): Added timeout support.
54145 (run_menu_entry): New local function.
54146 (grub_menu_run): Added support for booting.
54148 * kern/loader.c (grub_loader_is_loaded): New function.
54150 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54151 (grub_get_rtc): Exported.
54153 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54154 (grub_get_rtc): Exported.
54156 * include/grub/normal.h (struct grub_command_list): Remove
54157 constant from the member `command'.
54159 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54161 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54163 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54165 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54167 Add support for the JFS filesystem.
54169 * fs/jfs.c: New file.
54170 * include/grub/fs.h (grub_jfs_init): New prototype.
54171 (grub_jfs_fini): New prototype.
54172 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54173 (grub_emu_SOURCES): Likewise.
54174 (pkgdata_MODULES): Add jfs.mod.
54175 (jfs_mod_SOURCES): New variable.
54176 (jfs_mod_CFLAGS): Likewise.
54177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54178 (grubof_SOURCES): Likewise.
54179 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54181 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54182 endian to the host endian.
54183 (grub_fat_utf16_to_utf8): Move function from there...
54184 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54185 the endianness of the source string anymore.
54186 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54188 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54190 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54191 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54192 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54193 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54195 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54196 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54197 for `node_found' and `it_dir'.
54198 (grub_hfs_dir): Add prototype for `dir_hook'.
54200 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54201 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54202 and `indir32' to silence a gcc warning.
54204 * include/grub/fs.h (grub_hfs_init): New prototype.
54205 (grub_hfs_fini): Likewise.
54208 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54210 Each disk device has its own id now. This is useful to make use
54211 of multiple disk devices.
54213 * include/grub/disk.h (grub_disk_dev_id): New enum.
54214 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54215 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54217 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54218 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54220 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54221 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54223 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54224 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54226 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54227 "id" which is used by the cache manager.
54229 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54232 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54234 * fs/hfs.c: New file.
54235 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54236 (grub_emu_SOURCES): Likewise.
54237 (pkgdata_MODULES): Add hfs.mod.
54238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54239 (grubof_SOURCES): Likewise.
54240 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54242 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54243 * kern/misc.c (grub_strncasecmp): Add function.
54245 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54247 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54250 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54251 (grub_ext2_dir): In case the directory entry type is unknown, read
54254 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54256 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54257 grub_load_linux instead of grub_rescue_cmd_linux as second
54258 argument of grub_rescue_register_command.
54260 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54262 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54264 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54266 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54267 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54268 `loader/powerpc/ieee1275/linux.c',
54269 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54270 * include/grub/powerpc/ieee1275/ieee1275.h
54271 (grub_ieee1275_release): New prototype.
54272 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54273 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54274 normal, boot, linux and linux_normal.
54275 * loader/powerpc/ieee1275/linux.c: New file.
54276 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54278 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54280 * normal/arg.c (grub_arg_parse): Correct error handling after
54281 reallocating the argumentlist (check if `argl' is not null instead
54282 of checking if `args' is not null).
54283 * kern/mm.c (grub_realloc): Return the same pointer when using the
54284 same region, instead of returning the header address.
54286 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54288 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54289 one block instead of two when looking for the initial partition.
54290 (grub_partition_probe): Initialize the local variable `p' with 0.
54291 Use base 10 for the grub_strtoul call.
54292 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54293 need for one local variable.
54294 (grub_strtoul): Don't add the new value to `num', instead of that
54297 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54299 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54300 (pxeboot_img_SOURCES): New variable.
54301 (pxeboot_img_ASFLAGS): Likewise.
54302 (pxeboot_img_LDFLAGS): Likewise.
54303 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54304 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54305 <lode_leroy@hotmail.com>.
54307 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54309 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54310 there was no input.
54312 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54314 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54315 the history buffer logic.
54317 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54319 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54320 (FILETYPE_INO_SYMLINK): New macros.
54321 (grub_ext2_find_file): Check if the node is a directory using the
54322 inode stat information instead of using the filetype in the
54323 dirent. Exclude the first character of an absolute symlink.
54324 (grub_ext2_dir): Mask out the filetype part of the mode member of
54327 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54329 Add support for UFS version 1 and 2. Add support for the minix
54330 filesystem version 1 and 2, both the variants with 14 and 30 long
54333 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54335 (grub_emu_SOURCES): Likewise.
54336 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54337 (ufs_mod_SOURCES): New variable.
54338 (ufs_mod_CFLAGS): Likewise.
54339 (minix_mod_SOURCES): Likewise.
54340 (minix_mod_CFLAGS): Likewise.
54341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54343 (grubof_SOURCES): Likewise.
54344 * fs/ufs.c: New file.
54345 * fs/minix.c: New file.
54346 * include/grub/fs.h (grub_ufs_init): New prototype.
54347 (grub_ufs_fini): Likewise.
54348 (grub_minix_init): Likewise.
54349 (grub_minix_fini): Likewise.
54350 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54353 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54355 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54356 commands/ls.c, commands/terminal.c, commands/boot.c,
54357 commands/cmp.c and commands/cat.c.
54358 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54360 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54363 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54365 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54366 and grub_, respectively. Because the conversion is trivial and
54367 mechanical, I omit the details here. Please refer to the CVS
54368 if you need more information.
54370 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54372 * include/pupa: Renamed to ...
54373 * include/grub: ... this.
54374 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54375 * util/i386/pc/grub-mkimage.c: ... this.
54376 * util/i386/pc/pupa-setup.c: Renamed to ...
54377 * util/i386/pc/grub-setup.c: ... this.
54378 * util/pupa-emu.c: Renamed to ...
54379 * util/grub-emu.c: ... this.
54381 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54383 Add support for the newworld apple macintosh (PPC). This has been
54384 tested on the powerbook 2000 only. It only adds support for
54385 generic ieee1275 functions, console and disk support. This should
54386 be easy to port to other architectures with support for Open
54389 * configure.ac: Accept the powerpc as host_cpu. In the case of
54390 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54391 specific tests are only executed while building for the i386.
54392 Inverse test for crosscompile.
54393 * genmk.rb (Utility): Allow assembler files.
54394 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54395 * conf/powerpc-ieee1275.rmk: New file.
54396 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54397 * disk/powerpc/ieee1275/partition.c: Likewise.
54398 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54399 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54400 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54401 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54402 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54403 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54404 * include/pupa/powerpc/ieee1275/loader.h
54405 * include/pupa/powerpc/setjmp.h: Likewise.
54406 * include/pupa/powerpc/types.h: Likewise.
54407 * kern/powerpc/ieee1275/init.c: Likewise.
54408 * kern/powerpc/ieee1275/openfw.c: Likewise.
54409 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54411 These files were written by Johan Rydberg
54412 (jrydberg@night.trouble.net) and I only modified them slightly.
54414 * boot/powerpc/ieee1275/cmain.c: New file.
54415 * boot/powerpc/ieee1275/crt0.S: Likewise.
54416 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54417 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54419 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54421 * Makefile.in: Update copyright.
54422 * genmodsrc.sh: Likewise.
54423 * gensymlist.sh: Likewise.
54424 * term/i386/pc/vga.c: Indent correctly.
54426 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54427 bugreporting address.
54428 * util/i386/pc/pupa-setup.c (usage): Likewise,
54429 (main): Call pupa_ext2_init and pupa_ext2_fini.
54431 * fs/fat.c (log2): Renamed to ...
54432 (fat_log2): ... this.
54433 All callers changed.
54434 * kern/misc.c (memcpy): Alias to pupa_memmove.
54435 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54437 * util/console.c (pupa_ncurses_fini): Return 0.
54439 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54440 Move fail label here.
54441 [__GNU__]: Don't warn when using stat.
54442 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54443 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54444 long int. Use strtol instead of strtoul.
54446 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54448 * commands/boot.c: New file.
54449 * commands/cat.c: Likewise.
54450 * commands/cmp.c: Likewise.
54451 * commands/ls.c: Likewise.
54452 * commands/terminal.c: Likewise.
54453 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54454 (pupa_register_command): Changed interface to match the new
54456 (pupa_command_execute): Changed (almost rewritten) so it uses
54457 pupa_split_command. Added support for setting variables using the
54459 (rescue_command): Changed to work with the new argument parser.
54460 (terminal_command): Moved from here to commands/terminal.c.
54461 (set_command): New function.
54462 (unset_command): New function.
54463 (insmod_command): New function.
54464 (rmmod_command): New function.
54465 (lsmod_command): New function.
54466 (pupa_command_init): Don't initialize the command terminal
54467 anymore. Initialize the commands set, unset, insmod, rmmod and
54469 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54470 (kernel_img_HEADERS): Add arg.h and env.h.
54471 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54472 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54473 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54475 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54477 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54478 (boot_mod_SOURCES): New variable.
54479 (terminal_mod_SOURCES): Likewise.
54480 (ls_mod_SOURCES): Likewise.
54481 (cmp_mod_SOURCES): Likewise.
54482 (cat_mod_SOURCES): Likewise.
54484 * normal/arg.c: New file.
54485 * kern/env.c: Likewise.
54486 * include/pupa/arg.h: Likewise.
54487 * include/pupa/env.h: Likewise.
54488 * font/manager.c (font_command): Changed to match argument parsing
54490 (PUPA_MOD_INIT): Likewise.
54491 * hello/hello.c (pupa_cmd_hello): Likewise.
54492 (PUPA_MOD_INIT): Likewise.
54493 * include/pupa/disk.h: Include <pupa/device.h>.
54494 (pupa_print_partinfo): New prototype.
54495 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54496 (pupa_dl_get_prefix): Likewise.
54497 * include/pupa/misc.h: Include <pupa/err.h>.
54498 (pupa_isgraph): New prototype.
54499 (pupa_isdigit): Likewise.
54500 (pupa_split_cmdline): Likewise.
54501 * include/pupa/normal.h: Include <pupa/arg.h>.
54502 (pupa_command): Changed the prototype of the member `func' to
54503 match the argument parsing interface. Added member `options'.
54504 (pupa_register_command): Updated to match function.
54505 (pupa_arg_parse): New prototype.
54506 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54507 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54508 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54509 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54510 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54511 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54512 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54513 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54514 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54515 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54516 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54517 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54518 * kern/disk.c: Include <pupa/file.h>.
54519 (pupa_print_partinfo): New function.
54520 * kern/dl.c: Include <pupa/env.h>.
54521 (pupa_dl_dir): Variable removed.
54522 (pupa_dl_load): Use the environment variable `prefix' instead of
54523 the variable pupa_dl_dir.
54524 (pupa_dl_set_prefix): Function removed.
54525 (pupa_dl_get_prefix): Likewise.
54526 * kern/i386/pc/init.c: Include <pupa/env.h>.
54527 (pupa_machine_init): Use the environment variable `prefix' instead of
54528 using pupa_dl_set_prefix to set the prefix.
54529 * kern/main.c: Include <pupa/env.h>.
54530 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54531 using pupa_dl_get_prefix to get the prefix.
54532 * kern/misc.c: Include <pupa/env.h>.
54533 (pupa_isdigit): New function.
54534 (pupa_isgraph): Likewise.
54535 (pupa_ftoa): Likewise.
54536 (pupa_vsprintf): Added support for printing values of the type
54537 `double'. Make it possible to format variable output when using
54538 formatting like `%1.2%f'.
54539 (pupa_split_cmdline): New function.
54540 * kern/rescue.c: Include <pupa/env.h>.
54541 (next_word): Removed function.
54542 (pupa_rescue_cmd_prefix): Likewise.
54543 (pupa_rescue_cmd_set): New function.
54544 (pupa_rescue_cmd_unset): New function.
54545 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54546 split the command line instead of splitting it here. Added
54547 support for setting variables using the syntax `foo=bar'. Don't
54548 initialize the prefix command anymore. Initialized the set and
54550 * normal/cmdline.c: Include <pupa/env.h>.
54551 (pupa_tab_complete): Added prototypes for print_simple_completion,
54552 print_partition_completion, add_completion, iterate_commands,
54553 iterate_dev, iterate_part and iterate_dir. Moved code to print
54554 partition information from here to kern/disk.c.
54555 (pupa_cmdline_run): Don't check if the function exists anymore.
54556 * normal/main.c: Include <pupa/env.h>.
54557 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54558 instead of using pupa_dl_get_prefix to get the prefix.
54559 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54560 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54562 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54563 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54564 ((unused))' to silence a gcc warning.
54565 (pupa_vga_setcolor): Likewise.
54566 (debug_command): Changed to match argument parsing
54568 * util/pupa-emu.c: Include <pupa/env.h>.
54569 (options): Added 0's for unused fields to silence a gcc warning.
54571 (main): Use the environment variable `prefix' instead of using
54572 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54573 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54576 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54577 * util/misc.c: Include <malloc.h>.
54578 (pupa_malloc): Rewritten so errors are correctly reported.
54579 (pupa_realloc): Likewise.
54580 (pupa_memalign): Likewise.
54581 (pupa_mm_init_region): Declare unused variables with
54582 `__attribute__ ((unused))' to silence a gcc warning.
54583 * normal/i386/setjmp.S: Remove tab at the end of the file to
54584 silence a gcc warning.
54585 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54586 variables with `__attribute__ ((unused))' to silence a gcc
54588 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54589 local variable i unsigned to silence a gcc warning.
54591 * kern/term.c: Include <pupa/misc.h>.
54592 (pupa_more_lines): New variable.
54593 (pupa_more): Likewise.
54594 (pupa_putcode): When the pager is active pause at the end of every
54596 (pupa_set_more): New function.
54597 * include/pupa/term.h (pupa_set_more): New prototype.
54600 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54602 Now this project is GRUB 2 rather than PUPA. The location of
54603 the CVS repository was moved to GRUB's.
54605 * configure.ac: Use bug-grub as the reporting address.
54606 Use GRUB instead of PUPA.
54607 Change the version number to 1.90.
54609 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54611 * genkernsyms.sh: Updated copyright information.
54612 * genmk.rb: Likewise.
54613 * genmodsrc.sh: Likewise.
54614 * gensymlist.sh: Likewise.
54615 * boot/i386/pc/boot.S: Likewise.
54616 * boot/i386/pc/diskboot.S: Likewise.
54617 * disk/i386/pc/biosdisk.c: Likewise.
54618 * disk/i386/pc/partition.c: Likewise.
54619 * font/manager.c: Likewise.
54620 * fs/ext2.c: Likewise.
54621 * fs/fat.c: Likewise.
54622 * include/pupa/boot.h: Likewise.
54623 * include/pupa/device.h: Likewise.
54624 * include/pupa/disk.h: Likewise.
54625 * include/pupa/dl.h: Likewise.
54626 * include/pupa/elf.h: Likewise.
54627 * include/pupa/err.h: Likewise.
54628 * include/pupa/file.h: Likewise.
54629 * include/pupa/font.h: Likewise.
54630 * include/pupa/fs.h: Likewise.
54631 * include/pupa/kernel.h: Likewise.
54632 * include/pupa/loader.h: Likewise.
54633 * include/pupa/misc.h: Likewise.
54634 * include/pupa/mm.h: Likewise.
54635 * include/pupa/net.h: Likewise.
54636 * include/pupa/normal.h: Likewise.
54637 * include/pupa/rescue.h: Likewise.
54638 * include/pupa/setjmp.h: Likewise.
54639 * include/pupa/symbol.h: Likewise.
54640 * include/pupa/term.h: Likewise.
54641 * include/pupa/types.h: Likewise.
54642 * include/pupa/i386/setjmp.h: Likewise.
54643 * include/pupa/i386/types.h: Likewise.
54644 * include/pupa/i386/pc/biosdisk.h: Likewise.
54645 * include/pupa/i386/pc/boot.h: Likewise.
54646 * include/pupa/i386/pc/console.h: Likewise.
54647 * include/pupa/i386/pc/init.h: Likewise.
54648 * include/pupa/i386/pc/kernel.h: Likewise.
54649 * include/pupa/i386/pc/linux.h: Likewise.
54650 * include/pupa/i386/pc/loader.h: Likewise.
54651 * include/pupa/i386/pc/memory.h: Likewise.
54652 * include/pupa/i386/pc/multiboot.h: Likewise.
54653 * include/pupa/i386/pc/partition.h: Likewise.
54654 * include/pupa/i386/pc/time.h: Likewise.
54655 * include/pupa/i386/pc/vga.h: Likewise.
54656 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54657 * include/pupa/util/getroot.h: Likewise.
54658 * include/pupa/util/misc.h: Likewise.
54659 * include/pupa/util/resolve.h: Likewise.
54660 * kern/device.c: Likewise.
54661 * kern/disk.c: Likewise.
54662 * kern/dl.c: Likewise.
54663 * kern/err.c: Likewise.
54664 * kern/file.c: Likewise.
54665 * kern/fs.c: Likewise.
54666 * kern/loader.c: Likewise.
54667 * kern/main.c: Likewise.
54668 * kern/misc.c: Likewise.
54669 * kern/mm.c: Likewise.
54670 * kern/rescue.c: Likewise.
54671 * kern/term.c: Likewise.
54672 * kern/i386/dl.c: Likewise.
54673 * kern/i386/pc/init.c: Likewise.
54674 * kern/i386/pc/lzo1x.S: Likewise.
54675 * kern/i386/pc/startup.S: Likewise.
54676 * loader/i386/pc/chainloader.c: Likewise.
54677 * loader/i386/pc/linux.c: Likewise.
54678 * loader/i386/pc/multiboot.c: Likewise.
54679 * normal/cmdline.c: Likewise.
54680 * normal/command.c: Likewise.
54681 * normal/main.c: Likewise.
54682 * normal/menu.c: Likewise.
54683 * normal/i386/setjmp.S: Likewise.
54684 * term/i386/pc/console.c: Likewise.
54685 * term/i386/pc/vga.c: Likewise.
54686 * util/console.c: Likewise.
54687 * util/genmoddep.c: Likewise.
54688 * util/misc.c: Likewise.
54689 * util/pupa-emu.c: Likewise.
54690 * util/resolve.c: Likewise.
54691 * util/unifont2pff.rb: Likewise.
54692 * util/i386/pc/biosdisk.c: Likewise.
54693 * util/i386/pc/getroot.c: Likewise.
54694 * util/i386/pc/pupa-mkimage.c: Likewise.
54695 * util/i386/pc/pupa-setup.c: Likewise.
54697 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54699 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54700 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54701 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54702 reading and reset it after reading.
54703 (pupa_ext2_close): Return PUPA_ERR_NONE.
54705 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54707 (struct linux_kernel_header): Add kernel_version and
54709 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54710 pupa_file_read succeeds.
54711 (pupa_rescue_cmd_initrd): Implement.
54713 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54715 * fs/ext2.c (pupa_ext2_label): New function.
54716 (pupa_ext2_fs): Added label.
54717 * fs/fat.c (pupa_fat_label): New function.
54718 (pupa_fat_fs): Added label.
54719 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54721 * kern/misc.c (pupa_strndup): New function.
54722 * include/pupa/misc.h (pupa_strndup): New prototype.
54724 * include/pupa/normal.h: Include <pupa/err.h>.
54725 (pupa_set_history): New prototype.
54726 (pupa_iterate_commands): New prototype.
54727 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54728 <pupa/disk.h>, <pupa/file.h>.
54729 (hist_size): New variable.
54730 (hist_lines): Likewise.
54731 (hist_end): Likewise.
54732 (hist_used): Likewise.
54733 (pupa_set_history): New function.
54734 (pupa_history_get): Likewise.
54735 (pupa_history_add): Likewise.
54736 (pupa_history_replace): Likewise.
54737 (pupa_tab_complete): Likewise.
54738 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54739 completion shows partitionnames while completing partitions, this
54740 feature was suggested by Jeff Bailey.
54741 * normal/command.c (pupa_iterate_commands): New function.
54742 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54743 (pupa_normal_init): Initialize history buffer.
54744 (PUPA_MOD_INIT): Likewise.
54745 (pupa_normal_fini): Free the history buffer.
54746 (PUPA_MOD_FINI): Likewise.
54748 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54751 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54752 * configure.ac [i386]: Check for regparam bug.
54753 (NESTED_FUNC_ATTR) [! i386]: Defined.
54755 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54757 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54758 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54759 (pupa_emu_SOURCES): New variable.
54760 (pupa_emu_LDFLAGS): Likewise.
54761 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54762 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54763 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54764 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54765 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54766 (pupa_jmp_buf): New typedef.
54767 (pupa_setjmp) [PUPA_UTIL]: New macro.
54768 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54769 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54770 (pupa_refresh): New prototype.
54771 * include/pupa/util/getroot.h: New file.
54772 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54774 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54775 (pupa_rescue_cmd_cat): Likewise.
54776 (pupa_rescue_cmd_ls): Likewise.
54777 (pupa_rescue_cmd_testload): Likewise.
54778 (pupa_rescue_cmd_lsmod): Likewise.
54779 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54780 * normal/menu.c (run_menu): Likewise.
54781 * kern/term.c (pupa_cls): Likewise.
54782 (pupa_refresh): New function.
54783 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54784 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54785 * util/console.c: New file.
54787 * util/i386/pc/getroot.c: New file.
54788 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54789 (pupa_putchar): New function.
54790 (pupa_refresh): Likewise.
54791 (xgetcwd): Function moved to ...
54792 (strip_extra_slashes): Likewise.
54793 (get_prefix): Likewise.
54794 * util/i386/pc/getroot.c: ... here.
54795 (find_root_device): Function moved and renamed to...
54796 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54797 Changed all callers.
54798 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54800 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54801 Changed all callers.
54802 * util/misc.c (pupa_memalign): New function.
54803 (pupa_mm_init_region): Likewise.
54804 (pupa_register_exported_symbols): Likewise.
54805 (pupa_putchar): Function removed.
54806 * util/pupa-emu.c: New file.
54808 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54810 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54811 (_multiboot_mod_SOURCES): New variable.
54812 (_multiboot_mod_CFLAGS): Likewise.
54813 * loader/i386/pc/multiboot.c: New file.
54814 * include/pupa/i386/pc/multiboot.h: Likewise.
54815 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54816 (pupa_multiboot_real_boot): New function.
54817 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54818 (pupa_multiboot_real_boot): New prototype.
54819 (pupa_rescue_cmd_multiboot): Likewise
54820 (pupa_rescue_cmd_module): Likewise.
54822 * kern/loader.c (pupa_loader_set): Continue when
54823 pupa_loader_unload_func() fails.
54824 (pupa_loader_unset): New function.
54825 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54827 * kern/misc.c (pupa_stpcpy): New function.
54828 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54830 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54832 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54833 for available extensions.
54835 * include/pupa/i386/pc/time.h: New file.
54836 * kern/disk.c: Include <pupa/machine/time.h>.
54837 (PUPA_CACHE_TIMEOUT): New macro.
54838 (pupa_last_time): New variable.
54839 (pupa_disk_open): Flush the cache when there was a timeout.
54840 (pupa_disk_close): Reset the timer.
54841 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54843 * util/misc.c: Include <sys/times.h>
54844 (pupa_get_rtc): New function.
54846 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54848 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54850 (pupa_ext2_get_file_block): Use blocks member.
54852 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54853 first block. Return -1 instead of pupa_errno on error.
54855 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54857 * README: In the pupa-mkimage example use _chain instead of chain
54858 and ext2 instead of fat.
54859 * TODO: Replace ext2fs with jfs as an example. Add an item for
54860 adding journal playback for ext2fs.
54861 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54862 (pkgdata_MODULES): Added ext2.mod.
54863 (ext2_mod_SOURCES): New variable.
54864 (ext2_mod_CFLAGS): Likewise.
54865 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54866 * include/pupa/misc.h (pupa_strncpy): New prototype.
54867 (pupa_strcat): Likewise.
54868 (pupa_strncmp): Likewise.
54869 * kern/misc.c (pupa_strcat): Enable function.
54870 (pupa_strncpy): New function.
54871 (pupa_strncmp): Likewise.
54872 * fs/ext2.c: New file.
54874 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54875 when the read failed before retrying.
54876 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54877 (_FILE_OFFSET_BITS): Likewise.
54878 * configure.ac: Added AC_SYS_LARGEFILE.
54880 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54882 * genmk.rb (PModule#rule): Make sure to get only symbol names
54883 from the output of nm.
54884 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54886 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54888 I forgot to check in these changes for a long time. This adds
54889 incomplete support for VGA console, and this is still very
54890 buggy. Also, a lot of consideration is required for I18N,
54891 UNICODE, and VGA font issues. Therefore, assume that this is
54892 such that "better than nothing".
54894 * font/manager.c: New file.
54895 * include/pupa/font.h: Likewise.
54896 * include/pupa/i386/pc/vga.h: Likewise.
54897 * term/i386/pc/vga.c: Likewise.
54898 * util/unifont2pff.rb: Likewise.
54900 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54901 (pkgdata_MODULES): Added vga.mod and font.mod.
54902 (vga_mod_SOURCES): New variables.
54903 (vga_mod_CFLAGS): Likewise.
54904 (font_mod_SOURCES): Likewise.
54905 (font_mod_CFLAGS): Likewise.
54907 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54909 * include/pupa/term.h: Include pupa/err.h.
54910 (struct pupa_term): Added init and fini.
54911 Changed the argument of putchar to pupa_uint32_t.
54913 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54914 (pupa_console_real_putchar): New prototype.
54915 (pupa_console_putchar): Removed.
54916 (pupa_console_checkkey): Exported.
54917 (pupa_console_getkey): Likewise.
54919 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54922 * kern/term.c (pupa_term_set_current): Rewritten.
54923 (pupa_putchar): Likewise.
54924 (pupa_putcode): New function.
54926 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54927 (pupa_console_real_putchar): ... this.
54928 (pupa_vga_set_mode): New function.
54929 (pupa_vga_get_font): Likewise.
54931 * normal/command.c: Include pupa/term.h.
54932 (terminal_command): New function.
54933 (pupa_command_init): Register the command "terminal".
54935 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54936 (DISP_UP): Likewise.
54937 (DISP_RIGHT): Likewise.
54938 (DISP_DOWN): Likewise.
54939 (DISP_HLINE): Likewise.
54940 (DISP_VLINE): Likewise.
54941 (DISP_UL): Likewise.
54942 (DISP_UR): Likewise.
54943 (DISP_LL): Likewise.
54944 (DISP_LR): Likewise.
54946 * term/i386/pc/console.c (pupa_console_putchar): New function.
54948 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54950 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54951 FIX. Reverse the path_list.
54953 * include/pupa/normal.h: Export pupa_register_command and
54954 pupa_unregister_command.
54956 * hello/hello.c (pupa_cmd_hello): New module.
54957 * conf/i386-pc.rmk: Added hello.mod.
54959 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54961 * kern/i386/pc/lzo1x.S: New file.
54963 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54964 (compress_kernel): New variable.
54965 (generate_image): Heavily modified to support compressing a
54966 large part of the core image.
54968 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54970 (pupa_util_load_image): New function.
54972 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54973 (pupa_compressed_size): New variable.
54974 (codestart): Enable Gate A20 here.
54975 Decompress the compressed part of the core image.
54976 Rearrange the code to put functions and variables which are
54977 required for initialization in the non-compressed part.
54980 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54983 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54985 * include/pupa/i386/pc/kernel.h
54986 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54987 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54988 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54989 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54990 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54992 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54994 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54995 (Utility#rule): Likewise.
54997 * configure.ac: Check if LZO is available.
54999 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
55001 * include/pupa/normal.h: New file.
55002 * include/pupa/setjmp.h: Likewise.
55003 * include/pupa/i386/setjmp.h: Likewise.
55004 * normal/cmdline.c: Likewise.
55005 * normal/command.c: Likewise.
55006 * normal/main.c: Likewise.
55007 * normal/menu.c: Likewise.
55008 * normal/i386/setjmp.S: Likewise.
55010 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55011 (pupa_rescue_cmd_initrd): Likewise.
55013 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55016 * kern/i386/pc/startup.S (translation_table): New variable.
55017 (translate_keycode): New function.
55018 (pupa_console_getkey): Call translate_keycode.
55020 * kern/rescue.c (attempt_normal_mode): New function.
55021 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55022 it failed, print a message.
55024 * kern/mm.c (pupa_real_malloc): Print more information when a
55025 free magic is broken.
55026 (pupa_free): If the first free header is not free actually, set
55029 * kern/main.c (pupa_load_normal_mode): Just load the module
55031 (pupa_main): Don't print the message
55032 "Entering into rescue mode..." here.
55034 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55036 (pupa_rescue_cmd_initrd): Likewise.
55037 (pupa_rescue_cmd_initrd): Likewise.
55039 * include/pupa/symbol.h (FUNCTION): Specify the type.
55040 (VARIABLE): Likewise.
55042 * include/pupa/err.h (pupa_err_t): Added
55043 PUPA_ERR_UNKNOWN_COMMAND.
55045 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55046 (pupa_dl_get_prefix): Likewise.
55048 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55049 Added _chain.mod and _linux.mod instead of chain.mod and
55051 (chain_mod_SOURCES): Renamed to ...
55052 (_chain_mod_SOURCES): ... this.
55053 (chain_mod_CFLAGS): Renamed to ...
55054 (_chain_mod_CFLAGS): ... this.
55055 (linux_mod_SOURCES): Renamed to ...
55056 (_linux_mod_SOURCES): ... this.
55057 (linux_mod_CFLAGS): Renamed to ...
55058 (_linux_mod_CFLAGS): ... this.
55059 (normal_mod_SOURCES): New variable.
55060 (normal_mod_CFLAGS): Likewise.
55061 (normal_mod_ASFLAGS): Likewise.
55063 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55065 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55068 * kern/dl.c (pupa_dl_ref): Refer depending modules
55070 (pupa_dl_unref): Unrefer depending modules recursively.
55071 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55072 a module is unloaded before one depending on that module is
55074 (pupa_dl_unload): Unload depending modules explicitly,
55077 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55079 * include/pupa/i386/pc/linux.h: New file.
55080 * loader/i386/pc/linux.c: Likewise.
55082 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55084 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55085 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55086 of PUPA_CHAINLOADER_BOOT_SECTOR.
55088 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55089 (pupa_linux_prot_size): New variable.
55090 (pupa_linux_tmp_addr): Likewise.
55091 (pupa_linux_real_addr): Likewise.
55092 (pupa_linux_boot_zimage): New function.
55093 (pupa_linux_boot_bzimage): Likewise.
55095 * kern/i386/pc/init.c (struct mem_region): New structure.
55096 (MAX_REGIONS): New macro.
55097 (mem_regions): New variable.
55098 (num_regions): Likewise.
55099 (pupa_os_area_addr): Likewise.
55100 (pupa_os_area_size): Likewise.
55101 (pupa_lower_mem): Likewise.
55102 (pupa_upper_mem): Likewise.
55103 (add_mem_region): New function.
55104 (compact_mem_regions): Likewise.
55105 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55106 the size of the conventional memory and that of so-called upper
55107 memory (before the first memory hole).
55108 Instead of adding each found region to free memory, use
55109 add_mem_region and add them after removing overlaps.
55110 Also, add only 1/4 of the upper memory to free memory. The rest
55111 is used for loading OS images. Maybe this is ad hoc, but this
55112 makes it much easier to relocate OS images when booting.
55114 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55115 (pupa_enter_rescue_mode): Don't register initrd and module.
55117 * kern/mm.c: Include pupa/dl.h.
55119 * kern/main.c: Include pupa/file.h and pupa/device.h.
55121 * kern/loader.c (pupa_loader_load_module_func): Removed.
55122 (pupa_loader_load_module): Likewise.
55124 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55127 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55128 (pupa_linux_tmp_addr): Likewise.
55129 (pupa_linux_real_addr): Likewise.
55130 (pupa_linux_boot_zimage): Likewise.
55131 (pupa_linux_boot_bzimage): Likewise.
55133 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55134 (pupa_upper_mem): Likewise.
55135 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55136 module is too dangerous.
55138 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55139 (pupa_os_area_size): Likewise.
55140 (pupa_loader_set): Remove the first argument. Loader doesn't
55141 manage modules or initrd any longer.
55142 (pupa_loader_load_module): Removed.
55144 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55145 (linux_mod_SOURCES): New variable.
55146 (linux_mod_CFLAGS): Likewise.
55148 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55150 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55151 the length of a blocklist correctly.
55153 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55154 Use ioctl only if the OS file is a block device.
55155 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55156 not very useful for normal files.
55158 * kern/main.c (pupa_set_root_dev): New function.
55159 (pupa_load_normal_mode): Likewise.
55160 (pupa_main): Call those above.
55162 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55165 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55167 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55169 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55170 (setup): Configure the installed partition information and the
55173 * loader/i386/pc/chainloader.c (my_mod): New variable.
55174 (pupa_chainloader_unload): New function.
55175 (pupa_rescue_cmd_chainloader): Refer itself.
55176 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55178 * kern/i386/pc/startup.S (install_partition): Removed.
55179 (version_string): Likewise.
55180 (config_file): Likewise.
55181 (pupa_install_dos_part): New variable.
55182 (pupa_install_bsd_part): Likewise.
55183 (pupa_prefix): Likewise.
55184 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55186 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55188 (make_install_device): New function.
55189 (pupa_machine_init): Set the dl prefix.
55191 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55192 (buf): Renamed to ...
55193 (linebuf): ... this.
55194 (pupa_rescue_cmd_prefix): New function.
55195 (pupa_rescue_cmd_insmod): Likewise.
55196 (pupa_rescue_cmd_rmmod): Likewise.
55197 (pupa_rescue_cmd_lsmod): Likewise.
55198 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55201 * kern/mm.c (pupa_memalign): If failed even after invalidating
55202 disk caches, unload unneeded modules and retry.
55204 * kern/misc.c (pupa_memmove): New function.
55205 (pupa_memcpy): Removed.
55206 (pupa_strcpy): New function.
55207 (pupa_itoa): Made static.
55209 * kern/dl.c (pupa_dl_iterate): New function.
55210 (pupa_dl_ref): Likewise.
55211 (pupa_dl_unref): Likewise.
55212 (pupa_dl_unload): Return if succeeded or not.
55213 (pupa_dl_unload_unneeded): New function.
55214 (pupa_dl_unload_all): Likewise.
55215 (pupa_dl_init): Renamed to ...
55216 (pupa_dl_set_prefix): ... this.
55217 (pupa_dl_get_prefix): New function.
55219 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55220 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55221 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55222 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55223 (pupa_install_dos_part): Declared.
55224 (pupa_install_bsd_part): Likewise.
55225 (pupa_prefix): Likewise.
55226 (pupa_boot_drive): Likewise.
55228 * include/pupa/types.h: Fix a typo.
55230 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55232 (pupa_memmove): Declared.
55233 (pupa_strcpy): Likewise.
55235 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55236 pupa_mod_init takes one argument, its own module.
55237 (pupa_dl_unload_unneeded): Declared.
55238 (pupa_dl_unload_all): Likewise.
55239 (pupa_dl_ref): Likewise.
55240 (pupa_dl_unref): Likewise.
55241 (pupa_dl_iterate): Likewise.
55242 (pupa_dl_init): Renamed to ...
55243 (pupa_dl_set_prefix): ... this.
55244 (pupa_dl_get_prefix): Declared.
55246 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55247 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55249 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55250 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55252 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55253 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55255 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55257 * util/i386/pc/pupa-setup.c (setup): Define the internal
55258 function find_first_partition_start at the top level, because GCC
55259 3.0.x cannot compile internal functions in deeper scopes
55261 (find_root_device): Use lstat instead of stat.
55262 Don't follow symbolic links.
55263 Fix the path-constructing code.
55265 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55266 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55267 by a BLKGETSIZE ioctl first, because block devices don't fill
55268 the member st_mode of the structure stat on Linux.
55269 [__linux__] (linux_find_partition): Use a temporary buffer
55270 REAL_DEV for the working space. Copy it to DEV before returning.
55271 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55272 buffer cache consistent.
55273 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55274 strncmp. The previous value was merely wrong.
55275 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55277 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55278 FAT size is 12. The previous value was merely wrong.
55280 * kern/main.c (pupa_main): Don't split the starting message from
55283 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55284 LF, because BIOS goes crazy about character attributes in this
55287 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55289 * include/i386/pc/util/biosdisk.h: New file.
55290 * util/i386/pc/biosdisk.c: Likewise.
55291 * util/i386/pc/pupa-setup.c: Likewise.
55293 * Makefile.in (INCLUDE_DISTFILES): Added
55294 include/pupa/i386/pc/util/biosdisk.h.
55295 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55296 directory util/i386/pc.
55297 (install-local): Added a rule for sbin_UTILITIES.
55298 (uninstall): Likewise.
55300 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55302 * util/misc.c (xrealloc): New function.
55303 (pupa_malloc): Likewise.
55304 (pupa_free): Likewise.
55305 (pupa_realloc): Likewise.
55306 (pupa_stop): Likewise.
55307 (pupa_putchar): Likewise.
55309 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55311 * include/pupa/util/misc.h (xrealloc): Declared.
55313 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55315 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55316 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55318 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55319 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55321 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55322 way should be implemented.
55323 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55325 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55326 the size of NAME for safety.
55327 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55330 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55331 (pupa_setup_SOURCES): Likewise.
55333 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55335 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55337 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55338 bunch of pushl's from pusha, because this destroys the return
55341 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55343 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55344 This means that any missing prototypes could be fatal. Also, you
55345 must take care when writing assembly code. See the comments at
55346 the beginning of startup.S, for more details.
55348 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55349 compilation mechanism.
55350 (pupa_chainloader_real_boot): Likewise.
55351 (pupa_biosdisk_rw_int13_extensions): Likewise.
55352 (pupa_biosdisk_rw_standard): Likewise.
55353 (pupa_biosdisk_check_int13_extensions): Likewise.
55354 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55355 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55356 (pupa_get_memsize): Likewise.
55357 (pupa_get_mmap_entry): Likewise.
55358 (pupa_console_putchar): Likewise.
55359 (pupa_console_setcursor): Likewise.
55360 (pupa_getrtsecs): Use pushl instead of push.
55362 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55363 memory instead of the stack for a mmap entry, because some
55364 BIOSes may ignore the maximum size and overflow.
55366 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55368 * genmk.rb (PModule#rule): Compile automatically generated
55369 sources with module-specific CFLAGS as well as other sources.
55371 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55373 * configure.ac: Check ld.
55374 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55375 respectively, before checking endianness and sizes.
55377 * Makefile.in (LD): New variable.
55379 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55381 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55383 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55385 * Changelog: New file.