1 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/fs/hfs.c (grub_hfs_mount): Additional filesystem
6 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
8 * grub-core/fs/minix.c: Additional filesystem
11 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
13 * grub-core/fs/ext2.c (grub_ext2_mount): Additional
14 checks for superblock validity.
16 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
18 * grub-core/fs/ufs.c (grub_ufs_mount): Check
19 that sblock.ino_per_group is not 0.
21 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23 Reject NILFS2 superblocks with over 1GiB blocks.
25 * grub-core/fs/nilfs2.c (grub_nilfs2_valid_sb): Check that
26 block size is <= 1GiB.
28 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
30 * grub-core/disk/ata.c (grub_ata_setaddress): Check that geometry
31 is sane when using CHS addressing.
33 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
35 * grub-core/disk/AFSplitter.c (AF_merge): Check that mdlen is not 0.
37 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
39 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Avoid
42 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
44 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_maxpacket): Avoid
45 potentially returning 0.
47 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
49 * grub-core/fs/minix.c (grub_minix_read_file): Avoid reading past
52 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
54 * grub-core/fs/fshelp.c (grub_fshelp_read_file): Don't attempt to read
57 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
59 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Update len
60 synchronously with line.
62 2015-01-20 Vladimir Serbinenko <phcoder@gmail.com>
64 Replace explicit sizeof divisions by ARRAY_SIZE.
66 2015-01-19 Kris Moore <kris@pcbsd.org>
68 * grub-core/disk/geli.c: Support GELI v6 and v7.
70 2014-12-09 Andrei Borzenkov <arvidjaar@gmail.com>
72 * grub-core/term/serial.c (grub_cmd_serial): Fix --rtscts
75 2014-12-07 David Kozub <zub.272@gmail.com>
77 * grub-core/kern/arm/misc.S: fix unaligned 64bit local variable
79 Fixes Savannah bug #43632.
81 2014-12-07 Peter Nelson <peterdn>
83 * grub-core/fs/ext2.c (grub_ext2_read_block): Support large sparse
86 2014-12-07 Andrei Borzenkov <arvidjaar@gmail.com>
88 * util/grub-mkconfig_lib.in (version_test_gt): Remove redundant
89 non-portable '-n' echo option.
90 * util/grub.d/10_kfreebsd.in: Change how list is built to avoid
91 non-portable 'echo -n.
92 * util/grub.d/10_linux.in: Likewise (closes 43668).
93 * util/grub.d/20_linux_xen.in: Likewise.
94 * util/grub.d/30_os-prober.in: Print spaces directly to avoid
95 non-portable 'echo -n'.
97 2014-12-07 Curtis Larsen <larsen@dixie.edu>
99 * grub-core/net/tcp.c (grub_net_recv_tcp_packet): Fix double
100 free when multiple empty segments were received (closes 42765).
102 2014-12-05 Andrei Borzenkov <arvidjaar@gmail.com>
104 * tests/util/grub-shell.in: Support --files also for netboot.
105 * tests/file_filter_test.in: New file with file filters tests.
106 * Makefile.util.def: Add file_filter_test.
107 * conf/Makefile.extra-dist: ... and here.
108 * tests/file_filter/file.gz: Test file for file_filter_test.
109 * tests/file_filter/file.gz.sig: Likewise.
110 * tests/file_filter/file.lzop: Likewise.
111 * tests/file_filter/file.lzop.sig: Likewise.
112 * tests/file_filter/file.xz: Likewise.
113 * tests/file_filter/file.xz.sig: Likewise.
114 * tests/file_filter/keys: Likewise.
115 * tests/file_filter/keys.pub: Likewise.
116 * tests/file_filter/test.cfg: Likewise.
117 * grub-core/commands/verify.c: Fix memory corruption doing
118 signature check for network files (closes 43601).
120 2014-12-01 Andrei Borzenkov <arvidjaar@gmail.com>
122 * grub-core/loader/i386/xen_fileXX.c (grub_xen_get_infoXX): Fix
123 memory leak (CID 73645, 73782).
124 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix memory leak
127 2014-11-30 Andrei Borzenkov <arvidjaar@gmail.com>
129 * grub-core/lib/syslinux_parse.c (free_menu): Do not free
130 inline array (CID 73610).
132 2014-11-28 Andrei Borzenkov <arvidjaar@gmail.com>
134 * grub-core/io/lzopio.c (test_header): Fix double free (CID 73665)
135 * grub-core/disk/geli.c (configure_ciphers): Fix memory leaks
136 (Coverity CID 73813, 73710)
137 * grub-core/disk/luks.c (configure_ciphers): Fix memory leaks
138 and use after free (Coverity CID 73813, 73710, 73730)
139 * grub-core/disk/luks.c (luks_recover_key): Fix memory leak (Coverity
141 * util/grub-install-common.c (grub_install_get_target): Check return
142 value of grub_util_fd_read (Coverity CID 73819).
143 * util/grub-mkstandalone.c (add_tar_file): Fix out of bound access
144 to hd.magic (Coverity CID 73587, 73888, bug 43690).
146 2014-11-20 Andrei Borzenkov <arvidjaar@gmail.com>
148 * tests/util/grub-fs-tester.in: Consistently print output
149 of grub ls if test fails.
151 2014-11-07 Leif Lindholm <leif.lindholm@linaro.org>
153 * grub-core/kern/efi/init.c: check value of *path before
156 2014-11-03 Michael Chang <mchang@suse.com>
158 * grub-core/net/icmp6.c (grub_net_recv_icmp6_packet): Fix size
159 of neighbor solicitation packet in grub_netbuff_pull.
161 2014-10-14 Andrei Borzenkov <arvidjaar@gmail.com>
163 * grub-core/loader/arm/linux.c: Use full initializer for initrd_ctx to
164 avoid fatal warnings with older gcc (probably before 4.7).
165 * grub-core/loader/arm64/linux.c: Likewise.
166 * grub-core/loader/i386/linux.c: Likewise.
167 * grub-core/loader/i386/pc/linux.c: Likewise.
168 * grub-core/loader/ia64/efi/linux.c: Likewise.
169 * grub-core/loader/mips/linux.c: Likewise.
170 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
171 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
173 2014-09-25 Colin Watson <cjwatson@ubuntu.com>
175 Fix in-tree --platform=none
177 * configure.ac: Only remove include/grub/cpu and
178 include/grub/machine in the --platform=none case, not all of
181 2014-09-23 Colin Watson <cjwatson@ubuntu.com>
183 Add a new "none" platform that only builds utilities
185 * configure.ac: Add "none" platform. Default to it for unsupported
186 CPUs rather than stopping with a fatal error. Don't downgrade
187 x86_64-none to i386. Define COND_real_platform Automake conditional
188 if the platform is anything other than "none". Don't do any include
189 directory linking for "none".
190 * Makefile.am: Skip building grub-core and all bootcheck targets if
192 * include/grub/time.h: Don't include <grub/cpu/time.h> if GRUB_UTIL
195 2014-09-22 Andrei Borzenkov <arvidjaar@gmail.com>
197 Use grub_cpu_to_XXX_compile_time for constants.
199 2014-09-21 Valentin Dornauer <valentin@unimplemented.org>
201 The AML parser implements only a small subset of possible AML
202 opcodes. On the Fujitsu Lifebook E744 this and another bug in
203 the parser (incorrect handling of TermArg data types) would lead
204 to the laptop not turning off (_S5 not found).
206 * grub-core/commands/acpihalt.c: Support OpAlias in the AML parser;
207 in skip_ext_op(), handle some Type2Opcodes more correctly (TermArgs
208 aren't always simply strings!); Add function to skip TermArgs
209 * include/grub/acpi.h: Add new opcodes
211 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
213 * grub-core/normal/main.c: Don't drop to rescue console in
214 case of password-protected prompt and no menu entries.
216 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
218 * grub-core/commands/keylayouts.c: Ignore unknown keys.
220 2014-09-21 Vladimir Serbinenko <phcoder@gmail.com>
222 * grub-core/gmodule.pl.in: Accept newer binutils which output
223 empty column rather than 0x0.
225 2014-09-21 Michael Chang <mchang@suse.com>
227 * grub-core/osdep/unix/config.c: Remove extraneous comma.
229 2014-09-21 Peter Jones <pjones@redhat.com>
231 * grub-core/loader/arm/linux.c: Initialized initrd_ctx so
232 we don't free a random pointer from the stack.
233 * grub-core/loader/arm64/linux.c: Likewise.
234 * grub-core/loader/i386/linux.c: Likewise.
235 * grub-core/loader/i386/pc/linux.c: Likewise.
236 * grub-core/loader/ia64/efi/linux.c: Likewise.
237 * grub-core/loader/mips/linux.c: Likewise.
238 * grub-core/loader/powerpc/ieee1275/linux.c: Likewise.
239 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
241 2014-09-15 Khem Raj <raj.khem@gmail.com>
243 * grub-core/kern/emu/hostfs.c: use _DEFAULT_SOURCE in addition to
244 _BSD_SOURCE to avoid warnings under glibc 2.20+.
246 2014-09-08 Michael Chang <mchang@suse.com>
248 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Fix extent size
249 check; comparing &data->extent against addresses in the region it
250 points to is unpredictable.
252 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
254 Support grub-emu on x32 (ILP32 but with x86-64 instruction set)
256 * configure.ac: Remove -m64 from checks for -mcmodel=large and
257 -mno-red-zone. These are always either unnecessary (x86_64-emu) or
258 already in TARGET_CFLAGS at this point, and they produce incorrect
259 results when building for x32.
260 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Cast
261 pointers to Elf64_Xword via grub_addr_t, in order to work on x32.
262 * include/grub/x86_64/types.h (GRUB_TARGET_SIZEOF_VOID_P,
263 GRUB_TARGET_SIZEOF_LONG): Define to 4 on x32.
265 2014-09-07 Colin Watson <cjwatson@ubuntu.com>
267 * configure.ac: Remove several unnecessary semicolons.
269 2014-08-25 Colin Watson <cjwatson@ubuntu.com>
271 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
272 Initialise pend to pacify GCC.
274 2014-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
276 * util/grub-mkconfig.in: Fix typo (gettext_print instead of
279 2014-08-13 Vladimir Serbinenko <phcoder@gmail.com>
281 * grub-core/term/at_keyboard.c: Retry probing keyboard if
282 scancode setup failed.
284 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
286 * grub-core/kern/disk_common.c: Clump disk size to 1EiB.
288 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
290 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Add
291 safety to avoid triggerring VirtualBox bug.
293 2014-08-10 Vladimir Serbinenko <phcoder@gmail.com>
295 * grub-core/fs/cbfs.c: Don't probe disks of unknow size.
297 Fixes hang on virtualbox.
299 2014-07-08 Colin Watson <cjwatson@ubuntu.com>
301 * util/grub.d/10_hurd.in: Make kernel list progression not fail on
302 kernels whose paths contain regex metacharacters.
303 * util/grub.d/10_kfreebsd.in: Likewise.
304 * util/grub.d/10_linux.in: Likewise.
305 * util/grub.d/20_linux_xen.in: Likewise.
307 Reported by: Heimo Stranner.
309 2014-06-26 Colin Watson <cjwatson@ubuntu.com>
311 * docs/grub-dev.texi (Finding your way around): The build system no
312 longer uses AutoGen directly.
314 2014-06-21 Роман Пехов <roman_pekhov>
316 * grub-core/commands/loadenv.c (check_blocklists): Fix overlap check.
318 2014-06-21 Glenn Washburn <development@efficientek.com>
320 * util/grub-install.c: Fix handling of --disk-module.
322 2014-06-21 Stephane Rochoy <sheda>
324 * grub-core/loader/i386/bsd.c (grub_netbsd_boot): Pass pointer to
327 2014-06-21 Stephane Rochoy <sheda>
329 * grub-core/commands/efi/lsefisystab.c (grub_cmd_lsefisystab): Show
330 EFI system table physical address.
332 2014-06-21 Trevor Woerner <trevor.woerner@linaro.org>
334 * util/grub-gen-asciih.c (add_glyph): Fix uninitialised variable.
336 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
338 * grub-core/commands/verify.c (grub_pubkey_open): Trust procfs.
340 2014-06-21 Vladimir Serbinenko <phcoder@gmail.com>
342 * grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
345 2014-04-20 Vladimir Serbinenko <phcoder@gmail.com>
347 * grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
349 Reported by: Yves Blusseau <blusseau@zetam.org>.
351 2014-04-20 Piotr Krysiuk <piotras@gmail.com>
353 * grub-core/lib/i386/relocator.c: Allow loading old kernels by placing
354 GDT in conventional memory.
356 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
358 * util/grub.d/30_os-prober.in: Tolerate devices with no filesystem
359 UUID. Other parts of grub-mkconfig tolerate these, they were
360 previously allowed here up to commit
361 55e706c918922def17f5012c23cfe88c4c645208, and they can arise in
362 practice when the system has active LVM snapshots.
363 Fixes Ubuntu bug #1287436.
365 2014-04-10 Colin Watson <cjwatson@ubuntu.com>
367 * grub-core/disk/lvm.c (grub_lvm_detect): Search for
368 "logical_volumes" block a little more accurately.
370 2014-04-06 Vladimir Serbinenko <phcoder@gmail.com>
372 * grub-core/lib/syslinux_parse.c: Fix timeout quoting.
374 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
376 * include/grub/libgcc.h: Remove ctzsi2 and ctzdi2. They're no longer
379 2014-04-04 Vladimir Serbinenko <phcoder@gmail.com>
381 Replace few instances of memcmp/memcpy in the code that should be
382 grub_memcmp/grub_memcpy.
384 2014-04-03 Vladimir Serbinenko <phcoder@gmail.com>
386 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Support NVMe
389 2014-03-31 Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
391 btrfs: fix get_root key comparison failures due to endianness
393 * grub-core/fs/btrfs.c (get_root): Convert
394 GRUB_BTRFS_ROOT_VOL_OBJECTID to little-endian.
396 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
398 Fix partmap, cryptodisk, and abstraction handling in grub-mkconfig.
400 Commit 588744d0dc655177d5883bdcb8f72ff5160109ed caused grub-mkconfig
401 no longer to be forgiving of trailing spaces on grub-probe output
402 lines, which among other things means that util/grub.d/10_linux.in
403 no longer detects LVM. To fix this, make grub-probe's output
404 delimiting more consistent. As a bonus, this improves the coverage
407 Fixes Debian bug #735935.
409 * grub-core/disk/cryptodisk.c
410 (grub_util_cryptodisk_get_abstraction): Add a user-data argument.
411 * grub-core/disk/diskfilter.c (grub_diskfilter_get_partmap):
413 * include/grub/cryptodisk.h (grub_util_cryptodisk_get_abstraction):
415 * include/grub/diskfilter.h (grub_diskfilter_get_partmap): Likewise.
416 * util/grub-install.c (push_partmap_module, push_cryptodisk_module,
417 probe_mods): Adjust for extra user-data arguments.
418 * util/grub-probe.c (do_print, probe_partmap, probe_cryptodisk_uuid,
419 probe_abstraction): Use configured delimiter. Update callers.
421 2014-03-31 Colin Watson <cjwatson@ubuntu.com>
423 * util/grub-probe,c (options): Make -0 work again (broken by
425 (main): Simplify logic.
427 2014-03-26 Vladimir Serbinenko <phcoder@gmail.com>
429 * grub-core/lib/relocator.c: Fix the case when end of leftover is used.
431 2014-03-26 Fu Wei <fu.wei@linaro.org>
433 * grub-core/loader/arm64/linux.c: Remove redundant "0x".
435 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
437 * include/grub/i386/openbsd_bootarg.h: Add addr and frequency fields.
438 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Fill addr field.
440 Suggested by: Markus Müller.
442 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
444 * grub-core/kern/i386/pc/mmap.c: Fallback to EISA memory map
445 if E820 failed to return any regions.
447 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
449 * grub-core/mmap/i386/uppermem.c (lower_hook) [COREBOOT]: Ignore low
450 tables for low memory calculations.
452 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
454 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi): Limit
457 2014-02-28 Vladimir Serbinenko <phcoder@gmail.com>
459 * grub-core/kern/i386/coreboot/mmap.c: Filter out 0xa0000-0x100000
462 2014-02-20 Vladimir Serbinenko <phcoder@gmail.com>
464 * grub-core/disk/ahci.c: Ignore NPORTS field and rely on PI
467 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
469 Add bootpath parser for open firmware.
471 It enables net boot even when there is no bootp/dhcp server.
473 * grub-core/net/drivers/ieee1275/ofnet.c: Add grub_ieee1275_parse_bootpath
474 and call it at grub_ieee1275_net_config_real.
475 * grub-core/kern/ieee1275/init.c: Add bootpath to
476 grub_ieee1275_net_config.
477 * include/grub/ieee1275/ieee1275.h: Likewise.
480 2014-02-04 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
482 Add grub_env_set_net_property function.
484 * grub-core/net/bootp.c: Remove set_env_limn_ro.
485 * grub-core/net/net.c: Add grub_env_set_net_property.
486 * include/grub/net.h: Likewise.
488 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
490 * util/grub-mkrescue.c: Build fix for argp.h with older gcc.
492 2014-02-03 Vladimir Serbinenko <phcoder@gmail.com>
494 * util/grub-mkfont.c: Build fix for argp.h with older gcc.
496 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
498 * grub-core/disk/ahci.c: Increase timeout. Some SSDs take up to
499 7 seconds to recover if last poweroff was bad.
501 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
503 * grub-core/disk/ahci.c: Properly handle transactions with no
506 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
508 * grub-core/disk/ahci.c: Add safety cleanups.
510 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
512 * grub-core/disk/ahci.c: Allocate and clean space for all possible 32
513 slots to avoid pointing to uninited area.
515 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
517 * grub-core/disk/ahci.c: Do not enable I/O decoding and keep
518 enabling busmaster for the end.
520 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
522 * util/grub-mkfont.c: Downgrade warnings about unhandled features
525 2014-01-29 Vladimir Serbinenko <phcoder@gmail.com>
527 * grub-core/term/at_keyboard.c: Tolerate missing keyboard.
529 2014-01-29 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
531 * .gitignore: add missing files and .exe variants.
533 2014-01-26 Mike Gilbert <floppym@gentoo.org>
535 grub-install: support for partitioned partx loop devices.
537 * grub-core/osdep/linux/getroot.c (grub_util_part_to_disk): Detect
538 /dev/loopX as being the parent of /dev/loopXpY.
540 2014-01-26 Vladimir Serbinenko <phcoder@gmail.com>
542 * grub-core/term/serial.c (grub_serial_register): Fix invalid free.
543 Ensure that pointers are inited to NULL and that pointers are not
546 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
548 * include/grub/crypto.h: Replace __attribute__ ((format (printf)) with
549 __attribute__ ((format (__printf__)) to fix compilation under MinGW-w64.
550 * include/grub/emu/misc.h: ... and here.
551 * include/grub/err.h: ... and here.
552 * util/import_gcry.py: ... and here (in files g10lib.h).
554 2014-01-25 Andrey Borzenkov <arvidjaar@gmail.com>
556 * util/grub-mkimage.c: Make prefix argument mandatory.
558 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
560 Fix several translatable strings.
562 Suggested by: D. Prévot.
564 2014-01-24 Vladimir Serbinenko <phcoder@gmail.com>
566 * util/grub-install.c: List available targets.
568 2014-01-23 Colin Watson <cjwatson@ubuntu.com>
570 * util/grub-install.c (write_to_disk): Add an info message.
572 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
574 * Makefile.am: Allow adding extra files to generated Windows ZIP
575 archive by setting GRUB_WINDOWS_EXTRA_DIST.
577 2014-01-21 Andrey Borzenkov <arvidjaar@gmail.com>
579 * configure.ac: Look for DejaVuSans also in /usr/share/fonts/truetype.
580 Show detected font path in summary.
582 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
584 * grub-core/net/arp.c (grub_net_arp_send_request): Increase network try
586 * grub-core/net/icmp6.c (grub_net_icmp6_send_request): Likewise.
587 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
588 * grub-core/net/tftp.c (tftp_open): Likewise.
589 * include/grub/net.h (GRUB_NET_INTERVAL_ADDITION): New define.
591 2014-01-21 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
593 * grub-core/net/net.c (receive_packets): Change stop condition to avoid
596 In net/net.c there is a while (1) that only exits if there is a stop
597 condition and more then 10 packages or if there is no package received.
599 If GRUB is idle and enter in this loop, the only condition to leave is
600 if it doesn't have incoming packages. In a network with heavy traffic
603 2014-01-19 Colin Watson <cjwatson@ubuntu.com>
605 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Ignore
606 EPERM when modifying kern.geom.debugflags. It is only a problem for
607 such things as installing GRUB to the MBR, in which case there'll be
608 an error later anyway, not for opening files during tests.
610 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
612 * grub-core/Makefile.am: Build grub_emu_init.[ch] from MODULE_FILES
613 instead of MOD_FILES.
614 * grub-core/genemuinit.sh: Simplify stripping of suffix so it works
615 both with and without .exe.
616 * grub-core/genemuinitheader.sh: Same.
618 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
620 * util/grub-install.c: Fix a typo.
622 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
624 * grub-core/normal/main.c (read_config_file): Buffer config file.
627 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
629 * acinclude.m4 (grub_CHECK_LINK_DIR): Check that we can also remove
630 symbolic link to directory. It fails in Msys shell on Windows 2003.
632 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
634 * Makefile.am (default_payload.elf): Add modules
635 multiboot cbmemc linux16 gzio echo help.
637 2014-01-18 Mike Gilbert <floppym@gentoo.org>
639 * Makefile.util.def: Link grub-ofpathname with zfs libs.
641 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
643 * grub-core/commands/macbless.c: Rename FILE and DIR to avoid
646 Reported by: Andrey Borzenkov.
648 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
650 * include/grub/misc.h: Move macros for compiler features to ...
651 * include/grub/compiler.h: ... new file.
652 * include/grub/list.h: Include <grub/compiler.h> instead of <grub/misc.h>.
653 * grub-core/commands/fileXX.c: Include <grub/misc.h>.
654 * grub-core/efiemu/prepare.c: Include <grub/misc.h>.
655 * grub-core/loader/i386/xen_file.c: Include <grub/misc.h>.
656 * grub-core/loader/i386/xen_fileXX.c: Include <grub/misc.h>.
657 * grub-core/video/capture.c: Include <grub/misc.h>.
658 * include/grub/command.h: Include <grub/misc.h>.
659 * include/grub/dl.h: Include <grub/misc.h>.
660 * include/grub/procfs.h: Include <grub/misc.h>.
662 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
664 * configure.ac: Add support for BUILD_EXEEXT and use it ...
665 * Makefile.am: ... here.
666 * Makefile.util.def: ... and here.
667 * grub-core/Makefile.am: ... and here.
669 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
671 * include/grub/osdep/hostfile_windows.h: Use _W64 instead of
672 FILE_OFFSET_BITS to differentiate between native MinGW and Mingw W64.
674 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
676 * grub-core/term/terminfo.c: Recognize keys F1-F12.
678 2014-01-18 Andrey Borzenkov <arvidjaar@gmail.com>
680 * configure.ac: Add support for BUILD_LDFLAGS.
681 * Makefile.am: Use BUILD_LDFLAGS for build time programs here ...
682 * grub-core/Makefile.am: ... and here.
683 * INSTALL: Mention BUILD_LDFLAGS.
685 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
687 * util/grub-mount.c: Extend GCC warning workaround to grub-mount.
689 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
691 * grub-core/kern/efi/efi.c: Ensure that the result starts with /
694 2014-01-18 Vladimir Serbinenko <phcoder@gmail.com>
696 * NEWS: Add few missing entries.
698 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
700 * util/grub.d/00_header.in (make_timeout): Use && rather than test
702 * util/grub.d/10_windows.in: Likewise.
703 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): Use || rather
705 * util/grub.d/30_os-prober.in: Use && rather than test -a, and ||
708 2014-01-17 Colin Watson <cjwatson@ubuntu.com>
710 * grub-core/osdep/freebsd/hostdisk.c (grub_util_fd_open): Remove
711 redundant preprocessor conditional.
713 2014-01-08 Colin Watson <cjwatson@ubuntu.com>
715 * Makefile.util.def (grub-macbless): Change mansection to 8.
717 2014-01-07 Leif Lindholm <leif.lindholm@linaro.org>
719 * grub-core/loader/arm64/linux.c: correctly set device path end length.
721 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
723 * util/grub-install.c: Use bootaa64.efi instead of bootaarch64.efi on
724 arm64 to comply with EFI specification. Also use grubaa64.efi for
726 * util/grub-mkrescue.c: Change to use bootaa64.efi too.
728 2014-01-07 Andrey Borzenkov <arvidjaar@gmail.com>
730 * include/grub/osdep/hostfile_windows.h: Do not redefine fseeko/ftello
731 on MinGW-64 when compiling for 32 bits.
733 2013-12-30 Andrey Borzenkov <arvidjaar@gmail.com>
735 * grub-core/Makefile.core.def: strip .eh_frame section for arm64-efi.
737 2013-12-30 Vladimir Serbinenko <phcoder@gmail.com>
739 * NEWS: Add few missing entries. Correct existing ones.
741 2013-12-28 Vladimir Serbinenko <phcoder@gmail.com>
743 Don't abort() on unavailable coreboot tables if not running on coreboot.
745 2013-12-28 Andrey Borzenkov <arvidjaar@gmail.com>
747 * grub-core/kern/emu/misc.c: Remove unused error.h; fixes compilation
750 2013-12-28 Colin Watson <cjwatson@ubuntu.com>
752 * NEWS: The cmosclean command in fact dates back to 1.99. Remove
753 mention of it from 2.02.
755 2013-12-27 Vladimir Serbinenko <phcoder@gmail.com>
757 * grub-core/kern/arm/cache_armv6.S: Remove .arch directive.
759 As these functions are used on pre-ARMv6 CPUs as well we don't want
760 to make assembler assume that architecture is higher than default one.
762 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
764 * NEWS: First draft of 2.02 entry.
766 2013-12-27 Colin Watson <cjwatson@ubuntu.com>
768 * INSTALL (Cross-compiling the GRUB): Fix some spelling mistakes.
769 * docs/grub.texi (Getting the source code): Likewise.
771 2013-12-25 Andrey Borzenkov <arvidjaar@gmail.com>
773 * grub-core/osdep/windows/platform.c (get_platform): Fix EFI
776 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
778 * configure.ac: Set version to 2.02~beta2.
780 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
782 * grub-core/disk/efi/efidisk.c (name_devices): Skip Apple ghosts.
784 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
786 * util/grub-probe.c: Improve help message and simplify list handling.
788 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
790 Fix buffer overflow in grub_efi_print_device_path.
792 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
794 Show SATA device path.
796 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
798 Revert grub-file usage in grub-mkconfig.
800 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
802 Make newly-created files other than grub.cfg world-readable.
804 2013-12-24 Andrey Borzenkov <arvidjaar@gmail.com>
806 * util/grub.d/00_header.in: Improve compatibility with old config.
808 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
810 Make rijndael.c respect aliasing rules.
812 Trivial backport of dfb4673da8ee52d95e0a62c9f49ca8599943f22e.
814 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
816 Make grub_util_device_is_mapped_stat available in grub-emu core.
818 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
820 Add -Qn to TARGET_CFLAGS if it's supported.
821 Fixes compilation on cygwin.
823 Reported by: Andrey Borzenkov.
824 Suggested by: Andrey Borzenkov.
826 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
828 Save TARGET_CC version in modinfo.sh.
830 Suggested by: Andrey Borzenkov.
832 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
834 Make grub_util_devmapper_part_to_disk and grub_util_find_partition_start
835 follow the same algorithm to avoid method mismatch. Don't assume
836 DMRAID- UUID to mean full disk but instead check that mapping is linear.
838 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
840 Declare GRUB_EFI_VENDOR_APPLE_GUID.
842 2013-12-24 Vladimir Serbinenko <phcoder@gmail.com>
844 Dump type and vendor specific data when printing device path.
846 2013-12-23 Colin Watson <cjwatson@debian.org>
848 Update some documentation to refer to Git rather than Bazaar.
850 * docs/grub.texi (Obtaining and Building GRUB): Refer to Git rather
852 * po/README: Likewise. Fix spelling mistake.
854 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
856 Don't distribute config.h.
858 * Makefile.am (platform_HEADERS): Move to ...
859 (nodist_platform_HEADERS): ... here. Fixes gettext_strings_test
860 failure when building from a distributed tarball.
862 2013-12-23 Colin Watson <cjwatson@ubuntu.com>
864 * configure.ac: Fix spelling.
865 * grub-core/commands/parttool.c: Fix grammar.
866 * grub-core/disk/ldm.c: Use consistent capitalisation for "LDM
867 Embedding Partition".
869 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
871 ARM64 support for grub-mkrescue.
873 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
875 Install modinfo.sh to keep build information around.
877 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
879 * grub-core/modinfo.sh.in: Add build config information.
881 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
883 ARM64 grub-file and grub-mkconfig support.
885 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
887 Remove leftover options defines.
889 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
891 * include/grub/arm64/linux.h: Remove leftovers. Add missing prefixes.
893 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
895 * grub-core/loader/arm64/linux.c: Add missing bracket.
897 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
899 Add arm64-efi recognition to grub-file.
901 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
903 Fix ia64-efi recognition in grub-file.
905 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
907 Recognize raspberry pi kernel in grub-file.
909 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
911 Enable cache on ARM U-Boot port.
913 Without it the port is reidiculously slow.
915 2013-12-23 Vladimir Serbinenko <phcoder@gmail.com>
917 Fix ARM cache maintainance.
919 More code was converted from ASM to C for easier handling.
921 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
923 * grub-core/kern/arm/cache.c (grub_arm_disable_caches_mmu): Use v6
926 Suggested by: Leif Lindholm.
928 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
930 * util/grub-mkconfig.in: Fix Xen platform conditions.
932 2013-12-22 Andrey Borzenkov <arvidjaar@gmail.com>
934 * util/grub-mkrescue.c: Split single help message string in several
935 strings used in previous shell version.
937 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
939 Add arm64 Linux loader.
941 2013-12-22 Leif Lindholm <leif.lindholm@linaro.org>
943 Add grub_fdt_create_empty_tree() and grub_fdt_set_prop64().
945 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
947 Add module loading and parsing boot time checkpoints.
949 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
951 * grub-core/loader/arm/linux.c: Pass arguments through on ATAG
954 2013-12-22 Lars Wendler <polynomial-c@gentoo.org>
956 * util/grub-mkconfig.in: Skip non-executable files.
958 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
960 Workaround buggy timer in raspberry pie by using our own timer
963 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
965 * include/grub/arm/uboot/kernel.h (GRUB_KERNEL_MACHINE_HEAP_SIZE):
966 Increase to 16 MiB to allow loading the whole memdisk.
968 2013-12-22 Vladimir Serbinenko <phcoder@gmail.com>
970 Fix ARM Linux Loader on non-FDT platforms.
972 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
974 * configure.ac: Choose link format based on host_os on emu.
976 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
978 * grub-core/osdep/unix/getroot.c: Non-unix build fix.
980 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
982 * grub-core/kern/emu/main.c: Build fix for emu.
984 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
986 Build fixes for argp.h with older gcc.
988 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
990 * util/grub-glue-efi.c: Use "universal binary" rather "fat binary"
993 Suggested by: David Prévot.
995 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
997 * include/grub/crypto.h (grub_crypto_xor): Fix cast-align warning.
999 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1001 Enable -Wformat=2 if it's supported.
1003 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1005 * configure.ac: Add -Wmissing-include-dirs -Wmissing-prototypes
1006 -Wmissing-declarations if supported.
1008 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1010 * grub-core/commands/macbless.c (grub_mac_bless_inode): Pass inode as
1011 u32 as both HFS and HFS+ have 32-bit inodes.
1013 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1015 * include/grub/misc.h (grub_strtol): Fix overflow.
1017 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1019 * include/grub/term.h (grub_unicode_estimate_width): Use grub_size_t
1020 as return type in both conditionals.
1022 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1024 * include/grub/video.h (grub_video_rgba_color_rgb): Fix prototype
1025 to use uint8_t for color.
1027 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1029 * util/misc.c (grub_util_get_image_size): Check for overflow.
1031 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1033 * grub-core/disk/raid6_recover.c (grub_raid_block_mulx): Use grub_size_t
1036 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1038 * grub-core/disk/lvm.c: Use grub_size_t for sizes and grub_ssize_t
1039 for pointer difference.
1041 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1043 * util/import_gcry.py: Skip sample keys.
1045 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1047 * util/misc.c (grub_qsort_strcmp): Don't discard const attribute.
1049 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1051 * configure.ac: Remove duplicate warning arguments.
1053 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1055 Add missing static qualifiers.
1057 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1059 Add missing includes.
1061 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1063 Inline printf templates when possible to enable format checking.
1065 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1067 * include/grub/crypto.h: Don't discard const attribute.
1069 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1071 * grub-core/net/bootp.c (grub_cmd_dhcpopt): Use snprintf where it
1074 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1076 * grub-core/lib/crypto.c: Don't discard const attribute.
1078 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1080 * grub-core/lib/disk.c: Fix potential overflow.
1082 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1084 * grub-core/lib/arg.c: Don't discard const attribute.
1086 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1088 * grub-core/kern/dl.c: Don't discard const attribute.
1090 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1092 * grub-core/kern/disk.c: Fix potential overflow.
1094 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1096 * conf/Makefile.common: Don't include non-existing directory
1097 grub-core/lib/libgcrypt-grub/include.
1099 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1101 Clarify several translatable messages.
1103 2013-12-21 David Prévot <david@tilapin.org>
1105 Correct some translatable strings.
1107 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1109 * util/grub-mkrescue.c: Rephrase mkrescue description.
1111 2013-12-21 Vladimir Serbinenko <phcoder@gmail.com>
1112 2013-12-21 Colin Watson <cjwatson@ubuntu.com>
1114 Clarify several translatable messages.
1116 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1118 Be more verbose about some configure failures.
1120 2013-12-20 Colin Watson <cjwatson@ubuntu.com>
1122 Fix various build problems on GNU/Hurd.
1124 * grub-core/osdep/unix/getroot.c (strip_extra_slashes): Move inside
1126 (xgetcwd): Likewise.
1127 * include/grub/emu/hostdisk.h (grub_util_hurd_get_disk_info)
1128 [__GNU__]: Add prototype.
1129 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Format
1130 long int using %ld rather than %d.
1132 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1134 * util/grub-install.c: Inform user about install platform.
1136 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1138 * configure.ac: Set version to 2.02~beta1.
1140 2013-12-18 Allen Pais <allen.pais@oracle.com>
1141 2013-12-18 Bob Picco <bob.picco@oracle.com>
1143 * grub-core/boot/sparc64/ieee1275/boot.S: Fix order of fields.
1145 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1147 Make grub_zlib_decompress handle incomplete chunks.
1151 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1153 * grub-core/Makefile.am: Don't attempt to export grub_bios_interrupt
1156 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1158 * grub-core/disk/usbms.c: Retry on unknown errors.
1159 Reuse the same tag on retries.
1161 2013-12-18 Aleš Nesrsta <starous@volny.cz>
1163 * grub-core/bus/usb/ehci.c: Fix handling of newborn transfers.
1165 Avoid confusing them with already completed transfers.
1167 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1171 Due to XEN bug it prevents Linux boot. Remove it at least, until
1172 workaround is found.
1174 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1176 * po/exclude.pot: Add 2 missing excludes.
1178 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1180 Add missing license section in macbless.mod and macho.mod.
1182 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1184 Allow compilation without thumb-interwork as long as no thumb is
1185 involved or only thumb2 is used.
1187 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1189 * INSTALL: Update comment as to why sparc64 clang isn't usable.
1191 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1193 Add __attribute__ ((sysv_abi)) only if it's really needed.
1195 Some compilers don't support it.
1197 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1199 * grub-core/lib/syslinux_parse.c: Declare timeout unsigned.
1201 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1203 Remove -Wold-style-definition.
1205 Not very useful and interaction of it with regexp depends on GCC
1208 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1210 Make grub_util_get_windows_path_real static.
1212 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1214 * grub-core/commands/fileXX.c: Silence cast-align.
1215 * grub-core/loader/i386/xen_fileXX.c: Likewise.
1217 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1219 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Use explicit cast
1220 rather than LL suffix.
1222 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1224 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): Remove leftover.
1226 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1228 * grub-core/loader/arm/linux.c: Use common initrd functions.
1230 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1232 Decrease number of strings to translate.
1234 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1236 * grub-core/kern/arm/dl.c: Remove unnecessarry execution mode check.
1238 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1240 Mark strings for translation and add remaining ones to exclude list.
1242 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1244 * util/grub-file.c (main): Fix sizeof usage.
1246 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1248 Silence spurious warning.
1250 2013-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1252 Remove check_nt_hiberfil as it's been superseeded by file command.
1254 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1256 * docs/osdetect.cfg: Add isolinux config to detected OSes.
1258 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1260 Implement syslinux parser.
1262 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1264 * grub-core/commands/legacycfg.c: Use 32-bit Linux protocol on non-BIOS.
1266 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1268 Support cpuid --pae.
1270 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1272 Use AT keyboard on Yeeloong 3A.
1274 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1276 Add Yeeloong 3A reboot and halt.
1278 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1280 Add Radeon Yeeloong 3A support.
1282 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1284 Add bonito 3A support.
1286 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1288 * grub-core/loader/machoXX.c: Fix compilation on non-i386.
1290 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1292 * grub-core/loader/i386/xen_fileXX.c: Silence cast-align.
1294 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1296 * grub-core/loader/macho.c: Fix compilation on non-i386.
1298 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1300 Add missing format_arg attribute to check that printf with translated
1301 messages has proper arguments.
1303 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1305 Use grub_xasprintf to format translated error messages containing
1308 2013-12-17 Jon McCune <jonmccune@google.com>
1310 Fix double-free introduced by commit 33d02a42d64cf06cada1c389
1312 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1314 Unify message for unsupported relocation.
1316 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1318 Mark miscompile error for translation.
1320 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1322 Use %I64 and not %ll when using OS printf if compiling for windows.
1324 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1326 Update Mac code to match new register_efi prototype.
1328 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1330 Implement better integration with Mac firmware.
1332 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1334 * grub-core/loader/multiboot_mbi2.c: Implement special value for
1337 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1339 Include serial module in default_payload.elf.
1341 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1343 Add explicit thumb interwork bx in asm files.
1345 Shouldn't matter for armv >= 5 but let's be safe.
1347 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1349 Implement Truecrypt ISO loader.
1351 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1353 * grub-core/lib/arg.c: Ensure at least a single space between commands.
1355 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1357 Implement grub_file tool and use it to implement generating of config
1360 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1362 Change to v1 xen grants.
1364 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1366 * grub-core/lib/i386/xen/relocator.S: Fix hypercall ABI violation.
1368 GRUB relied on %ebx being preserved across hypercall which isn't true.
1370 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1372 * grub-core/lib/x86_64/xen/relocator.S: Fix hypercall ABI violation.
1374 GRUB relied on %rdi being preserved across hypercall which isn't true.
1376 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1378 Implement XEN VFB support.
1380 2013-12-17 Vladimir Serbinenko <phcoder@gmail.com>
1382 Remove grub_bios_interrupt on coreboot.
1384 It's not used currently and cannot be used safely currently.
1386 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1388 Update exclude.pot and mark few strings for translation.
1390 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1392 * util/grub-mkrescue.c: Fix incorrect file usage in fallback code.
1394 Reported by: Jon McCune
1396 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1398 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1399 Add verbose information which firmware directories were tried.
1401 2013-12-16 Andrey Borzenkov <arvidjaar@gmail.com>
1403 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect_all): New
1404 function to optionally redirect all three standard descriptors.
1405 Redefine grub_util_exec, grub_util_exec_redirect and
1406 grub_util_exec_redirect_null to use it.
1407 * include/grub/emu/exec.h: Define it.
1408 * include/grub/osdep/exec_unix.h: Delete, it is unused.
1409 * grub-core/osdep/linux/platform.c (grub_install_get_default_x86_platform):
1410 Use grub_util_exec_redirect_all to redirect error to NULL.
1412 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1414 * grub-core/tests/sleep_test.c: Silence spurious warning.
1416 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1418 Make grub_xen_hypercall on i386 cdecl rather than stdcall to avoid
1419 linker trying to "fixup" the code.
1421 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1423 * grub-core/kern/x86_64/xen/startup.S: Align stack.
1425 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1427 Add support for converting PE+ to Elf64.
1429 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1431 * grub-core/commands/minicmd.c (grub_mini_cmd_dump): Handle LLP case.
1433 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1435 Remove practice of assigning random const pointers to device id.
1437 This is not required as cache code already checks driver id as well.
1439 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1441 * include/grub/x86_64/types.h: Define sizeof (long) as 4 when compiling
1444 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1446 * include/grub/efi/api.h: Don't use call wrappers when compiled with
1447 mingw or cygwin as API already matches.
1449 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1451 * grub-core/lib/posix_wrap/errno.h: Undefine errno before redefining.
1453 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1455 * include/grub/efi/api.h: Define (u)intn_t based on pointer size and
1458 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1460 Handle X86_64_PC64 relocation.
1462 Those are generated by some cygwin compilers.
1464 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1466 Determine the need for mingw-related stubs at compile time rather than
1467 using not very significant $target_os.
1469 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1471 * grub-core/genmod.sh.in: Strip before converting to ELF as strip
1472 may not work with ELF.
1474 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1476 Use unix functions for temporary files and special files on cygwin.
1478 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1480 Define functions explicitly rather than using --defsym in tests
1481 whenever possible. Respect locality in remaining cases.
1483 2013-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1485 * grub-core/genmoddep.awk: Remove explicit getline < /dev/stdin.
1487 2013-12-15 Andrey Borzenkov <arvidjaar@gmail.com>
1489 * grub-core/osdep/windows/platform.c (grub_install_register_efi): Handle
1490 unlikely errors when getting EFI variables and make exhaustive search
1491 for all BootNNNN variables to find matching one.
1493 2013-12-15 Ian Campbell <ijc@hellion.org.uk>
1495 * grub-core/kern/uboot/init.c: Fix units of uboot timer.
1497 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1499 New functional test for sleep function.
1501 This test allows to check sleep without qemu. Keep qemu version as
1502 well as functional test won't notice if all clocks are going too fast
1505 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1507 Add explicit sysv_abi on amd64 asm routines.
1509 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1511 * grub-core/commands/efi/lsefisystab.c: Use %lld to show
1514 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1516 * include/grub/test.h: Use gnu_printf rather than printf on GRUB
1519 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1521 * grub-core/loader/i386/linux.c: Use grub_addr_t rather than long when
1524 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1526 * grub-core/loader/i386/linux.c: Use %p rather than %lx for pointers.
1528 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1530 * grub-core/kern/elfXX.c: Use grub_addr_t rather than long when
1533 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1535 * grub-core/disk/loopback.c: Use sequential IDs rather than pointer.
1537 In case of quick removal of loopback and adding another one it may
1538 get same ID, confusing the cache system.
1540 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1542 * grub-core/commands/acpi.c: Use grub_addr_t rather than long when
1545 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1547 * grub-core/kern/i386/coreboot/cbtable.c: Use char * arithmetic rather
1548 than converting to long.
1550 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/disk/cryptodisk.c: Rename "n" to "last_cryptodisk_id".
1554 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1556 * util/grub-mkimagexx.c (relocate_addresses): Display offset rather
1557 than almost useless pointer.
1559 2013-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1561 Add gcc_struct to all packed structures when compiling with mingw.
1563 Just "packed" doesn't always pack the way we expect.
1565 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1567 * include/grub/i386/coreboot/lbio.h: Add missing attribute (packed).
1569 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1571 * util/grub-pe2elf.c: Fix handling of .bss.
1573 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1575 Implement windows flavour of EFI install routines.
1577 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1579 * conf/Makefile.extra-dist: Adjust path to conf/i386-cygwin-img-ld.sc.
1581 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1583 Change grub_install_register_efi interface to pass GRUB device.
1585 This allows grub_install_register_efi to request partition info
1588 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1590 Workaround cygwin bug when using \\?\Volume{GUID} syntax.
1592 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1594 Do not use TCHAR string functions as they are not available on cygwin.
1596 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1598 Workaround windows bug when querying EFI system partition parameters.
1600 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1602 * grub-core/kern/i386/qemu/init.c (resource): Decrease struct size
1605 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1607 * grub-core/boot/i386/qemu/boot.S: Add missing EXT_C.
1609 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1611 Make i386-* other than i386-pc compileable under cygwin.
1613 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1615 Fix definition of grub_efi_hard_drive_device_path. Take care that
1616 existing code would work even if by some reason bogus definition is
1617 used by EFI implementations.
1619 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1621 * grub-core/osdep/windows/hostdisk.c: Fix cygwin compilation.
1623 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1625 * grub-core/osdep/windows/blocklist.c: Add missing cast in printf
1628 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1630 * util/config.c: Remove trailing newline from distributor in simple
1633 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1635 * include/grub/efi/api.h: Rename protocol and interface to avoid
1638 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1640 * .gitignore: add .exe variants. add missing files. remove few outdated
1643 2013-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1645 * grub-core/osdep/exec.c: Use unix version on cygwin.
1647 2013-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1649 Implement multiboot2 EFI BS specification.
1651 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1653 * grub-core/normal/charset.c: Fix premature line wrap and crash.
1654 Crash happened only in some cases like a string starting at the
1655 half of the screen of same length.
1657 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1659 * include/grub/efiemu/efiemu.h: Sync configuration table declaration
1660 with EFI counterpart.
1662 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1664 Propagate the EFI commits to x86-efi specific parts.
1666 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1668 * grub-core/commands/efi/lssal.c: Fix terminating condition.
1670 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1672 Introduce grub_efi_packed_guid and use it where alignment is not
1675 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1677 * include/grub/efi/api.h (grub_efi_device_path): Define length as
1678 unaligned u16 rather than u8[2].
1680 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1682 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Add checks
1683 for relocation range.
1685 2013-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1687 * grub-core/kern/ia64/dl.c (grub_arch_dl_relocate_symbols): Handle
1688 non-function pcrel21b relocation. It happens with .text.unlikely
1691 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1693 * make MAX_USABLE_ADDRESS platform-specific
1694 * grub-core/kern/efi/mm.c: add Vladimir's new BYTES_TO_PAGES_DOWN macro.
1696 2013-12-10 Leif Lindholm <leif.lindholm@linaro.org>
1698 * grub-core/lib/fdt.c: change memcpy => grub_memcpy
1700 2013-12-09 Jon McCune <jonmccune@google.com>
1702 * Add --no-rs-codes flag to optionally disable reed-solomon codes
1703 in grub-install and grub-bios-setup for x86 BIOS targets.
1705 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1707 Add missing compile and link options for sparc64-emu.
1709 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1711 Implement sparc64 trampolines (needed for sparc64-emu).
1713 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1715 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Check
1716 range of R_SPARC_HI22.
1717 Implement R_SPARC_LM22.
1719 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1721 * grub-core/kern/powerpc/dl_helper.c (grub_arch_dl_get_tramp_got_size):
1722 Do not explicitly check for symbol table as it's already checked in
1723 platform-independent layer.
1725 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1727 * grub-core/kern/emu/cache.c [__ia64__]: Use our cache cleaning routine
1728 on ia64 as __clear_cache is a dummy on ia64.
1730 2013-12-09 Vladimir Serbinenko <phcoder@gmail.com>
1732 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
1733 Do not explicitly check for symbol table as it's already checked in
1734 platform-independent layer.
1736 2013-12-09 Colin Watson <cjwatson@ubuntu.com>
1738 * util/grub-mkconfig.in: Add missing newline to output.
1740 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1742 * grub-core/kern/ia64/efi/init.c (grub_arch_sync_caches): Move to ...
1743 * grub-core/kern/ia64/cache.c (grub_arch_sync_caches): ... here.
1745 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1747 * grub-core/kern/emu/main.c: Silence missing prototypes to allow emu
1748 compilation with GCC <= 4.2.
1749 * grub-core/kern/emu/argp_common.c: Likewise.
1751 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1753 * include/grub/kernel.h [__sparc__]: Restrict sparc64-ieee1275 to
1754 right platform rather than leaking to sparc64-emu.
1756 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1758 * grub-core/osdep/windows/emuconsole.c: Remove unsigned comparison >= 0.
1759 But ensure that the variables in question are indeed unsigned.
1761 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1763 * grub-core/kern/emu/lite.c: Add missing include of ../ia64/dl_helper.c.
1765 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1767 Remove grub_memalign on emu.
1769 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1771 * grub-core/kern/ia64/efi/init.c: Fix alignment code so it doesn't
1772 truncate incomplete lines but instead flushes them.
1774 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1776 Move OS-dependent mprotect for module loading to grub-core/osdep/*/dl.c
1777 and implement windows variant.
1779 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1781 Fix mips-emu compilation.
1783 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1785 * configure.ac: Check for freetype library usability.
1787 2013-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1791 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1793 * util/grub-mkfont.c: Replace stpcpy with grub_stpcpy.
1795 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1797 * docs/grub.texi (Environment): Update color_normal and color_highlight
1798 defaults (light-gray instead of white).
1800 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1802 * grub-core/normal/main.c (INIT): Set default color to light-gray
1803 to match GRUB_TERM_DEFAULT_NORMAL_COLOR (i.e. rescue mode), Linux
1804 and apparently BIOS defaults.
1806 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1808 Transform -C option to grub-mkstandalone to --core-compress available
1809 in all grub-install flavours.
1811 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1813 Merge GRUBFS and GRUB_FS variables.
1815 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1817 Revert commit 69ca97c820, it caused failures when using OS device name
1818 in grub-install. Instead just strip off parenthesis in grub-install
1819 if (hdX) was passed.
1821 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1823 * util/grub-install.c (push_partmap_module): Add helper to convert
1824 partmap names to module names and use it in probe_mods(). Fixes
1825 failure to find partmap modules in diskfilter case.
1827 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1829 * configure.ac: Make unifont mandatory on coreboot.
1831 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1833 * configure.ac: Skip unifont 6.3 pcf and bdf.
1835 2013-12-07 Vladimir Serbinenko <phcoder@gmail.com>
1837 * Makefile.am: Remove partial font files if generation failed.
1839 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1841 * util/misc.c (grub_qsort_strcmp): Add qsort helper function to sort
1843 * include/grub/util/misc.h: Define it ...
1844 * util/grub-install.c (device_map_check_duplicates): ... and use it.
1846 2013-12-07 Andrey Borzenkov <arvidjaar@gmail.com>
1848 * util/grub.d/30_os-prober.in: Fix use of grub-probe instead of
1851 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1853 Don't add -mlong-calls when compiling with clang.
1855 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1857 * configure.ac: Fix a typo.
1859 2013-12-06 Vladimir Serbinenko <phcoder@gmail.com>
1861 Revamp relocation handling.
1863 Move more code to common dl.c. Add missing veneers for arm and arm64.
1864 Decreases kernel size by 70 bytes on i386-pc (40-50 compressed)
1866 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1868 * util/grub-mkimagexx.c: Fix reloc section generation for ia64.
1870 2013-12-05 Mike Gilbert <floppym@gentoo.org>
1872 * INSTALL: Raise minimum python version to 2.6.
1873 * gentpl.py: Use python3-style print function.
1875 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1877 * util/grub-install.c: Mention Boot* variable.
1879 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1881 * grub-core/osdep/linux/hostdisk.c
1882 (grub_util_find_partition_start_os): Initialise start to avoid
1883 spurious compiler warning.
1885 2013-12-05 Colin Watson <cjwatson@ubuntu.com>
1887 On Linux, read partition start offsets from sysfs if possible, to
1888 cope with block device drivers that don't implement HDIO_GETGEO.
1889 Fixes Ubuntu bug #1237519.
1891 * grub-core/osdep/linux/hostdisk.c (sysfs_partition_path): New
1893 (sysfs_partition_start): Likewise.
1894 (grub_util_find_partition_start_os): Try sysfs_partition_start
1897 2013-12-05 Leif Lindholm <leif.lindholm@linaro.org>
1899 * grub-core/kern/fdt.c: Update struct size when adding node.
1901 2013-12-05 Vladimir Serbinenko <phcoder@gmail.com>
1903 Handle unaligned .bss on sparc64.
1905 Current code improperly assumes that both __bss_start and _end are
1906 aligned to 8-bytes. Eliminating this assumption and explicitly align
1909 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1911 * grub-core/boot/sparc64/ieee1275/boot.S [CDBOOT]: Move scratchpad
1912 so it doesn't land in the middle of loaded image.
1914 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1916 * configure.ac: Move all warning options that may be absent in
1917 gcc >= 3.1 to optional.
1919 Note: while this allows to compile with older GCC, official requirements
1920 remain the same and no support for older GCC.
1922 2013-12-04 Colin Watson <cjwatson@ubuntu.com>
1924 Copying the themes directory in grub-shell isn't
1925 parallel-test-friendly and breaks on the second test when the source
1926 directory is read-only (as in "make distcheck"). Instead, add a
1927 hidden --themes-directory option to grub-mkrescue et al, and use it
1930 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1932 * conf/Makefile.common (CFLAGS_GNULIB): Remove -Wno-old-style-definition
1933 as it's no longer necessarry.
1935 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1937 * configure.ac: Allow compilation with older GCC for ARM.
1939 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1941 * configure.ac: Add -no-integrated-as if {addme|ame} isn't supported.
1942 * INSTALL: Note that GRUBwas successfully compiled with clang 3.2 for
1945 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1947 * grub-core/kern/emu/main.c: Ignore missing prototype for main.
1949 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1951 Pass font config to config.h and not by TARGET_CFLAGS as adding
1952 arguments doesn't work if TARGET_CFLAGS is specified on command
1955 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1957 * configure.ac: Add -Wvla if compiler supports it.
1959 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1961 * grub-core/osdep/windows/emuconsole.c (grub_console_putchar):
1962 Remove variable length arrays.
1963 * grub-core/term/efi/console.c (grub_console_putchar): Likewise.
1965 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1967 * grub-core/kern/i386/qemu/init.c: Remove variable length arrays.
1969 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1971 * include/grub/types.h: Declare all byteswaps as inline functions
1972 except compile-time ones.
1974 Solves variable shadowing in constructions like
1975 cpu_to_le (le_to_cpu(x) + 1).
1977 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1979 * grub-core/kern/efi/efi.c: Remove variable length arrays.
1981 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1983 * grub-core/kern/uboot/init.c (uboot_timer_ms): Fix overflow after 71
1986 2013-12-04 Vladimir Serbinenko <phcoder@gmail.com>
1988 * grub-core/disk/ieee1275/ofdisk.c: Remove variable length arrays.
1989 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
1991 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1993 * grub-core/Makefile.core.def (setjmp): Distribute
1996 2013-12-03 Colin Watson <cjwatson@ubuntu.com>
1998 Add a new timeout_style environment variable and a corresponding
1999 GRUB_TIMEOUT_STYLE configuration key for grub-mkconfig. This
2000 controls hidden-timeout handling more simply than the previous
2001 arrangements, and pressing any hotkeys associated with menu entries
2002 during the hidden timeout will now boot the corresponding menu entry
2005 GRUB_HIDDEN_TIMEOUT=<non-empty> + GRUB_TIMEOUT=<non-zero> now
2006 generates a warning, and if it shows the menu it will do so as if
2007 the second timeout were not present. Other combinations are
2008 translated into reasonable equivalents.
2010 Based loosely on work by Franz Hsieh. Fixes Ubuntu bug #1178618.
2012 2013-12-02 Vladimir Serbinenko <phcoder@gmail.com>
2014 * util/config.c: Add missing pointer adjustment.
2015 Reported by: qwertial
2017 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2019 * grub-core/kern/arm64/dl_helper.c: Include grub/arm64/reloc.h
2020 directly, not via `cpu' link, to fix libgrub.pp generation.
2022 2013-11-30 Leif Lindholm <leif.lindholm@linaro.org>
2026 2013-11-30 Andrey Borzenkov <arvidjaar@gmail.com>
2028 * docs/grub.texi (sleep): Document exit codes.
2030 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2032 Ensure that -mno-unaligned-access or some equivalent option is used.
2034 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2036 * grub-core/lib/libgcrypt/mpi/longlong.h: Fix compilation error with
2039 2013-11-30 Vladimir Serbinenko <phcoder@gmail.com>
2041 Remove leftover GRUB_IA64_DL_TRAMP_SIZE.
2043 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2045 * docs/grub-dev.texi (Font Metrics): Exclude @image command from DVI
2046 builds, since we don't have an EPS version of font_char_metrics.png.
2047 Add leading dot to image extension per the Texinfo documentation.
2049 2013-11-29 Colin Watson <cjwatson@ubuntu.com>
2051 * util/grub-gen-asciih.c: Include FT_SYNTHESIS_H rather than
2052 <freetype/ftsynth.h>, fixing build with FreeType 2.5.1.
2053 * util/grub-gen-widthspec.c: Likewise.
2054 * util/grub-mkfont.c: Likewise.
2056 2013-11-29 Andrey Borzenkov <arvidjaar@gmail.com>
2058 * util/grub-setup.c (main): Move parsing of (hdX) syntax to ...
2059 * util/setup.c (SETUP): ... here. Fixes regression: grub-install
2060 failed to install on (hdX).
2061 * util/grub-setup.c (get_device_name): Remove, not needed after
2064 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2066 * grub-core/kern/emu/hostfs.c (is_dir): Remove variable length arrays.
2068 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2070 * util/grub-fstest.c: Remove variable length arrays.
2072 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2074 * grub-core/osdep/linux/ofpath.c: Check return value of read.
2076 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2078 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2079 computing crc32 rather than handling with md fundtions directly.
2081 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2083 * util/mkimage.c (grub_install_generate_image): Use grub_crypto_hash for
2084 checking fwstart.img rather than md fundtions directly.
2086 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2088 * util/grub-mkrescue.c (main): Check that fread succeeded.
2090 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2092 * conf/Makefile.common: Remove -mexplicit-relocs and
2093 -DUSE_ASCII_FALLBACK on yeeloong.
2095 -DUSE_ASCII_FALLBACK is already added by font snippets.
2096 -mexplicit-relocs isn't needed is compiler/assemblera are
2097 configured properly.
2098 If they're not we shouldn't attempt to fix it by ourselves.
2099 Binary compare between before and after shows no difference.
2101 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2103 * grub-core/Makefile.core.def: Remove libgnulib.a and use its
2104 sources in dependencies directly.
2106 This was the only instance of "library" in core config. A bug was
2107 reported that -fno-stack-protector wasn't passed to it. Instead of
2108 figuring out why it failed just remove this construction used
2111 2013-11-29 Vladimir Serbinenko <phcoder@gmail.com>
2113 * grub-core/osdep/unix/password.c (grub_password_get): Check that
2116 2013-11-27 Francesco Lavra <francescolavra.fl@gmail.com>
2118 * docs/grub.texi (ls): Fix command description in case of a device name
2121 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2123 Eliminate variable length arrays in grub_vsnprintf_real.
2125 A bit tricky because this function has to continue to work without
2126 heap for short strings. Fixing prealloc to 32 arguments is reasonable
2127 but make all stack references use 32-bit offset rather than 8-bit one.
2128 So split va_args preparsing to separate function and put the prealloc
2131 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2133 Introduce grub_util_file_sync and use it instead of fsync(fileno(f)).
2134 Fixes build for windows.
2136 2013-11-27 Vladimir Serbinenko <phcoder@gmail.com>
2138 * gentpl.py: Don't generate platform-dependent conditionals for
2139 platform-independent targets.
2141 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2143 * grub-core/osdep/unix/exec.c (grub_util_exec_redirect): Remove
2144 references to mdadm from otherwise generic code.
2145 (grub_util_exec_pipe): Likewise.
2146 (grub_util_exec_pipe_stderr): Likewise.
2147 * grub-core/osdep/unix/getroot.c (grub_util_pull_lvm_by_command):
2148 This function calls vgs, not mdadm; adjust variable names
2151 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2153 Generate Makefile.*.am directly from gentpl.py, eliminating the use
2154 of Autogen. The Autogen definitions files remain intact as they
2155 offer a useful abstraction.
2157 2013-11-27 Colin Watson <cjwatson@ubuntu.com>
2159 Add grub_util_disable_fd_syncs call to turn grub_util_fd_sync calls
2160 into no-ops, and use it in programs that copy files but do not need
2161 to take special care to sync writes (grub-mknetdir, grub-rescue,
2164 2013-11-26 Colin Watson <cjwatson@ubuntu.com>
2166 * tests/util/grub-fs-tester.in: Execute xorriso from $PATH rather
2167 than hardcoding /usr/local/bin/xorriso.
2169 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2171 Add PCI command activation to all PCI drivers as required for coreboot
2172 and maybe some other firmwares.
2174 2013-11-26 Vladimir Serbinenko <phcoder@gmail.com>
2176 * grub-core/Makefile.am: Reduce gratuituous differences between Apple
2177 and non-Apple variants of efiemu compile.
2179 2013-11-25 Andrey Borzenkov <arvidjaar@gmail.com>
2181 * configure.ac: Add explicit check for linking format of
2182 efiemu64; save it as EFIEMU64_LINK_FORMAT.
2183 * grub-core/Makefile.am: Use EFIEMU64_LINK_FORMAT instead of
2184 hardcoding linking format.
2186 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2188 * util/grub-mknetdir.c: Look for platform directories under pkglibdir
2191 2013-11-25 Colin Watson <cjwatson@ubuntu.com>
2192 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2194 Add a --locale-directory option to grub-install and related tools.
2196 * include/grub/util/install.h (GRUB_INSTALL_OPTIONS): Add
2197 --locale-directory option.
2198 (enum grub_install_options): Add
2199 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2200 * util/grub-install-common.c (grub_install_help_filter): Handle
2201 GRUB_INSTALL_OPTIONS_LOCALE_DIRECTORY.
2202 (grub_install_parse): Likewise.
2203 (get_localedir): New function to check for a user-provided option
2204 before trying grub_util_get_localedir.
2205 (copy_locales): Use get_localedir rather than
2206 grub_util_get_localedir. Handle differing locale directory layouts.
2207 (grub_install_copy_files): Likewise.
2209 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2211 * grub-core/osdep/unix/platform.c (get_ofpathname): Trim ending newline.
2212 Don't rely on PATH_MAX.
2214 2013-11-25 Vladimir Serbinenko <phcoder@gmail.com>
2216 * grub-core/genmoddep.awk: Use more portable && rather than and.
2218 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2220 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Create _edata by placing
2221 an object after data. While it doesn't seem right solution, it
2222 works well enough and OSX isn't main compilation platform.
2224 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2226 * gentpl.py: Add -ed2016 in order to make objconv accept our binary.
2227 While it doesn't seem right solution, it works well enough and
2228 OSX isn't main compilation platform.
2230 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2232 * configure.ac: Add -static to LDFLAGS when using apple linker to
2233 prevent it from pulling in dynamic linker.
2235 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2237 Apple assembly doesn't handle symbol arithmetic well. So define an
2238 offset symbol in boot.S and use it.
2240 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2242 Apple assembly doesn't handle symbol arithmetic well. So instead
2243 of getting addres of kernel_sector + 4 define kernel_sector_high.
2244 It also makes code more readable.
2246 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2248 With Apple assembly in .macro environvemnt you have to use $$ instead
2249 of $. So introduce new preprocessor macro MACRO_DOLLAR(x) which expands
2250 to $$x on Apple and to $x on everything else.
2252 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2254 * grub-core/Makefile.am: Use correct TARGET_OBJCONV rather than
2257 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2259 * grub-core/gdb/i386/machdep.S: Use xorl %eax, %eax on both Apple
2260 and non-Apple. This instruction is shorter and faster,
2261 so no reason not to use it on both.
2263 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2265 * grub-core/lib/reed_solomon.c: Use section _text, _text rather than
2266 .text when compiling for Apple.
2268 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2270 * grub-core/term/arc/console.c: Add missing cast to silence warning.
2272 2013-11-24 Vladimir Serbinenko <phcoder@gmail.com>
2274 * grub-core/boot/i386/pc/boot.S: Fix floppy probe. Due to missing
2275 %dx restore the probe worked on non-existant drive. Reorganize the
2276 code a little bit to free 2 bytes necessary for push/pop.
2278 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2280 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2281 Add missing cast to silence warning.
2283 2013-11-23 Keshav Padram Amburay <the.ridikulus.rat@gmail.com>
2285 * util/grub-install.c (update_nvram): Support --no-nvram flag
2288 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2290 * INSTALL: Add note about sparc64/ia64 with clang (unsupported).
2292 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2294 * util/garbage-gen.c: Add missing include of sys/time.h.
2296 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2298 Don't add -mflush-func if it's not supported by compiler.
2300 2013-11-23 Vladimir Serbinenko <phcoder@gmail.com>
2302 Move common BIOS/coreboot memory map declarations to
2303 include/grub/i386/memory_raw.h and eliminate duplicate declarations.
2305 2013-11-22 Andrey Borzenkov <arvidjaar@gmail.com>
2307 * Makefile.am: Add util/garbage-gen.c to EXTRA_DIST.
2309 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2311 * INSTALL: Document why older clang versions aren't appropriate.
2313 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2315 * INSTALL: Document about clang for mips.
2317 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2319 * grub-core/lib/libgcrypt/mpi/longlong.h: Use C version with mips
2322 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2324 Add *-xen to the list of grub-install-common platforms.
2326 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2328 * configure.ac: Do not enforce -mcmodel=large. It's not necessarry with
2331 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2333 * grub-core/kern/xen/init.c: Do not map more pages than we can address.
2335 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2337 * grub-core/kern/efi/mm.c: Limit allocations to 2GiB when not compiling
2338 with -mcmodel=large.
2340 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2342 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Add
2343 range-checking for 32-bit quantities.
2345 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2347 * configure.ac: Compile with -fPIC when compiling with clang on
2350 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2352 * configure.ac: Add -no-integrated-as on mips(el) to TARGET_CCASFLAGS
2353 when compiling with clang.
2355 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2357 clang emits calls to abort () under some unknown conditions.
2358 Export abort () when compiling with clang.
2360 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2362 * docs/grub-dev.texi: Document stack and heap sizes.
2364 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2366 * include/grub/i386/pc/memory.h: Decrease
2367 GRUB_MEMORY_MACHINE_SCRATCH_SIZE and increase
2368 GRUB_MEMORY_MACHINE_PROT_STACK_SIZE.
2369 The binary doesn't change (checked). It's more to better reflect actual
2372 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2374 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Ensure
2375 at compile time that enough of scratch size is available.
2377 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2379 * grub-core/kern/x86_64/efi/callwrap.S: Fix stack alignment.
2380 Previously we misaligned stack by 8 in startup.S and compensated
2381 for it in callwrap.S. According to ABI docs (EFI and sysv amd64)
2382 right behaviour is to align stack in startup.S and keep it aligned
2383 in callwrap.S. startup.S part was committed few commits before. This
2384 takes care of callwrap.S.
2385 Reported by: Gary Lin.
2387 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2389 * grub-core/boot/mips/startup_raw.S: Handle the case of gap between
2390 .data and .bss. May happen if compiler and assembly use different
2393 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2395 On MIPS handle got16 relocations to local symbols in an ABI-compliant
2398 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2400 Add support for a new magic symbol _gp_disp on mips to handle PIC
2403 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2405 Use $t9 for indirect calls from asm to C as PIC ABI requires.
2407 2013-11-22 Vladimir Serbinenko <phcoder@gmail.com>
2409 Remove -march=mips3 from TARGET_CCASFLAGS as it creates linking problem
2410 when rest of GRUB is compiled for hisher stepping. Instead use
2411 .set mips3/.set mips1 around cache and sync opcodes.
2413 2013-11-21 Vladimir Serbinenko <phcoder@gmail.com>
2415 Unify GOT/trampoline handling between PPC, MIPS and IA64 as they
2416 do essentially the same thing, do it in similar way.
2418 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2420 * util/grub-mkrescue.c (main): If a source directory is not
2421 specified, read platform-specific files from subdirectories of
2422 pkglibdir, not pkgdatadir.
2424 2013-11-21 Colin Watson <cjwatson@ubuntu.com>
2426 * grub-core/normal/progress.c: Remove unused file.
2428 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2430 * grub-core/lib/crypto.c (grub_crypto_hash): Remove variable length
2433 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2435 * util/grub-mkconfig.in: Say explicit "grub configuration" rather
2438 2013-11-20 Vladimir Serbinenko <phcoder@gmail.com>
2440 * coreboot.cfg: Add missing file.
2442 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2444 * Makefile.am: Allow STRIP to be empty when creating windowszip.
2446 2013-11-19 Axel Kellermann <axel.kellermann@gmx.de>
2448 * util/grub.d/30_os-prober.in: Add GRUB_OS_PROBER_SKIP_LIST to
2449 selectively skipping systems.
2451 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2453 * Makefile.util.def (grub-mkimage): Add
2454 grub-core/osdep/aros/config.c to extra_dist.
2455 * conf/Makefile.extra-dist (EXTRA_DIST): Add docs/autoiso.cfg,
2456 docs/osdetect.cfg, grub-core/gnulib-fix-null-deref.diff,
2457 grub-core/gnulib-fix-width.diff, grub-core/gnulib-no-abort.diff, and
2458 grub-core/gnulib-no-gets.diff.
2460 2013-11-19 Vladimir Serbinenko <phcoder@gmail.com>
2462 Add automated filesystem checking based on scripts I've used now for
2463 quite some time locally. Most of the test require root so they are
2464 skipped when run without necessarry privelegies.
2466 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2468 * util/grub-install.c (main): Adjust info messages to match
2469 installed paths of grub-bios-setup and grub-sparc64-setup.
2471 2013-11-19 Colin Watson <cjwatson@ubuntu.com>
2473 * util/grub-install-common.c (copy_locales): Consistently use
2474 grub_util_get_localedir () rather than LOCALEDIR.
2475 (grub_install_copy_files): Likewise.
2477 2013-11-19 Josh Triplett <josh@joshtriplett.org>
2479 * grub-core/kern/x86_64/efi/startup.S (_start): Align the stack to a
2480 16-byte boundary, as required by the x86-64 ABI, before calling
2481 grub_main. In some cases, GCC emits code that assumes this
2482 alignment, which crashes if not aligned. The EFI firmware is also
2483 entitled to assume that stack alignment without checking.
2485 2013-11-18 Josh Triplett <josh@joshtriplett.org>
2487 * grub-core/mmap/efi/mmap.c (grub_mmap_register): Round up/down to
2488 4k page boundaries as expected by firmware rather than 1k
2490 (grub_mmap_malign_and_register): Likewise.
2492 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2494 * tests/grub_func_test.in: Decrease RAM size to 512M. With less
2495 fragmentation 512M is enough.
2497 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2499 * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the
2500 pointer to 32K. This is the size of cache element which is the most
2501 common allocation >1K. This way the pointer is always around blocks
2502 of 32K and so we keep performance while decreasing fragmentation.
2504 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2506 * grub-core/kern/mm.c (grub_real_malloc): Don't update the pointer to
2507 current memory when allocating large chunks. This significantly
2508 decreases memory fragmentation.
2510 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2512 * tests/gzcompress_test.in: Skip if gzip is not installed (unlikely,
2514 * tests/lzocompress_test.in: Skip if lzop is not installed.
2515 * tests/xzcompress_test.in: Skip if xz is not installed.
2517 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2519 * util/grub-mkrescue.c (main): Fix typo.
2521 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2523 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Update
2524 clock frequency to 200 MHz,
2526 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2528 * tests/util/grub-shell.in: Increase console size to 1024x1024.
2530 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2532 * Makefile.am (default_payload.elf): Add pata to loaded modules.
2533 Load config file from (cbfsdisk)/etc/grub.cfg.
2535 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2537 * util/grub-install-common.c (grub_install_copy_files): Fix module
2538 destination directory.
2540 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2542 * tests/util/grub-shell.in: Don't fail on emu platform if po/*.gmo
2543 files have not been built.
2545 2013-11-18 Colin Watson <cjwatson@ubuntu.com>
2547 * grub-core/osdep/unix/hostdisk.c (grub_util_make_temporary_file):
2548 Handle errors from mkstemp.
2549 (grub_util_make_temporary_dir): Handle errors from mkdtemp.
2551 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2553 * tests/util/grub-shell.in: Use -cdrom and don't force cdrom
2554 on primary master on pseries.
2556 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2558 * grub-core/tests/videotest_checksum.c: Don't reload unifont if it's
2559 already loaded. This saves memory needed for tests,
2561 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2563 * util/grub-mkrescue.c (main): Fix a typo to make yeeloong part
2566 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2568 * grub-core/term/terminfo.c (grub_cmd_terminfo): Fix a typo to make -g
2571 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2573 * tests/util/grub-shell.in: For powerpc tests put the CD-ROM as primary
2574 master since with some combinations of qemu and firmware only primary
2575 IDE channel is available.
2577 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2579 * grub-core/tests/gfxterm_menu.c: Skip high-resolution tests on
2580 low-memory platforms where we don't have enough memory for them.
2581 * grub-core/tests/videotest_checksum.c: Likewise.
2583 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2585 * grub-core/tests/cmdline_cat_test.c: Don't reload unifont if it's
2586 already loaded. This saves memory needed for tests,
2588 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2590 Fix handling of install lists.
2592 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2594 * grub-core/lib/sparc64/setjmp.S: Force spilling of current window.
2596 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2598 On i386-ieee1275 we run in paged mode. So we need to explicitly map
2599 the devices before accessing them.
2601 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2603 * grub-core/lib/relocator.c (grub_mm_check_real): Accept const char *
2606 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2608 * grub-core/normal/cmdline.c (grub_cmdline_get): Plug memory leak.
2610 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2612 * grub-core/kern/file.c (grub_file_open): Free file->name on failure.
2613 (grub_file_close): Free file->name.
2615 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2617 * grub-core/commands/verify.c (free_pk): Plug memory leak.
2618 (grub_load_public_key): Likewise.
2619 (grub_verify_signature_real): Likewise.
2620 (grub_cmd_verify_signature): Likewise.
2622 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2624 * grub-core/commands/legacycfg.c (grub_legacy_check_md5_password): Plug
2627 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2629 * grub-core/lib/powerpc/setjmp.S (grub_setjmp): Save r31.
2630 (grub_longjmp): Restore r31.
2631 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Reserve space for r31.
2633 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2635 * util/grub-mkrescue.c (make_image_fwdisk_abs): Insert all partmap
2636 modules to be in line with make_image_abs.
2638 2013-11-18 Vladimir Serbinenko <phcoder@gmail.com>
2640 * include/grub/mips/setjmp.h (grub_jmp_buf): Fix buffer size.
2642 setjmp.S uses 12 entries but buffer is declared with only 11 entries.
2644 2013-11-17 Ian Campbell <ijc@hellion.org.uk>
2646 * grub-core/disk/uboot/ubootdisk.c: Include SCSI disks.
2648 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2650 * tests/grub_func_test.in: Increase memory reservation as on EFI we need
2651 to leave some memory to firmware.
2653 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2655 * grub-core/tests/cmdline_cat_test.c (cmdline_cat_test): Ignore errors
2656 of loading gfxterm as gfxterm is embed in kernel on some platforms.
2657 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Likewise.
2660 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2662 * tests/core_compress_test.in: Use full arguments as grub-mkimage-extra
2663 now needs full arguments.
2665 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2667 * util/grub-mkrescue.c (main): Add trailing \n in
2668 .disk_label.contentDetails to be in line with previous shell script.
2670 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2672 * util/grub-mkrescue.c (main): Use right source file for bootinfo.txt.
2674 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2676 * util/grub-install-common.c (grub_install_parse): Recognize
2677 --compress=none like shell script did.
2679 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2681 * include/grub/misc.h: Replace check for __sparc64__ with one for
2682 __sparc__ as __sparc64__ isn't actually defined.
2684 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2686 * tests/util/grub-shell.in: Use escc-ch-b on powerpc. This is missing
2687 counterpart of fixing the naming of escc ports.
2689 2013-11-17 Vladimir Serbinenko <phcoder@gmail.com>
2691 * util/grub-install-common.c (platforms): Fix the order of entries and
2692 remove useless field val.
2694 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2696 * util/grub-install.c: Add new option --no-bootsector to skip
2697 installing of bootsector. Accept --grub-setup=/bin/true as
2698 backwards-compatible synonym.
2700 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2702 * util/grub-install.c (device_map_check_duplicates): Fix incorrect
2703 order of qsort arguments (number of elements vs. element size).
2705 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2707 Rewrite grub-install, grub-mkrescue, grub-mkstandalone and grub-mknetdir
2708 the function of these files exceeds what can be sanely handled in shell
2709 in posix-comaptible way. Also writing it in C extends the functionality
2710 to non-UNIX-like OS and minimal environments.
2712 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2714 * grub-core/kern/arm/cache.S: Don't switch back to ARM mode when
2715 compiling to thumb2.
2716 * grub-core/kern/arm/cache_armv7.S: Likewise.
2717 * grub-core/lib/arm/setjmp.S: Likewise.
2719 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2721 * grub-core/kern/arm/uboot/startup.S: delete superflouous save of r8
2722 in grub_uboot_syscall
2724 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2726 Decrease stack usage in lexer.
2728 We have only 92K of stack and using over 4K per frame is wasteful
2730 * grub-core/script/yylex.l (yyalloc), (yyfree), (yyrealloc): Declare
2731 as macros so that compiler would remove useless structure on stack.
2732 Better solution would be to fix flex not to put this structure on
2733 the stack but flex is external program.
2735 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2737 Decrease stack usage in signature verification.
2739 We have only 92K of stack and using over 4K per frame is wasteful
2741 * grub-core/commands/verify.c (grub_load_public_key): Allocate on heap
2743 (grub_verify_signature_real): Likewise.
2745 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2747 Decrease stack usage in mdraid 0.9x.
2749 We have only 92K of stack and using over 4K per frame is wasteful
2751 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Allocate on heap
2754 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2756 Decrease stack usage in BtrFS.
2758 We have only 92K of stack and using over 4K per frame is wasteful
2760 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Allocate on heap
2763 2013-11-16 Vladimir Serbinenko <phcoder@gmail.com>
2765 Decrease stack usage in JFS.
2767 We have only 92K of stack and using over 4K per frame is wasteful
2769 * grub-core/fs/jfs.c (getblk): Allocate on heap rather than on
2770 stack. Note: this function is recursive.
2771 (grub_jfs_read_inode): Read only part we care about.
2773 2013-11-16 Leif Lindholm <leif.lindholm@linaro.org>
2775 * grub-core/kern/arm/uboot/startup.S: fix grub_uboot_syscall va_arg
2778 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2780 * configure.ac: Restore -nostdlib for libgcc symbols tests.
2782 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2784 * docs/grub.texi (Environment): Document cmdpath.
2786 2013-11-16 Andrey Borzenkov <arvidjaar@gmail.com>
2788 * grub-core/kern/mips/arc/init.c (grub_machine_get_bootlocation):
2789 Remove "unused" attribute from arguments, they are used.
2791 2013-11-15 Colin Watson <cjwatson@debian.org>
2793 * .gitignore: Only ignore grub-mk* at the top level.
2795 2013-11-15 Colin Watson <cjwatson@ubuntu.com>
2797 * util/grub-reboot.in (usage): Fix a typo.
2799 2013-11-15 Vladimir Serbinenko <phcoder@gmail.com>
2801 Replace libgcc version of ctz with our own.
2803 On upcoming arm64 port libgcc ctz* are not usable in standalone
2804 environment. Since we need ctz* for this case and implementation is
2805 in C we may as well use it on all concerned platforms.
2807 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2809 * configure.ac: Probe for linking format rather than guessing it based
2812 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2814 * grub-core/disk/xen/xendisk.c (grub_xendisk_fini): Set state to
2815 "1" prior to handoff.
2817 Reported by: M A Young.
2819 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2821 * grub-core/kern/xen/init.c (grub_xenstore_write_file): Don't add
2824 Reported by: M A Young.
2826 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2828 * grub-core/osdep/bsd/hostdisk.c (grub_util_get_fd_size_os): Fix
2829 compilation on NetBSD.
2831 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2833 * acinclude.m4: Don't add -P on initial nm test.
2835 Note: even though this patch postdates Andrey's it bears 14 Nov as
2836 date due to timezone difference.
2838 2013-11-15 Andrey Borzenkov <arvidjaar@gmail.com>
2840 * grub-core/Makefile.core.def (signature_test): Add missing
2843 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2845 * util/grub-install_header: Set localedir here, since this file is
2847 * util/grub-install.in: Remove setting of localedir.
2848 * util/grub-mkrescue.in: Likewise.
2850 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2852 * Makefile.am (default_payload.elf): Add uhci, ohci and usb_keyboard.
2854 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2856 * configure.ac: Move nm checks to the end.
2857 Call grub_PROG_NM_WORKS.
2858 * acinclude.m4: New check grub_PROG_NM_WORKS.
2859 Use $TARGET_CFLAGS -c when compiling test binary.
2861 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2863 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__GNU__]: Remove
2866 2013-11-14 Matthew Garrett <mjg@redhat.com>
2868 * grub-core/kern/main.c (grub_set_prefix_and_root): Set variable
2869 cmdpath to firmware directory.
2871 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2873 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Reset the pointer
2874 at the start of second iteration.
2876 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2878 * grub-core/Makefile.am (efiemu64.o): Explicitly set link format.
2880 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2882 * Makefile.am (default_payload.elf): New target for easier coreboot
2885 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2887 * grub-core/kern/arm/cache_armv6.S: Remove special handling for
2888 clang (not necessarry with -no-integrated-as).
2889 * include/grub/symbol.h [__arm__]: Likewise.
2891 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2893 * configure.ac: Use -no-integrated-as on arm with clang.
2894 * INSTALL: Mention ARM compilation with clang.
2896 2013-11-14 Vladimir Serbinenko <phcoder@gmail.com>
2898 * conf/Makefile.common (CCASFLAGS_PLATFORM) [COND_arm]: Add
2901 2013-11-14 Colin Watson <cjwatson@ubuntu.com>
2903 * grub-core/fs/ext2.c (grub_ext2_read_block): Factor out common
2904 code for indirect block handling.
2906 Saves 185 bytes on compressed image.
2908 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2912 * Makefile.am: Remove build-grub-* in make clean.
2914 2013-11-13 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2916 New files to gitignore.
2918 * .gitignore: Add build-grub-gen-asciih, build-grub-gen-widthspec,
2919 build-grub-mkfont, and grub-emu-lite. Remove .bzrignore.
2921 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2923 * grub-core/kern/arm/misc.S: Make thumb2-compatible.
2925 2013-11-13 Leif Lindholm <leif.lindholm@linaro.org>
2927 * .gitignore: fix rules for .dep* and add *.a post git migration
2929 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2931 * configure.ac (AM_INIT_AUTOMAKE): Require at least version 1.10.1,
2934 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2936 * grub-core/kern/misc.c: Don't redirect divisions in the
2938 * include/grub/misc.h: Likewise.
2940 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2942 * grub-core/osdep/unix/emuconsole.c (put): Pacify the compiler on
2943 systems that require checking the return value of write.
2945 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2947 * util/grub-install.in (efi_quiet): Fix inverted logic: make
2948 efibootmgr quiet when --debug is not used, rather than when it is.
2950 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2952 * gentpl.py (define_macro_for_platform_dependencies): Remove
2953 first (and thus unused) of two definitions for this function.
2954 (platform_dependencies): Likewise.
2956 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
2958 * acinclude.m4 (grub_apple_cc): Remove; since the removal of nested
2959 functions, we only need to check this for the target, not the host.
2960 * configure.ac (grub_apple_cc): Likewise.
2962 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2964 * grub-core/kern/arm/cache.c (probe_caches): Move asm part to ...
2965 * grub-core/kern/arm/cache_armv6.S: ... here. This allows this
2966 asm to stay in arm even if surrounding is thumb.
2968 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2970 * grub-core/kern/arm/misc.S: Add __muldi3 and __aeabi_lmul. Those
2971 helper functions are needed for thumb.
2973 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2975 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Make
2976 level / 3 division explicitly unsigned. Saves few bytes.
2978 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2980 * grub-core/fs/zfs/zfs.c (ZAP_LEAF_NUMCHUNKS): Use unsigned arithmetics.
2982 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2984 * grub-core/normal/datetime.c (grub_get_weekday): Use if rather than
2987 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2989 * grub-core/kern/uboot/init.c: Move grub_uboot_machine_type and
2990 grub_uboot_boot_data to asm part.
2992 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
2994 * grub-core/kern/arm/uboot/startup.S: Remove = by replacing with
2996 (grub_uboot_syscall): Save/restore r9 and align stack.
2998 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3000 * grub-core/kern/arm/cache.S: Replace = with explicit litteral load.
3002 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3004 * include/grub/symbol.h (END) [__arm__]: New macros. Replace all .end
3005 occurencies with END.
3007 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3009 * util/grub-editenv.c (help_filter, argp): Document how to delete
3010 the whole environment block.
3011 Reported by Dan Jacobson. Fixes Debian bug #726265.
3013 2013-11-13 Colin Watson <cjwatson@ubuntu.com>
3015 * docs/grub.texi (Internationalisation, Supported kernels): Fix
3018 2013-11-13 Josh Triplett <josh@joshtriplett.org>
3020 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
3021 increment/decrement.
3023 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3025 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
3026 compiling with clang.
3028 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3030 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
3033 2013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
3035 Redirect all divisions to grub_divmod64.
3037 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3039 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
3041 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3043 Add missing includes of loader.h.
3045 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3047 * configure.ac: Allow disabling themes.
3049 2013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
3051 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
3053 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3055 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
3056 until it becomes operational.
3058 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3060 * grub-core/Makefile.core.def (legacy_password_test): Disable
3061 on platforms where no legacycfg is compiled.
3062 * grub-core/tests/lib/functional_test.c: Tolerate failure to
3063 load legacy_password_test.
3065 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3067 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
3069 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3071 * grub-core/efiemu/prepare.c: Remove variable length arrays.
3073 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3075 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
3076 strict-aliasing warning.
3077 (fsync): Silence cast warning.
3079 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3081 * grub-core/commands/verify.c: Remove variable length arrays.
3082 Load gcry_dsa/gcry_rsa automatically.
3084 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3086 * grub-core/tests/signature_test.c: New test.
3088 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3090 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
3093 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3095 * grub-core/tests/legacy_password_test.c (vectors): Make static.
3096 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
3098 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3100 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
3102 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3104 * grub-core/fs/proc.c: Allow \0 in proc files.
3106 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3108 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
3110 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3112 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
3114 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3116 * grub-core/fs/ext2.c: Remove variable length arrays.
3118 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3120 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
3123 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3125 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
3126 * grub-core/disk/cryptodisk.c: Likewise.
3127 * grub-core/disk/geli.c: Likewise.
3128 * grub-core/disk/luks.c: Likewise.
3130 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3132 * grub-core/tests/legacy_password_test.c: New test.
3133 * grub-core/commands/legacycfg.c: Remove variable length arrays.
3135 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3137 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
3139 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3141 * grub-core/tests/pbkdf2_test.c: New test.
3143 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3145 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
3147 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3149 * grub-core/io/lzopio.c: Remove variable length arrays.
3151 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3153 * include/grub/crypto.h: Add maximums on hash size and cipher block
3156 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3158 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
3160 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3162 * grub-core/tests/xnu_uuid_test.c: New test.
3164 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3166 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
3169 2013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
3171 * grub-core/commands/hashsum.c: Remove variable length arrays.
3173 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3175 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
3177 * tests/grub_func_test.in: Increase memory allocation.
3179 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3181 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
3182 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
3185 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3187 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
3188 (grub_util_get_fd_size_os): ...this.
3189 (grub_hostdisk_flush_initial_buffer): New empty function.
3191 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3193 * grub-core/gensyminfo.sh.in: Handle the case of portable output
3194 without --defined-only.
3196 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3198 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
3199 rip-relative addressing in prologue.
3201 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3203 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
3204 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
3206 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3208 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
3209 Add missing semicolon.
3211 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3213 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
3215 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3217 * configure.ac: Check for lzma.h for enabling liblzma and allow
3220 2013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
3222 Add missing includes of loader.h.
3224 2013-11-11 Fam Zheng <famcool@gmail.com>
3226 * util/grub.d/30_os-prober.in: Add minix entry.
3228 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3230 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
3231 right buffer for temporary load.
3233 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3235 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
3237 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3239 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
3242 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3244 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
3246 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
3248 (LzmaDec_InitDicAndState): Make static.
3250 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3252 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
3254 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3256 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
3258 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
3260 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3262 * docs/grub-dev.texi: Replace bzr references with git ones.
3264 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3266 * docs/grub.texi (Simple configuration): Remove reference to
3267 grub-reboot from saved default entry description - grub-default
3268 does not use it anymore.
3270 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3272 * configure.ac: Make efiemu test cflags match the cflags efiemu is
3275 2013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
3277 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
3279 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3281 Fix grub_machine_fini bitrot.
3283 Reported by: Glenn Washburn.
3285 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3287 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
3289 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3291 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
3293 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
3296 2013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
3298 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
3299 Add -march=core2 when testing compile of efiemu64.
3301 Thanks Andrey Borzenkov for spotting this.
3303 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3305 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
3306 XEN PV environment and load kernels.
3308 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3310 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
3311 * grub-core/loader/multiboot_mbi2.c: Likewise.
3313 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3315 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
3318 2013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
3320 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
3322 Tested by: Denis 'GNUtoo' Carikli.
3324 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3326 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
3328 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3330 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
3331 Use to get rounded angle rather than truncated.
3333 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3335 * grub-core/term/serial.c: Add option for enabling/disabling
3336 RTS/CTS flow control.
3338 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3340 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
3343 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3345 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
3346 Use grub_fatal rather than divide by zero.
3347 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
3349 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3351 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
3353 (grub_fixed_fsf_divide): Likewise.
3355 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3357 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
3358 division by-zero and senseless negative divisions.
3360 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3362 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
3363 division by-zero and senseless negative divisions.
3364 (circprog_set_property): Don't accept negative num_ticks.
3366 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3368 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
3369 division by-zero and senseless negative divisions.
3371 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3373 * configure.ac: Use elf_*_fbsd on kfreebsd.
3375 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3377 * grub-core/tests/div_test.c: New test.
3379 2013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
3381 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
3382 * grub-core/gfxmenu/gui_canvas.c: Likewise.
3383 * grub-core/gfxmenu/view.c: Likewise.
3384 * grub-core/video/fb/video_fb.c: Introduce new functions:
3385 grub_video_set_area_status, grub_video_get_area_status,
3386 grub_video_set_region, grub_video_get_region.
3387 * grub-core/video/bochs.c: Likewise.
3388 * grub-core/video/capture.c: Likewise.
3389 * grub-core/video/video.c: Likewise.
3390 * grub-core/video/cirrus.c: Likewise.
3391 * grub-core/video/efi_gop.c: Likewise.
3392 * grub-core/video/efi_uga.c: Likewise.
3393 * grub-core/video/emu/sdl.c: Likewise.
3394 * grub-core/video/radeon_fuloong2e.c: Likewise.
3395 * grub-core/video/sis315pro.c: Likewise.
3396 * grub-core/video/sm712.c: Likewise.
3397 * grub-core/video/i386/pc/vbe.c: Likewise.
3398 * grub-core/video/i386/pc/vga.c: Likewise.
3399 * grub-core/video/ieee1275.c: Likewise.
3400 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
3401 * include/grub/video.h: Likewise.
3402 * include/grub/video_fb.h: Likewise.
3403 * include/grub/fbfill.h: Updated render_target structure.
3404 grub_video_rect_t viewport, region, area
3405 int area_offset_x, area_offset_y, area_enabled
3406 * include/grub/gui.h: New helper function
3407 grub_video_bounds_inside_region.
3408 * docs/grub-dev.texi: Added information about new functions.
3410 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3412 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
3415 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3417 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
3419 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
3421 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3423 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
3424 simple division on arm and ia64.
3426 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3428 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
3431 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3433 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
3435 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3437 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
3438 prefix symbol, not @.
3440 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3442 * INSTALL: Add note about older gcc and clang.
3444 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3446 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
3448 2013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
3450 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
3451 NULL pointer dereference.
3453 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3455 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
3458 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
3463 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3465 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
3467 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
3468 * grub-core/disk/geli.c (ascii2hex): Likewise.
3470 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3472 * configure.ac: Run linker tests without -Werror.
3473 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
3474 Change all occurences of -static-libgcc resp -lgcc to
3475 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
3477 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3479 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
3481 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3483 Allow compiling with clang (not really supported though).
3485 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
3487 * configure.ac: Add -no-integrated-as when using clangfor asm files.
3488 Add -mrtd -mregparm=3 on i386 when not using clang.
3489 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
3491 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3493 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
3495 * grub-core/lib/reed_solomon.c: Likewise.
3496 * include/grub/i386/gdb.h: Likewise.
3497 * include/grub/i386/pc/int.h: Likewise.
3498 * include/grub/i386/pc/pxe.h: Likewise.
3499 * include/grub/ieee1275/ieee1275.h: Likewise.
3501 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3503 Import libgcrypt 1.5.3.
3505 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3507 * configure.ac: Don't add -Wcast-align on x86.
3509 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3511 * configure.ac: Add -freg-struct-return on all platforms that
3514 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3516 * acinclude.m4: Use -Werror on parameter tests.
3517 * configure.ac: Likewise.
3519 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3521 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
3523 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3525 * configure.ac: Check that -malign-loops works rather than assuming that
3526 either -falign-loops or -malign-loops work.
3528 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3530 * configure.ac: Remove -fnested-functions. We don't need it anymore.
3532 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3534 * configure.ac: Prevent cflags leaking to subsequent tests by always
3535 resetting cflags to target_cflags in target tests.
3537 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3539 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
3542 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3544 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
3546 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3548 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
3550 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3552 * grub-core/normal/cmdline.c (grub_cmdline_get):
3553 Remove nested functions.
3555 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3557 * tests/test_sha512sum.in: Make it work on emu.
3559 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3561 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
3563 (grub_bidi_line_logical_to_visual): Likewise.
3565 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3567 Remove vestiges of -Wunsafe-loop-optimisations.
3569 * conf/Makefile.common (CFLAGS_GNULIB): Remove
3570 -Wno-unsafe-loop-optimisations.
3571 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
3573 * grub-core/io/gzio.c: Likewise.
3574 * grub-core/script/parser.y: Likewise.
3575 * grub-core/script/yylex.l: Likewise.
3576 * util/grub-mkfont.c: Likewise.
3578 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3580 * util/grub-mkfont.c (process_cursive): Remove nested function.
3582 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3584 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
3585 (grub_boot_time): Likewise.
3587 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3589 * include/grub/symbol.h (FUNCTION): Use @function rather than
3591 (VARIABLE): Likewise.
3593 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3595 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
3597 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3599 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
3600 (parse_dhcp_vendor): Likewise.
3602 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3604 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
3606 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3608 * grub-core/gettext/gettext.c (main_context), (secondary_context):
3609 Define after defining type and not before.
3611 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3613 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
3615 (grub_gcm_decrypt): Likewise.
3616 (algo_decrypt): Likewise.
3617 (grub_zfs_decrypt_real): Transform error type.
3619 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3621 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
3623 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3625 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
3626 (grub_usbms_cbi_reset): Likewise.
3627 (grub_usbms_bo_reset): Likewise.
3628 (grub_usbms_reset): Likewise.
3629 (grub_usbms_attach): Likewise.
3630 (grub_usbms_transfer_cbi): Likewise.
3632 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3634 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
3635 "checksum = checksum;".
3637 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3639 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
3642 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3644 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
3647 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3649 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
3651 (grub_ehci_fini_hw): Likewise.
3652 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
3654 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3656 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
3657 return grub_usb_err_t for cosistency. All users updated.
3659 2013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
3661 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
3662 assigning to itself.
3664 2013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
3665 2013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3667 Issue separate DNS queries for ipv4 and ipv6
3669 Adding multiple questions on a single DNS query is not supportted by
3670 most DNS servers. This patch issues two separate DNS queries
3671 sequentially for ipv4 and then for ipv6.
3673 Fixes: https://savannah.gnu.org/bugs/?39710
3675 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
3676 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
3677 * (grub_net_dns_lookup): Now using separated dns packages.
3678 * (grub_cmd_nslookup): Add error condition.
3679 * (grub_cmd_list_dns): Print DNS option.
3680 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
3681 --prefer-ipv4, and --prefer-ipv6.
3682 * include/grub/net.h (grub_dns_option_t): New enum.
3683 * (grub_net_network_level_address): option added.
3685 2013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
3687 * grub-core/video/fb/video_fb.c: Merge two blit functions
3690 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3692 * grub-core/term/terminfo.c: Add sequences for home and end.
3694 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3696 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
3699 2013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
3701 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
3704 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3706 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
3707 e-mail by Per Öberg.
3709 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3711 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
3714 2013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
3716 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
3718 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
3720 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3722 * docs/grub.texi: Document usage of menuentry id.
3724 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3726 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
3728 2013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
3730 * grub-core/commands/i386/nthibr.c: New command.
3732 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3734 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
3736 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3738 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
3741 2013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
3743 Support GRUB_DISABLE_SUBMENU config.
3745 Inspired by patch from Prarit Bhargava.
3747 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3749 * docs/grub.texi: Mention RSA support.
3751 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3753 * grub-core/commands/verify.c: Add RSA support.
3755 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3757 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
3758 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
3759 device is known to be ATAPI.
3761 2013-11-03 Mike Frysinger <vapier>
3763 * configure.ac: Don't add target-prefix.
3765 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3767 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
3770 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3772 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
3773 if language is English.
3775 2013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
3777 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
3779 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3781 * configure.ac: Don't add -m32/-m64 on emu.
3785 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
3786 broken linux headers.
3788 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3790 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
3792 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3794 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
3795 Reed-Solomon recovery if more than half of redundancy info is 0.
3797 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3799 * util/grub-mount.c: Handle symlinks to directories.
3801 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3803 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
3804 find_file recursively for symlink.
3806 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3808 * tests/util/grub-shell.in: Copy themes.
3810 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3812 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
3814 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3816 * configure.ac: Use 0x8000 for address instead of 8000.
3818 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3820 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
3823 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
3828 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3830 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
3832 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3834 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
3835 file_progress_read_hook.
3836 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
3838 2013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
3840 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
3843 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3845 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
3847 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3849 Rewrite blocklist functions in order to get progress when
3850 reading large extents and decrease amount of blocklist hook calls.
3852 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3854 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
3857 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3859 Support --base-clock for serial command to handle weird cards with
3860 non-standard base clock.
3862 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3864 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
3866 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
3867 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
3868 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
3869 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
3870 + strcpy rather than strncpy.
3872 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3874 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
3875 (check_pool_label): Likewise. Fixes overflow.
3876 (nvlist_find_value): Fix comparison.
3878 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3880 * include/grub/misc.h (grub_strcat): Removed. All users changed to
3881 more appropriate functions.
3883 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3885 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
3888 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3890 * util/grub-mkrescue.in: Do not use UUID search on EFI.
3892 2013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
3894 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
3897 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
3901 2013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
3903 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
3904 (initialize_tables): reset tl and td to NULL after freeing.
3906 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3908 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
3910 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3912 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
3915 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3917 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
3919 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3921 * grub-core/loader/multiboot.c: Add support for multiboot kernels
3924 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3926 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
3927 a page in protected space.
3929 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3931 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
3932 allocate space for zero-sized modules.
3934 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3936 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
3938 2013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
3940 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
3942 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3944 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
3945 safeguards. Fixes a crash with i386/pc/console.c.
3947 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3949 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
3950 and grub_hostfs_init.
3952 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3954 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
3955 windows method on other platforms without good stat as well.
3957 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3959 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
3961 2013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
3963 Make / in btrfs refer to real root, not the default volume.
3964 Modify mkrelpath to work even if device is mounted with subvolid option.
3966 2013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
3968 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
3970 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
3973 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3975 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
3978 2013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
3980 * docs/autoiso.cfg: New file.
3982 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3984 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
3985 COND_GRUB_PE2ELF conditions.
3987 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3989 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
3990 "vnd", "rd" and "fd" disks.
3992 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3994 Move grub_disk_write out of kernel into disk.mod.
3996 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
3998 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
4001 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4003 * grub-core/kern/misc.c (grub_abort): Make static
4005 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4007 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
4008 transform invalid unicode codepoints.
4010 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4012 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4015 2013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
4017 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
4019 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4021 Consolidate cpuid code.
4023 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4025 Move cpuid code to cpuid.h and TSC code to tsc.c.
4027 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4029 * util/grub.d/00_header.in: Don't use LANG if it's not set.
4031 2013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
4033 * util/grub-mkconfig.in: Replace $0 with $self.
4034 * util/grub-reboot.in: Likewise.
4035 * util/grub-set-default.in: Likewise.
4037 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4039 * docs/osdetect.cfg: New file.
4041 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4043 * tests/util/grub-shell.in: Add new --debug option.
4045 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4047 * tests/test_unset.in: New test.
4049 2013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
4051 * tests/test_sha512sum.in: New test.
4053 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4055 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
4056 * include/grub/misc.h: Remove strncat.
4057 * grub-core/lib/posix_wrap/string.h: Likewise.
4059 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4061 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
4062 Try to handle more than 0xFFFF packets.
4063 Reported by: Bernhard Übelacker <bernhardu>.
4064 He also spotted few overflows in first version of this patch.
4066 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4068 * tests/date_unit_test.c: New test.
4070 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4072 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
4073 of first three years after start of validity of unixtime.
4075 2013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
4077 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
4078 division as the one making more sense.
4079 (update_screen): Likewise.
4080 (complete): Likewise.
4082 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
4086 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4088 Make char and string width grub_size_t rather than grub_ssize_t.
4090 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4092 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
4094 (grub_history_replace): Likewise.
4096 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4098 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
4101 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4103 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
4106 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4108 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
4109 Use unsigned divisions rather than signed variants.
4111 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4113 * grub-core/video/readers/png.c (grub_png_convert_image): Use
4114 unsigned arithmetics.
4117 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4119 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
4121 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4123 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
4124 rather than signed one.
4125 (recovery): Likewise.
4127 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4129 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
4131 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4133 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
4136 2013-10-25 Jon McCune <jonmccune@google.com>
4138 * docs/grub.texi: Cleanup security documentation around signatures.
4140 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4142 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
4144 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4146 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
4149 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4151 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
4152 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
4153 functions when compiling for kernel.
4155 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4157 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
4158 unsigned long long when using %llu.
4160 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4162 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
4163 terminal after updating progress.
4165 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4167 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
4168 argument. We don't disable Gate A20 in this code.
4170 2013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
4172 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
4173 Conceptually based on change in branch "vbe-on-coreboot".
4175 2013-10-24 Robert Millan <rmh@gnu.org>
4177 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
4178 numeric constants with their symbolic equivalent.
4179 Taken from branch "vbe-on-coreboot".
4181 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4183 * docs/grub.texi: Fix ordering and use pxref rather than xref.
4185 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4187 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
4188 divmod64 for offset division.
4190 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4192 Rename .bzrignore to .gitignore. Add "*.o" rule.
4194 * .bzrignore: Renamed to...
4195 * .gitignore: ...this.
4197 2013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4199 Add new progress module that displays the load progress of files.
4201 * grub-core/lib/progress.c: New file.
4202 * grub-core/Makefile.core.def (progress): New module.
4203 * grub-core/kern/file.c (grub_file_open): File name added.
4204 * (grub_file_read): Progress hook added.
4205 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
4206 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
4207 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
4208 * include/grub/file.h (struct grub_file): Add progress module members.
4209 * include/grub/term.h (struct grub_term_output): Likewise.
4210 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
4211 Terminal velocity added.
4212 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
4213 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
4214 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
4215 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
4216 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
4217 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
4218 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
4219 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
4220 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
4221 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
4222 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
4223 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
4225 2013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
4227 Verify signatures of signatures unless --skip-sig is specified.
4229 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4231 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
4234 Saves 70 bytes on compressed image.
4236 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4238 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
4241 Saves 10 bytes on compressed image.
4243 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4245 * grub-core/kern/misc.c (grub_isprint): Move to ...
4246 * include/grub/misc.h (grub_isprint): ... here. Make inline.
4248 Saves 20 bytes on compressed image due to remving exporting.
4250 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4252 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
4254 Saves 5 bytes on compressed image.
4256 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4258 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
4261 Saves 379 bytes on compressed image.
4263 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4265 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
4267 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4269 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
4271 Saves 40 bytes on compressed image.
4273 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4275 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
4276 mask rather than 64-bit type.
4278 Saves 20 bytes on compressed image.
4280 2013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
4282 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
4283 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
4285 Saves 273 bytes on compressed image.
4287 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4289 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
4290 variable length arrays.
4292 Saves 50 bytes on compressed image.
4294 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4296 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
4298 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4300 * grub-core/fs/ufs.c: Remove variable length arrays.
4302 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4304 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
4306 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4308 * grub-core/fs/zfs.c: Remove variable length arrays.
4309 Reduces zfs.mod by 160 bytes (208 compressed).
4311 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4313 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
4315 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4317 * grub-core/net/arp.c: Remove variable length arrays.
4318 * grub-core/net/bootp.c: Likewise.
4319 * grub-core/net/dns.c: Likewise.
4320 * grub-core/net/icmp6.c: Likewise.
4321 * grub-core/net/net.c: Likewise.
4323 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4325 * grub-core/fs/ntfs.c: Remove variable length arrays.
4326 Increases ntfs.mod by 64 bytes (but decreases by 3 when
4329 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4331 * grub-core/fs/hfs.c: Remove variable length arrays.
4332 Reduces hfs.mod by 8 bytes (52 compressed).
4334 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4336 * grub-core/fs/udf.c: Remove variable length arrays.
4337 Increases udf.mod by 128 bytes (but decreases by 13 when
4340 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4342 * grub-core/fs/iso9660.c: Remove variable length arrays.
4343 Increases iso9660.mod by 200 bytes (but decreases by 79 when
4346 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4348 * grub-core/fs/nilfs2.c: Remove variable length arrays.
4349 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
4352 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4354 * grub-core/fs/xfs.c: Remove variable length arrays.
4355 Reduces xfs.mod by 40 bytes (43 compressed).
4357 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4359 * grub-core/fs/fshelp.c: Remove variable length arrays.
4360 Reduces fshelp.mod by 116 bytes (23 compressed).
4362 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4364 * grub-core/normal/completion.c: Remove variable length arrays.
4365 * grub-core/normal/menu_entry.c: Likewise.
4367 Reduces normal.mod by 496 bytes.
4369 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4371 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
4372 by 356 bytes (158 compressed).
4374 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4376 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
4377 by 364 bytes (169 compressed).
4379 2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
4381 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
4382 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
4383 * include/grub/types.h (grub_unaligned_uint64_t): New type.
4385 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4387 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
4388 bitmasks to small structures of size chosen to fit in registers.
4390 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4392 * conf/Makefile.common: Use -freg-struct-return on i386. This
4393 decreases code size and improves performance.
4395 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4397 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
4399 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4401 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
4403 Simplify expressions to save around 256 bytes in kernel.img.
4404 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
4406 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4408 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
4409 Use GRUB_UTIL_FD_O_* rather than O_*.
4411 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4413 Add haiku-specific functions.
4415 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4417 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
4419 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4421 Move stat () and device mode checking into OS-dependent files as
4422 long as performance doesn't suffer.
4424 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4426 Split make_system_path_relative_to_its_root into separate file
4427 relpath.c from getroot.c as it's common between unix and haiku
4428 but otherwise haiku doesn't use any functions from unix getroot.c.
4430 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4432 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
4434 (grub_util_is_special_file): Likewise.
4436 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4438 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
4439 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
4441 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4443 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
4444 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
4446 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4448 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
4449 (load_image): Likewise.
4451 2013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
4453 * util/grub-render-label.c: Move backend part to ...
4454 * util/render-label.c: ... here.
4456 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4458 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
4459 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
4461 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4463 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
4465 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4467 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
4468 CD-ROM in case when it's declared as having subpartitions.
4470 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4472 Don't add -lm on haiku.
4474 * configure.ac: Define BUILD_LIBM to -lm on most platforms
4476 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
4479 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4481 * configure.ac: Use -melf_*_haiku as target on haiku.
4483 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4485 * Makefile.util.def: Add util/setup.c to extra_dist.
4487 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4489 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
4490 unknown types through.
4492 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4494 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
4495 (grub_util_check_char_device): Likewise.
4496 * include/grub/emu/getroot.h: Likewise.
4498 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4500 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
4501 memset rather than inline static function.
4503 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4505 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
4506 not doing embedded decompressor.
4508 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4510 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
4512 * grub-core/kern/disk.c: Likewise.
4513 * grub-core/kern/misc.c: Likewise.
4514 * include/grub/parser.h: Likewise.
4515 * include/grub/script_sh.h: Likewise.
4516 * include/grub/zfs/zfs.h: Likewise.
4518 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4520 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
4522 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4524 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
4525 defined before trying to use it.
4527 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4529 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
4532 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4534 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
4535 Use __unused__ rather than __used__ on gcc < 3.2.
4537 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4539 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
4541 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
4543 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4545 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
4547 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4549 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
4550 * include/grub/emu/misc.h: Likewise.
4552 2013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
4554 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
4557 2013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
4559 * grub-core/tests/checksums.h: Regenerated due to progress bar
4560 get_minimal_size changes.
4562 2013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
4564 Added `tr' command support.
4566 * grub-core/commands/tr.c: New file.
4567 * grub-core/Makefile.core.def: Build rules for new module.
4569 * tests/grub_cmd_tr.in: New test.
4570 * Makefile.util.def: Build rules for new test.
4572 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4574 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
4576 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4578 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
4579 * docs/gurb.texi: Likewise.
4581 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4583 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
4584 Pixmap highlighted section with east and west slices was displayed
4585 incorrectly due to negative width of the central slice.
4587 2013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
4589 * docs/grub.texi: Graphical options information update.
4590 Removed outdated. Updated current. Inserted missed.
4592 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4594 * docs/grub.texi: Mention few new platform-specific commands.
4596 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4598 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
4599 currently used so this doesn't really have any effect.
4600 Reported by: Douglas Ray <dougray>
4602 2013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
4604 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
4605 compilation but prevents gcc from displaying messages in non-Latin
4607 * conf/Makefile.common: Likewise.
4609 2013-10-16 Hiroyuki YAMAMORI
4611 Handle Japanese special keys.
4612 Reported by: Hiroyuki YAMAMORI.
4613 Codes supplied by: Hiroyuki YAMAMORI.
4615 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4617 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
4619 2013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
4621 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
4622 * docs/grub.texi: Likewise.
4624 2013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
4626 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
4627 value in case of incomplete read.
4628 (grub_util_fd_write): Likewise.
4630 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4632 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
4634 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4636 * util/grub-editenv.c (create_envblk_file): More from here ...
4637 * util/editenv.c (grub_util_create_envblk_file): ... to here.
4639 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4641 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
4642 canonicalize file name before doing the rest.
4644 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4646 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
4649 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4651 Define grub_util_is_directory/regular/special_file and
4652 use OS-dependent versions rather than to rely on stat().
4654 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4656 * util/grub-mkimage.c: Move backend part to ...
4657 * util/mkimage.c: ... here.
4659 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4661 Allow compilation with mingw64 albeit with warnings due to lack of
4664 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
4665 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
4666 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
4667 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
4669 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
4671 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4673 Remove leftover references to some of the system headers.
4675 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4677 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
4680 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4682 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
4685 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4687 Split out blocklist retrieving from setup.c to
4688 grub-core/osdep/blocklist.c and add windows implementation since
4689 generic version doesn't work on NTFS on Windows due to aggressive
4692 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4694 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
4697 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4699 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
4700 Cut tailing newline. Remove arbitrary limitation. Always use
4701 grub_util_tchar_to_utf8.
4703 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4705 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
4706 * tests/printf_unit_test.c (printf_test): Add %% tests.
4707 Reported by: Paulo Flabiano Smorigo.
4709 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4711 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
4714 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4716 * configure.ac: Check for nvlist_lookup_string in nvpair since we
4717 use nvlist_lookup_string and don't use nvlist_print.
4719 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4721 Add wrappers around rename, unlink, mkdir, opendir, readdir and
4722 closedir to handle filename charset translation.
4724 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4726 * include/grub/emu/hostdisk.h: Move file operations to
4727 * include/grub/emu/hostfile.h: ... here.
4729 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4731 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
4734 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4736 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
4738 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4740 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
4741 and remove export.h.
4743 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4745 * grub-core/kern/emu/error.c: Removed.
4746 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
4747 explicitly as it's already in libgnu.a.
4749 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4751 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
4752 config-util.h include.
4754 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4756 Split emunet into platform-dependent and GRUB-binding parts. Keep
4757 platform-dependent part in kernel for easy access to OS functions.
4759 2013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
4761 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
4764 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4766 * grub-core/osdep/windows/emuconsole.c: New file.
4768 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4770 * conf/Makefile.extra-dist: Add osdep/*/init.c
4772 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4774 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
4776 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4778 * util/grub-probe.c (probe): Separate different drives in hint-str
4779 by spaces and not newlines.
4780 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
4782 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4784 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
4787 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4789 Pass-through unknown E820 types. It required reorganisation of mmap
4792 2013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
4794 * Makefile.util.def: Add osdep/init.c to grub-mount files.
4796 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4798 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
4801 2013-10-14 qwertial <qwertial>
4803 * grub-core/gdb_grub.in: Fix overflow and wrong field.
4805 2013-10-14 Jon McCune <jonmccune@google.com>
4807 * docs/grub.texi: Document new signatures possibility.
4809 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4811 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
4813 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4815 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
4817 (grub_util_tchar_to_utf8): Likewise.
4819 2013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
4821 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
4822 * grub-core/kern/emu/main.c: Add missing include.
4823 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
4824 Don't call grub_util_init_nls.
4825 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
4828 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4830 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
4833 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4835 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
4837 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4839 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
4841 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4843 Add a wrapper for fopen. On unix-like systems just pass-through. On
4844 windows use unicode version.
4846 2013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
4848 Move set_program_name and init_nls to host_init. On windows
4849 fix in this fuction console and argument charset as well.
4851 2013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
4853 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
4854 GRUB_ENABLE_CRYPTODISK.
4856 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
4857 GRUB_ENABLE_CRYPTODISK.
4858 * util/grub-mkconfig_lib.in: Likewise.
4860 2013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
4862 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
4864 2013-10-12 Melki Christian <Christian.melki@saabgroup.com>
4866 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
4867 error when enabling debug.
4869 2013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
4871 * configure.ac: Use -melf_*_obsd on openbsd.
4873 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4875 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
4877 2013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
4879 * include/grub/misc.h: Use gnu_printf rather than printf as format
4880 template since our functions are independent of libc.
4882 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4884 * util/grub-setup.c (setup): Move copying of partition table as
4885 futher up as possible to avoid possible overwrite by floppy routines.
4887 2013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
4889 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
4891 2013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
4893 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
4894 * docs/grub.texi: Likewise.
4896 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4898 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
4899 it's mostly unused. Move vestiges to the callers.
4901 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4903 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
4904 version of salt and hash. Use grub_snprintf rather than snprintf.
4906 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4908 * docs/grub.texi: Fix problem with braces.
4910 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4912 * conf/Makefile.extra-dist: Fix extra-dist list.
4913 * grub-core/Makefile.core.def: Likewise.
4915 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4917 * docs/grub.texi: Document disk names used on Windows and AROS.
4919 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4921 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
4923 * grub-core/osdep/aros/hostdisk.c: Likewise.
4925 2013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
4927 Avoid including hostfile.h when not necessarry as it pulls
4928 in OS-specific headers which may redefine generic names
4931 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4933 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
4934 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
4935 scrollbar_bottom_pad
4936 * docs/grub.texi: Likewise.
4938 2013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
4940 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
4942 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4944 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
4946 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4948 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
4950 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
4953 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4955 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
4958 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4960 Move OS-specific driver configuration to grub_util_fd_open. This
4961 moves OS-dependent parts from kern/emu/hostdisk.c to
4962 grub-core/osdep/*/hostdisk.c.
4964 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4966 * util/grub-mkimage.c (generate_image): Use size_t instead of
4968 * util/grub-mkimagexx.c (locate_sections): Likewise.
4969 (load_image): Likewise.
4971 2013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
4973 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
4975 (grub_util_write_image): Likewise.
4977 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4979 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
4980 get random when no RNG is available.
4981 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
4983 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4985 * include/grub/util/lvm.h: Removed.
4987 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4989 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
4990 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
4992 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4994 * grub-core/osdep/windows/sleep.c: Add missing config.h.
4996 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
4998 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
5000 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5002 * grub-core/net/drivers/emu/emunet.c: Move to ..
5003 * grub-core/osdep/linux/emunet.c: ..here.
5005 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5007 * util/ieee1275/ofpath.c: Move to ...
5008 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
5009 * grub-core/osdep/basic/ofpath.c: ..here.
5011 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5013 Move password-querying (util-version) routines to grub-core/osdep.
5015 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5017 Move sleep routines to grub-core/osdep.
5019 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5021 Move OS-dependent files to grub-core/osdep and document it.
5023 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5025 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
5026 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
5028 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5030 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
5032 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5034 * util/misc.c: Remove leftover inclusion of malloc.h.
5036 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5038 * include/grub/setjmp.h: Remove leftover GRUBOF.
5040 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5042 * util/raid.c: Fold into ...
5043 * util/getroot_linux.c: ... here. Make all functions static.
5045 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5047 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
5048 macros to GRUB ones.
5050 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5052 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
5053 occasional bug. If there are too many boot entries or too low
5054 scrollbar height then we need to use another formula to calculate
5055 the position and size of the scrollbar thumb.
5057 2013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
5059 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
5061 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5063 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
5064 * docs/grub.texi: Likewise.
5066 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5068 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
5071 2013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5073 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
5074 minimal width calculations.
5076 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5078 * docs/grub.texi: Update note on colors on emu console.
5080 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5082 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
5083 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
5084 it's FS and not GRUB limitation.
5086 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5088 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
5090 2013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
5092 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
5094 2013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
5096 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
5097 kernels by version order.
5099 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5101 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
5103 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5105 Add AROS hostdisk and getroot routines.
5107 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5109 Make cryptodisk and diskfilter probe data retrievable programmatically
5110 and not just printable.
5112 2013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
5114 Split random retrieving code into separate files.
5116 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5118 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
5121 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5123 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
5125 * grub-core/tests/fake_input.c: Likewise.
5126 * grub-core/tests/cmdline_cat_test.c: Likewise.
5128 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5130 * grub-core/video/capture.c: Do not do finalization when .fini
5131 is called as there is explicit capture_end.
5133 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5135 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
5136 changing windows to avoid crash.
5138 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5140 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
5142 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5144 * po/exclude.pot: Add several strings to exclude.
5146 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5148 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
5150 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5152 * autogen.sh: Add ./util/grub-gen-widthspec.c and
5153 ./util/grub-gen-asciih.c to exclude list.
5155 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5157 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
5158 and don't mark error strings for translation.
5160 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5162 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
5163 properly in case of missing block size.
5165 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5167 * grub-core/lib/arm/setjmp.S: Add missing license section.
5169 2013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
5171 * po/swiss.sed: Add replacement for key names and for term computer.
5173 2013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
5175 * grub-core/gfxmenu/theme_loader.c: New global options for the
5176 theme background image handling. desktop-image-scale-method,
5177 desktop-image-h-align, desktop-image-v-align.
5178 * grub-core/gfxmenu/view.c: Likewise.
5179 * include/gfxmenu_view.h: Likewise.
5180 * include/bitmap_scale.h: Proportional scale functions introduced.
5181 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
5182 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
5183 cases of unexpected input variables for scale functions.
5184 * docs/grub.texi: Updated documentation for new options.
5186 2013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
5188 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
5190 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5192 * grub-core/tests/checksums.h: Corrected due to changes in
5193 bilinear interpolation function.
5195 2013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
5197 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
5198 to eliminate artefacts in bilinear interpolation.
5200 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5202 * grub-core/video/readers/tga.c: Support paletted tga.
5204 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5206 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
5207 incorrect cbcr setting when in color mode.
5209 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5211 * grub-core/video/readers/png.c: Support paletted images and clean up
5214 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5216 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
5217 usage of wrong table which resulted in mishandling of 4-byte
5220 2013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
5222 * grub-core/term/terminfo.c: Add Home and End key sequences.
5224 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5226 * grub-core/video/readers/png.c (grub_png_decode_image_header):
5227 Fix formula for computing total number of bytes.
5229 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5231 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
5232 image processing, fix big-endian and support grayscale.
5234 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5236 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
5237 Correctly will with maximum transparency when using index color.
5239 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5241 * grub-core/video/readers/png.c: Support grayscale
5243 2013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
5245 * grub-core/video/readers/jpeg.c: Support grayscale.
5247 2013-09-26 Jon McCune <jonmccune@google.com>
5249 * grub-core/commands/loadenv.c: Support skipping signature check
5250 and variable names filtering.
5252 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5254 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
5255 * grub-core/kern/emu/hostfs.c: Likewise.
5256 * util/getroot_unix.c: Likewise.
5258 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5260 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
5261 Migrate all explicit defines to this new one.
5263 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5265 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
5266 grub_util_fd_strerror when using grub_util_fd_*.
5267 (grub_util_fd_open_device): Likewise.
5268 (grub_util_biosdisk_read): Likewise.
5269 (grub_util_biosdisk_write): Likewise.
5270 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
5271 (grub_util_fd_strerror): Likewise.
5272 (grub_util_fd_sync): Likewise.
5273 (grub_util_fd_close): Likewise.
5274 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
5275 (grub_util_fd_close): Likewise.
5276 (grub_util_fd_strerror): Likewise.
5277 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
5278 function proto rather than macro.
5279 (grub_util_fd_sync): Likewise.
5280 (grub_util_fd_open): Likewise.
5281 (grub_util_fd_strerror): New proto.
5283 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5285 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
5286 platforms on which it doesn't work.
5288 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5290 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
5291 stat immediately to where it's used.
5293 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5295 * util/getroot.c (grub_util_check_block_device): Move to ...
5296 * util/getroot_unix.c (grub_util_check_block_device): ... here.
5297 * util/getroot.c (grub_util_check_char_device): Move to ...
5298 * util/getroot_unix.c (grub_util_check_char_device): ... here.
5300 2013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
5302 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
5305 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5307 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
5309 2013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
5311 * docs/grub.texi (File name syntax): Document ZFS filenames
5312 (/volume@snapshot/...).
5314 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5316 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
5317 Always return full path. Fixes a problem with mkrelpath.
5319 2013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5321 * util/grub-install.in: Add GPT PReP support.
5322 * util/grub-probe.c (probe): Support GPT partition type.
5323 (main): Support -t gpt_parttype.
5325 2013-09-23 Aleš Nesrsta <starous@volny.cz>
5327 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
5329 2013-09-23 Massimo Maggi <me@massimo-maggi.eu>
5331 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
5333 2013-09-23 Tim Hardeck <thardeck>
5335 * util/grub.d/10_hurd.in: Filter out character for the class.
5336 * util/grub.d/10_kfreebsd.in: Likewise.
5337 * util/grub.d/10_linux.in: Likewise.
5338 * util/grub.d/20_linux_xen.in: Likewise.
5340 2013-09-23 Melki Christian <Christian.melki@saabgroup.com>
5342 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
5345 2013-09-23 Josh Triplett <josh@joshtriplett.org>
5347 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
5350 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5352 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
5353 doesn't use posix_wrap. Keep literal -fno-builtin however.
5355 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5357 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
5359 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5362 * configure.ac: Do not enable -Wmissing-noreturn as its
5363 usefulness is limited and creates problems on some OS notably with
5364 code generated by bison.
5366 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5369 * configure.ac: Do not explicitly enable -Waddress as it's not
5370 supported by all gcc and when it is, it's already enabled by -Wall.
5372 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5374 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
5375 desactivated use of EDID at all.
5377 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5380 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
5381 video if no text is available.
5383 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5386 * configure.ac: Substitute TARGET_RANLIB.
5388 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5391 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
5393 Based on patches from AROS.
5395 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5398 * grub-core/Makefile.am: Override STRIP and RANLIB.
5399 * configure.ac: compute TARGET_RANLIB.
5400 * INSTALL: Document TARGET_RANLIB
5402 Based on patches from AROS.
5404 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5406 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
5407 that floppies are unpartitioned.
5409 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5411 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
5412 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
5414 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5416 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
5417 less nice but more portable.
5418 * grub-core/lib/posix_wrap/wchar.h: Likewise.
5420 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5422 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
5424 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
5426 (grub_cryptodisk_cheat_insert): Likewise.
5427 (grub_cryptodisk_close): Likewise.
5429 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5431 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
5432 Use windows path for DEFAULT_DIRECTORY.
5434 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5436 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
5437 difference was likely just gcc version, not anything mingw-related.
5439 2013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
5441 Use Winapi on both cygwin and mingw32 to share more code between both.
5443 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5445 * util/grub-install.in: Add --grub-editenv option.
5446 * util/grub-install_header (grub_compress_file): Explicitly check for
5447 plain file to avoid cp error.
5449 2013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
5451 * docs/grub.texi (Device syntax): Document new LVM UUID based device
5452 names; fix LVM driver name (lvm, not lv).
5453 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
5456 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5458 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
5459 files rather than one file with loads of #if's.
5460 * util/getroot.c: Likewise.
5462 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5464 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
5466 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5468 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
5469 GNU/Hurd to the list of checked PRNG.
5471 2013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
5473 * configure.ac: On FreeBSD use -melf_*_fbsd format.
5475 2013-09-21 Ales Nesrsta <starous@volny.cz>
5477 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
5479 2013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
5481 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
5482 * grub-core/disk/lvm.c: Add LVM UUIDs.
5483 * util/getroot.c: Use LVM UUIDs whenever possible.
5485 2013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
5487 * docs/grub.texi (Networking commands): Add documentation for
5488 network related commands.
5490 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5492 * util/getroot.c (grub_util_open_dm): Check major rather than the name
5493 to determine if device is handled by devmapper.
5494 (convert_system_partition_to_system_disk): Likewise.
5495 (get_dm_uuid): Don't check explicitly if device is mapped, it's
5496 already done in grub_util_open_dm.
5498 2013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
5500 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
5501 Clean up stack manipulation (sync_caches_armv*)
5503 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5505 * util/lvm.c: Remove since unused. Remove remaining references.
5507 2013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
5509 Handle the case of partitioned LVM properly.
5511 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
5512 Stop on meeting LVM, mpath or DMRAID.
5513 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
5514 (read_device_map): Likewise.
5515 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
5516 device is full disk rather than erroring out on LVM and similar cases.
5518 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5520 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
5522 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5524 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
5526 Reported by: Leif Lindholm
5528 2013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
5529 2013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5531 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
5534 2013-09-18 Colin Watson <cjwatson@ubuntu.com>
5536 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
5537 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
5539 2013-09-18 Douglas Ray <dougray@cpan.org>
5541 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
5544 2013-09-18 Aleš Nesrsta <starous@volny.cz>
5546 * docs/grub.texi: Fix broken link.
5548 2013-09-18 Melki Christian <Christian.melki@saabgroup.com>
5550 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
5551 to break endless loop.
5553 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5555 * util/grub-fstest.c: Fix several printf formats.
5556 * util/grub-mkimage.c: Likewise.
5557 * util/grub-mkimagexx.c: Likewise.
5558 * util/grub-script-check.c: Likewise.
5560 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5562 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
5565 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5567 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
5569 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5571 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
5572 removed in current versions cygwin_conv_*.
5574 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5576 * configure.ac: Disable efiemu runtime on cygwin.
5578 2013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
5580 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
5581 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
5583 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5585 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
5588 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5590 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
5592 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
5595 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5597 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
5598 when on x86 and not cygwin.
5599 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
5602 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5604 * configure.ac: Set CPP to build one when checkoing for freetype for
5607 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5609 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
5610 [!GRUB_BUILD]: Remove has_argument.
5612 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5614 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
5615 Replace with a dummy.
5617 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5619 * configure.ac: Don't change host_os from mingw to cygwin.
5621 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5623 * configure.ac: Change target_os from windows to cygwin.
5625 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5627 Handle grub-pe2elf and grub-mkfont for cases when build != host.
5629 * Makefile.am (build-grub-mkfont): Don't include gnulib.
5630 (build-grub-gen-asciih): Likewise.
5631 (build-grub-gen-widthspec): Likewise.
5632 * Makefile.util.def (grub-pe2elf): Remove.
5633 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
5634 * configure.ac: Separate tests for build.
5635 Move ./build-grub-pe2elf to grub-core.
5637 * grub-core/Makefile.am (build-grub-pe2elf): New target.
5638 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
5640 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
5642 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
5643 * util/grub-pe2elf.c: Simplify not to rely on getopt.
5644 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
5646 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5648 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
5649 mingw32 as well based on grub_util_get_disk_size.
5650 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
5651 grub_util_get_fd_size.
5653 (fsync): Moved to ...
5654 * grub-core/kern/emu/misc.c (fsync): ... here.
5656 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5658 * include/grub/mm.h (grub_extend_alloc): Remove.
5659 * grub-core/loader/i386/pc/plan9.c: Use own version of
5660 grub_extend_alloc with appropriate types.
5662 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5664 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
5666 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5668 * util/getroot.c: Include sys/wait.h only when we need waitpid.
5670 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5672 Fix dependencies on cygwin.
5674 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
5675 dependencies when used and defined.
5676 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
5678 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5680 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
5681 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
5683 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5685 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
5686 implementation available to cause compile-time rather than runtime
5689 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5691 * util/grub-fstest.c: Don't check for symlinks on windows.
5693 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5695 * INSTALL: Mention unavailability of man pages when cross-compiling.
5697 2013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5699 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
5701 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
5703 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5705 * INSTALL: Document cross-compilation.
5706 * acinclude.m4: Determine whether nm support -P and --defined-only.
5707 * configure.ac: Add TARGET_ to all variables pertaining to target
5708 that don't have it yet.
5709 * gentpl.py: Likewise.
5710 * grub-core/Makefile.am: Likewise.
5711 * grub-core/genmod.sh.in: Likewise.
5712 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
5715 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5717 * configure.ac: Remove -Wempty-body. It's not essential and needs
5720 2013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
5722 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
5723 * util/getroot.c: Likewise.
5725 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5727 * grub-core/disk/ahci.c: Add needed explicit cast.
5728 * grub-core/lib/backtrace.c: Likewise.
5729 * grub-core/net/ip.c: Likewise.
5730 * grub-core/net/tcp.c: Likewise.
5731 * grub-core/net/udp.c: Likewise.
5733 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5735 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
5737 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5739 * util/import_gcry.py: Add final newline in visibility.h.
5741 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5743 * conf/Makefile.common: Fix typo.
5745 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5747 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
5749 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5751 * Makefile.am (widthspec.h): Fix typo.
5752 * util/grub-gen-widthspec.c: Likewise.
5754 2013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5756 Move ascii.h and widthspec.h generation to a separate build-time-only
5759 2013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
5761 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
5762 Always fill bootdisk info and improve check for NetBSD disklabel.
5764 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5766 * conf/Makefile.extra-dist: Add util/bin2h.c.
5767 Reported by: floppym.
5769 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5771 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
5773 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5775 * configure.ac: Disable unifont and starfield if no freetype was found.
5777 2013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
5779 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
5780 on NetBSD and OpenBSD.
5782 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5784 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
5786 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5788 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
5789 reduced. Inheritant options are processed during the theme loading.
5791 2013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
5793 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
5795 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5797 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
5799 2013-08-14 Avik Sil <aviksil@in.ibm.com>
5801 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
5804 2013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5806 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
5807 remove-potcdate.sed.
5809 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5811 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
5812 unused attribute from pull argument.
5814 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5816 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
5819 2013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
5821 * util/getroot.c (pull_lvm_by_command): add --separator option
5822 to vgs call to disable padding of output to 10 characters.
5824 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5826 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
5828 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
5831 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5833 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
5836 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5838 Fix handling of build-time grub-bin2h and grub-mkfont when doing
5839 full Canadian cross. Tested with build=x86_64, host=arm,
5840 target=ppc-ieee1275.
5842 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5844 * configure.ac: Error if no $BUILD_CC could be found.
5847 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5849 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
5852 2013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
5854 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
5855 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
5857 2013-08-13 Colin Watson <cjwatson@ubuntu.com>
5859 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
5860 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
5861 falling back to the partition device, otherwise a later call to this
5862 function may fail spuriously.
5863 Reported by Axel Beckert. Fixes Debian bug #708614.
5865 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5867 * autogen.sh: Replace find -not by the POSIX-compliant find !.
5869 2013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
5871 Prevent shadowing of stdlib's devname(3) on BSD.
5873 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
5874 and devlast to diskname and disklast, respectively.
5876 2013-08-11 Colin Watson <cjwatson@ubuntu.com>
5878 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
5880 2013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
5882 * docs/grub.texi: Introduce terminal window position options:
5883 terminal-left: terminal window's left position
5884 terminal-top: terminal window's top position
5885 terminal-width: terminal window's width
5886 terminal-height: terminal window's height
5887 terminal-border: terminal window's border width
5888 * grub-core/gfxmenu/theme-loader.c: Likewise.
5889 * include/grub/gfxmenu_view.h: Likewise.
5890 * po/exlude.pot: Likewise.
5891 * grub-core/gfxmenu/view.c: Likewise.
5892 Also updated minimal window size.
5893 Also terminal_sanity_check function has been introduced.
5894 * grub-core/tests/checksums.h: Update (terminal window height
5895 is adjusted now for low resolution screen)
5897 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5899 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
5902 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5904 * po/exclude.pot: Add few recent exceptions.
5906 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5908 * tests/grub_func_test.in: Add unicode.pf2.
5910 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5912 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
5913 standard rather than noral color, in line with other terminals.
5915 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5917 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
5920 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5922 * grub-core/loader/arm/linux.c: Change printf to dprintf.
5924 2013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
5926 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
5927 inappropriate printf.
5929 2013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
5931 * .bzrignore: Remove grub-core/lib/dtc-grub,
5932 grub-core/Makefile.libfdt.def
5933 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
5935 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5937 * include/grub/video.h (grub_video_register): Keep double-linked as
5938 well as single-linked invariants.
5939 Reported by: qwertial.
5941 2013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
5943 * grub-core/commands/nativedisk.c (get_uuid): Handle
5944 GRUB_DISK_DEVICE_UBOOTDISK_ID.
5946 2013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
5948 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
5949 maximum of NW, N, NE heights instead of N's height and maximum of
5950 NW, W, SW widths instead of W's width. (So the box will be always
5953 2013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
5955 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
5956 Fix misuse of variable count.
5958 2013-07-18 Leif Lindholm <leif.lindholm@arm.com>
5959 2013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
5960 2013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5962 New ports to arm-uboot and arm-efi.
5963 Mostly by Leif Lindholm with some additions from
5964 Francesco Lavra and cleanup by Vladimir Serbinenko.
5966 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5968 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
5970 Reported by: Leon Drugi.
5972 2013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5974 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
5975 Reported by: Paulo Flabiano Smorigo.
5977 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5979 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
5981 2013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
5983 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
5985 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5987 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
5989 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
5991 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
5993 2013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
5995 * grub-core/net/bootp.c: Export net_* variables.
5996 * grub-core/net/net.c: Likewise.
5998 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6000 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
6002 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6004 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
6006 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6008 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
6010 2013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
6012 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
6014 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6016 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
6019 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6021 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
6024 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6026 * grub-core/fs/zfs/zfs_lz4.c: New file.
6027 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
6029 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6031 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
6033 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6035 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
6036 (check_pool_label): Likewise.
6037 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
6039 2013-07-14 Massimo Maggi <me@massimo-maggi.eu>
6041 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
6043 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6045 * docs/grub.texi (Commands): Document postition parameters
6046 for menuentry command.
6048 2013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
6050 * util/grub-mknetdir.in: Remove stray line from help output.
6052 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6054 Remove early sm712 init as there is no reason for it (the "watchdog"
6055 effect was due to wrong GPIO map).
6057 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6059 * grub-core/commands/pcidump.c: Remove static variables.
6061 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6063 * grub-core/commands/sleep.c: Refresh screen before sleeping.
6065 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6067 * configure.ac: Move delimiter after the infos.
6069 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6071 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
6073 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6075 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
6076 not filling whole 8x16 space.
6078 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6080 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
6082 2013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
6084 * configure.ac: Indicate which liblzma is used if any.
6086 2013-06-21 Paul Wise <pabs3@bonedaddy.net>
6087 2013-06-21 Craig Sanders <savannah@taz.net.au>
6089 * util/grub-reboot.in: Document submenu usage.
6091 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6093 * .bzrignore: Update with a number of new test-related files.
6095 2013-06-25 Colin Watson <cjwatson@ubuntu.com>
6097 * util/grub-script-check.c: Fail on scripts containing no
6098 commands, to guard against corrupted grub-mkconfig setups that
6099 produce no useful output.
6100 * tests/grub_script_no_commands.in: New test.
6101 * Makefile.util.def (grub_script_no_commands): Add.
6102 Reported by Hans Putter. Fixes Debian bug #713886.
6104 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6106 * grub-core/disk/diskfilter.c: Forgot to remove comment
6107 from previous commit.
6109 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6111 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
6112 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
6114 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6116 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
6118 2013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
6120 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
6121 rescan diskfilter devices until nothing new is found.
6123 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6125 Fix casts when compiling coreboot-specific code for 64-bit EFI.
6127 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6129 Don't try to detect cbfs on *-emu.
6131 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6133 * grub-core/term/gfxterm.c: USe right background color when scrolling.
6135 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6137 Add support for processed coreboot payload chainloading.
6139 2013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6141 Enable coreboot information commands even when not loaded as
6142 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
6144 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6146 Support for cbfs. Also factor out the part which is common
6147 for all archives to a separate module. This splits tar from cpio
6148 as they are very different but keeps cpio, cpio_be, odc and newc
6149 together since they're very similar.
6151 2013-06-15 David Michael <fedora.dm0@gmail.com>
6153 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
6154 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
6156 2013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6158 * tests/grub_script_eval.in: Really add the eval test.
6160 2013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6162 Move flavour-specific parts out of common cpio.c file and
6163 rename remaining to cpio_common.c
6165 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6167 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
6168 off new function grub_script_execute_new_scope. Change callers to use
6169 either of them as appropriate.
6170 * grub-core/commands/eval.c: New command eval.
6171 * docs/grub.texi (Commands): Document it.
6173 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6175 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
6176 to fetch values when listing.
6178 2013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
6180 Fix make dist on non-pc.
6182 2013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
6184 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
6185 without a device name.
6187 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6189 Remove enable_executable_check as it's not needed anymore.
6190 Reported by: dougray.
6192 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6194 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
6195 ambigouos RAID before discovering RAIDs on top of it.
6198 2013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6200 Fix typo (failback vs fallback).
6202 2013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
6204 * util/grub.d/30_os-prober.in: Add support for probing EFI
6205 System Partition (as of os-prober 1.58).
6207 2013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6209 * configure.ac: Add yet another path to unifont. For parabola.
6211 2013-05-30 Josh Triplett <josh@joshtriplett.org>
6213 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
6214 handling to copy the killed characters to the kill buffer as
6215 UCS4 stored as grub_uint32_t rather than as 8-bit characters
6216 stored as char. Eliminates UCS4 truncation and corruption
6217 observed when killing characters with Ctrl-u and yanking them
6220 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6222 Detach optional parts of gfxterm and integrate in with coreboot init.
6224 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6226 Move blit and fill dispatcher to appropriate files to decrease export
6227 and relocation overhead.
6229 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6231 * grub-core/font/font.c, include/grub/font.h: Inline simple font
6234 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6236 * grub-core/Makefile.am: Fix compilation problem with some
6239 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6241 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
6243 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6245 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
6248 2013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6250 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
6253 2013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
6255 * grub-core/partmap/dfly.c: New partition map.
6257 2013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
6259 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
6261 Reported by: Francesco Lavra.
6263 2013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
6265 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
6266 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
6268 * conf/Makefile.common: define dist_grubconf_DATA
6270 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6272 Progressively skip menu elements on small terminals rather
6275 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6277 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
6278 to avoid losing last column.
6280 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6282 * po/exclude.pot: Add missing string "%C".
6284 2013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
6286 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
6289 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6291 * util/grub-install.in: Gettextize "Not found" message.
6293 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6296 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
6298 2013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6300 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
6302 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
6304 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6306 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
6308 2013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
6310 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
6311 attribute since structure is not necessarily aligned.
6313 2013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
6315 * docs/grub.texi (Device syntax): Clarify description of network
6318 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6320 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
6321 for vasprintf presence.
6323 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6325 * util/grub-install.in: Handle efibootmgr presence check.
6326 Reported by: Leif Lindholm.
6328 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6330 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
6331 new strings to translate.
6333 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6335 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
6336 yet another string (pun intended) to translate.
6338 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6340 * po/POTFILES-shell.in: Autogenerate it.
6342 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6344 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
6346 2013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
6348 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
6351 2013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
6353 * docs/grub.texi (Network): Add description of net_default_interface,
6354 net_default_ip and net_default_mac. Rewrite variables description
6355 to emphasize that they are per-interface.
6357 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6359 New test: cmdline and cat.
6361 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6363 * grub-core/commands/cat.c: Show UTF-8 characters.
6365 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6367 * conf/Makefile.common: Poison float and double on non-emu.
6369 2013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
6371 * configure.ac: Don't disable extended registers on emu.
6373 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6375 * configure.ac: Don't use extended registers on x86_64.
6376 Reported by: Peter Jones.
6378 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6380 * grub-core/term/efi/console.c: Fix compile error.
6382 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6384 Compressed HFS+ support.
6386 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6388 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
6391 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6395 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6397 * grub-core/tests/setjmp_test.c: New test.
6399 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6401 New variables 'net_default_*' to determine MAC/IP of default interface.
6403 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6405 * tests/gettext_strings_test.in: A test to check for strings not
6406 marked for translation.
6408 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6410 * autogen.sh: Exclude unused libgcrypt files from translation.
6412 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6414 Simplify few strings.
6416 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6418 Mark few forgotten strings for translation.
6420 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6422 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
6425 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6427 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
6429 * grub-core/video/readers/tga.c: Likewise.
6431 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6433 * tests/priority_queue_unit_test.cc: New test.
6435 2013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
6437 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
6440 2013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
6442 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
6443 variable for one time boot menu entry.
6445 2013-05-05 Bean <bean123ch@gmail.com>
6447 * grub-core/commands/testspeed.c: New command testspeed.
6449 2013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
6451 Factor-out human-size printing.
6453 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6455 Agglomerate more mallocs to speed-up gfxterm.
6457 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6459 Speed-up gfxterm by slightly agglomerating mallocs.
6461 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6465 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6467 Speed-up gfxterm by saving intermediate results in index+alpha
6470 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6472 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
6475 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6477 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
6478 line of timeout as it may contain the rest of long line.
6480 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6482 * grub-core/normal/main.c: Fix freed memory dereference.
6484 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6486 Fix several memory leaks.
6488 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6490 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
6492 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6494 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
6496 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6498 Fix test -a and -o precedence.
6499 Reported by: adrian15.
6501 2013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
6503 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
6505 2013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
6507 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
6508 and add it as source to functional_test module.
6510 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6512 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
6514 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6516 New series of tests for gfxterm and gfxmenu.
6518 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6520 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
6521 the theme path relative to $prefix/themes.
6523 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6525 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
6527 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
6529 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6531 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
6534 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6536 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
6537 grub_gfxmenu_timeout_notifications.
6538 (grub_gfxmenu_view_destroy): Likewise.
6540 2013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
6542 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
6544 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6546 Several fixes to ieee1275 and big-endian video.
6548 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6550 Add missing exports on mips.
6552 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6554 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
6555 if no unifont is found.
6556 Restore original keyboard.
6558 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6560 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
6561 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
6563 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6565 First automated video test (running videotest and comparing results)
6567 2013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
6569 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
6570 instead of 2 to have full RGB/CMY test pattern.
6572 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6576 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6578 * include/grub/arc/arc.h: Account for missing "other" peripheral on
6579 ARCS. All users updated.
6581 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6583 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
6585 2013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
6587 * grub-core/partmap/amiga.c: Fix size of checksummed block.
6589 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6591 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
6592 Reported by: qwertial.
6594 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6596 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
6597 with syntax "XXX deg"/"XXX °".
6599 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6601 Make PCI init in i386-qemu port more robust.
6603 2013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
6605 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
6606 cached view is reused.
6607 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
6610 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6612 Unify more code in grub-install_header.
6614 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6618 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6620 Enforce disabling of firmware disk drivers when native drivers kick in.
6622 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6624 * grub-core/commands/nativedisk.c: Customize the list of modules on
6625 platform. Don't try to search for disks already using native drivers.
6627 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6629 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
6632 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6634 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
6635 handling of variables containing backslash.
6637 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6639 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
6641 Reported by: qwertial.
6643 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6645 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
6647 2013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
6649 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
6651 Reported by: qwertial.
6653 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6655 * docs/grub.texi: Add a comment about usefullness of nativedisk.
6657 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6659 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
6661 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6663 New command `nativedisk'.
6665 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6667 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
6668 * grub-core/loader/i386/bsd.c: Likewise.
6670 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6672 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
6674 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6676 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
6677 grub_get_unaligned16 rather than shifts.
6679 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6681 * grub-core/kern/file.c: Use const char * rather than casting to
6684 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6686 * grub-core/commands/probe.c: Add missing grub_device_close.
6688 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6690 * INSTALL: Document linguas.sh.
6692 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6694 Remove POTFILES.in and regenerate it in autogen.sh.
6696 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6698 Move --directory/--override-directorry to grub-install_header and unify.
6700 2013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
6702 * grub-core/term/morse.c: Macroify dih and dah.
6704 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6706 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
6708 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6710 * grub-core/term/ns8250.c: Systematically probe ports by writing
6711 to SR before using them.
6713 2013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6715 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
6717 (check_sas): Get sas_adress info.
6719 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6721 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
6724 2013-04-27 Leon Drugi <eyak>
6726 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
6729 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6731 Core compression test.
6733 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6735 Implement grub_machine_get_bootlocation for ARC.
6737 2013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
6739 Improve AHCI detection and command issuing.
6741 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6745 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6747 Make 'make check' work on emu.
6749 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6751 Replace libcurses with our own vt100 handling for the ease of testing
6752 and decreasing prerequisites.
6754 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6756 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
6758 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6760 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
6761 compile when not needed.
6763 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6765 * tests/pseries_test.in: New test.
6767 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6769 Add test to check that different boot mediums work.
6771 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6773 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
6774 ofw limited ISO support.
6776 2013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
6778 * configure.ac: Fix loongson conditional.
6780 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6784 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6786 Add serial on ARC platform.
6788 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6790 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
6793 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6795 * tests/partmap_test.in: Add missing double semicolon.
6797 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6799 * util/grub-mkrescue.in: Fix loongson filename.
6801 2013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
6803 * util/grub-mkrescue.in: Move all files that don't have a location
6804 set in stone under /boot/grub. Use ISO hard links rather than copies
6807 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6809 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
6812 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6814 Make check work on mips-arc.
6816 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6818 * util/grub-mkrescue.in: Alias sashARCS as sash.
6820 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6822 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
6825 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6827 * util/grub-install.in: Fix target fo qemu_mips.
6828 Fix extension on EFI.
6830 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6832 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
6833 in front of chosen entry to mark it even if highlighting is lost.
6835 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6837 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
6838 gfxpayload=keep if cbfb is active.
6840 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6842 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
6844 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6846 Add missing video ids to coreboot and ieee1275 video.
6848 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6850 * util/grub-mkrescue.in: Add mips-arc support.
6852 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6854 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
6856 2013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
6858 Move mips-arc link address. Previous link address was chosen
6859 in belief that RAM on SGI platforms grows down while in fact it
6860 grows up from an unusual base.
6862 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6864 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
6865 Fix a type which prevented CD-ROM and floppy boot.
6867 2013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
6869 Support coreboot framebuffer.
6871 * grub-core/video/i386/coreboot/cbfb.c: New file.
6873 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6875 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
6876 detecting too small regions.
6878 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6880 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
6882 2013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
6884 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
6886 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
6888 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6890 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
6891 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6892 * grub-core/loader/powerpc/ieee1275/linux.c
6893 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
6895 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6897 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
6898 Look for /boot-rom as well as /rom/boot-rom.
6900 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6902 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
6903 handling when creating text_layer failed.
6904 * grub-core/video/video.c (grub_video_create_render_target):
6905 Set result to 0 on error.
6906 (grub_video_delete_render_target): Do not dereference NULL.
6908 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6910 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
6911 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
6912 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
6913 (grub_linux_load64): Mask out 2 high bits.
6915 2013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
6917 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
6920 2013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6922 Add support for pseries and other bootinfo machines to grub-mkrescue.
6924 Tested by: Paulo Flabiano Smorigo.
6926 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6928 * util/grub-mkrescue.in: Add GPT for EFI boot.
6930 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6932 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
6933 It improves performance in qemu.
6935 2013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6937 * build-aux/snippet: Add missing gnulib files.
6939 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6941 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
6943 2013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
6945 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
6947 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6948 2013-04-15 Peter Jones <pjones@redhat.com>
6950 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
6952 Based on patch by Peter Jones.
6954 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6956 Fix DMRAID partition handling.
6958 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6960 * tests/grub_cmd_date.in: Skip on sparc64.
6962 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6964 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
6965 firmware error messages.
6967 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6969 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
6970 source and destination differ.
6972 2013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
6974 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
6977 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6979 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
6980 match config-util.h to avoid warnings and increase compatibility.
6982 2013-04-14 Szymon Janc <szymon@janc.net.pl>
6983 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6985 Add option to compress files on install/image creation.
6987 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6989 * docs/grub-dev.texi: Rearrange menu to match the section order.
6990 Reported by: Bryan Hundven.
6992 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6994 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
6996 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
6998 Move GRUB out of system area when using xorriso 1.2.9 or later.
7000 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7002 * tests/grub_cmd_date.in: Add missing exit 1.
7004 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7006 * tests/partmap_test.in: Skip on sparc64.
7008 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7010 Support grub-shell on sparc64.
7012 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7014 Support mkrescue on sparc64.
7016 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7018 Allow IEEE1275 ports on path even if it wasn't detected automatically.
7019 Needed on OpenBIOS due to incomplete device tree.
7021 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7023 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
7024 would be otherwise excluded.
7026 2013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7028 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
7029 Inline name defines used only once.
7031 2013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7033 Fix memory leaks in ofnet.
7034 Reported by: Francesco Lavra.
7036 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7038 * docs/man/grub-glue-efi.h2m: Add missing file.
7040 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7042 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
7044 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7046 Better support Apple Intel Macs on CD.
7048 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7050 Replace stpcpy with grub_stpcpy in tools.
7052 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7054 Handle Japanese special keys.
7055 Reported by: Hiroyuki YAMAMORI.
7056 Codes supplied by: Hiroyuki YAMAMORI.
7058 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7060 * util/grub-mkimage.c: Document memdisk implying --prefix.
7062 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7064 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
7065 much we can do about it anyway.
7067 2013-04-12 Aleš Nesrsta <starous@volny.cz>
7069 Fix handling of split transfers.
7071 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7073 * grub-core/net/http.c: Fix bad free.
7075 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7077 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
7080 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7082 Disable partmap check on i386-ieee1275 due to openfirmware issues.
7084 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7086 * tests/util/grub-shell.in: Fix it on powerpc.
7088 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7090 Turn off QEMU ACPI-way since new releases don't have shutdown port
7093 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7095 * docs/grub.texi: Update coreboot status info.
7097 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7099 * tests/grub_cmd_date.in: New test for datetime.
7101 2013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
7103 * tests/partmap_test.in: Fix missing qemudisk setting.
7105 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7107 Support i386-ieee1275 grub-mkrescue and make check on it.
7109 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7111 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
7114 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7116 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
7117 GRUB_CMDLINE_XEN_DEFAULT.
7118 Reported by: Marc Warne (GigaTux) <gigatux>
7120 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7124 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7126 Use ACPI shutdown intests as traditional port was removed.
7128 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7130 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
7133 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7135 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
7136 Fix few warining messages and leaks while on it.
7138 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
7140 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
7141 links under grub-core/lib/libgcrypt-grub/mpi.
7143 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7145 Fix ia64-efi image generation on big-endian machines. Deduplicate
7146 some code while on it.
7147 Reported by: Leif Lindholm.
7149 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7151 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
7154 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
7156 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
7158 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
7160 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
7163 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
7165 * grub-core/normal/term.c: Few more fixes for menu entry editor
7167 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7169 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7171 * grub-core/normal/term.c: Few more fixes for menu entry editor
7173 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
7175 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7177 * conf/Makefile.extra-dist (EXTRA_DIST): Add
7178 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
7180 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
7182 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
7183 instead of hardcoding grub.mo.
7185 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
7187 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
7189 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7191 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
7192 grub-core/disk/geli.c.
7194 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7196 * util/grub-mkfont.c: Prefer enum to #define.
7198 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7200 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
7202 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7204 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
7206 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7208 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
7210 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7212 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
7214 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7216 * include/grub/bsdlabel.h: Use enums.
7218 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7220 Move GRUB_CHAR_BIT to types.h.
7222 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7224 * docs/grub.texi: Document more user commands.
7226 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
7228 * docs/grub.texi: Document menuentry --id option.
7230 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
7232 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
7234 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7236 Unify file copying setup across different install scripts. Add
7237 options for performing partial install.
7239 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7240 2013-04-04 Peter Jones <pjones@redhat.com>
7242 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
7244 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7246 Use TSC as a possible time source on i386-ieee1275.
7248 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7250 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
7253 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7255 * util/grub-setup.c (setup): Handle some corner cases.
7257 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7259 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
7261 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7263 * grub-core/commands/verify.c: Save verified file to avoid it being
7264 tampered with after verification was done.
7266 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7268 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
7269 reported width by one to compensate for curesor algorithm problem.
7271 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7273 Fix screen corruption in menu entry editor and simplify the code
7276 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
7278 * util/grub-mount.c (fuse_init): Return error if fuse_main
7281 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
7283 * include/grub/elf.h: Add missing ARM relocation codes and fix
7286 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7288 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
7290 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7291 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7293 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
7294 into account when calculating radius.
7296 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7298 * grub-core/gfxmenu/view.c: Fix off-by-one error.
7300 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
7302 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
7304 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7306 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
7307 missing closing bracket.
7309 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
7311 * INSTALL: Mention xorriso requirement.
7313 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
7315 * grub-core/commands/verify.c: Fix hash algorithms values for
7316 the first three hashes - they start with 1, not with 0.
7318 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
7320 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
7321 Try terminating EFI services several times due to quirks in some
7324 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
7326 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
7327 skipping Event, Device, Processor, PowerRes, ThermalZone, and
7328 BankField extended opcodes.
7329 (get_sleep_type): Add minimal scope handling (just enough to
7330 handle setting the scope to the root path).
7331 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
7332 * include/grub/acpi.h: Add enumeration values for Event, Device,
7333 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
7335 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
7337 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
7340 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7342 * grub-core/disk/ahci.c: Give more time for AHCI request.
7344 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7346 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
7349 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
7351 Replace the region at 0 from coreboot tables to available in BSD
7354 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7356 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
7359 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7361 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
7364 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7366 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
7367 handling of multi-device filesystems.
7369 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7371 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
7374 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
7376 Add new 'proc' filesystem framework and put luks_script into it.
7378 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
7380 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
7383 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7385 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
7387 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7389 Add ability to generate newc additions on runtime.
7391 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
7393 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
7396 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
7398 * po/POTFILES.in: Regenerate.
7400 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7402 * grub-core/commands/verify.c (hashes): Add several hashes
7405 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7407 Slight improve in USB-related boot-time checkpoints.
7409 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7411 * grub-core/commands/boottime.c: Fix copyright header.
7413 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7415 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
7416 coreboot tables content. Support for cbmemc.
7418 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7420 Fix a conflict between ports structures with 2 controllers of
7423 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
7425 * include/grub/boottime.h: Add missing file.
7427 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7429 Initialize USB ports in parallel to speed-up boot.
7431 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7433 Fix USB devices not being detected when requested
7434 due to delayed attach.
7436 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7438 Implement boot time analysis framework.
7440 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
7442 Remove get_endpoint_descriptor and change all functions needing
7443 descriptor to just receive it as argument rather than endpoint
7446 2013-03-19 Aleš Nesrsta <starous@volny.cz>
7448 Better estimate the maximum USB transfer size.
7450 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
7452 Resend a packet if we got the wrong buffer in status.
7454 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7456 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
7457 multiplication rather than division.
7459 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7461 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
7464 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7466 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
7467 operations to have intended shifts and not divisions.
7469 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7471 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
7472 intended shifts rather than division.
7474 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7476 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
7477 computation for some years before epoch. Avode confusing division
7480 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7482 * grub-core/video/i386/pc/vbe.c
7483 (grub_video_vbe_print_adapter_specific_info): Replace division by
7486 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7488 Adjust types in gdb module to have intended unsigned shifts rather than
7491 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7493 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
7494 maximum size is 4G - 1 on hfs
7496 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7498 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
7500 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
7505 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
7507 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
7508 causing gcc error with gcc 4.7.1.
7510 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7512 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
7513 dereference null pointer. While the code is technically correct, gcc
7514 may eliminate a null check if pointer is already dereferenced.
7516 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
7518 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
7520 * grub-core/normal/term.c (read_terminal_list): Likewise.
7522 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
7524 Lift up core size limits on some platforms. Fix potential memory
7525 corruption with big core on small memory systems. Document remaining
7528 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
7530 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
7533 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7535 Remove all trampoline support. Add -Wtrampolines when
7536 present. Remove symbols used for trampolines to make
7537 link fail if trampolines are present.
7539 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7541 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
7542 append out of its parent.
7544 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7546 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
7549 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7551 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
7552 all vars to a macro. All users updated.
7554 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
7556 * grub-core/disk/ieee1275/nand.c: Fix compilation on
7559 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7561 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
7563 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7565 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
7567 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7569 Move to more hookless approach in IEEE1275 devices handling.
7571 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7573 * grub-core/kern/term.c (grub_term_normal_color),
7574 (grub_term_highlight_color): Add back lost defaults.
7576 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7578 Make elfload not use hooks. Opt for flags and iterators instead.
7580 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7582 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
7583 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
7585 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7587 * grub-core/script/execute.c (gettext_append): Remove nested functions.
7589 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7591 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
7592 hook pass-through parameter. All users updated and unnested.
7594 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7596 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
7599 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
7601 * grub-core/fs/hfs.c: Remove nested functions.
7603 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7605 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
7606 the context through.
7607 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
7609 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7611 * util/grub-editenv.c (list_variables): Move print_var out of its
7614 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7616 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
7619 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7621 * grub-core/gentrigtables.c: Make tables const.
7623 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7625 Remove nested functions from videoinfo iterators.
7627 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7629 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
7630 for 64-bit platforms.
7632 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7634 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
7635 a FOR_CHILDREN macro.
7637 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
7639 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
7640 platform from firmware path.
7642 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7644 Enable linux16 on non-BIOS systems for i.a. memtest.
7646 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
7648 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
7650 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7652 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
7653 Fix end of table condition.
7655 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7657 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
7660 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7662 * grub-core/fs/jfs.c: Remove nested functions.
7664 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7666 * grub-core/fs/minix.c: Remove nested functions.
7668 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7670 * grub-core/fs/iso9660.c: Remove nested functions.
7672 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7674 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
7677 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7679 * util/grub-fstest.c: Remove nested functions.
7681 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
7683 * grub-core/loader/machoXX.c: Remove nested functions.
7685 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
7687 Remove nested functions from disk and file read hooks.
7689 * include/grub/disk.h (grub_disk_read_hook_t): New type.
7690 (struct grub_disk): Add read_hook_data member.
7691 * include/grub/file.h (struct grub_file): Likewise.
7692 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
7697 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
7699 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
7700 Fix off by one error in enumerating extended partitions.
7702 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
7704 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
7705 memory leak if device name is not found.
7707 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7709 * grub-core/normal/menu_entry.c (update_screen): remove
7710 unused variable `off' which caused scroll down arrow to be always shown.
7712 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7714 * grub-core/normal/menu_entry.c (insert_string): fix off by one
7715 access to unallocated memory.
7717 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
7719 * Makefile.util.def: Add partmap/msdos.c to common library.
7720 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
7721 * grub-core/disk/ldm.c: Check for existence of
7722 GRUB_PC_PARTITION_TYPE_LDM.
7724 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
7726 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
7727 sizes and display sector size.
7729 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
7731 Implement new command cmosdump.
7733 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
7735 Support Openfirmware disks with non-512B sectors.
7737 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
7739 * (grub_ofdisk_get_block_size): New function.
7740 * (grub_ofdisk_prepare): Use the correct block size.
7741 * (grub_ofdisk_read): Likewise.
7742 * (grub_ofdisk_write): Likewise.
7743 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
7746 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
7748 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
7750 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
7752 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
7755 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7757 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
7760 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7762 Implement USBDebug (full USB stack variant).
7764 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7766 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
7767 unless they have unexpected values.
7769 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7771 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
7774 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7776 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
7777 zero-out of port structure.
7779 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7781 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
7782 of extended attributes.
7784 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
7786 * util/grub-install.in: change misleading comment about
7789 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7791 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
7792 when menu highlight color isn't set.
7794 2013-01-27 C. Masloch <pushbx@38.de>
7796 Improve FreeDOS direct loading support compatibility.
7798 * include/grub/i386/relocator.h (grub_relocator16_state):
7800 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
7802 (grub_relocator16_boot): Handle %ebp.
7803 * grub-core/lib/i386/relocator16.S: Likewise.
7804 * grub-core/loader/i386/pc/freedos.c:
7805 Load BPB to pass kernel which partition to load from.
7806 Check that kernel file is not too large.
7807 Set register dl to BIOS unit number as well.
7809 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
7811 * util/grub-reboot.in (usage): Document the need for
7813 * util/grub-set-default.in (usage): Likewise.
7814 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
7816 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7818 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
7819 than defining WORDS_BIGENDIAN manually.
7821 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7823 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
7826 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7828 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
7830 (blit_comb: add_device_width): Likewise.
7832 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7834 Remove nested functions from USB iterators.
7836 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
7837 (grub_usb_controller_iterate_hook_t): Likewise.
7838 (grub_usb_iterate): Add hook_data argument.
7839 (grub_usb_controller_iterate): Likewise.
7840 (struct grub_usb_controller_dev.iterate): Likewise.
7842 Update all implementations and callers.
7844 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7846 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
7847 margin when not needed.
7849 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7851 Make color variables global instead of it being per-terminal.
7853 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7855 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
7858 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7860 Fix powerpc and sparc64 build failures caused by un-nesting memory
7863 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7865 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
7866 parameter declarations.
7868 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7870 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
7872 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
7874 Improve spkmomdem reliability by adding a separator between bytes.
7876 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7878 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
7879 an Acer registration utility with several sightings in the wild.
7880 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
7882 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7884 Remove nested functions from filesystem directory iterators.
7886 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
7887 (struct grub_fs.dir): Add hook_data argument.
7889 Update all implementations and callers.
7891 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
7893 * docs/grub.texi (Multi-boot manual config): Fix typo for
7896 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7898 * util/grub-mkimage.c (main): Postpone freeing arguments.output
7899 until after its use in generate_image.
7901 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7903 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
7904 initrd size to addr_min, since the initrd will be allocated after
7907 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7909 * conf/Makefile.common: Fix autogen rules to pass definition
7910 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
7912 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
7914 * include/grub/elf.h: Update ARM definitions based on binutils.
7916 2013-01-20 Aleš Nesrsta <starous@volny.cz>
7918 Split long USB transfers into short ones.
7920 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
7922 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
7923 is interrupted by ESC.
7925 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7927 * util/grub-script-check.c (main): Uniform the error message.
7929 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7931 Remove nested functions from ELF iterators.
7933 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7935 Remove nested functions from device iterators.
7937 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
7938 (grub_arc_iterate_devs): Add hook_data argument.
7939 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
7940 (struct grub_ata_dev.iterate): Add hook_data argument.
7941 * include/grub/device.h (grub_device_iterate_hook_t): New type.
7942 (grub_device_iterate): Add hook_data argument.
7943 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
7944 (struct grub_disk_dev.iterate): Add hook_data argument.
7945 (grub_disk_dev_iterate): Likewise.
7946 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
7948 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
7950 * include/grub/partition.h (grub_partition_iterate_hook_t): New
7952 (struct grub_partition_map.iterate): Add hook_data argument.
7953 (grub_partition_iterate): Likewise.
7954 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
7955 (struct grub_scsi_dev.iterate): Add hook_data argument.
7959 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
7961 Fix typos for "developer" and "development".
7963 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7965 Add license header to spkmodem-recv.c.
7967 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
7969 Rewrite spkmodem to use PIT for timing. Double the speed.
7971 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7973 Add new command pcidump.
7975 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7977 New terminal outputs using serial: morse and spkmodem.
7979 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7981 Improve bidi handling in entry editor.
7983 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
7985 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
7986 argument to prevent name collision.
7988 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
7990 Remove nested functions from script reading and parsing.
7992 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
7993 getline_data argument, passed to getline.
7994 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
7995 getline_data argument, passed to grub_parser_split_cmdline.
7996 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
7997 lexerstate->getline_data to lexerstate->getline.
7998 (grub_script_lexer_init): Add getline_data argument, saved in
7999 lexerstate->getline_data.
8000 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
8001 argument, passed to grub_script_parse.
8002 * grub-core/script/script.c (grub_script_parse): Add getline_data
8003 argument, passed to grub_script_lexer_init.
8004 * include/grub/parser.h (grub_parser_split_cmdline): Update
8005 prototype. Update all callers to pass appropriate getline data.
8006 (struct grub_parser.parse_line): Likewise.
8007 (grub_rescue_parse_line): Likewise.
8008 * include/grub/reader.h (grub_reader_getline_t): Add void *
8010 * include/grub/script_sh.h (struct grub_lexer_param): Add
8011 getline_data member.
8012 (grub_script_parse): Update prototype. Update all callers to pass
8013 appropriate getline data.
8014 (grub_script_lexer_init): Likewise.
8015 (grub_normal_parse_line): Likewise.
8017 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
8019 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
8020 static instead of nested. Rename to ...
8021 (grub_parser_execute_getline): ... this.
8022 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
8024 * grub-core/normal/main.c (read_config_file: getline): Make static
8025 instead of nested. Rename to ...
8026 (read_config_file_getline): ... this.
8027 (grub_normal_read_line): Add unused data argument.
8028 * grub-core/script/execute.c (grub_script_execute_sourcecode:
8029 getline): Make static instead of nested. Rename to ...
8030 (grub_script_execute_sourcecode_getline): ... this.
8031 * util/grub-script-check.c (main: get_config_line): Make static
8034 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
8036 Remove nested functions from memory map iterators.
8038 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
8039 argument, passed to hook.
8040 * grub-core/kern/i386/coreboot/mmap.c
8041 (grub_linuxbios_table_iterate): Likewise.
8042 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
8044 (grub_machine_mmap_iterate): Add hook_data argument.
8045 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
8046 Add hook_data argument, passed to hook.
8047 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
8049 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
8051 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
8053 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
8055 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
8057 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
8059 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
8060 (grub_machine_mmap_iterate): Likewise.
8061 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
8062 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
8064 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
8065 Remove NESTED_FUNC_ATTR from here and from all users.
8066 (grub_mmap_iterate): Update prototype.
8067 (grub_efi_mmap_iterate): Update prototype. Update all callers to
8068 pass appropriate hook data.
8069 (grub_machine_mmap_iterate): Likewise.
8071 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
8072 static instead of nested.
8073 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
8075 (lsmmap_hook): ... this.
8076 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
8078 (grub_efiemu_mmap_fill: fill_hook): Likewise.
8079 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
8080 heap_init): Likewise.
8081 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
8083 (mmap_iterate_hook): ... this.
8084 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
8086 * grub-core/lib/ieee1275/relocator.c
8087 (grub_relocator_firmware_get_max_events: count): Likewise.
8088 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
8090 (grub_relocator_firmware_fill_events_iter): ... this.
8091 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
8092 hook): Likewise. Rename to ...
8093 (grub_relocator_alloc_chunk_align_iter): ... this.
8094 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
8096 (generate_e820_mmap_iter): ... this.
8097 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
8099 (count_hook): ... this.
8100 (grub_linux_boot: hook): Likewise. Rename to ...
8101 (grub_linux_boot_mmap_find): ... this.
8102 (grub_linux_boot: hook_fill): Likewise. Rename to ...
8103 (grub_linux_boot_mmap_fill): ... this.
8104 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
8105 hook): Likewise. Rename to ...
8106 (grub_fill_multiboot_mmap_iter): ... this.
8107 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
8108 hook): Likewise. Rename to ...
8109 (count_hook): ... this.
8110 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
8111 hook): Likewise. Rename to ...
8112 (grub_fill_multiboot_mmap_iter): ... this.
8113 * grub-core/loader/powerpc/ieee1275/linux.c
8114 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
8115 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
8116 Likewise. Rename to ...
8117 (alloc_phys_choose): ... this.
8118 (determine_phys_base: get_physbase): Likewise.
8119 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
8120 find_hook): Likewise.
8121 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
8122 (malloc_hook: count_hook): Likewise.
8123 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
8124 Likewise. Rename to ...
8125 (lower_hook): ... this.
8126 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8127 (upper_hook): ... this.
8128 (grub_mmap_get_post64: hook): Likewise. Rename to ...
8129 (post64_hook): ... this.
8130 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
8131 Likewise. Rename to ...
8132 (lower_hook): ... this.
8133 (grub_mmap_get_upper: hook): Likewise. Rename to ...
8134 (upper_hook): ... this.
8135 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
8136 (grub_mmap_iterate: fill_hook): Likewise.
8137 (fill_mask): Pass addr and mask within a single struct.
8138 (grub_cmd_badram: hook): Make static instead of nested. Rename
8140 (badram_iter): ... this.
8141 (grub_cmd_cutmem: hook): Likewise. Rename to ...
8142 (cutmem_iter): ... this.
8144 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8146 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
8147 delimit path in strings using quotes.
8148 * util/getroot.c (grub_guess_root_devices): Likewise.
8149 (grub_make_system_path_relative_to_its_root): Likewise.
8150 * util/grub-probe.c (probe): Likewise.
8151 * util/ieee1275/ofpath.c (find_obppath): Likewise.
8152 (xrealpath): Likewise.
8154 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8156 Fix compilation with older compilers.
8158 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
8159 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
8161 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
8162 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
8163 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
8165 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
8166 * include/grub/crypto.h: Add type defines.
8167 * util/import_gcrypth.sed: Remove duplicate type defines.
8169 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
8171 New command list_trusted.
8173 * grub-core/commands/verify.c (grub_cmd_list): New function.
8175 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8177 * util/grub-mkimage.c (generate_image): Fix "size of public key"
8180 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
8182 Remove nested functions from PCI iterators.
8184 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
8185 passed to hook. Update all callers to pass appropriate hook data.
8186 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
8187 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
8188 Remove NESTED_FUNC_ATTR from here and from all users.
8189 (grub_pci_iterate): Update prototype.
8190 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
8191 instead of nested. Rename to ...
8192 (grub_cs5536_find_iter): ... this.
8193 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
8194 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
8196 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
8198 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
8200 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
8202 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
8203 * grub-core/video/radeon_fuloong2e.c
8204 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
8205 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
8206 find_card): Likewise.
8207 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
8210 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8212 * grub-core/commands/verify.c: Mark messages for translating.
8214 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8216 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
8219 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8221 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
8224 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
8226 * autogen.sh: Do not try to delete nonexistant files.
8227 * util/import_gcrypth.sed: Add some missing header removals.
8229 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
8231 Clean up dangling references to grub-setup.
8232 Fixes Ubuntu bug #1082045.
8234 * docs/grub.texi (Images): Refer generally to grub-install rather
8235 than directly to grub-setup.
8236 (Installing GRUB using grub-install): Remove direct reference to
8238 (Device map) Likewise.
8239 (Invoking grub-install): Likewise.
8240 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
8241 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
8242 * util/grub-install.in (usage): Likewise.
8244 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
8245 Apply to grub-bios-setup and grub-sparc64-setup rather than to
8247 * configure.ac: Remove grub_setup output variable.
8249 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
8251 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
8252 grub-setup to grub-sparc64-setup.
8254 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
8256 Import gcrypt public-key cryptography and implement signature checking.
8258 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8260 * grub-core/fs/ntfs.c: Ue more appropriate types.
8261 * grub-core/fs/ntfscomp.c: Likewise.
8262 * include/grub/ntfs.h: Likewise.
8264 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8266 Support Apple FAT binaries on non-Apple platforms.
8268 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
8269 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
8271 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
8274 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
8276 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
8279 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8281 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
8282 explicitly zeroing elements.
8283 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
8284 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
8285 of elements in a structure already allocated using grub_zalloc.
8286 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
8288 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
8290 * docs/grub.texi (grub_cpu): New subsection.
8291 (grub_platform): Likewise.
8293 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
8295 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
8297 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8299 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
8302 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8304 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
8305 * grub-core/fs/ntfscomp.c: Likewise.
8306 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
8307 (grub_ntfs_comp): Likewise.
8309 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8311 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
8313 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
8314 of groups_per_block. All users updated.
8316 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
8318 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
8319 grub_error properly.
8320 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
8321 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
8323 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8325 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
8326 always in /boot/zfs.
8327 Reported by: Yuta Satoh.
8329 2013-01-03 Yuta Satoh <nigoro>
8331 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
8334 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8336 * configure.ac: Extend -Wno-trampolines to host.
8338 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
8340 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
8343 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8345 * docs/grub.texi (Invoking grub-mkrelpath): New section.
8346 (Invoking grub-script-check): Likewise.
8348 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
8350 * docs/grub.texi (Invoking grub-mount): New section.
8351 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
8353 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8355 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
8356 test failures, so that a failing unit test correctly causes 'make
8359 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8361 Fix failing printf test.
8363 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
8364 '$' in the correct order when collecting type information.
8366 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
8368 * docs/grub.texi (configfile): Explain environment variable
8370 (source): New section.
8371 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
8373 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
8375 Remove several trivially-unnecessary uses of nested functions.
8377 * grub-core/commands/i386/pc/sendkey.c
8378 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
8380 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
8382 (legacy_file_getline): ... this.
8383 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
8385 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
8386 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
8388 (probe_dummy_iter): ... this.
8389 * grub-core/kern/i386/coreboot/mmap.c
8390 (grub_linuxbios_table_iterate: check_signature): Likewise.
8391 * grub-core/kern/parser.c (grub_parser_split_cmdline:
8392 check_varstate): Likewise. Mark inline.
8393 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
8394 an additional parameter.
8395 (find_long: fnd_long): Likewise. Pass two additional parameters.
8396 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
8397 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
8398 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
8399 Likewise. Rename to ...
8400 (grub_cmos_find_port_iter): ... this.
8401 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
8403 (find_rtc_iter): ... this.
8405 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
8406 function directly into the function body, since it is only called
8409 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
8411 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
8412 __attribute__ ((unused)).
8413 * grub-core/video/bochs.c (find_card): Likewise.
8414 * grub-core/video/cirrus.c (find_card): Likewise.
8415 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
8416 * grub-core/video/sis315pro.c (find_card): Likewise.
8417 * grub-core/video/sm712.c (find_card): Likewise.
8419 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8421 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
8422 Fixes Savannah bug #37821.
8424 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8426 Apply program name transformations at build-time rather than at
8427 run-time. Fixes Debian bug #696465.
8429 * acinclude.m4 (grub_TRANSFORM): New macro.
8430 * configure.ac: Create output variables with transformed names for
8432 * util/bash-completion.d/grub-completion.bash.in: Use
8433 pre-transformed variables for program names.
8434 * util/grub-install.in: Likewise.
8435 * util/grub-kbdcomp.in: Likewise.
8436 * util/grub-mkconfig.in: Likewise.
8437 * util/grub-mkconfig_lib.in: Likewise.
8438 * util/grub-mknetdir.in: Likewise.
8439 * util/grub-mkrescue.in: Likewise.
8440 * util/grub-mkstandalone.in: Likewise.
8441 * util/grub-reboot.in: Likewise.
8442 * util/grub-set-default.in: Likewise.
8443 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8444 * tests/util/grub-shell-tester.in: Remove unused assignment.
8445 * tests/util/grub-shell.in: Likewise.
8446 * util/grub.d/00_header.in: Likewise.
8448 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
8450 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
8452 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
8454 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
8456 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
8458 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
8459 Reported by: Eriks Latosheks <foresterlv>.
8461 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8463 * docs/grub.texi (Network): Update instructions on generating netboot
8466 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8468 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
8469 around device name if necessarry.
8471 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8473 * util/grub-install.in: Follow the symbolic link parameter added
8474 to the file command.
8476 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
8478 * util/grub-install.in: Remove stale TODO.
8480 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8482 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
8483 dynamic allocation for the bootpath buffer.
8485 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
8487 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
8490 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8492 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
8493 argument rather than font name. All users updated.
8494 (grub_gfxterm_set_window): Likewise.
8496 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
8498 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
8501 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8503 * util/getroot.c (convert_system_partition_to_system_disk): Support
8506 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
8508 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
8509 infinite loop on corrupted FS.
8511 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8513 Fix big-endian mtime.
8515 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
8516 together sec and usec.
8517 (grub_ufs_dir): Use correct byteswapping for UFS time.
8519 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
8521 Support big-endian UFS1.
8523 * Makefile.util.def (libgrubmods): Add ufs_be.c
8524 * grub-core/Makefile.core.def (ufs1_be): New module.
8525 * grub-core/fs/ufs_be.c: New file.
8526 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
8529 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
8531 * include/grub/types.h: Fix functionality unaffecting typo in
8532 GRUB_TARGET_WORDSIZE conditional macro.
8534 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
8536 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
8538 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
8540 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
8541 that /netbsd appears first (when it exists).
8543 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
8545 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
8546 Fixes Savannah bug #37558.
8548 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
8550 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
8551 description of extract_entries_configfile.
8553 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
8555 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
8557 (grub_cmd_linux): Likewise.
8558 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
8559 preferred_lifetime. Update all users.
8561 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8563 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
8564 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
8566 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
8568 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
8569 errors from grub-probe to /dev/null, not stdout.
8571 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
8573 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
8576 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
8578 * util/grub-install.in: Make the error message if $source_dir
8579 doesn't exist more useful.
8581 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
8583 Fix grub-emu build on FreeBSD.
8585 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
8586 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
8588 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
8589 implementation is currently Linux-specific.
8590 * util/getroot.c (exec_pipe): Define only on Linux or when either
8591 libzfs or libnvpair is unavailable.
8592 (find_root_devices_from_poolname): Remove unused path variable.
8594 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8596 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
8597 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
8598 should fit before end == 63.
8600 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
8602 * util/grub-setup.c (write_rootdev): Remove unused core_img
8603 parameter. Update all callers.
8604 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
8605 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
8608 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8610 * util/grub-mkconfig_lib.in (grub_tab): New variable.
8611 (grub_add_tab): New function.
8612 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
8613 * util/grub.d/10_illumos.in: Likewise.
8614 * util/grub.d/10_kfreebsd.in: Likewise.
8615 * util/grub.d/10_linux.in: Likewise.
8616 * util/grub.d/10_netbsd.in: Likewise.
8617 * util/grub.d/10_windows.in: Likewise.
8618 * util/grub.d/10_xnu.in: Likewise.
8619 * util/grub.d/20_linux_xen.in: Likewise.
8620 * util/grub.d/30_os-prober.in: Likewise.
8622 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8624 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8625 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
8626 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
8627 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
8628 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
8630 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8631 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
8633 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
8635 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
8637 Reported by: BURETTE, Bernard.
8639 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
8641 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
8644 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
8646 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
8647 IEEE1275 machines. Fixes powerpc-emu compilation.
8648 * include/grub/terminfo.h: Likewise.
8650 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8652 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
8654 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
8656 (efiemu_set_variable): Make vendor_guid a const pointer.
8658 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
8660 Don't require grub-mkconfig_lib to generate manpages for programs.
8662 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
8663 dependencies, don't add grub-mkconfig_lib.
8664 (program): Pass empty adddeps.
8665 (script): Pass grub-mkconfig_lib as adddeps.
8667 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
8669 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
8670 * util/getroot.c (grub_find_device): Likewise.
8671 (get_mdadm_uuid): Likewise.
8672 (grub_util_is_imsm): Likewise.
8673 (grub_util_pull_device): Likewise.
8674 * util/grub-probe.c (probe): Likewise.
8676 2012-09-10 Benoit Gschwind <gschwind>
8678 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
8679 (devs): Add devpath_8.
8681 2012-09-08 Peter Jones <pjones@redhat.com>
8683 * grub-core/Makefile.core.def (efifwsetup): New module.
8684 * grub-core/commands/efi/efifwsetup.c: New file.
8685 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
8686 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
8688 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
8690 2012-09-05 Jiri Slaby <jslaby@suse.cz>
8692 * configure.ac: Add SuSe path.
8694 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8698 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
8700 * util/import_gcry.py: Sort cipher_files, to make build system
8701 generation more deterministic.
8703 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8705 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
8706 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
8707 (grub_set_datetime): Likewise.
8709 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8711 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
8714 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8716 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
8718 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
8720 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
8722 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8724 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
8725 required for checkouts from bzr, but it may be useful for users or
8726 distributors wishing to update translations against a tarball
8727 distribution, and it can be helpful for the tarball to be a superset
8730 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8732 * Makefile.am (EXTRA_DIST): Add
8733 grub-core/tests/boot/linux.init-mips.S,
8734 grub-core/tests/boot/linux.init-ppc.S, and
8735 grub-core/tests/boot/linux-ppc.cfg.
8737 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8739 * grub-core/mmap/mips/loongson: Remove empty directory.
8741 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8743 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
8746 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
8748 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
8751 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
8753 * configure.ac: Strengthen the test for working -nostdinc -isystem.
8755 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8757 * po/POTFILES.in: Regenerated.
8759 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
8761 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
8762 (NetBSD): New subsection.
8764 2012-07-22 Ales Nesrsta <starous@volny.cz>
8766 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
8767 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
8769 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8771 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
8772 * util/grub.d/10_hurd.in: Add missing quoting.
8773 * util/grub.d/10_illumos.in: Likewise.
8774 * util/grub.d/10_kfreebsd.in: Likewise.
8775 * util/grub.d/10_linux.in: Likewise.
8776 * util/grub.d/20_linux_xen.in: Likewise.
8778 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8780 New command `lsefi'.
8782 * grub-core/Makefile.core.def (lsefi): New module.
8783 * grub-core/commands/efi/lsefi.c: New file.
8784 * include/grub/efi/api.h: Add more GUIDs.
8786 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8788 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
8789 (grub_bsd_elf32_hook): Likewise.
8790 (grub_bsd_elf64_size_hook): Likewise.
8791 (grub_bsd_elf64_hook): Likewise.
8792 (grub_bsd_load_elf): Likewise.
8794 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8796 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
8797 if hash function is unavailable.
8798 (dec_stream_header): Likewise.
8800 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8802 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
8805 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
8807 Fix coreboot compilation.
8809 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
8810 (grub_vga_text_init_real): ... this.
8811 (grub_vga_text_fini): Rename to ...
8812 (grub_vga_text_fini_real): ... this.
8814 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
8816 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
8818 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8820 * grub-core/lib/legacy_parse.c: Support clear and testload.
8822 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8824 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
8826 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8828 * grub-core/fs/ext2.c: Experimental support for 64-bit.
8830 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8832 * grub-core/net/tftp.c (ack): Fix endianness problem.
8833 (tftp_receive): Likewise.
8834 Reported by: Michael Davidsaver.
8836 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8838 * gentpl.py: Make mans depend on grub-mkconfig_lib.
8840 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8842 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
8843 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
8844 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
8846 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
8848 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
8850 Reported by: Stuart Hayes.
8852 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
8854 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
8856 * grub-core/Makefile.core.def (mda_text): New module.
8857 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
8858 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
8859 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
8860 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
8862 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
8863 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
8864 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
8866 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
8868 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
8870 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
8872 * grub-core/term/i386/vga_common.c: Removed.
8873 * include/grub/i386/vga_common.h: Likewise.
8874 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
8875 (grub_vga_cr_bw_read): Likewise.
8876 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
8877 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
8878 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
8879 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
8880 grub_vga_cr_read/grub_vga_cr_write.
8881 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
8883 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8885 * configure.ac: Bump version to 2.00.
8886 * grub-core/normal/main.c (features): Add feature_200_final.
8888 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8889 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
8891 * NEWS: Fix unclarity and language mistakes.
8893 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8895 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
8896 additional size to 3 pages.
8897 Reported by: Stuart Hayes.
8899 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8901 * NEWS: Add 2.00 entry.
8903 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8905 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
8906 put explicit "/" for empty path.
8907 (wildcard_expand): Improve dprintf.
8909 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
8911 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
8912 it's equal to currnode. This can happen with "" symlink.
8914 2012-06-27 Yves Blusseau <blusseau@zetam.org>
8916 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
8917 echo shell command by printf command.
8919 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8921 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
8922 the value returned by firmware is the maximal position, not diumension.
8923 (grub_terminfo_output_state): Use a more sane fallback.
8925 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8927 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
8929 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8931 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
8932 frequency to 150 MHz.
8934 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8938 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
8940 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
8942 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
8944 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8946 Handle slash in HFS label.
8948 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
8949 (grub_hfs_dir): Tanslate slash.
8950 (grub_hfs_label): Don't translate slash.
8952 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8954 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
8955 network protocol listing since it introduces problematic dependency on
8958 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8960 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
8962 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8964 Init video early on yeeloong to avoid being rebooted by watchdog.
8966 * grub-core/Makefile.am (gensm712): New target.
8967 (sm712_start.S): Likewise.
8968 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
8969 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
8970 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
8972 * include/grub/vga.h: Move registry definitions to...
8973 * include/grub/vgaregs.h: ... here.
8975 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
8977 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
8980 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8982 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
8983 platforms with firmware disk drivers in the core.
8985 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8987 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
8988 informative verbose message.
8989 (read_lv): Handle 64-bit segment size.
8991 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8993 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
8995 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
8997 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
8998 character but still remove trainling spaces.
8999 (grub_fat_label): Ignore archive flag.
9001 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9003 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
9004 cast between linux_kernel_header and linux_kernel_params.
9006 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9008 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
9010 (grub_raid6_recover_func_t): Likewise.
9011 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
9012 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
9014 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
9016 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
9018 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9022 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
9023 [__NetBSD__]: Add explicit cast before bitshift.
9025 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9027 * configure.ac: Bump to 2.00~rc1.
9029 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9031 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
9034 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9035 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
9037 * docs/grub.texi: Fix search syntax.
9038 (Multi-boot manual config): Put msdos rather than GPT example.
9039 Grammar corrections.
9041 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
9043 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
9045 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9047 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
9049 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9051 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
9052 message on double free. Put the value of magic in case of mismatch.
9054 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9056 Speed-up video on yeeloong.
9058 * grub-core/video/sm712.c (framebuffer): Remove render_target and
9060 (grub_video_sm712_video_fini): Unmap cached_ptr.
9061 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
9062 (grub_video_sm712_set_active_render_target): Removed.
9063 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9064 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
9067 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9069 Avoid flushing the same line multiple times on loongson.
9071 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
9072 Step in 32 bytes and not 1 byte.
9073 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
9076 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9078 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
9081 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9083 Implement flow control for http.
9085 * grub-core/net/http.c (parse_line): Handle response 206.
9086 (http_receive): Stall if too many packets are in the queue.
9087 (http_establish): Fix range header.
9088 (http_seek): Fix double free.
9089 (http_close): Likewise.
9090 (http_packets_pulled): New function.
9091 (grub_http_protocol): Set http_seek
9092 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
9093 (ack_real): Set window depending on i_stall.
9094 (grub_net_send_tcp_packet): Likewise.
9095 (grub_net_tcp_stall): New function.
9096 (grub_net_tcp_unstall): Likewise.
9097 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
9098 (grub_net_tcp_unstall): Likewise.
9100 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9102 * grub-core/net/tftp.c: Decrease stall to 50 packets.
9104 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9106 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
9108 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9110 * tests/util/grub-shell.in: Fix a typo.
9112 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9114 Implement flow control for tftp.
9116 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
9117 packets but stop only if stop condition is satisfied.
9118 (grub_net_fs_read_real): Call packets_pulled after real read. Use
9119 `stall' instead of `eof' as stop condition.
9120 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
9121 (http_err): Likewise.
9122 * grub-core/net/tftp.c (ack): Replace the first argument with data
9124 (tftp_receive): Stall if too many packets are in wait queue.
9125 (tftp_packets_pulled): New function.
9126 (grub_tftp_protocol): Set packets_pulled.
9127 * include/grub/net.h (grub_net_packets): New field count.
9128 (grub_net_put_packet): Increment count.
9129 (grub_net_remove_packet): Likewise.
9130 (grub_net_app_protocol): New field `packets_pulled'.
9131 (grub_net): New field `stall'.
9133 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
9135 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
9136 sync part to handle them.
9138 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9140 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
9141 * grub-core/net/drivers/ieee1275/ofnet.c
9142 (grub_ieee1275_net_config_real): Likewise.
9144 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9146 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
9147 the direct route for server/gateway.
9149 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9151 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
9152 IP address to server name since we may not hame the DNS.
9154 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9156 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
9157 freeing random buffer on failure.
9158 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
9160 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9162 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
9164 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9166 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
9168 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
9169 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
9170 Handle malloc error correctly.
9172 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9174 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
9177 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
9179 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
9182 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9184 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
9185 none is explicitly specified.
9187 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9189 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
9192 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9194 Respect netmask from bootp/dhcp.
9196 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
9197 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
9198 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
9200 (grub_net_add_ipv4_local): ... this.
9201 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
9202 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
9203 (grub_net_add_ipv4_local): New proto.
9205 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9207 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
9208 determining EFI memory map size.
9210 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9212 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
9214 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9216 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
9217 when looking for partition separator.
9219 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9221 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
9224 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9226 Restructure FAT driver to avoid hook in label reading as it hits a
9229 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
9230 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
9231 (grub_fat_iterate_dir): Split into ...
9232 (grub_fat_iterate_init): ... this, ...
9233 (grub_fat_iterate_fini): ... this, ...
9234 (grub_fat_iterate_dir_next): ... and this. All users updated.
9236 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
9238 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
9239 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
9240 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
9241 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
9242 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
9243 New fields last_key and last_key_time.
9244 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
9245 extended key-esc into extended key-extended key.
9247 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9249 Avoid unnecessary memcpy of whole video buffer.
9251 * grub-core/video/fb/video_fb.c (dirty): New struct.
9252 (framebuffer): Add members current_dirty and previous_dirty.
9253 (dirty): New function.
9254 (grub_video_fb_fill_rect): Update dirty.
9255 (common_blitter): Likewise.
9256 (grub_video_fb_scroll): Likewise.
9257 (doublebuf_blit_update_screen): Copy only dirty part.
9258 (doublebuf_pageflipping_update_screen): Likewise.
9259 (grub_video_fb_doublebuf_blit_init): Init dirty.
9260 (doublebuf_pageflipping_init): Likewise.
9261 (grub_video_fb_setup): Likewise.
9263 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9265 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
9268 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9270 Fix wildcard regexp dot and other special characters handling.
9271 Reported by: Robert Mabee.
9273 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
9274 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
9275 (split_path): Trigger expansion on '?'.
9276 (unescape): New function.
9277 (wildcard_expand): Unescape parts copied without globbing.
9278 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
9279 (grub_script_arglist_to_argv): Don't unescape expansions.
9281 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9283 * include/grub/net.h (grub_net_card): New member txbufsize.
9284 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
9285 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9286 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
9287 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
9289 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
9290 compatible property to check for macs. Set
9291 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
9292 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
9293 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
9294 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
9295 (send_card_buffer): Use txbuf.
9296 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
9297 nested function out of the parent while on it.
9299 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9301 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
9303 (grub_ieee1275_net_config_real): Fix config pointer.
9305 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9307 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
9308 filename parsing to non-block devices.
9310 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
9312 * grub-core/kern/device.c (grub_device_open): Remove dead code.
9314 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9316 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
9319 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9321 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
9322 UUID search command even if hints probing failed.
9324 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
9326 * po/POTFILES.in: Regenerated.
9328 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
9330 Speed-up video on fuloong.
9332 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
9334 (grub_pci_device_unmap_range): Handle non-cached address.
9335 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
9337 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
9338 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
9339 (grub_video_sis315pro_set_active_render_target): Removed.
9340 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
9341 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
9342 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
9344 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
9347 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
9349 * docs/grub.texi (Multi-boot manual config): New section.
9351 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9353 Avoid slow read-back from VRAM.
9355 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9357 * grub-core/video/fb/video_fb.c
9358 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
9359 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
9360 (front_target): Remove front_target. Add pages.
9361 (grub_video_fb_init): Skip setting front_pages.
9362 (grub_video_fb_fini): Likewise.
9363 (doublebuf_blit_update_screen): Use pages.
9364 (grub_video_fb_doublebuf_blit_init): Likewise.
9365 (doublebuf_pageflipping_init): Allocate offscreen buffer.
9366 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
9367 (grub_video_fb_setup): Prefer doublebuffing.
9369 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9371 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
9374 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9378 * tests/util/grub-shell.in: Handle loongson.
9379 * tests/partmap_test.in: Add loongson to the list of platform using ATA
9381 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
9382 Reboot instead of shutdown if REBOOT is defined.
9384 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9386 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
9387 sized ports since unlike on real hardware qemu supports only 32-bit
9390 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
9392 * Makefile.util.def (grub-mkrescue): Enable on loongson.
9393 * util/grub-mkrescue.in: Handle loongson.
9395 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
9397 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
9398 Set is_part appropriately.
9399 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
9400 names. Canonicalize partition without full disk.
9402 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9404 Revert usb-quiesce since it's wrong.
9406 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
9407 (grub_ofdisk_init): Don't do quiesce.
9409 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9411 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
9412 PowerMac workaround to Xserves as well.
9413 Information supplied by: Benjamin Herrenschmidt.
9415 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9417 Don't assume that beginning address is also the entry point on ppc.
9419 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
9420 (grub_linux_boot): Use linux_entry.
9421 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
9422 (grub_linux_load64): Likewise.
9424 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9426 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
9428 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9430 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
9431 needlessly lose the console.
9433 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
9435 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
9438 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9440 Remove non-functional EFI grub_get_rtc. Put a better fatal message
9441 than current grub_get_rtc() not implemented when booted with
9442 coreboot without TSC.
9444 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
9445 Add machine/time.h to kernel headers on loongson.
9446 * grub-core/Makefile.core.def (kernel): Remove
9447 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
9448 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
9449 (grub_get_rtc): Likewise.
9450 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
9451 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
9452 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
9453 * grub-core/kern/i386/tsc.c (grub_tsc_init)
9454 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
9455 rather than installing known non-working time source.
9456 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
9457 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
9458 * include/grub/time.h: Don't include machine/time.h.
9459 * include/grub/efi/time.h: Removed.
9460 * include/grub/i386/efi/time.h: Likewise.
9461 * include/grub/i386/ieee1275/time.h: Likewise.
9462 * include/grub/powerpc/ieee1275/time.h: Likewise.
9463 * include/grub/sparc64/ieee1275/time.h: Likewise.
9464 * include/grub/x86_64/efi/time.h: Likewise.
9466 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
9468 Remove dot on i and j when combining with above diacritics.
9470 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
9472 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
9473 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
9474 with dotless variants when any combining above is present.
9476 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9478 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
9479 text and not binary.
9481 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9483 Stop polling as soon as we have the packet we were waiting for.
9485 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
9487 * grub-core/net/arp.c (have_pending): New var.
9488 (pending_req): Likewise.
9489 (grub_net_arp_send_request): Fill pending_req and use have_pending as
9491 (grub_net_arp_receive): Set have_pending.
9492 * grub-core/net/dns.c (recv_data): New field stop.
9493 (recv_hook): Set stop.
9494 (grub_net_dns_lookup): Init stop and use as stop condition.
9495 * grub-core/net/http.c (http_establish): Use headers_recv as stop
9497 * grub-core/net/net.c (grub_net_poll_cards): New argument
9498 stop_condition. Stop when it goes true.
9499 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
9501 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
9503 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9505 Keep TX and RX buffers on EFI rather than always allocate new ones.
9507 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
9508 card. All users updated.
9509 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
9510 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
9511 (get_card_packet): Likewise.
9512 (grub_efinet_findcards): Init new fields.
9514 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9516 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
9517 compilation error on sparc64.
9519 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9521 Use ITC on IA64 rather than broken routine based on daytime.
9523 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
9525 (grub_get_rtc) [__ia64__]: Likewise.
9526 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
9527 (get_itc): New function.
9528 (grub_rtc_get_time_ms): Likewise.
9529 (grub_machine_init): Calibrate ITC.
9530 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
9531 Keep only on non-ia64. Don't export since it's broken and used only
9532 if TSC is unavailable.
9534 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
9536 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
9538 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
9539 Skip if parent is unused.
9541 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9543 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
9545 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9547 Fix wildcard escaping.
9549 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
9550 * grub-core/script/execute.c (wildcard_escape): .. to here.
9552 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
9553 * grub-core/script/execute.c (wildcard_unescape): .. to here.
9555 * grub-core/script/execute.c (gettext_append): Always escape.
9556 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
9557 * grub-core/script/yylex.l: Don't cut away the escaping.
9558 * tests/grub_script_echo1.in: Add tests with wildcard.
9560 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9562 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
9563 (ftdi_hw_configure): Likewise.
9564 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
9566 (real_config): Handle 1.5 stop bits.
9567 (pl2303_hw_configure): Likewise.
9569 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9571 * Makefile.am: Add ppc linux bootcheck.
9572 * grub-core/tests/boot/linux-ppc.cfg: New file.
9573 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
9575 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9577 * tests/grub_script_expansion.in: Skip network protocols.
9579 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9581 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
9583 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9585 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
9589 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9591 ESCC serial driver for conducting sautomated tests in qemu.
9592 Not tested on real hardware.
9594 * include/grub/serial.h (grub_serial_port): New field escc_desc.
9595 * grub-core/term/ieee1275/escc.c: New file.
9596 * grub-core/Makefile.core.def (escc): New module.
9598 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9600 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
9602 (serial_hw_fetch): Don't read invalid handle.
9603 (serial_hw_put): Don't write into invalid handle.
9605 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9607 Add a 1.5 stop bits value.
9609 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
9610 * include/grub/serial.h (grub_serial_stop_bits_t): Add
9611 GRUB_SERIAL_STOP_BITS_1_5.
9613 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
9615 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
9616 value rather than let it uninited.
9618 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9620 * grub-core/commands/wildcard.c (+check_file): New function.
9621 (wildcard_expand): Don't expand to non-existing files, expand with
9622 suffix and not attempt to expand if not needed.
9624 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9626 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
9627 out of partitions containing other partitions.
9629 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9631 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
9632 on some qemu versions with GRUB.
9634 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
9636 (grub_openbsd_bootarg_pcibios): New struct.
9637 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
9640 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9642 * tests/util/grub-shell.in: Trim firmware output on EFI.
9644 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9646 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
9647 and coreboot since it's already in kernel.
9649 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9651 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
9652 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
9653 to here. New return value start. All users updated.
9654 Recursively scan linear mappings.
9655 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
9657 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
9658 Use grub_util_get_dm_node_linear_info.
9659 * util/getroot.c (convert_system_partition_to_system_disk): Use
9660 grub_util_info rather than grub_dprintf.
9661 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
9663 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9665 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
9667 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
9668 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
9670 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
9672 * include/grub/types.h (grub_set_unaligned64): New function.
9673 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
9676 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9678 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
9679 (grub_ofdisk_fini): Quiesce USB devices.
9681 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9683 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
9686 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9688 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
9690 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9692 * grub-core/disk/pata.c (grub_pata_pio_read)
9693 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
9694 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
9696 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9698 Extend automated tests to qemu-mips.
9700 * Makefile.am: reorganise tests and enable qemu-mips.
9701 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
9702 * grub-core/tests/boot/linux.init-mips.S: New file.
9703 * tests/partmap_test.in: Handle ata0 disks.
9704 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
9707 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9709 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
9711 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
9714 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9716 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
9717 (grub_halt): Likewise.
9718 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
9720 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9722 * grub-core/term/serial.c (grub_serial_register)
9723 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
9724 the behaviour in line with x86 platforms.
9726 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9728 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
9729 (grub_ata_strncpy): Likewise.
9730 (grub_ata_identify): Add missing byteswaps.
9732 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9734 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
9736 (screen_read_char): Likewise.
9737 (grub_vga_text_cls): Likewise.
9739 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9741 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
9743 (make_file_path): Likewise.
9745 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
9747 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
9749 Tested by: Paulo Flabiano Smorigo.
9750 Crucial information about API supplied by: Coleen <Last name unknown>.
9751 Reviewed by: Coleen <Last name unknown>.
9753 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9755 * util/grub-mkimage.c: Disable -Wcast-align.
9757 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9759 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
9762 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9764 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
9766 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9768 * util/grub-probe.c (escape_of_path): Fix double free.
9770 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9772 * grub-core/commands/videoinfo.c (hook): Show pitch.
9774 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9776 * util/grub.d/20_linux_xen.in: Skip xen-syms.
9778 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
9780 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
9781 (probe): Add ieee1275 to OFW devices.
9783 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9785 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
9787 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
9789 Handle IBM OFW path.
9791 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
9793 (of_path_of_scsi): Handle vdevice.
9795 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9797 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
9798 Allocate in multiples of 16 to avoid adding a few bytes free region the
9801 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
9803 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
9804 Allocate in multiples of 16 to avoid adding a few bytes free region the
9806 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
9808 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9810 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
9812 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
9813 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
9815 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
9817 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
9819 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9821 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
9822 resulted in \\ at the end of the line.
9824 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9826 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
9827 (grub_parser_cmdline_state): Likewise.
9828 (grub_parser_split_cmdline): Likewise.
9830 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9832 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
9833 /dev/root and /dev/dm-*.
9835 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9837 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
9838 fix partially stale display.
9840 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9842 * grub-core/normal/menu_entry.c (backward_char): Use right line for
9845 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
9847 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
9848 Fix MBR remapping workaround.
9849 (grub_util_biosdisk_read) [__linux__]: Likewise.
9851 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
9853 * util/grub-install.in: Check for ieee1275 and not ieee1276.
9855 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9857 * configure.ac: Bump to beta6.
9859 2012-05-31 Christer Weinigel <christer@weinigel.se>
9861 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
9863 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9865 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
9866 (grub_cmd_linux): Likewise.
9868 2012-05-31 Christer Weinigel <christer@weinigel.se>
9872 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
9873 (GRUB_EHCI_MULT_TWO): Likewise.
9874 (GRUB_EHCI_MULT_THREE): Likewise.
9875 (GRUB_EHCI_CMASK_MASK): New enum value.
9876 (GRUB_EHCI_SMASK_MASK): Likewise.
9877 (GRUB_EHCI_CMASK_OFF): Likewise.
9878 (GRUB_EHCI_SMASK_OFF): Likewise.
9879 (grub_ehci_pci_iter): Enable periodic schedule.
9880 (grub_ehci_parse_notrun): Likewise.
9881 (grub_ehci_restore_hw): Likewise.
9882 (grub_ehci_setup_qh): Set flags for low speed transfers.
9883 (grub_ehci_find_qh): Use periodic list for low speed.
9884 (grub_ehci_setup_transfer): Check periodic queue as well.
9885 (grub_ehci_check_transfer): Likewise.
9886 (grub_ehci_cancel_transfer): Cancel periodic transfer.
9888 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
9890 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
9893 2012-05-31 Peter Jones <pjones@redhat.com>
9895 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
9896 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
9897 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
9899 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
9901 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
9902 uninited variable. Allocate at least setup_sects.
9904 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9906 Fix handling of EFI with big memory maps.
9908 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
9909 (real_mode_mem): Likewise.
9910 (real_mode_target): Likewise.
9911 (real_mode_pages): Likewise.
9912 (prot_mode_pages): Likewise.
9913 (linux_params): New var.
9914 (linux_cmdline): Likewise.
9915 (free_pages): Don't set real mode variables.
9916 (allocate_pages): Don't allocate real mode memory.
9917 (grub_e820_add_region): Remove the limit.
9918 (grub_linux_boot): Allocate and copy real mode memory.
9919 (grub_linux_unload): Free linux_cmdline.
9920 (grub_cmd_linux): Use temporary storage for parameters.
9921 (grub_cmd_initrd): Likewise.
9922 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
9923 (linux_kernel_params): Make it 1K big.
9925 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9927 * Makefile.util.def: Remove -Wno-format.
9928 * grub-core/Makefile.core.def: Likewise.
9930 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9932 * tests/cmp_unit_test.c: Add missing failure message.
9933 * tests/example_unit_test.c: Likewise.
9934 * tests/printf_unit_test.c: Likewise.
9936 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
9938 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
9939 relaxation of protective MBR requirements.
9941 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9943 * configure.ac: Add condition for COND_HOST_XNU.
9944 * Makefile.util.def (10_xnu): New script.
9945 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
9947 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9949 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
9952 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
9954 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
9955 Binary on other platforms stays identical.
9957 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9959 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
9962 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9964 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
9966 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9968 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
9969 rather than defining size_t ourselves to avoid conflict.
9971 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9973 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
9974 initialisation to avoid __bzero reference.
9976 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9978 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
9980 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
9981 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
9982 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
9983 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
9984 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
9986 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9988 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
9989 * grub-core/kern/misc.c: Likewise.
9990 * grub-core/loader/i386/xnu.c: Likewise.
9991 * include/grub/i386/tsc.h: Likewise.
9992 * include/grub/symbol.h: Likewise.
9994 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
9996 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
9997 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
10000 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10002 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
10003 Implement Apple flavour.
10004 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
10006 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10008 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
10009 (memmove) [__APPLE__]: Likewise.
10010 (memcpy) [__APPLE__]: Likewise.
10011 (memset) [__APPLE__]: Likewise.
10012 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
10013 (memmove) [__APPLE__]: Likewise.
10014 (memcpy) [__APPLE__]: Likewise.
10015 (memset) [__APPLE__]: Likewise.
10017 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
10019 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
10020 dependency discard.
10022 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10024 * grub-core/normal/main.c (read_config_file): Provide config_file and
10026 * util/grub.d/41_custom.in: Use config_directoy when available.
10028 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10030 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
10031 (grub_bfs_dir): Likewise.
10033 2012-05-27 Peter Jones <pjones@redhat.com>
10035 The old code gives arguments to a printf function which can't work
10036 correctly, and the compiler complains.
10038 * grub-core/tests/example_functional_test.c (example_test): Add
10040 * grub-core/tests/lib/test.c (add_failure): Rewrite.
10041 * include/grub/test.h (grub_test_assert_helper): New declaration.
10042 (grub_test_assert): Use grub_test_assert_helper.
10044 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10046 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
10047 (exfctest): ... this to avoid overlong filenames.
10050 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10052 Handle "." and ".." on squashfs.
10054 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
10055 Make inode numbers into stack.
10056 (grub_squash_read_symlink): Use stack.
10057 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
10058 (make_root_node): Fill stack.
10059 (grub_squash_open): Use stack.
10061 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10063 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
10066 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10068 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
10069 stderr on test calls.
10071 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10073 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
10075 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10077 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
10079 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10081 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
10084 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10086 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
10087 (grub_hfsplus_iterate_dir): Add "." and "..".
10089 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10091 * grub-core/fs/cpio.c (canonicalize): Handle "..".
10092 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
10094 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10096 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
10097 (find_path): Handle "." and "..".
10099 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
10101 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
10102 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
10103 (grub_affs_iterate_dir): Handle hardlinks.
10105 2012-05-26 Matthew Garrett <mjg@redhat.com>
10107 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
10108 (grub_efi_console_fini): Likewise.
10109 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
10110 (grub_video_gop_fill_mode_info): Rename to ...
10111 (grub_video_gop_fill_real_mode_info): ... this.
10112 (grub_video_gop_fill_mode_info): New function.
10113 (grub_video_gop_setup): Setup double framebuffer.
10114 (grub_video_gop_get_info_and_fini): Use original framebuffer.
10116 (grub_video_gop_swap_buffers): Copy framebuffer.
10117 (grub_video_gop_fini): Free offscreen buffer.
10118 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
10120 (grub_efi_gop_blt_pixel): New struct.
10122 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10124 * gentpl.py: Remove error disabling for objconv.
10126 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10128 * configure.ac: Remove -Wunitialized as it's not available on older
10131 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
10133 Fix extent overflow comparator.
10135 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
10136 (grub_hfsplus_read_block): Set type.
10137 (grub_hfsplus_cmp_extkey): Compare type.
10139 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
10141 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
10143 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10145 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
10148 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10150 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
10151 (dejavu_bold_14.pf2): New target.
10153 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
10155 * configure.ac: Fix djvu font detection.
10157 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10159 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
10160 ext* instead of ext2.
10162 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
10164 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
10167 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
10169 * docs/grub-dev.texi: Remove dot from .png.
10171 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10173 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
10174 protective entry in any slot.
10175 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
10176 if protective entry is found in any slot.
10178 Protective entry in non-first slot make no sense but is a widespread
10181 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10183 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
10185 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10187 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
10189 (grub_reiserfs_open): Don't free root.
10191 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
10193 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
10194 after freeing for safety.
10196 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10198 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
10199 Reported by: Jordan Uggla.
10201 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
10203 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
10204 actual implementation. Specifically, clarify that the grub menu will
10205 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
10208 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
10210 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
10213 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10215 Remove unjustified hard dependency of normal.mod on gfxterm.
10217 * include/grub/term.h (grub_term_output): New member fullscreen.
10218 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
10219 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
10220 (grub_gfxterm): Set .fullscreen.
10221 * grub-core/normal/menu.c (menu_init): Use fullscreen.
10222 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
10224 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10226 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
10227 mentioning possible problems with non-ASCII (non-compliant) ISOs.
10228 Mention case-insensitive AFFS, SFS and JFS.
10230 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10232 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
10234 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
10236 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10239 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
10241 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
10242 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
10244 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10246 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
10247 (grub_jfs_mount): Fill caseins.
10248 (grub_jfs_find_file): Respect caseins.
10250 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10252 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
10255 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
10257 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
10258 New argument origpath. All users updated.
10260 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10262 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
10263 (read_attr): Ensure that we read start of possibly compressed block.
10265 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
10267 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
10268 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
10271 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10273 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
10274 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
10275 (dejavu.pf2): Replace with ...
10276 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
10279 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10281 * util/grub.d/20_linux_xen.in: Add missing line.
10283 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
10285 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
10286 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
10287 (grub_utf16_to_utf8): Likewise.
10289 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10291 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
10292 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
10293 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10294 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
10295 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
10296 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
10298 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10300 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
10303 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
10305 * grub-core/fs/udf.c (read_string): Bail out on size=0.
10306 (grub_udf_read_symlink): Handle read_string failure.
10308 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10310 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
10313 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10315 Fix handling of UDF symlinks.
10317 * grub-core/fs/udf.c (read_string): New argument outbuf.
10319 (grub_ufs_read_symlink): Rename to ...
10320 (grub_udf_read_symlink): ... this. All users updated.
10321 Handle symlinks with more than one component.
10323 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10325 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
10326 symlinks. Replace leading colon with a slash.
10328 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10330 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
10333 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10335 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
10336 match in inner node.
10338 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
10340 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
10341 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
10342 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
10343 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
10344 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
10345 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
10346 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
10347 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
10348 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
10350 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10352 Use grub-probe and not cmp to check that disk is empty.
10354 * util/grub-install.in: Use grub-probe for zero-check.
10355 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
10356 (probe): Handle PRINT_ZERO_CHECK.
10357 (argp_parser): Handle -t zero_check.
10359 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
10361 Flush block cache on adding disk to device map.
10363 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
10364 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
10366 (read_device_map): Likewise.
10367 (open_device): Flush on opening.
10369 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10371 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
10372 (handle_symlink): Fix off-by-one error.
10373 Canonicalize the target.
10374 (grub_cpio_dir): Canonicalize the name.
10377 (grub_cpio_open): Canonicalize the name.
10379 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10381 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
10384 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10386 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
10387 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
10389 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10391 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
10392 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
10395 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10397 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
10400 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
10402 Fix UFS1 big file support.
10404 * grub-core/fs/ufs.c (INODE): Removed.
10405 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
10407 (INODE_MODE): Simplify.
10408 (grub_ufs_inode): Use uint64_t for size and not int64_t.
10409 (grub_ufs_lookup_symlink): Don't use INODE.
10411 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10413 Fix minixfs with non-power-of-two blocks since it's supported by minix.
10415 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
10416 (grub_minix_data): Replace log_block_size with block_size.
10417 (grub_minix_read_file): Use block_size but avoid 64-bit division.
10418 (grub_minix_mount): Fill block_size.
10420 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10422 * configure.ac: Bump to beta5.
10424 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10426 Fix wrapped HFS+ handling.
10428 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
10429 blocks_start. All users updated.
10430 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
10432 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
10434 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10436 Fix long symlinks on reiserfs.
10438 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
10439 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
10440 (grub_reiserfs_iterate_dir): Save size for non-directories.
10441 (grub_reiserfs_open): Don't reread stat block as we already know the
10443 (grub_reiserfs_read): Split into...
10444 (grub_reiserfs_read_real): ... and ...
10445 (grub_reiserfs_read): ...this.
10447 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
10449 Fix non-indexed JFS.
10451 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
10452 (grub_jfs_data): New field namecomponentlen.
10453 (grub_jfs_mount): Fill namecomponentlen.
10454 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
10456 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10458 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
10459 * tests/grub_script_echo1.in: Add tests.
10461 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10463 * util/grub-install.in: Ignore empty devicetree directory.
10465 2012-05-08 Bean <bean123ch@gmail.com>
10467 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
10469 (free_rsm): Free header as well.
10470 (free_old_fragments): Fix memory leak.
10471 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
10472 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
10473 (destroy_pq): Likewise.
10474 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
10476 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10478 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
10479 resulting hash as a precaution.
10481 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10483 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
10484 '_' in variable names.
10485 * grub-core/net/net.c (grub_net_network_level_interface_register):
10488 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10490 Fix AFFS with non-512B blocks.
10492 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
10493 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
10494 (grub_affs_data): Replace blocksize with log_blocksize.
10495 (grub_affs_read_block): Fix non-512B blocks.
10496 (grub_affs_read_symlink): Likewise.
10497 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
10498 (grub_affs_read): Fix non-512B blocks.
10499 (grub_affs_label): Likewise.
10500 (grub_affs_mtime): Likewise.
10501 (grub_affs_mount): Fix block detection routine.
10503 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
10505 Add filesystem mtime to AFFS.
10507 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
10508 (aftime2ctime): New function.
10509 (grub_affs_dir): Use aftime2ctime.
10510 (grub_affs_label): Fix return value.
10511 (grub_affs_mtime): New function.
10512 (grub_affs_fs): Add mtime.
10514 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10516 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
10519 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10521 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
10524 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10526 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
10528 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
10530 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
10532 (FLAGS_CASE_SENSITIVE): New enum value.
10533 (cache_entry): New struct.
10534 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
10535 cache_size and cache.
10536 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
10537 Add log_blocksize and fshelp_flags.
10538 (grub_sfs_read_extent): Handle non-512 blocks.
10539 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
10540 (grub_sfs_read_file): Handle non-512 blocks.
10541 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
10543 (grub_sfs_read_symlink): Handle non-512 blocks.
10544 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
10545 (grub_sfs_dir): Free cache.
10546 (grub_sfs_close): Likewise.
10548 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10550 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
10553 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10555 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
10557 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10559 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
10561 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
10563 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
10564 (grub_sfs_read_extent): Likewise.
10565 (grub_sfs_read_block): Likewise.
10566 (grub_sfs_mount): Likewise.
10567 (grub_sfs_iterate_dir): Likewise.
10568 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
10569 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
10571 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10573 Fix errors on compressed NTFS with 512B clusters.
10575 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
10577 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
10579 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
10580 Relax check for inline extents.
10581 (ntfscomp): Return correct -1 on error and not 0.
10583 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10585 * util/grub-install.in: Fix handling of prefix containing spaces.
10587 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10589 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
10590 (grub_squash_read_data): Fix offset byte-swapping.
10592 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10594 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
10595 per common usage and preffered in several parts of code.
10596 (grub_memcmp): Likewise.
10597 (grub_strncmp): Likewise.
10598 * include/grub/misc.h (grub_strcasecmp): Likewise.
10599 (grub_strncasecmp): Likewise.
10600 * Makefile.util.def (cmp_test): New test.
10601 (grub_script_strcmp): Likewise.
10602 * tests/cmp_unit_test.c: New file.
10603 * tests/grub_script_strcmp.in: Likewise.
10604 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
10606 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10608 * include/grub/pci.h: Move enums into no-asm part.
10610 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10612 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
10614 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
10616 * util/getroot.c (find_hurd_root_device): Try to make error message
10617 and comments to translators clearer.
10619 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10621 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
10623 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10625 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
10628 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10630 * docs/grub.cfg: Update.
10632 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10634 * docs/grub.texi (PXE): Remove not present variables.
10636 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
10638 * grub-core/net/net.c (defserver_set_env): New function.
10639 (defserver_get_env): Likewise.
10640 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
10642 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10644 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
10647 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10649 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
10650 * grub-core/kern/emu/hostdisk.c: Likewise.
10652 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
10654 Handle hurd userspace partitions.
10656 * util/getroot.c (find_hurd_root_device): New function.
10657 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
10659 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10661 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
10663 Reported by: Bastian Blank.
10665 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10667 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
10668 crossing page boundary.
10670 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10672 Fix B-tree search in BFS, especially in presence of non-ASCII
10675 * grub-core/fs/bfs.c (bfs_strcmp): New function.
10676 (find_in_b_tree): Use standard bsearch + btree algorithm.
10678 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10680 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
10683 2012-05-03 Matthew Garrett <mjg@redhat.com>
10684 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10686 Suspend broadcom cards in order to stop their DMA.
10688 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
10689 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
10690 (pci): Don't build on x86 EFI.
10691 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
10692 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
10694 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
10695 stop_broadcom if running on EFI.
10696 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
10697 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
10698 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
10699 (grub_pci_find_capability): New proto.
10701 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10703 * docs/grub.texi: Remove dot from the extension as it apparently
10704 doesn't work with some makeinfo versions.
10706 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10708 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
10709 with GRUB expectance.
10711 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10713 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
10715 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10717 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
10718 zero after directory block since last entry may be not 0-terminated if
10719 it ends on block boundary. Use continue instead of if spanning whole
10722 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10724 Support 4K sectors UDF inline files.
10726 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
10727 (grub_udf_extended_file_entry): Likewise.
10728 (grub_fshelp_node): Name the anonymous union. Put block at the end.
10730 (get_fshelp_size): New function.
10731 (grub_udf_read_icb): Read whole block.
10732 (grub_udf_iterate_dir): Likewise.
10733 (grub_udf_dir): Likewise.
10734 (grub_udf_open): Likewise.
10736 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10738 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
10740 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10742 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
10743 inline symlinks in addition to workaround.
10745 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10747 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
10749 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10751 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
10753 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
10755 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
10757 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10759 Fix reiserfs big seek times.
10761 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
10762 exact. All users updated.
10763 (grub_reiserfs_read): Use nearest btree search for seeking.
10764 Fix return value on error.
10766 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10768 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
10770 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
10771 * docs/grub.texi: Update menuentry description.
10773 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10775 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
10776 crash when embedding onto filesystem.
10778 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
10780 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
10783 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10785 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
10787 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10789 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
10792 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10793 2012-05-01 Bean <bean123ch@gmail.com>
10795 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
10797 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10799 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
10800 Special behaviour for len = 0 to read whole file isn't used anywhere and
10801 can cause buffer ovewrflows in several places.
10803 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10805 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
10807 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10809 Handle RAIDZ on non-512B sectors.
10811 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
10812 max_children_ashift.
10813 (fill_vdev_info_real): Fill max_children_ashift.
10814 (read_device): Use max_children_ashift.
10816 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10818 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
10820 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10822 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
10824 * docs/grub.texi: Update device.map parts.
10826 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
10828 Don't scan into non-diskfilter devices having diskfilter names.
10830 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
10831 (scan_disk): New argument accept_diskfilter. Fix recursion depth
10833 (scan_disk_hook): New function.
10835 2012-04-29 Bean <bean123ch@gmail.com>
10837 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
10840 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
10842 * configure.ac: Detect starfield theme font path
10843 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
10845 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10847 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
10848 geometry on serial consoles.
10850 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10852 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
10853 because of network consoles.
10855 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10857 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
10860 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10862 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
10863 falls on Q syndrom.
10865 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
10867 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
10868 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
10870 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10872 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
10873 Allocate at lest 8192 for temporary buffer as required for lzo.
10875 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10877 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
10878 to cluster_bits, since it's already added in.
10879 (grub_fat_read_data): Likewise.
10881 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
10883 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
10884 as long as cluster size is multiple of 512 bytes.
10886 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10888 * util/grub-mkrescue.in: Fix locale directory.
10890 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
10892 * grub-core/kern/emu/hostdisk.c (map): Make static.
10894 2012-04-23 Bean <bean123ch@gmail.com>
10896 * util/grub-fstest.c (fstest): Add missing break.
10898 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
10902 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
10903 not define nr variable.
10904 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
10905 find_root_devices_from_poolname, find_root_devices_from_libzfs,
10906 grub_find_device): Do not define.
10908 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10910 Fix kfreebsd compile and behaviour.
10912 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
10914 * util/getroot.c: Fix wait.h include.
10915 (grub_guess_root_devices): Error if grub_find_device fails.
10916 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
10917 (grub_util_get_dev_abstraction): Likewise.
10918 (grub_util_pull_device): Likewise.
10919 (grub_util_get_grub_dev): Likewise.
10920 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
10922 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
10924 Fix and unify wholedisk detection.
10926 * util/getroot.c (convert_system_partition_to_system_disk): New argument
10927 is_part. All users updated.
10928 (device_is_wholedisk): Removed.
10929 (grub_util_biosdisk_get_grub_dev): Use is_part.
10931 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10933 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
10936 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10938 * configure.ac: Bump to beta4.
10940 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10942 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
10943 --fs-uuid --set UUID syntax.
10945 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10947 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
10950 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10952 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
10954 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
10956 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
10958 2012-04-18 Mike Gilbert <floppym@gentoo.org>
10960 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
10962 2012-04-18 Bean <bean123ch@gmail.com>
10964 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
10967 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10969 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
10971 (grub_util_biosdisk_read): Handle Linux partitions not exactly
10972 corresponding to GRUB partitions.
10973 (grub_util_biosdisk_write): Likewise.
10975 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10977 Scan mdraid before LVM.
10979 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
10980 (grub_diskfilter_register_front): ... this.
10981 (grub_diskfilter_register_back): New function.
10982 All users of grub_diskfilter_register updated.
10984 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10986 * util/grub-install.in: Fix an automatic target detection bug.
10988 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
10990 * util/grub-install.in: New option --efi-directory.
10992 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
10994 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
10995 boot services if we have no other choice.
10997 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
10999 * util/grub-mknetdir.in: Rename --override-directory to --directory and
11001 * tests/util/grub-shell.in: Update to --directory.
11003 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11005 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
11007 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11009 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
11010 (grub_minix_read_file): Likewise.
11011 (grub_minix_read_inode): Likewise.
11012 (grub_minix_find_file): Likewise.
11013 (grub_minix_dir): Likewise.
11015 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11017 * util/grub-setup.c (setup): Fix partition handling and blocklist
11020 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
11022 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
11023 redundant buggy overlap check.
11025 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11027 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
11030 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11032 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
11033 kh.loadflags on pre-2.00 kernels.
11035 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
11037 Terminate UNDI and PXE before launching the payload to avoid problems
11040 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
11041 (grub_loader_flags): ... this. All users updated.
11042 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
11043 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
11044 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
11045 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
11047 (grub_pxe_restore): Likewise.
11048 (fini_hnd): New var.
11049 (GRUB_MOD_INIT): Register shutdown hook.
11050 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
11051 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
11052 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
11053 (grub_loader_set): Rename second argument to flags.
11055 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11057 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
11059 (grub_get_num_of_utf8_bytes): New function.
11060 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
11061 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
11063 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
11064 (grub_ucs4_to_utf8): Change return type.
11066 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11068 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
11070 * grub-core/fs/bfs.c (hop_level): Likewise.
11071 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
11073 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11075 * grub-core/lib/adler32.c: Recode due to license unclearness.
11077 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11079 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
11080 (test_header): Likewise.
11082 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11084 Fix --help formatting.
11086 * util/grub-mkconfig_lib.in (print_option_help): New function.
11087 (grub_fmt): Likewise.
11088 * util/grub-install.in: Use print_option_help and grub_fmt.
11089 * util/grub-kbdcomp.in: Likewise.
11090 * util/grub-mkconfig.in: Likewise.
11091 * util/grub-mknetdir.in: Likewise.
11092 * util/grub-mkrescue.in: Likewise.
11093 * util/grub-mkstandalone.in: Likewise.
11094 * util/grub-reboot.in: Likewise.
11095 * util/grub-set-default.in: Likewise.
11096 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11098 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
11100 * linguas.sh: Remove autogenerated *.po.
11102 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11104 * po/README: Move language fetcing to ...
11105 * linguas.sh: ... here.
11106 * po/README: Point to linguas.sh.
11108 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11110 * po/README: Exclude ko.po due to disclaimer problems.
11112 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11114 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
11116 (grub_gettext_translate_real): Handle 0th string.
11117 (grub_gettext_translate): Ensure that "" isn't translated.
11119 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11121 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
11122 TRANSLATORS comment.
11123 (grub_diskfilter_print_partmap): Propagate changing of error into
11126 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
11128 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
11129 to uint64_t to prevent overflow.
11130 (grub_diskfilter_lv): Increase start_extent and extent_count
11131 to uint64_t to prevent overflow.
11133 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11135 * configure.ac: Increase version.
11137 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11139 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
11141 * po/Rules-translit: New file.
11142 * po/arabic.sed: Likewise.
11143 * po/cyrillic.sed: Likewise.
11144 * po/greek.sed: Likewise.
11145 * po/hebrew.sed: Likewise.
11146 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
11147 * po/Makefile.in.in: Add extra_dist4.
11149 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11151 Handle big-endian minixfs (fixes minixfs tests on bigendian).
11153 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
11154 modify names. Introduce MODE_BIGENDIAN.
11155 * grub-core/fs/minix_be.c: New file.
11156 * grub-core/fs/minix2_be.c: Likewise
11157 * grub-core/fs/minix3_be.c: Likewise.
11158 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
11160 * grub-core/Makefile.core.def (minix_be): New module.
11161 (minix2_be): Likewise.
11162 (minix3_be): Likewise.
11164 2012-04-01 Felix <email@hamburg.de>
11166 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
11167 (devs): Add MBP 2011.
11169 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11171 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
11173 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11175 * grub-core/normal/cmdline.c (print_completion): New field
11177 (grub_cmdline_get): Handle width properly.
11179 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
11181 * grub-core/commands/lsacpi.c (options): Add missing terminator.
11183 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11185 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
11186 after 29th of February.
11188 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11190 Fix exfat endianness handling.
11192 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
11193 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
11194 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
11195 Byte-swap utf16 when necessary.
11196 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
11198 2012-03-31 Anton Blanchard <anton@samba.org>
11199 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11201 Fix btrfs endianness handling.
11203 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
11204 (lower_bound): Make root uint64_t. Use root in le.
11205 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
11206 (find_path): Fix template key init.
11207 (grub_btrfs_dir): Fix mtime byteswap.
11208 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
11210 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11212 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
11213 recursion_depth. Break infinite resursions. All users updated.
11215 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
11217 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
11219 Reported by: Peter Jones.
11221 2012-03-31 Anton Blanchard <anton@samba.org>
11223 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
11226 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11228 * util/grub-install.in: Fix nvram call for PreP.
11230 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11232 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
11233 the error when some elements are missing into a warning.
11235 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
11237 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
11239 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
11241 * docs/grub.texi (Invoking grub-probe): New section.
11242 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
11244 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
11246 Fix tab and wide character handling in editor and menu.
11248 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
11249 agglomerate control characters with combining marks.
11250 (bidi_line_wrap): Allow break on tab.
11251 (grub_unicode_get_comb_start): New function.
11252 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
11254 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
11256 * grub-core/normal/term.c (print_ucs4_terminal): New argument
11257 fixed_tab_size. All users updated.
11258 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
11259 (grub_term_getcharwidth): Handle \t.
11260 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
11263 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11265 Handle big-endian mdraid.
11267 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
11268 * grub-core/Makefile.core.def (mdraid09_be): New module.
11269 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
11270 rather than grub_le_to_cpu* and grub_cpu_to_le*.
11271 * grub-core/disk/mdraid_linux_be.c: New file.
11273 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
11275 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
11277 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11279 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11280 missing quotes which caused confusion among translators.
11282 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11284 * util/grub-mkconfig_lib.in: Fix typo.
11286 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11288 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
11290 * tests/grub_script_leading_whitespace.in: New file.
11291 * Makefile.util.def (grub_script_leading_whitespace): New test.
11293 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11295 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
11298 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11300 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
11301 starts with control character.
11303 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11305 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
11307 (grub_gdb_outbuf): Likewise.
11309 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
11311 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
11312 zero terminator. Fixes a crash.
11314 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11316 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
11318 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
11319 images independently of preffered adderss field.
11321 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11323 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
11324 * grub-core/commands/regexp.c: Likewise.
11325 * grub-core/loader/i386/linux.c: Likewise.
11326 * grub-core/partmap/msdos.c: Likewise.
11327 * grub-core/script/execute.c: Likewise.
11328 * grub-core/term/gfxterm.c: Likewise.
11330 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11332 Add variable parsing in $"..." and fix several mismatches with bash.
11334 * Makefile.util.def (grub_script_gettext): New test.
11335 * grub-core/script/execute.c (parse_string): New function.
11336 (gettext_append): Likewise.
11337 (grub_script_arglist_to_argv): Use gettext_append.
11338 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
11339 * tests/grub_script_gettext.in: New file.
11341 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11343 Fix handling of leading spaces in scripts.
11345 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
11347 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
11348 other than skipping \r. All users updated.
11349 * tests/grub_script_echo1.in: Add space-related tests.
11350 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
11352 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
11354 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
11356 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11358 * configure.ac: Bump up the version to beta2.
11360 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11362 Fix gettext reload bugs (e.g. inability to disable gettext
11365 * grub-core/gettext/gettext.c: Encapsulate all static variables in
11366 main_context and secondary_context. All functions updated.
11367 (grub_gettext_translate): Rename to ...
11368 (grub_gettext_translate_real): ... this. Return NULL on failed
11370 (grub_gettext_translate): Handle secondary context.
11371 (grub_gettext_delete_list): Close file and zero-out the context.
11372 (grub_mofile_open): Don't call grub_gettext_delete_list.
11374 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
11375 if locale="" to avoid pointless error message.
11376 (grub_gettext_env_write_lang): Update lang even if load fails.
11377 Handle secondary context.
11378 (grub_gettext_reread_prefix): New function.
11379 (read_main): Likewise.
11380 (read_secondary): Likewise.
11381 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
11382 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
11383 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
11384 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
11386 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11388 * configure.ac: Decrease warning level to avoid spurious warnings and
11389 to be able to compile with GCC 4.2.
11390 * Makefile.util.def: Remove -Wno-error=logical-op.
11392 2012-03-10 William Bittner <william.bittner@gmail.com>
11394 * util/import_unicode.py: Add missing brackets around string for
11397 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11399 Fix efi chainloader on network root.
11401 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
11403 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
11406 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11408 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
11409 unused show_text member.
11410 * docs/grub.texi: Document "text" property.
11412 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11414 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
11417 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11419 Fix IMSM handling on Fedora.
11421 * util/getroot.c (grub_util_is_imsm): New function.
11422 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
11424 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11426 * Makefile.am: Strip gold section.
11427 * conf/Makefile.common: Likewise.
11428 * gentpl.py: Likewise.
11429 * grub-core/Makefile.core.def: Likewise.
11430 * grub-core/genmod.sh.in: Likewise.
11432 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11434 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
11435 * util/grub.d/20_linux_xen.in: Likewise.
11436 Based on Debian patch.
11438 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11440 * util/grub.d/10_linux.in: Fix syntax error resulting in
11441 Richard Laager's patch.
11442 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
11444 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11446 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
11449 2012-03-10 Richard Laager <rlaager@wiktel.com>
11451 * util/grub.d/10_linux.in: Fix ZFS root passing.
11453 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11455 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11456 * grub-core/commands/xnu_uuid.c: Likewise.
11457 * grub-core/loader/efi/appleloader.c: Likewise.
11458 * grub-core/script/execute.c: Likewise.
11459 * grub-core/script/main.c: Likewise.
11460 * util/grub-mkfont.c: Likewise.
11462 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11464 * util/grub-mkfont.c (options): Use more appropriate "select" that
11465 "set" for face index.
11467 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11469 * util/grub-editenv.c (options): Gettextize command summaries.
11471 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11473 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
11474 "out of memory" error messagge.
11476 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11478 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
11479 of diskfilter for diskfilter on diskfilter support.
11481 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11483 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
11485 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11487 * util/grub-install.in: Check for themes/starfield/theme.txt and not
11490 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11492 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
11494 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11496 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
11498 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
11500 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
11503 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11505 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
11507 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
11509 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
11511 * util/grub-install.in: Fix and gettextize error message.
11513 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11515 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
11517 * util/grub-mount.c (options): Likewise.
11519 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11521 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
11523 * grub-core/commands/search_wrap.c (options): Likewise.
11525 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11527 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
11529 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11531 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
11533 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
11536 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11538 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
11539 "temporary" since it's used in identifier and is limited in space.
11541 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11543 * po/POTFILES.in: Regenerate. Include *.h since they contain
11544 translatable strings as well.
11546 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
11548 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
11549 byte-swap on big-endian.
11550 Reported by: Lennart Sorensen
11552 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
11554 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
11555 (allocate_pages): Improve dprintf.
11556 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
11557 code32_start. Fill code32_start and kernel_alignment in params.
11558 (grub_cmd_initrd): Use prot_init_space.
11560 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11562 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
11564 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11566 * util/grub-install.in: Add missing dot at the end of sentence.
11568 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11570 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
11571 * grub-core/commands/videotest.c: Likewise.
11572 * grub-core/loader/i386/linux.c: Likewise.
11574 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11576 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
11578 Reported by: Milo Casagrande.
11580 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11582 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
11583 * grub-core/commands/gptsync.c: Likewise.
11584 * grub-core/commands/hashsum.c: Likewise.
11585 * grub-core/commands/i386/pc/sendkey.c: Likewise.
11586 * grub-core/commands/legacycfg.c: Likewise.
11587 * grub-core/io/gzio.c: Likewise.
11588 * grub-core/net/net.c: Likewise.
11589 * grub-core/term/gfxterm.c: Likewise.
11590 * grub-core/term/terminfo.c: Likewise.
11591 * grub-core/tests/test_blockarg.c: Likewise.
11592 * grub-core/video/video.c: Likewise.
11593 * util/grub-install.in: Likewise.
11594 * util/grub-mkfont.c: Likewise.
11596 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11598 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
11600 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11602 * grub-core/commands/search_wrap.c (options): Fix a typo.
11603 Reported by: David Prévot.
11605 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11607 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
11610 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11612 * util/grub-script-check.c (main): Fix a syntax error message which was
11615 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11617 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
11619 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11621 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
11624 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
11626 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
11628 * util/grub-mount.c (options): Likewise.
11630 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11632 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
11634 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11636 * grub-core/net/http.c: Add TRANSLATORS comments.
11637 * grub-core/normal/cmdline.c: Likewise.
11638 * grub-core/normal/misc.c: Likewise.
11639 * grub-core/partmap/msdos.c: Likewise.
11640 * grub-core/parttool/msdospart.c: Likewise.
11641 * grub-core/script/execute.c: Likewise.
11642 * grub-core/script/main.c: Likewise.
11643 * grub-core/term/terminfo.c: Likewise.
11644 * grub-core/video/bitmap.c: Likewise.
11645 * util/grub-install.in: Likewise.
11646 * util/grub-mkimage.c: Likewise.
11647 * util/grub-mklayout.c: Likewise.
11648 * util/grub-setup.c: Likewise.
11650 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11652 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
11653 with similar messages in grub-fstest.
11655 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11657 * util/grub-install.in: Unify "option requires an argument" message
11658 with similar messages in other files.
11659 * util/grub-mkconfig.in: Likewise.
11661 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11663 * util/grub-set-default.in: Replace printf with gettext_printf (the
11664 string in in question is already translated from grub-reboot)
11666 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
11668 * configure.ac: Bump up the version to beta1.
11670 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11672 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
11673 case when min_align = 0.
11675 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11677 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
11678 and fix a case when line_start overflows.
11680 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11682 * util/grub-reboot.in (usage): Mention id posibility.
11683 * util/grub-set-default.in (usage): Likewise.
11685 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11687 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
11688 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
11689 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11690 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11691 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11692 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11693 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11695 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11697 * grub-core/commands/menuentry.c (options): Remove
11698 GRUB_ARG_OPTION_REPEATABLE.
11699 Reported by: Andreas Vogel
11701 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
11703 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
11705 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
11707 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
11710 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11712 Use sort -V by the idea of Georgi Georgiev.
11714 * util/grub-mkconfig_lib.in (version_sort): New function.
11715 (version_test_numeric): Use version_sort.
11717 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11719 Use submenus in grub-mkconfig.
11721 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
11722 * util/grub-mkconfig_lib.in (grub_quote): New function.
11723 (gettext_printf): Use gettext and not gettext_quoted to fix several
11725 * util/grub.d/10_hurd.in: Use submenus.
11726 * util/grub.d/10_kfreebsd.in: Likewise.
11727 * util/grub.d/10_linux.in: Likewise.
11728 * util/grub.d/10_netbsd.in: Likewise.
11729 * util/grub.d/20_linux_xen.in: Likewise.
11730 * util/grub.d/30_os-prober.in: Likewise.
11731 * util/grub.d/10_illumos.in: Add missing quoting.
11732 * util/grub.d/10_windows.in: Likewise.
11734 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11736 Fix menu title instability bug.
11738 * grub-core/commands/menuentry.c (options): New option --id.
11739 (grub_normal_add_menu_entry): New argument id. All users updated.
11740 (grub_cmd_menuentry): Handle --id.
11741 (grub_menu_init): Accept unknown arguments.
11742 * grub-core/normal/main.c (features): Add feature_menuentry_id and
11743 feature_menuentry_options.
11744 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
11746 (get_entry_number): Match with id as well.
11747 * include/grub/menu.h (grub_menu_entry): New member id.
11748 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
11749 * util/grub.d/00_header.in: Define menuentry_id_option.
11750 * util/grub.d/10_hurd.in: Define id.
11751 * util/grub.d/10_illumos.in: Likewise.
11752 * util/grub.d/10_kfreebsd.in: Likewise.
11753 * util/grub.d/10_linux.in: Likewise.
11754 * util/grub.d/10_netbsd.in: Likewise.
11755 * util/grub.d/10_windows.in: Likewise.
11756 * util/grub.d/20_linux_xen.in: Likewise.
11757 * util/grub.d/30_os-prober.in: Likewise.
11759 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
11761 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
11762 "scope" with "body".
11764 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11766 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
11767 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
11768 prot_size and prot_file_size.
11770 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11772 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
11773 All users updated. If easily=1 require raid-5/-6 to be full.
11774 (is_node_readable): Likewise.
11775 (scan_devices): Scan incomplete but readable LVs at the end.
11776 (grub_diskfilter_memberlist): Pull missing devices.
11777 (insert_array): Skip scanning until device is complete or scan is
11779 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
11781 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
11782 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
11784 2012-03-03 Matthew Garrett <mjg@redhat.com>
11785 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11787 Avoid EFI boot services when loading Linux.
11789 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
11790 avoid_efi_bootservices. All users updated.
11791 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
11792 argument avoid_efi_bootservices. All users updated.
11793 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
11794 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
11795 align, min_align, relocatable, prefered_address. All users updated.
11796 Allocate avoiding boot services if kernel is relocatable.
11797 (grub_cmd_linux): Check if kernel is relocatable.
11798 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
11799 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
11800 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
11801 avoid_efi_boot_services.
11802 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
11803 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
11804 (linux_kernel_params): Likewise.
11806 2012-03-03 Matthew Garrett <mjg@redhat.com>
11807 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11811 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
11813 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
11814 modes. Set gop_handle.
11815 (grub_video_gop_get_edid): New function.
11816 (grub_gop_get_preferred_mode): Likewise.
11817 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
11818 (grub_video_efi_gop_adapter): Set .get_edid.
11819 * include/grub/efi/edid.h: New file.
11820 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
11822 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11824 * util/grub-install.in: Load efivars unconditionally.
11826 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11828 * po/Rules-piglatin: Change suffix from .po-update-en to
11829 .po-update-en-piglatin.
11831 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11835 * po/piglatin.sed: New file.
11836 * po/en@piglatin.header: Likewise.
11837 * po/Rules-piglatin: Likewise.
11838 * po/README: Add en@piglatin to autogenerated languages.
11840 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11842 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
11844 * grub-core/commands/hdparm.c (options): Use "Display" rather than
11845 "Check" since we don't check anything.
11846 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
11848 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
11849 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
11850 (grub_md_sha512_real): Likewise.
11852 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
11854 * grub-core/commands/gptsync.c: Fix typographic quoting.
11855 * grub-core/commands/ieee1275/suspend.c: Likewise.
11856 * grub-core/commands/parttool.c: Likewise.
11857 * grub-core/commands/search_wrap.c: Likewise.
11858 * grub-core/commands/videoinfo.c: Likewise.
11859 * grub-core/gfxmenu/gui_label.c: Likewise.
11860 * grub-core/hello/hello.c: Likewise.
11861 * grub-core/kern/emu/main.c: Likewise.
11862 * grub-core/net/net.c: Likewise.
11863 * grub-core/normal/menu.c: Likewise.
11864 * grub-core/normal/menu_text.c: Likewise.
11865 * grub-core/normal/misc.c: Likewise.
11866 * util/grub-editenv.c: Likewise.
11867 * util/grub-install.in: Likewise.
11868 * util/grub-kbdcomp.in: Likewise.
11869 * util/grub-mkconfig.in: Likewise.
11870 * util/grub-mknetdir.in: Likewise.
11871 * util/grub-mkrescue.in: Likewise.
11872 * util/grub-mkstandalone.in: Likewise.
11873 * util/grub-reboot.in: Likewise.
11874 * util/grub-set-default.in: Likewise.
11875 * util/grub-setup.c: Likewise.
11876 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
11878 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11880 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
11881 * grub-core/commands/keystatus.c: Likewise.
11882 * grub-core/commands/loadenv.c: Likewise.
11883 * grub-core/commands/probe.c: Likewise.
11884 * grub-core/commands/regexp.c: Likewise.
11885 * grub-core/commands/true.c: Likewise.
11886 * grub-core/commands/videoinfo.c: Likewise.
11887 * grub-core/disk/cryptodisk.c: Likewise.
11888 * grub-core/disk/ldm.c: Likewise.
11889 * grub-core/disk/loopback.c: Likewise.
11890 * grub-core/disk/luks.c: Likewise.
11891 * grub-core/fs/zfs/zfsinfo.c: Likewise.
11892 * grub-core/kern/disk.c: Likewise.
11893 * grub-core/kern/emu/hostdisk.c: Likewise.
11895 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11897 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
11898 * util/grub-install.in: Add missing quote in the comment.
11900 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11902 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
11903 * grub-core/commands/lsmmap.c: Likewise.
11904 * grub-core/commands/minicmd.c: Likewise.
11905 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
11906 * grub-core/commands/regexp.c: Likewise.
11907 * grub-core/gdb/gdb.c: Likewise.
11908 * grub-core/term/gfxterm.c: Likewise.
11909 * util/grub-mkconfig.in: Likewise.
11910 * util/grub-mkfont.c: Likewise.
11911 * util/grub-mklayout.c: Likewise.
11912 * util/grub-mknetdir.in: Likewise.
11913 * util/grub-mkrescue.in: Likewise.
11914 * util/grub.d/30_os-prober.in: Likewise.
11916 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11918 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
11919 with "Direct color" and "Packed" with "Packed pixel".
11920 (grub_cmd_videoinfo): Simplify legend.
11922 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11924 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
11925 absolutely unclear error message.
11927 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11929 * util/grub-mkstandalone.in: Remove confusing leftover print.
11931 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11933 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
11935 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
11936 (GRUB_MOD_INIT): Likewise.
11937 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
11939 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
11941 * util/grub-install.in (usage): Likewise.
11942 Spell ID in whole letters.
11943 Add missing ending dot.
11945 * util/grub-reboot.in: Fix capitalisation.
11946 * util/grub-set-default.in: Likewise.
11948 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11950 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
11951 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
11952 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
11953 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
11954 Disable -Werror for -Wdeprecated-declarations.
11955 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
11956 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
11957 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
11958 (grub_util_get_grub_dev): Make luks handling dependent on
11959 HAVE_DEVICE_MAPPER and not __linux__.
11960 (get_win32_path): Fix format security.
11961 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
11962 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
11963 Don't try grub_find_zpool_from_dir.
11964 (grub_make_system_path_relative_to_its_root) [!__linux__]:
11965 #ifdef-out paresdir.
11967 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11969 * util/grub-pe2elf.c (usage): Add missing noreturn.
11970 (write_section_data): Rename name to shname to avoid shadowing.
11971 (write_symbol_table): Rename name to symname to avoid shadowing.
11972 Fix write_reloc_section call.
11974 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11976 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
11977 to ensure that it's after the last byte of .text.
11979 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11981 * util/ieee1275/ofpath.c (my_isdigit): New function.
11982 (trailing_digits): Use my_isdigit.
11983 (strip_trailing_digits): Likewise.
11985 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11987 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
11988 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
11990 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11992 * grub-core/kern/i386/pc/startup.S: Define __start.
11994 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
11996 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
11997 strip already transforms he format.
11999 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
12001 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
12003 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12005 * util/grub-install.in: Add missing gettext init.
12006 * util/grub-kbdcomp.in: Likewise.
12007 * util/grub-mkconfig.in: Likewise.
12008 * util/grub-mknetdir.in: Likewise.
12009 * util/grub-mkrescue.in: Likewise.
12010 * util/grub-mkstandalone.in: Likewise.
12011 * util/grub-reboot.in: Likewise.
12012 * util/grub-set-default.in: Likewise.
12013 * util/grub.d/00_header.in: Likewise.
12014 * util/grub.d/10_hurd.in: Likewise.
12015 * util/grub.d/10_windows.in: Likewise.
12016 * util/grub.d/30_os-prober.in: Likewise.
12017 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12019 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12021 * po/Rules-swiss: Fix header comment.
12023 2012-02-29 Andreas Vogel <anvoit>
12025 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
12026 resulted in leak of arguments.
12028 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12030 * grub-core/boot/i386/pc/startup_raw.S: Use separate
12031 reed_solomon_size const definition instead of computing it since
12032 Apple assembler doesn't support the later.
12034 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12036 * gentpl.py (kernel): Rewrite Apple part.
12038 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12040 * include/grub/kernel.h (FOR_MODULES): Check module magic.
12042 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12044 * util/grub-mkimagexx.c (locate_sections): Support non-standard
12046 (load_image): Likewise.
12048 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12050 * configure.ac: Fix a typo in previous commit.
12052 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12054 Don't add -Wl,-N on Apple platform.
12056 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
12057 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
12059 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12061 * grub-core/Makefile.core.def (lzma_decompress): Use
12062 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
12064 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12066 * grub-core/genmod.sh.in: Rewrite the Apple part.
12068 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12070 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
12073 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12075 * acinclude.m4 (grub_CHECK_PIC): New test.
12076 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
12078 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12080 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
12081 to avoid the warning.
12083 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12085 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
12086 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
12087 after. All users updated.
12089 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12091 Use the common size routine in hostfs so we can read disks as well.
12093 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
12094 (grub_util_get_fd_size): ... this. Return size in bytes.
12096 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
12097 grub_util_get_fd_size.
12099 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12101 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
12102 Add blocksize retrieval.
12104 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12106 * configure.ac: Restore CFLAGS after efiemu check.
12108 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12110 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
12113 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12115 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
12117 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12119 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
12120 (grub_cmd_halt): Likewise.
12122 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12124 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
12125 for local arithmetics.
12126 Break %sp init into 2 instructions.
12127 Add 0 byte at the end.
12129 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12131 * grub-core/disk/diskfilter.c (read_segment): Initialise err
12134 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12136 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
12139 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12141 * grub-core/disk/ldm.c (make_vg): Init part.name.
12142 (grub_ldm_detect): Silence spurious warning.
12143 (grub_util_is_ldm): Likewise.
12145 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12147 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
12148 sane value to avoid a spurious warning.
12150 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12152 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
12153 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
12155 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12157 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
12158 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
12160 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12162 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
12163 hardcoding the relevant info.
12165 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12167 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
12168 missing const qualifiers.
12169 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
12171 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12173 * util/getroot.c [__APPLE__]: Add missing includes.
12174 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
12176 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12178 * util/grub-mkimage.c (generate_image): Silence spurious warning.
12180 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12182 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
12185 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12187 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
12189 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12191 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
12192 and grub_file_close call.
12194 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12196 Add LZSS Mach-O support (needed for new xnu kernelcache).
12198 * grub-core/Makefile.core.def (xnu): Add file lzss.c
12199 * grub-core/loader/lzss.c: New file.
12200 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
12201 on Mach-O open failure.
12202 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
12203 Don't free cmdsXX in uncompressedXX is set.
12204 (grub_macho_file): Init new fields.
12205 New argument is_64bit. All users updated.
12206 Handle compressed. Error out if no suitable architecture is found.
12208 (grub_macho_open): New argument is_64bit. All users updated.
12209 * grub-core/loader/macho32.c: Add defines for new fields.
12210 * grub-core/loader/macho64.c: Likewise.
12211 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
12212 (grub_macho_parse): Handle compressed.
12213 Defer actual processing if compressed.
12214 (grub_macho_cmds_iterate): Decompress if compressed. New argument
12215 "filename". All users updated.
12216 (grub_macho_size): New argument "filename". All users updated.
12217 (grub_macho_get_entry_point): Likewise.
12218 (grub_macho_load): Handle compressed.
12219 * include/grub/macho.h (grub_macho_lzss_header): New struct.
12220 (GRUB_MACHO_LZSS_OFFSET): New define.
12221 (grub_decompress_lzss): New proto.
12222 * include/grub/machoload.h (grub_macho_file): New fields to handle
12224 (grub_macho_contains_macho64): Remove proto.
12225 (grub_macho_contains_macho32): Likewise.
12226 * util/grub.d/30_os-prober.in: Use kernel cache if available.
12228 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
12230 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
12232 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12236 * Makefile.am (starfield_theme_files): New var.
12237 (starfield_DATA): Use starfield_theme_files.
12238 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
12239 Add bootcheck-related files.
12240 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
12241 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
12242 and font_char_metrics.txt.
12243 * grub-core/Makefile.core.def (kernel): Update extra_dist.
12244 (setjmp): Add lib/ia64/longjmp.S.
12245 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
12246 * po/POTFILES.in: Regenerate.
12247 * po/Rules-swiss: use DISTFILES.common.extra2 and not
12248 DISTFILES.common.extra1.
12249 * util/devicemap.c: Removed.
12250 * grub-core/lib/i386/relocator_backward.S: Likewise.
12251 * util/import_gcry.py: Remove unused files. Add extra_dist for
12254 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12256 * grub-core/gettext/gettext.c (grub_mofile_open): Call
12257 grub_gettext_delete_list before changing grub_gettext_max to avoid
12258 running out of array bounds.
12260 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12262 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
12263 grub_vga_text_init/grub_vga_text_fini.
12265 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
12267 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
12269 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12271 * configure.ac: Bump to 2.00~beta0.
12273 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12275 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
12276 missing initialisation.
12278 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12280 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
12282 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12284 Support v2 xnu boot arguments.
12286 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
12287 New argument fsbfreq_out.
12288 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
12289 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
12291 * grub-core/loader/machoXX.c (grub_macho_load): New argument
12293 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
12294 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
12295 (grub_xnu_boot_params): Rename to ...
12296 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
12297 (grub_xnu_boot_params_v2): New struct.
12299 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12301 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
12302 zeroing of CRC field before computing CRC.
12304 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12306 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
12307 Change order of allocations to decrease fragmentation.
12309 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12311 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
12313 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12315 Use write-combining MTRR to speed up video with buggy BIOSes.
12317 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
12318 (cpuid): New define.
12321 (mtrr_base): Likewise.
12322 (mtrr_mask): Likewise.
12323 (grub_vbe_enable_mtrr_entry): New function.
12324 (grub_vbe_enable_mtrr): Likewise.
12325 (grub_vbe_disable_mtrr): Likewise.
12326 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
12327 control off to BIOS.
12328 (grub_video_vbe_init): Fill mtrr.
12329 (grub_video_vbe_fini): Disable mtrr.
12330 (grub_video_vbe_get_info_and_fini): Likewise.
12331 (grub_video_vbe_setup): Enable mtrr.
12333 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
12335 * include/grub/partition.h (grub_partition_map): Change prototype of
12336 embed to take a maximum value for nsectors.
12337 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
12338 * include/grub/fs.h (grub_fs): Likewise.
12339 * grub-core/partmap/msdos.c (embed_signatures): New array.
12340 (pc_partition_map_embed): Check for and avoid sectors matching any
12341 of the signatures in embed_signatures, up to max_nsectors.
12342 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
12343 returned sector map to max_nsectors.
12344 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
12345 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
12346 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
12347 * util/grub-setup.c (setup): Allow for the embedding area being
12348 split into multiple blocklists. Tell dest_partmap->embed the
12349 maximum number of sectors we care about.
12351 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12353 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
12354 Specify blocklist_install and reserver_first_sector for all fs.
12355 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
12358 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12360 * util/grub-install.in: Clarify strings.
12361 Fix source dir check.
12363 2012-02-27 Richard Laager <rlaager@wiktel.com>
12365 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
12366 "zfs" and "fuse.zfs" as synonyms.
12368 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12370 * configure.ac: Put platform and target_cpu substitutions back since
12371 they are used for directories.
12373 2012-02-27 Richard Laager <rlaager@wiktel.com>
12374 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12376 * util/grub.d/10_linux.in: Add ZFS-related arguments.
12377 * util/grub.d/20_linux_xen.in: Likewise.
12379 2012-02-27 Richard Laager <rlaager@wiktel.com>
12381 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
12384 2012-02-27 Richard Laager <rlaager@wiktel.com>
12386 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
12389 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12391 Don't use insecure popen in getroot.
12393 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
12394 (exec_pipe): ... here.
12395 (find_root_devices_from_poolname): Use exec_pipe.
12397 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12399 Remove platform and target_cpu replacement.
12401 * configure.ac: Remove platform and target_cpu substitutions.
12402 * tests/util/grub-shell.in: Use modinfo.
12403 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
12406 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12408 Autodetect platform in grub-install but allow override.
12410 * util/grub-install.in: Autodetect platform. Support --target and
12411 --directory. Read platform from modinfo.sh.
12413 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12415 Support btrfs multi-volume probe.
12417 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
12418 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
12419 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
12420 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
12421 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
12422 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
12423 grub_find_root_devices_from_btrfs if on btrfs.
12425 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12427 Remove any awareness of *.c util files about target.
12429 * Makefile.util.def (grub-setup): Split to ...
12430 (grub-bios-setup): ... and this.
12431 (grub-sparc64-setup): ... and this.
12432 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
12433 * docs/man/grub-setup.h2m: Split into ...
12434 * docs/man/grub-sparc64-setup.h2m: ... this.
12435 * docs/man/grub-bios-setup.h2m: ... and this.
12436 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
12437 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
12438 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
12439 (grub_target_addr_t): Remove.
12440 (grub_target_size_t): Remove.
12441 (grub_target_ssize_t): Remove.
12442 * util/grub-install.in: Use new grub-*-setup.
12443 * util/grub-mkimagexx.c (Elf_Word): New define.
12444 (Elf_Half): Likewise.
12445 (Elf_Section): Likewise.
12446 (ELF_ST_TYPE): Likewise.
12447 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
12448 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
12450 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12452 Replace grub_target_addr with more appropriate types.
12454 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
12455 grub_target_addr with grub_addr.
12456 * grub-core/commands/iorw.c (grub_cmd_read): Replace
12457 grub_target_addr with grub_port.
12458 (grub_cmd_write): Likewise.
12459 * grub-core/commands/memrw.c (grub_cmd_read): Replace
12460 grub_target_addr with grub_addr.
12461 (grub_cmd_write): Likewise.
12462 * grub-core/video/efi_uga.c (find_line_len): Likewise.
12464 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12466 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
12467 const qualifier for vendor_guid.
12469 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12471 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
12473 (efiemu_memequal): Likewise.
12474 (find_variable): Likewise.
12476 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12478 Fix missing console prototype on qemu-mips.
12480 * include/grub/mips/qemu_mips/console.h: New file.
12482 2012-02-27 Matthew Garrett <mjg@redhat.com>
12483 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12485 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
12486 * include/grub/efi/efi.h: Likewise.
12487 * include/grub/efi/api.h: Add guid for EFI-specified variables.
12488 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
12489 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
12490 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
12491 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
12492 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
12494 2012-02-27 Matthew Garrett <mjg@redhat.com>
12496 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
12498 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12500 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
12503 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12505 * configure.ac: Remove inappropriate use of program_transform_name
12506 on grubdir and bootdir but allow explicit specification of those
12509 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12511 * util/grub-mknetdir.in (grub_prefix): Removed.
12512 (subdir): Use @bootdirname@ and @grubdirname@.
12514 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12516 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
12518 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12520 * po/POTFILES.in: Regenerated.
12522 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12524 Remove improper use of program_transform_name on pkglibrootdir.
12526 * configure.ac (pkglibrootdir): Removed.
12527 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
12528 * util/grub-mkimage.c: Likewise.
12530 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12532 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
12535 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12537 * util/grub-install.in: Use file identifier if no UUID is available
12538 or user explicitly prompted for it.
12540 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
12542 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
12543 (freebsd_get_zfs): New function.
12544 (grub_freebsd_boot): Pass zfs UUID.
12545 (grub_cmd_freebsd): Set zfs UUID.
12547 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
12549 * conf/Makefile.common (platformdir): Base on pkglibdir and not
12552 2012-02-27 Mike Gilbert <floppym@gentoo.org>
12554 Add configure flag to control libzfs integration.
12556 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
12558 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12560 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
12562 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
12565 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12567 Remove grub_{modname}_init and grub_{modname}_fini. They should never
12568 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
12569 be used on non-modules.
12571 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
12572 Rename to grub_boot_init.
12573 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
12574 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
12575 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
12576 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
12577 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
12578 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
12579 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
12580 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
12582 (grub_machine_init): Remove empty inits.
12583 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
12585 (grub_machine_init): Remove empty inits.
12586 * grub-core/term/arc/console.c: Remove explicit proto.
12587 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
12588 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
12589 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12590 grub_at_keyboard_fini.
12591 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
12592 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
12593 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12595 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
12596 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
12597 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12599 * grub-core/term/ieee1275/console.c: Remove explicit proto.
12600 * grub-core/term/serial.c (GRUB_MOD_INIT)
12601 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
12602 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12604 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
12605 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
12606 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
12607 grub_terminfo_fini.
12608 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
12609 (GRUB_MOD_FINI): Likewise.
12610 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
12611 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
12612 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12613 grub_video_radeon_fuloong2e_fini.
12614 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
12615 [LOONGSON]: Rename to grub_video_sis315pro_init.
12616 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12617 grub_video_sis315pro_fini.
12618 * grub-core/video/sm712.c (GRUB_MOD_INIT)
12619 [LOONGSON]: Rename to grub_video_sm712_init.
12620 (GRUB_MOD_FINI) [LOONGSON]: Rename to
12621 grub_video_sm712_fini.
12622 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
12623 (grub_at_keyboard_fini): Likewise.
12624 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
12625 Don't declare grub_{modname}_init.
12626 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
12627 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
12629 (grub_keylayouts_fini) [!EMU]: Likewise.
12630 * include/grub/serial.h (grub_serial_init) [!EMU]:
12632 (grub_serial_fini) [!EMU]: Likewise.
12633 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
12635 (grub_terminfo_fini) [!EMU]: Likewise.
12636 * include/grub/video.h (grub_font_init) [!EMU]:
12638 (grub_font_fini) [!EMU]: Likewise.
12639 (grub_gfxterm_init) [!EMU]: Likewise.
12640 (grub_gfxterm_fini) [!EMU]: Likewise.
12641 (grub_video_sm712_init) [!EMU]: Likewise.
12642 (grub_video_sm712_fini) [!EMU]: Likewise.
12643 (grub_video_sis315pro_init) [!EMU]: Likewise.
12644 (grub_video_sis315pro_fini) [!EMU]: Likewise.
12645 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
12646 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
12648 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12650 Make nand a prefix for nand devices.
12652 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
12654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12656 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
12657 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
12659 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12661 * include/grub/env.h (grub_env_find): Remove prototype.
12662 * grub-core/kern/env.c (grub_env_find): Make static.
12663 (grub_env_set): Remove useless set.
12665 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12667 * grub-core/kern/i386/realmode.S: Remove useless align.
12669 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12671 * include/grub/dl.h (grub_dl_load_file): Don't export.
12673 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12675 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
12678 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12680 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
12682 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
12683 not reloading whole superblock but only the part which is really needed.
12684 Remove useless grub_errors.
12685 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
12688 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12690 Don't export grub_get_rtc.
12692 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
12693 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
12695 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12697 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
12699 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12701 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
12702 argument since it can be deduced from diskfilter. All users updated.
12704 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12708 * include/grub/list.h (grub_prio_list): Removed.
12709 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
12710 GRUB_COMMAND_PRIO_MASK.
12711 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
12712 GRUB_COMMAND_FLAG_ACTIVE.
12713 (grub_prio_list_insert): Removed.
12714 (grub_prio_list_remove): Likewise.
12715 (GRUB_AS_PRIO_LIST): Likewise.
12716 (GRUB_AS_PRIO_LIST_P): Likewise.
12717 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
12718 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
12719 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
12720 * grub-core/kern/command.c (grub_register_command_prio): Inline
12721 the prio_list code.
12722 (grub_unregister_command): Likewise.
12724 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12726 Fix interrupt mixup from previous commit.
12728 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
12729 (grub_realidt): New var.
12730 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
12732 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
12734 (grub_relocator16_boot): Set grub_relocator16_idt.
12735 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
12736 (LOCAL(realidt)): ... this.
12737 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
12738 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
12739 (grub_realidt): New variable.
12741 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12743 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
12744 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
12745 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
12746 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
12748 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
12749 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
12750 * po/POTFILES.in: Regenerate.
12752 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12754 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
12757 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12759 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
12761 (add_length): Likewise.
12763 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12764 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
12766 GDB serial and backtrace support.
12768 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
12769 (prot_to_real): Likewise.
12770 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
12771 * grub-core/Makefile.core.def (backtrace): New module.
12773 * grub-core/gdb/cstub.c: New file.
12774 * grub-core/gdb/gdb.c: Likewise.
12775 * grub-core/gdb/i386/idt.c: Likewise.
12776 * grub-core/gdb/i386/machdep.S: Likewise.
12777 * grub-core/gdb/i386/signal.c: Likewise.
12778 * grub-core/lib/i386/backtrace.c: Likewise.
12779 * grub-core/lib/backtrace.c: Likewise.
12780 * include/grub/backtrace.h: Likewise.
12781 * include/grub/gdb.h: Likewise.
12782 * include/grub/i386/gdb.h: Likewise.
12784 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12786 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
12788 (add_length): Likewise.
12789 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
12790 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
12792 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
12793 __argp_get_display_len.
12795 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12797 $"..." support in scripts.
12799 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
12800 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
12801 * grub-core/script/yylex.l: Likewise.
12802 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
12805 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12807 * gentpl.py: Remove obsolete pkglib_DATA handling.
12809 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12811 Don't transform PACKAGE_TARNAME following a discussion on autoconf
12814 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
12815 * util/grub-kbdcomp.in: Likewise.
12816 * util/grub-mkconfig.in: Likewise.
12817 * util/grub-mkconfig_lib.in: Likewise.
12818 * util/grub-mknetdir.in: Likewise.
12819 * util/grub-mkrescue.in: Likewise.
12820 * util/grub-mkstandalone.in: Likewise.
12821 * util/grub-reboot.in: Likewise.
12822 * util/grub-set-default.in: Likewise.
12823 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12825 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12827 Remove GRUB_PREFIX.
12829 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
12830 * util/grub.d/00_header.in: Compute prefix in the only place it's still
12831 used for backward compatibility.
12833 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12835 Add new all_video module.
12837 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
12838 * grub-core/Makefile.core.def (all_video): New module.
12839 * grub-core/genmoddep.awk: Generate dependency of all_video from
12841 * grub-core/lib/fake_module.c: New file.
12842 * grub-core/normal/main.c (features): Add feature_all_video_module.
12843 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
12844 don't do explicit search again.
12845 insmod all_video in load_video if available.
12847 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12849 Another round of string clarification and adding TRANSLATORS comments.
12851 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12853 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
12855 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12857 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
12859 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
12860 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
12862 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12864 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
12865 trailing newline implicitly. All users updated.
12867 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12869 Implement serial on IEEE1275 and EFI.
12871 * docs/grub.texi (Platform-specific limitations): Fix the columen video
12872 on emu. Mention arc and emu as the only platforms without serial
12874 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
12875 ieee1275 platforms.
12876 * grub-core/term/efi/serial.c: New file.
12877 * grub-core/term/ieee1275/serial.c: Likewise.
12878 * grub-core/term/serial.c (grub_serial_find): Disable direct port
12879 specification if no ns8250 driver is available.
12880 (grub_cmd_serial): Likewise.
12881 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
12882 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
12883 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
12884 (grub_efi_parity_type_t): New type.
12885 (grub_efi_stop_bits_t): Likewise.
12886 (grub_efi_serial_io_interface): New struct.
12887 * include/grub/serial.h (grub_serial_port): Make 'broken' field
12888 available for all interfaces.
12889 Add EFI and IEEE1275 fields.
12890 (grub_ofserial_init): New proto.
12891 (grub_efiserial_init): Likeiwse.
12892 * util/grub.d/00_header.in: Don't check for the presence of serial
12895 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
12897 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
12898 name as if it was an alias.
12900 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12902 * grub-core/commands/lsacpi.c (options): Fix typo.
12904 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
12906 Convert grub-emu to argp.
12908 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
12910 * util/argp_common.c: Rename to ...
12911 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
12912 Add missing includes.
12913 * grub-core/kern/emu/main.c: Convert to argp.
12914 * po/POTFILES.in: Regenerate.
12915 * util/grub-install.in (usage): Make first letter lowcase in messages
12917 * util/grub-setup.c (options): Likewise.
12919 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12921 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
12922 Put back accidently commented-out code.
12924 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12926 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
12927 loop check using Brent algorithm.
12928 (grub_hfsplus_btree_search): Likewise.
12930 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12932 * util/grub-install.in: Fix usage of wrong device for PreP install.
12934 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12936 * conf/Makefile.common (CFLAGS_GNULIB): Add
12937 -Wno-unsafe-loop-optimizations.
12938 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
12940 * grub-core/commands/legacycfg.c: Add pragma to skip
12941 -Wunsafe-loop-optimizations.
12942 (check_password_md5_real): Fix loop counter type.
12943 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
12945 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
12946 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
12948 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
12949 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
12950 * grub-core/net/net.c (grub_net_route_address): Add safety loop
12952 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
12953 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
12954 avoid possible infinite loops.
12955 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
12956 and -Wunsafe-loop-optimizations.
12957 * grub-core/script/yylex.l: Likewise.
12958 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
12959 (print_glyphs): Avoid infinite loops.
12960 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
12962 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
12964 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
12965 to avoid infinite loop.
12966 (disp_acpi_rsdt_table): Likewise.
12968 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12970 * grub-core/font/font.c (grub_font_load): Add support for default
12971 path for fonts ($prefix/fonts).
12972 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
12973 for checking if string is a path.
12974 * grub-core/normal/main.c (features): Add feature_default_font_path.
12975 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
12976 * util/grub.d/00_header.in: Use default directory if possible.
12977 * util/grub-install.in: Install unicode.pf2.
12979 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
12981 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
12982 * po/Rules-swiss: New file.
12983 * po/swiss.sed: Likewise.
12985 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
12987 * grub-core/fs/btrfs.c (find_device): Fix typos.
12988 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
12989 * util/grub-mkrelpath.c (argp_parser): Likewise.
12990 Reported by: Yuri Chornoivan.
12992 2012-02-23 Dalet Omega <daletomega@gmail.com>
12994 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
12995 for usual informative messages.
12997 2012-02-23 Dalet Omega <daletomega@gmail.com>
13001 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
13002 * conf/Makefile.common: Define starfielddir.
13003 * configure.ac: Configure starfield.
13004 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
13005 * themes/starfield/README: Likewise.
13006 * themes/starfield/blob_w.png: Likewise.
13007 * themes/starfield/boot_menu_c.png: Likewise.
13008 * themes/starfield/boot_menu_e.png: Likewise.
13009 * themes/starfield/boot_menu_n.png: Likewise.
13010 * themes/starfield/boot_menu_ne.png: Likewise.
13011 * themes/starfield/boot_menu_nw.png: Likewise.
13012 * themes/starfield/boot_menu_s.png: Likewise.
13013 * themes/starfield/boot_menu_se.png: Likewise.
13014 * themes/starfield/boot_menu_sw.png: Likewise.
13015 * themes/starfield/boot_menu_w.png: Likewise.
13016 * themes/starfield/slider_c.png: Likewise.
13017 * themes/starfield/slider_n.png: Likewise.
13018 * themes/starfield/slider_s.png: Likewise.
13019 * themes/starfield/src/blob_nw.xcf: Likewise.
13020 * themes/starfield/src/bootmenu/: Likewise.
13021 * themes/starfield/src/bootmenu/center.xcf: Likewise.
13022 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
13023 * themes/starfield/src/bootmenu/side.xcf: Likewise.
13024 * themes/starfield/src/slider_c.xcf: Likewise.
13025 * themes/starfield/src/slider_n.xcf: Likewise.
13026 * themes/starfield/src/slider_s.xcf: Likewise.
13027 * themes/starfield/src/terminalbox/: Likewise.
13028 * themes/starfield/src/terminalbox/center.xcf: Likewise.
13029 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
13030 * themes/starfield/src/terminalbox/side.xcf: Likewise.
13031 * themes/starfield/starfield.png: Likewise.
13032 * themes/starfield/terminal_box_c.png: Likewise.
13033 * themes/starfield/terminal_box_e.png: Likewise.
13034 * themes/starfield/terminal_box_n.png: Likewise.
13035 * themes/starfield/terminal_box_ne.png: Likewise.
13036 * themes/starfield/terminal_box_nw.png: Likewise.
13037 * themes/starfield/terminal_box_s.png: Likewise.
13038 * themes/starfield/terminal_box_se.png: Likewise.
13039 * themes/starfield/terminal_box_sw.png: Likewise.
13040 * themes/starfield/terminal_box_w.png: Likewise.
13041 * themes/starfield/theme.txt: Likewise.
13043 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
13045 * util/grub.d/00_header.in: Add missing export theme.
13047 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13049 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
13051 Reported by: Eren D.
13053 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13055 * conf/Makefile.common (grubdatadir): Removed.
13056 (Makefile.am): Move eveything grubdata to pkgdata.
13058 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13060 * grub-core/commands/acpihalt.c (get_sleep_type):
13061 Remove unused variable.
13063 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13065 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
13066 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
13067 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
13068 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
13069 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
13070 i18n with gettext no-op.
13071 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
13072 GRUB_ACPI_OPCODE_STRING_CONST.
13073 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
13074 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
13076 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13078 * po/POTFILES.in: Regenerate.
13080 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13082 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
13083 -Wno-error=missing-noreturn.
13085 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13087 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
13088 condition to avoid possibly infinite loops.
13089 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
13090 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
13092 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13094 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
13095 condition to avoid possibly infinite loops.
13097 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13099 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
13102 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13104 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
13106 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13108 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
13110 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13112 * util/bin2h.c (usage): Add missing attribute noreturn.
13114 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13116 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
13117 if the size isn't divisible by 512.
13119 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13121 Make list_push and list_remove functions rather than inline functions
13122 to decrease size and avoid aliasing violations.
13124 * include/grub/list.h (grub_list_push): Move to ...
13125 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
13126 * include/grub/list.h (grub_list_remove): Move to ...
13127 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
13129 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
13131 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
13132 and -Wunused-result.
13134 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13136 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
13137 Reported by: Seth Goldberg
13139 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
13141 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
13143 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
13145 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
13146 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
13148 * docs/grub.texi (Simple configuration): Document
13149 GRUB_CMDLINE_GNUMACH.
13151 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13153 * conf/Makefile.common (platform_SCRIPTS): New variable.
13154 (platform_PROGRAMS): Likewise.
13155 * gentpl.py: Mark *,module and *.image for install.
13156 * grub-core/gdb_grub.in: Add a notice of expected environment.
13157 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
13158 (gmodule.pl): Likewise.
13160 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13162 Replace grub_checkkey with grub_getkey_noblock.
13164 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
13165 (grub_getkey_noblock): ... this. All users updated.
13167 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
13169 * grub-core/kern/emu/console.c: Move to ...
13170 * grub-core/term/emu/console.c: ...here.
13171 (grub_ncurses_getkey): Fix return value if no key is detected.
13173 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13175 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
13176 (grub_unit_test_fini): Likewise.
13177 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
13179 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13181 * include/grub/test.h (GRUB_UNIT_TEST)
13183 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13185 * grub-core/script/execute.c (grub_script_break): Clarify logic.
13186 Better error handling.
13187 (grub_script_return): Likewise.
13188 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13190 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13192 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
13193 rimplicit redifinition.
13195 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13197 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
13200 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13202 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
13203 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
13206 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13208 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
13209 as GRUB_ERR_BUG. Don't malloc if no device is available.
13211 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13213 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
13214 Mark calling with invalid term as GRUB_ERR_BUG.
13216 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13218 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
13219 packets rather than raising an error.
13221 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13223 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
13226 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13228 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
13229 diagnostic to dprintf.
13230 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13232 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13234 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
13237 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13239 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
13240 (grub_ntfs_iterate_dir): Likewise.
13242 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13244 Efiemu stylistic fixes and gettext.
13246 * grub-core/efiemu/i386/loadcore32.c
13247 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
13248 * grub-core/efiemu/i386/loadcore64.c
13249 (grub_arch_efiemu_relocate_symbols64): Likewise.
13250 * grub-core/efiemu/i386/pc/cfgtables.c
13251 (grub_machine_efiemu_init_tables): Likewise.
13252 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
13253 (grub_efiemu_loadcore_initXX): Add a filename argument.
13255 Improved error message.
13256 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
13257 Add a filename argument.
13259 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
13260 Reclassify double relocation as GRUB_ERR_BUG.
13262 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13264 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
13267 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13269 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
13272 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13274 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
13276 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
13278 Improve string. Gettextize.
13280 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13282 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
13284 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
13286 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13288 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
13289 [GRUB_UTIL]: New function.
13290 (insert_array) [GRUB_UTIL]: Store partmaps.
13291 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
13293 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
13294 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
13295 (probe_abstraction): Print diskfilter and not raid.
13296 Reported by: Lennart Sorensen
13298 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13300 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
13301 * util/grub-mkimagexx.c (MASK3): New define.
13302 (add_value_to_slot_20b): Use MASK3.
13303 (add_value_to_slot_21): Likewise.
13304 (relocate_addresses): Fix format specification.
13305 (load_image): Explicitly init symtab_section.
13307 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13309 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
13310 (grub_util_biosdisk_get_grub_dev): Fix format specification.
13312 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13314 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
13316 Reported by: Lennart Sorensen
13318 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
13320 * gentpl.py: Add missing license header.
13321 * docs/grub.texi: Update copyright year.
13323 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
13325 Source grub-mkconfig_lib from the build directory at build time.
13326 Suggested by: Vladimir Serbinenko.
13328 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
13329 * util/grub-install.in: Define pkgdatadir if not already set, and source
13330 grub-mkconfig_lib from there.
13331 * util/grub-kbdcomp.in: Likewise.
13332 * util/grub-mkconfig.in: Likewise.
13333 * util/grub-mknetdir.in: Likewise.
13334 * util/grub-mkrescue.in: Likewise.
13335 * util/grub-mkstandalone.in: Likewise.
13336 * util/grub-reboot.in: Likewise.
13337 * util/grub-set-default.in: Likewise.
13338 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13340 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13342 Increase warning level.
13344 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
13345 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
13346 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
13347 (TARGET_CFLAGS): Likewise.
13348 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
13349 * grub-core/Makefile.core.def (decompressor_xz): Add
13350 -Wno-unreachable-code.
13351 (normal): Add -Wno-redundant-decls.
13352 (xzio): Add -Wno-unreachable-code.
13353 (lzopio): Add -Wno-redundant-decls -Wno-error.
13354 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
13355 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
13356 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
13357 * grub-core/kern/dl.c: Add exception to -Wcast-align.
13358 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
13359 * grub-core/kern/i386/coreboot/init.c: Add exception to
13360 -Wsuggest-attribute=noreturn.
13361 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
13362 * grub-core/kern/ia64/dl_helper.c: Likewise.
13363 * grub-core/kern/mips/dl.c: Likewise.
13364 * grub-core/kern/sparc64/dl.c: Likewise.
13365 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
13366 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
13367 (memcmp): Likewise.
13368 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
13369 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
13370 * grub-core/loader/mips/linux.c: Likewise.
13371 * grub-core/loader/multiboot_elfxx.c: Likewise.
13372 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
13373 * grub-core/video/sm712.c: Add exception to -Wcast-align.
13374 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
13375 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
13377 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
13378 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
13381 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13383 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
13386 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13388 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
13389 Avoid improper use of strings.
13390 (grub_cmd_legacy_initrdnounzip): Likewise.
13392 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13394 * include/grub/emu/misc.h (grub_util_warn): Add missing format
13396 (grub_util_info): Likewise.
13397 (grub_util_error): Likewise.
13399 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13401 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
13402 * util/grub-fstest.c (fstest): Likewise.
13404 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13406 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
13407 (grub_md_sha512_real): Likewise.
13408 (grub_util_get_geli_uuid): Likewise.
13409 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
13410 (grub_util_biosdisk_open): Fix format specification.
13411 Respect format security.
13412 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
13413 (xrealloc): Likewise.
13414 (xasprintf): Likewise.
13416 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13418 * util/import_gcry.py: Include grub/crypto.h in init.c.
13420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13422 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
13423 (generate_image): Make prefix a const char *.
13424 Fix format specifications. Respect format security.
13425 Avoid void * arithmetics.
13427 (argp_parser): Remove unused variable. Respect format security.
13428 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
13429 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
13430 (count_funcs): Remove unused variable.
13431 (relocate_addresses): Fix format specification.
13432 Disable x86-64 with elf32. Remove unused variables.
13433 (add_fixup_entry): Avoid shadowing.
13434 (make_reloc_section): Fix format specification.
13436 (locate_sections): Fix format specifications.
13437 (load_image): Avoid shadowing.
13439 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13441 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
13442 Fix format specifications. Respect format security.
13443 Don't translate already translated grub_errmsg.
13444 (argp_parser): Remove unused variable
13446 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13448 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
13450 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13452 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
13453 (main): Likewise. Use xmalloc. Respect format security.
13455 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13457 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
13459 (argp_parser): Remove unused variable.
13461 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13463 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
13464 (add_pixel): Make static.
13465 (add_font): Likewise.
13466 (write_string_section): Make name and str a const char *.
13467 (write_be16_section): Make name a const char *.
13468 (print_glyphs): Make static.
13469 (write_font_ascii_bitmap): Likewise.
13470 (write_font_width_spec): Likewise.
13471 (write_font_pf2): Likewise.
13472 (argp_parser): Remove unused variable.
13473 Respect format security.
13474 (main): Avoid shadowing. Respect format security.
13476 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13478 * util/grub-editenv.c (argp_parser): Make static.
13479 (create_envblk_file): Use xmalloc.
13480 (open_envblk_file): Likewise.
13481 Resepect format security.
13482 (set_variables): Respect format security.
13484 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13486 * util/getroot.c (grub_find_device): Respect format security.
13487 (get_mdadm_uuid): Remove unused variable.
13488 (grub_util_pull_device): Dont call gettext on already translated
13490 (find_system_device): Remove unused variable.
13491 (grub_util_get_grub_dev): Likewise.
13492 (grub_make_system_path_relative_to_its_root): Respect format security.
13494 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13496 * util/grub-fstest.c (execute_command): Make first argument
13498 (read_file): Avoid shadowing.
13499 Reuse underlying error message if device open fails.
13500 (cmd_cmp): Respect format security.
13501 (root): Make const char *.
13502 (fstest): Remove args argument and use global copy.
13503 Respect format security.
13504 (argp_parser): Make static.
13505 (main): Make default_root const char *.
13507 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13509 * util/grub-mount.c (root): Make const char *.
13510 (execute_command): Make first argument a const char *.
13511 (fuse_init): Respect format security.
13512 (argp_parser): Make static. Remove unused variable.
13513 (main): Make default_root a const char *.
13514 Respect format security.
13516 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13518 * util/grub-probe.c (probe): Don't call gettext on already translated
13520 Remove unused variables.
13521 (argp_parser): Remove unused variable.
13523 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13525 * util/grub-script-check.c (argp_parser): Remove unused variable.
13526 (main): Rename read to curread to avoid shadowing.
13528 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13530 * util/misc.c (grub_util_write_image_at): Fix format specification.
13531 (grub_util_write_image): Likewise.
13532 (grub_script_execute_argument_to_string): Removed (unused).
13533 (grub_script_execute_menuentry): Likewise.
13534 (grub_putchar): Likewise.
13536 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13538 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
13539 (FUNCTION) [GRUB_UTIL]: Likewise.
13540 (VARIABLE) [GRUB_UTIL]: Likewise.
13542 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13544 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
13545 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
13547 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13549 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
13552 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13554 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
13555 (LzmaEnc_SaveState): Removed (unused).
13556 (LzmaEnc_RestoreState): Likewise.
13557 (LzmaEnc_InitPriceTables): Made static.
13558 (LzmaEnc_Construct): Likewise.
13559 (LzmaEnc_FreeLits): Likewise.
13560 (LzmaEnc_Destruct): Likewise.
13561 (LzmaEnc_Init): Likewise.
13562 (LzmaEnc_InitPrices): Likewise.
13563 (LzmaEnc_Finish): Likewise.
13564 (LzmaEnc_PrepareForLzma2): Removed (unused).
13565 (LzmaEnc_MemPrepare): Likewise.
13566 (LzmaEnc_GetNumAvailableBytes): Likewise.
13567 (LzmaEnc_GetCurBuf): Likewise.
13568 (LzmaEnc_CodeOneMemBlock): Likewise.
13570 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13572 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
13573 (grub_util_ldm_embed): Likewise.
13575 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13577 * util/grub-editenv.c (print_var): Rename name to varname to
13579 (main): Rename index to curindex to avoid shadowing.
13580 Make filename a const char *.
13582 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13584 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
13585 to arg_getline to avoid shadowing.
13587 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13589 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
13590 disk_ to avoid shadowing.
13592 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13594 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
13595 curindex to avoid shadowing.
13597 (MatchFinder_GetNumAvailableBytes): Make static.
13599 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13601 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
13604 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
13606 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
13607 argument from encrypt to do_encrypt to avoid shadowing.
13609 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13611 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
13612 incorrect nesting of #if's.
13614 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13616 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
13617 checks which are always false on some platforms.
13618 (grub_cmd_lsacpi): Likewise.
13619 * grub-core/kern/misc.c (grub_strtoul): Likewise.
13620 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
13623 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13625 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
13626 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
13628 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13630 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
13631 re_dfa_t to avoid breaking alignment invariants.
13632 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
13633 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
13635 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13637 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
13638 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
13640 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13642 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
13645 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13647 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
13648 conserve alignment invariants.
13649 (grub_ehci_ehcc_read16): Likewise.
13650 (grub_ehci_oper_read32): Likewise.
13651 (grub_ehci_oper_write32): Likewise.
13652 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
13653 Conserve alignment invariants.
13655 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13657 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
13658 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
13661 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13663 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
13664 Remove unused variable.
13666 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13668 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
13671 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13673 * include/grub/net.h: Remove double declarations.
13675 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13677 Remove "payload" command in ia64 Linux loader since I couldn't
13678 find any evidence of it being used for anything.
13679 Replace "relocate" command with an environment variable
13681 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
13683 (ia64_boot_payload): Removed.
13684 (last_payload): Likewise.
13685 (RELOCATE_OFF): Likewise.
13686 (RELOCATE_ON): Likewise.
13687 (RELOCATE_FORCE): Likewise.
13688 (relocate): Likewise.
13689 (free_pages): Don't free payloads.
13690 (grub_load_elf64): Use common error messages.
13691 Use "linux_relocate" variable.
13692 Increase the space after boot_params.
13693 (grub_cmd_payload): Removed.
13694 (grub_cmd_relocate): Likewise.
13695 (grub_cmd_fpswa): Improve messages.
13696 (cmd_payload): Removed.
13697 (cmd_relocate): Likewise.
13698 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
13699 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
13701 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13703 Convert UHCI to DMA framework.
13705 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
13706 (grub_uhci_pci_iter): Fill new members
13707 (grub_alloc_td): Use P2V and V2P functions.
13708 (grub_free_queue): Likewise.
13709 (grub_alloc_qh): Likewise.
13710 (grub_uhci_setup_transfer): Likewise.
13711 (grub_uhci_check_transfer): Likewise.
13713 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13715 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
13716 Remove assignment in if while on it.
13718 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13720 * util/grub-mkstandalone.in: Fix modules directory.
13722 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13724 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
13726 (argp_parser): Accept "auto" as compression specification.
13728 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13730 Fix `help' with unloaded modules.
13732 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
13733 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
13734 (grub_dyncmd_dispatcher): Small stylistic fix.
13735 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
13736 explicit help is requested.
13738 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13740 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
13741 Explicitly init restart while on it.
13743 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
13745 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
13748 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13750 * util/grub-mknetdir.in: Use . rather than source for POSIX
13753 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13755 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
13757 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13759 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
13762 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13764 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
13767 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13769 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
13771 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13773 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
13774 iteration of partitions.
13776 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
13778 Improve gettext support. Stylistic fixes and error handling fixes while
13781 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
13783 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
13784 part. Instead setup the correct stack in RM.
13785 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
13787 * include/grub/i386/relocator_private.h: New file.
13789 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13791 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
13793 * util/grub-fstest.c (options): Add missing DEVICE part.
13795 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13797 Clarify and unify messages.
13799 * grub-core/commands/hashsum.c (options): Unify messages.
13800 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
13801 literal-only message as translatable.
13802 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
13803 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
13804 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
13806 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
13807 key, not the key used to unlock. Clarify what it's used for.
13808 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
13809 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
13810 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
13811 * util/grub-editenv.c (options): Unify "verbose" message.
13812 * util/grub-fstest.c (read_file): Unify error message.
13813 (fstest): Add quotes around commands.
13814 (options): Unify "verbose" message.
13815 * util/grub-install.in: Add quotes around variable name.
13816 * util/grub-kbdcomp.in: Unify error message.
13817 * util/grub-mkfont.c (main): Likewise.
13818 * util/grub-mkrescue.in: Likewise.
13819 * util/grub-mklayout.c (options): Unify "verbose" message.
13820 * util/grub-mkstandalone.in: Unify help and verbose messages.
13821 * util/grub-mount.c (options): Unify "verbose" message.
13822 * util/grub-probe.c (options): Likewise.
13823 * util/grub-script-check.c (options): Likewise.
13824 * util/grub-setup.c (setup): Unify no-terminator message.
13825 (options): Use DEVICE and not DEV.
13826 Unify "verbose" message.
13827 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
13829 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13831 Improve and unify messages.
13833 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
13834 name. All users updated.
13835 Print filename in error.
13836 (read_device_map): Print filename in error.
13837 * util/getroot.c (grub_guess_root_devices): Print filename in error.
13838 (grub_util_get_os_disk): Likewise.
13839 (grub_util_biosdisk_get_grub_dev): Likewise.
13840 (grub_util_check_block_device): Likewise.
13841 (grub_util_check_char_device): Likewise.
13842 (grub_make_system_path_relative_to_its_root): Likewise.
13843 * util/grub-editenv.c (create_envblk_file): Likewise.
13844 (open_envblk_file): Likewise.
13845 (write_envblk): Likewise.
13846 * util/grub-fstest.c (cmd_cp): Likewise.
13847 (cmd_cat): Likewise.
13848 (cmd_cmp): Likewise.
13849 * util/grub-menulst2cfg.c (main): Likewise.
13850 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
13851 (write_font_width_spec): Likewise.
13852 (write_font_pf2): Likewise.
13853 * util/grub-mkimage.c (generate_image): New argument outname.
13855 Remove unreacheable message.
13856 (options): Unify messages.
13857 (help_filter): Likewise.
13858 * util/grub-mklayout.c (usage): Removed (unused).
13859 (main): Print filename in error.
13860 * util/grub-mkrescue.in: Fix wrong quoting.
13861 * util/grub-setup.c (setup): Print filename in error.
13862 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
13863 (check_sas): Likewise.
13864 * util/misc.c (grub_util_get_fp_size): Removed.
13865 (grub_util_get_image_size): Print filename in error.
13866 (grub_util_read_at): Removed.
13867 (grub_util_read_image): Print filename in error.
13868 (grub_util_load_image): Likewise.
13869 (grub_util_write_image_at): New argument filename. All users updated.
13870 Print filename in error.
13871 (grub_util_write_image): New argument filename. All users updated.
13872 Print filename in error.
13873 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
13874 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
13876 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13878 * grub-core/Makefile.core.def (pxechain): New module.
13879 * grub-core/loader/i386/pc/pxechainloader.c: New file.
13880 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
13882 (grub_pc_net_config_real): Use grub_pxe_get_cached.
13883 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
13885 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13887 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
13888 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
13889 * include/grub/err.h (grub_error_saved): New struct.
13890 (grub_errmsg): Make array size explicit.
13891 * include/grub/misc.h (grub_error_save): New function.
13892 (grub_error_load): Likewise.
13893 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
13894 (grub_error_push): Update `errno' member name.
13895 (grub_error_pop): Likewise
13896 * grub-core/net/tftp.c (tftp_data): New member save_err.
13897 (tftp_receive): Save error.
13898 (tftp_open): Restore error.
13900 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
13902 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
13903 to real mode down to execute A20-related code in protected mode as
13906 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
13908 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
13909 NULL when the argument `level' has an unexpected value.
13911 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13913 Move platform-dependent files from $prefix to $prefix/$platform.
13915 * config.h.in (GRUB_TARGET_CPU): New definition.
13916 (GRUB_PLATFORM): Likewise.
13917 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
13918 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
13919 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13920 * grub-core/kern/dl.c (grub_dl_load): Likewise.
13921 * grub-core/normal/autofs.c (read_fs_list): Likewise.
13922 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
13923 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
13924 * grub-core/normal/term.c (read_terminal_list): Likewise.
13925 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
13927 (grub_gettext_init_ext): Likewise.
13928 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
13930 * util/grub-install.in: Update directories.
13931 * util/grub-mknetdir.in: Likewise.
13932 * util/grub-mkrescue.in: Likewise.
13934 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13936 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
13937 grub_error framework. All users updated.
13939 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13941 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
13942 lists (by always binsearching), improve caching (cache strings
13943 used for binsearch, not only results), improve
13944 maintainability (by using more structured binary search) and correct
13947 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13949 * grub-core/script/execute.c (grub_script_return): Fix warning.
13951 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
13953 * grub-core/script/execute.c (grub_script_return): Fix potential
13955 Reported by: Jim Meyering.
13957 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13959 * po/POTFILES.in: Regenerate.
13960 * util/grub-install.in: Gettextize the strings missed in first pass.
13962 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13964 * Makefile.util.def (grub-mkdevicemap): Removed.
13965 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
13966 * include/grub/util/deviceiter.h: Removed.
13967 * util/deviceiter.c: Likewise.
13968 * util/getroot.c (grub_util_get_os_disk): New function.
13969 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
13970 replacement for EFI.
13971 * util/grub-mkdevicemap.c: Removed.
13972 * util/grub-probe.c (probe): Handle PRINT_DISK.
13973 (argp_parser): Handle -t disk.
13975 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13977 * util/grub-mkfont.c: Migrate to argp.
13978 * util/grub-mklayout.c: Likewise.
13979 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13980 * util/grub-mkrelpath.c: Likewise.
13981 * util/grub-probe.c: Likewise.
13982 * util/grub-script-check.c: Likewise.
13984 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13986 * util/grub-reboot.in: Add missing datarootdir.
13987 Add missing newline.
13988 * util/grub-set-default.in: Add missing datarootdir.
13989 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
13990 * util/grub-mkrescue.in: Likewise.
13992 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13994 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
13996 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
13998 * util/grub-kbdcomp.in: Add decent help and gettextize.
13999 * docs/man/grub-kbdcomp.h2m: New file.
14001 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14003 Migrate grub-mkimage.c to argp.
14005 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
14006 (grub-setup): Likewise.
14007 * util/grub-setup.c (print_version): Move to ...
14008 * util/argp_common.c (print_version): ... here.
14009 * util/grub-setup.c (argp_program_version_hook): Move to ...
14010 * util/argp_common.c (argp_program_version_hook): ... here.
14011 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
14013 * util/grub-mkimage.c (main): Migrate to argp.
14015 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14017 * util/grub-mkrescue.in: Use same message as
14018 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
14019 for better translations.
14021 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14023 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
14024 options with generic grub-mkrescue.in with the goal of future
14027 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14029 * grub-core/kern/mm.c: Add missing include of i18n.h
14030 * grub-core/lib/relocator.c: Likewise.
14032 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14034 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
14036 (allocate_pages): Check return value.
14037 Replace fatal with error.
14038 (grub_linux_boot): Replace printf with dprintf.
14039 Check find_mmap_size return value.
14040 Replace fatal with error.
14041 Don't call grub_machine_fini.
14042 (grub_load_elf64): Replace printf with dprintf.
14043 (grub_cmd_linux): Likewise.
14044 (grub_cmd_initrd): Likewise.
14045 (grub_cmd_payload): Likewise.
14047 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14049 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
14051 * grub-core/video/radeon_fuloong2e.c
14052 (grub_video_radeon_fuloong2e_setup): Likewise.
14053 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
14054 * grub-core/video/video.c (grub_video_set_mode): Don't override
14055 standard out of memory message.
14057 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
14059 NetBSD disk wedge support.
14061 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
14062 [__NetBSD__]: Handle NetBSD disk wedges.
14063 * util/getroot.c (convert_system_partition_to_system_disk)
14064 [__NetBSD__]: Likewise.
14066 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
14068 * util/grub-mkconfig.in: Use umask rather than chmod to create
14069 grub.cfg.new to avoid insecure grub.cfg.
14071 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14073 * grub-core/commands/ls.c: Gettextize.
14074 * grub-core/commands/setpci.c: Likewise.
14075 * grub-core/commands/videotest.c: Likewise.
14076 * grub-core/disk/geli.c: Likewise.
14077 * grub-core/kern/mm.c: Likewise.
14078 * grub-core/lib/relocator.c: Likewise.
14079 * grub-core/loader/efi/appleloader.c: Likewise.
14080 * grub-core/loader/i386/xnu.c: Likewise.
14081 * grub-core/loader/ia64/efi/linux.c: Likewise.
14082 * grub-core/loader/xnu.c: Likewise.
14083 * grub-core/net/dns.c: Likewise.
14084 * grub-core/net/net.c: Likewise.
14085 * grub-core/script/lexer.c: Likewise.
14086 * grub-core/script/parser.y: Likewise.
14087 * grub-core/script/yylex.l: Likewise.
14088 * util/getroot.c: Likewise.
14089 * util/grub-setup.c: Likewise.
14091 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14093 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
14096 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14098 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
14100 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14102 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
14104 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
14105 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
14107 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14109 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
14110 * util/grub-install.in: Gettextize.
14111 * util/grub-mkconfig.in: Likewise.
14112 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
14114 (grub_warn): Gettextize.
14115 * util/grub-mknetdir.in: Gettextize.
14116 * util/grub-mkrescue.in: Likewise.
14117 * util/grub-mkstandalone.in: Likewise.
14118 * util/grub-reboot.in: Likewise.
14119 * util/grub-set-default.in: Likewise.
14120 * util/grub.d/00_header.in: Likewise.
14121 * util/grub.d/10_hurd.in: Likewise.
14122 * util/grub.d/10_kfreebsd.in: Likewise.
14123 * util/grub.d/10_linux.in: Likewise.
14124 * util/grub.d/10_netbsd.in: Likewise.
14125 * util/grub.d/10_windows.in: Likewise.
14126 * util/grub.d/20_linux_xen.in: Likewise.
14127 * util/grub.d/30_os-prober.in: Likewise.
14128 * po/POTFILES-shell.in: Regenerate.
14130 2012-02-03 Richard Laager <rlaager@wiktel.com>
14132 * util/grub-mkimage.c (main): Fix format-security warning.
14133 * util/grub-mkrelpath.c (main): Likewise.
14134 * util/grub-probe.c (main): Likewise.
14136 2012-02-03 Richard Laager <rlaager@wiktel.com>
14138 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
14140 Put back lost PRINT_DRIVE.
14142 2012-02-03 Richard Laager <rlaager@wiktel.com>
14144 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
14145 (grub_guess_root_devices): Replace strlen with sizeof.
14147 (find_root_devices_from_poolname): Remove unused variable.
14150 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
14152 Support install on multi-device filesystems.
14154 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
14155 (grub_guess_root_devices): ...this. Return char **. All users updated.
14156 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
14158 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
14159 (find_root_devices_from_poolname): ... here.
14160 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
14162 (grub_guess_root_device): Rename to ...
14163 (grub_guess_root_devices): ... this. Return char **. All users updated.
14164 * util/grub-install.in: Handle multi-device filesystems.
14165 * util/grub-probe.c (probe). Make device_names a char **. Add delim
14166 argument. All users updated.
14167 Handle multi-device filesystems.
14168 Use 'delim' as separator.
14169 Remove device check to allow filesystems on file.
14170 (main): Support -0 argument. Handle multi-device.
14171 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
14172 Fix a cross-device check while on it.
14173 (arguments): Remove root_dev.
14174 (argp_parser): Remove -r.
14175 (main): Remove root_dev.
14177 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14179 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
14181 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14183 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
14185 Reported by: NODA, Kai <nodakai>.
14187 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14191 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
14193 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
14194 (grub_ehci_setup_qh): Likewise.
14195 (grub_ehci_find_qh): Likewise.
14196 (grub_ehci_transaction): Likewise.
14197 (grub_ehci_setup_transfer): Likewise.
14198 (grub_ehci_check_transfer): Likewise.
14199 (grub_ehci_portstatus): Likewise.
14200 (grub_ehci_detect_dev): Likewise.
14201 (grub_ehci_transfer_controller_data): New field td_last_phys.
14202 (grub_ehci_setup_transfer): Fill td_last_phys.
14203 (grub_ehci_check_transfer): Use td_last_phys.
14205 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
14207 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
14208 if no submenu is present.
14210 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14214 * include/grub/usb.h (grub_usbms_protocol_t): New values
14215 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
14216 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
14217 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
14218 (grub_usbms_dev): Add subclass, protocol and intrpt.
14219 Remove in_maxsz and out_maxsz.
14220 (grub_usbms_reset): Rename to ...
14221 (grub_usbms_bo_reset): .. this.
14222 (grub_usbms_cbi_cmd): New function.
14223 (grub_usbms_cbi_reset): Likewise.
14224 (grub_usbms_reset): Likewise.
14225 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
14226 (grub_usbms_transfer): Rename to ...
14227 (grub_usbms_transfer_bo): ... this.
14228 (grub_usbms_transfer_cbi): Likewise.
14229 (grub_usbms_transfer): Likewise.
14231 2012-02-01 Aleš Nesrsta <starous@volny.cz>
14232 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
14234 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
14235 the support for the CS5536 modification thereos and few bugfixes.
14237 * grub-core/Makefile.core.def (ehci): New module.
14238 * grub-core/bus/usb/ehci.c: New file.
14239 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
14240 port and hubaddr. All users updated.
14241 Save port and hubaddr into dev structure.
14242 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
14244 * include/grub/pci.h (grub_dma_phys2virt): New function.
14245 (grub_dma_virt2phys): Likewise.
14246 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
14248 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14250 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
14251 check as some mkfs implementations omit it.
14253 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14255 * docs/grub.texi (Unicode): Mention identifier and space limitations.
14257 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14259 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
14260 Add new member volname2.
14261 (grub_jfs_label): Use volname2 if available.
14263 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14265 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
14266 over last_mounted as seen in image generated by mkfs.nilfs2.
14267 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
14269 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14271 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
14272 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
14273 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
14275 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14277 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
14280 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14282 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
14283 subvolume name (by removing a bogus and useless check).
14285 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
14287 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
14288 sizeof while on it.
14290 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14292 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
14293 (grub_scsi_read_capacity10): ... this.
14294 (grub_scsi_read_capacity16): New function.
14295 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
14297 Fix off-by-one error.
14298 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
14300 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
14301 (grub_scsi_read_capacity10): ... this.
14302 (grub_scsi_read_capacity_data): Rename to ...
14303 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
14304 (grub_scsi_read_capacity16): New struct.
14305 (grub_scsi_read_capacity16_data): Likewise.
14306 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
14307 grub_scsi_cmd_read_capacity10.
14308 New command grub_scsi_cmd_read_capacity16.
14310 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14312 SCSI >2TiB support.
14314 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
14315 (grub_scsi_write16): Likewise.
14316 (grub_scsi_read): Use read16 when necessary.
14317 (grub_scsi_write): Likewise.
14318 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
14319 (grub_scsi_write16): Likewise.
14320 (grub_scsi_cmd_t): Add READ16 and WRITE16.
14322 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14324 SCSI write support (for usbms mainly).
14326 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
14328 (grub_scsi_write): Implement.
14329 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
14331 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
14333 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
14336 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14338 * grub-core/lib/posix_wrap/string.h (memchr): New function.
14340 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14342 * po/POTFILES.in: Regenerate.
14344 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14346 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
14347 with grub_printf to avoid unnecessary fatal failure.
14349 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14351 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
14352 (INT_MAX): Likewise.
14353 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
14354 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
14355 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
14356 (strcpy): Likewise.
14357 (strstr): Likewise.
14358 (strchr): Likewise.
14359 (strncpy): Likewise.
14360 (strcat): Likewise.
14361 (strncat): Likewise.
14362 (strcoll): Likewise.
14363 * include/grub/types.h (GRUB_SHRT_MAX): New define.
14364 (GRUB_INT_MAX): Likewise.
14366 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14368 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
14370 (optimize_utf8): Likewise.
14371 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
14373 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14375 * grub-core/boot/i386/pc/lnxboot.S: Use
14376 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
14377 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
14379 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
14381 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
14383 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14385 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
14386 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
14387 now to avoid double free.
14388 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
14390 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
14391 * util/grub-probe.c (escape_of_path): Always return a new copy.
14392 (print_full_name): Escape path.
14393 (probe): Don't call grub_util_devname_to_ofpath on NULL.
14394 Fix hints on abstractions.
14396 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14398 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
14399 Don't add "root" line if no compatibility hont is available.
14400 Suggested by: Seth Goldberg.
14402 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14404 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
14405 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
14406 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
14407 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
14409 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14411 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
14413 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14415 * util/grub-pe2elf.c (ehdr): Make static.
14417 (num_sections): Likewise.
14418 (offset): Likewise.
14420 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14422 Eliminate ofpath limits and possible overflows.
14424 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
14425 (OF_PATH_MAX): Removed.
14426 (MAX_DISK_CAT): New const.
14427 (find_obppath): Use allocated rather than preallocated buffer.
14428 Return result. Argument of_path removed. All users updated.
14429 Add missing fdstat.
14430 (xrealpath): New function.
14431 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
14432 Allocate rather than use preallocated buffer. All users updated.
14433 (__of_path_common): Use allocated rather than preallocatecd buffer.
14434 Return result. Argument of_path removed. All users updated.
14435 (vendor_is_ATA): Read only needed part form the file.
14436 (check_sas): Allocate depending on contents rather than fixed.
14437 (main) [STANDALONE]: Handle NULL result.
14439 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14441 * grub-core/normal/completion.c (iterate_dev): Close the disk.
14443 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14445 Cryptodisk write support.
14447 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
14448 (grub_cryptodisk_decrypt): Moved logic to ...
14449 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
14450 (grub_cryptodisk_write): Implement.
14451 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
14452 (grub_util_fd_write): ... this. Make global.
14453 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
14455 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14457 * include/grub/list.h (grub_list_remove): Don't crash if element is
14460 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14462 Rename ofconsole to console.
14464 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
14465 as sysnonym to console.
14466 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
14467 * grub-core/term/ieee1275/console.c: ... this. All users updated.
14468 Rename grub_ofconsole_ to grub_console_. All users updated
14469 (grub_console_term_output): Rename "ofconsole" to "console".
14470 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
14473 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14475 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
14477 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
14478 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
14479 GRUB_DISK_DEVICE_FILE_ID.
14481 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14483 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
14484 and improve performance.
14486 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14488 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
14489 missing ieee1275/ prefix on whole disk.
14491 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14493 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
14494 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
14496 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14498 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
14500 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
14502 Merge common RAID and LVM logic to an abstract diskfilter.
14503 Add LDM support using the same framework.
14505 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
14506 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
14507 (libgrubmods): Remove grub-core/disk/raid.c and
14508 grub-core/partmap/gpt.c.
14509 * grub-core/Makefile.core.def (ldm): New module.
14510 (raid): Renamed to diskfilter. All users updated.
14511 * grub-core/disk/raid.c: Moved to ...
14512 * grub-core/disk/diskfilter.c: ... here.
14513 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
14515 (find_array): Renamed to ...
14516 (find_lv): ... this. Support multi-LV. Skip nameless LVs
14517 (grub_is_array_readable): Renamed to ...
14518 (grub_is_lv_readable): ... this. Support multinode hierarchy.
14519 (insert_array): New argument id.
14520 (is_node_readable): New function.
14521 (scan_device): Rename to ...
14522 (scan_disk): .. this. Restrict to one disk.
14523 (scan_devices): New function.
14524 (grub_diskfilter_iterate): Support multi-LV.
14525 Skip invisible and nameless LVs.
14526 (grub_diskfilter_memberlist): Support multi-LV.
14527 (grub_diskfilter_read_node): New function.
14528 (grub_raid_read): Most of logic moved to ...
14529 (read_segment): ... here
14530 (read_lv): New function.
14531 (grub_diskfilter_get_vg_by_uuid): New function.
14532 (grub_diskfilter_make_raid): Likewise.
14533 * grub-core/disk/ldm.c: New file.
14534 * grub-core/disk/lvm.c (vg_list): Removed.
14535 (lv_count): Likewise.
14536 (scan_depth): Likewise.
14537 (is_lv_readable): Likewise.
14538 (grub_lvm_getvalue): Advance pointer past the number.
14539 (find_lv): Removed.
14540 (do_lvm_scan): Refactored into ...
14541 (grub_lvm_detect): ... this. Support raid.
14542 (grub_lvm_iterate): Removed.
14543 (grub_lvm_memberlist): Likewise.
14544 (grub_lvm_open): Likewise.
14545 (grub_lvm_close): Likewise.
14546 (read_lv): Likewise.
14547 (read_node): Likewise.
14548 (is_node_readable): Likewise.
14549 (is_lv_readable): Likewise.
14550 (grub_lvm_read): Likewise.
14551 (grub_lvm_write): Likewise.
14552 (grub_lvm_dev): Use diskfilter
14553 (GRUB_MOD_INIT): Likewise.
14554 (GRUB_MOD_FINI): Likewise.
14555 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
14557 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
14558 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14559 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
14560 grub_diskfilter_read_node.
14561 Fix a bug with xor.
14562 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
14563 grub_diskfilter_read_node.
14564 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
14565 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
14566 (grub_disk_dev_iterate): Move from here...
14567 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
14568 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
14570 (grub_hostdisk_find_partition_start): Likewise.
14571 (grub_hostdisk_os_dev_to_grub_drive): New function.
14572 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
14573 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
14574 * util/getroot.c (make_device_name): ... here.
14575 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
14577 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
14578 * grub-core/kern/emu/hostdisk.c
14579 (convert_system_partition_to_system_disk): Move to ...
14580 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
14581 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
14582 * util/getroot.c (device_is_wholedisk): ... here.
14583 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
14584 * util/getroot.c (find_system_device): ... here.
14585 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
14587 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
14588 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
14590 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
14592 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14594 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
14595 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
14596 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
14598 * include/grub/raid.h: Renamed to ...
14599 * include/grub/diskfilter.h: ... this.
14600 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
14601 (GRUB_RAID_LAYOUT_*): Make into array.
14602 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
14603 (grub_diskfilter_vg): New struct.
14604 (grub_diskfilter_pv_id): Likewise.
14605 (grub_raid_member): Removed.
14606 (grub_raid_array): Likewise.
14607 (grub_diskfilter_pv): New struct.
14608 (grub_diskfilter_lv): Likewise.
14609 (grub_diskfilter_segment): Likewise.
14610 (grub_diskfilter_node): Likewise.
14611 (grub_diskfilter_get_vg_by_uuid): New proto.
14612 (grub_raid_register): Inline.
14613 (grub_diskfilter_unregister): Likewise.
14614 (grub_diskfilter_make_raid): New proto.
14615 (grub_diskfilter_vg_register): Likewise.
14616 (grub_diskfilter_read_node): Likewise.
14617 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
14618 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
14619 (grub_util_is_ldm): Likewise.
14620 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
14621 (grub_hostdisk_find_partition_start): Likewise.
14622 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
14623 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
14625 (grub_gpt_partition_map_iterate): New proto.
14626 * include/grub/lvm.h (grub_lvm_vg): Removed.
14627 (grub_lvm_pv): Likewise.
14628 (grub_lvm_lv): Likewise.
14629 (grub_lvm_segment): Likewise.
14630 (grub_lvm_node): Likewise.
14631 * util/getroot.c [...]
14632 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
14633 (probe_abstraction): Likewise.
14634 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
14635 (main): Remove dead logic.
14637 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
14639 Simplify root device discover and don't fail when trying to open
14642 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
14644 (get_diskname_from_path): Likewise.
14645 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
14648 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14650 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
14652 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14654 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
14657 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
14659 * util/grub-install.in: Add missing \.
14660 Reported by: gentoofan
14662 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14664 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
14665 (direct_read): Use correct compressed size.
14666 (grub_squash_read_data): Likewise.
14668 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
14670 * docs/grub.texi (Platform limitations): New section.
14671 (Platform-specific operations): Likewise.
14672 * docs/grub-dev.texi (Porting): Likewise.
14674 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14676 IEEE1275 disk write support.
14678 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
14680 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
14681 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
14682 and seek loginc to ...
14683 (grub_ofdisk_prepare): ... here.
14684 (grub_ofdisk_write): Implement.
14686 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14688 ARC disk write support.
14690 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
14691 (reopen): New argument writable. All users updated.
14692 Handle required access mode.
14693 (grub_arcdisk_write): Implement.
14694 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
14695 (grub_arc_firmware_vector): Make buffer to write a const buffer.
14697 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14699 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
14700 (read_sblock): Don't attempt to read superblocks outside the disk size.
14702 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14704 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
14705 first superblock to find the second one when possible.
14707 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
14709 * util/grub-install.in: Fix an ARC bug.
14710 Print a warning if no platform-specific setup is available.
14712 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14714 Use static allocation rather than scratch pointer in reed_solomon.
14715 It decreases its size significantly and avoids a variable in .text.
14717 * grub-core/lib/reed_solomon.c (scratch): Removed.
14718 (chosenstat): New const or static array.
14720 (errpot): Likewise.
14721 (errpos): Likewise.
14724 (errvals): Likewise.
14725 (eqstat): Likewise.
14726 (pol_evaluate): Replace x with log_x argument. All users updated.
14727 (syndroms): Removed.
14728 (gauss_solve): Use statically allocated arrays.
14729 (rs_recover): Likewise.
14730 Calculate syndroms directly.
14731 (decode_block): Use statically allocated arrays.
14732 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
14733 (main) [TEST]: Allow -DTEST -DSTANDALONE.
14735 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14737 Eliminate fixed limit on reed solomon decoder length.
14739 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
14740 rather than hardcoding the address.
14741 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
14742 no_reed_solomon_length.
14743 Move gate_a20 to no-reed-solomon part.
14744 Don't force a particular size of no reed-solomon part.
14745 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
14747 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
14748 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
14750 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14752 * grub-core/commands/wildcard.c (match_files): Handle filenames
14753 without explicit device.
14754 (wildcard_expand): Don't add explicit device if not already present.
14755 * tests/grub_script_echo1.in: Add a new expansion test.
14757 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14759 Replace single-linked with double-linked lists. It results in more
14760 compact and more efficient code.
14762 * grub-core/kern/list.c (grub_list_push): Moved from here ...
14763 * include/grub/list.h (grub_list_push): ... to here. Set prev.
14764 (grub_list_remove): Moved from here ...
14765 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
14766 (grub_prio_list_insert): Set prev.
14767 * include/grub/list.h (grub_list): Add prev. All users updated.
14769 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14771 Handle newer autotools. Add some missing quotes while on it.
14773 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
14774 (pkglib_DATA): Move grub-mkconfig_lib from here ...
14775 (pkgdata_DATA): ... here.
14776 * Makefile.util.def (update-grub_lib): Removed.
14777 * conf/Makefile.common (pkglib_DATA): Removed.
14778 (pkglib_SCRIPTS): Likewise.
14779 (pkgdata_DATA): New variable.
14780 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
14782 Add missing quotes.
14783 Remove unused variable while on it.
14784 * tests/util/grub-shell.in: Likewise.
14785 * util/grub-install.in: Likewise.
14786 * util/grub-mkconfig.in: Likewise.
14787 * util/grub-mknetdir.in: Likewise.
14788 * util/grub-mkrescue.in: Likewise.
14789 * util/grub-mkstandalone.in: Likewise.
14790 * util/grub.d/00_header.in: Likewise.
14791 * util/grub.d/10_hurd.in: Likewise.
14792 * util/grub.d/10_illumos.in: Likewise.
14793 * util/grub.d/10_kfreebsd.in: Likewise.
14794 * util/grub.d/10_linux.in: Likewise.
14795 * util/grub.d/10_netbsd.in: Likewise.
14796 * util/grub.d/10_windows.in: Likewise.
14797 * util/grub.d/20_linux_xen.in: Likewise.
14798 * util/grub.d/30_os-prober.in: Likewise.
14799 * util/update-grub_lib.in: Removed.
14801 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
14803 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
14804 a workaround for intel problem.
14806 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
14807 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14808 2012-01-23 pfsmorigo
14810 * util/grub-install.in: Support dd'in into PreP partition.
14811 * util/grub-probe.c (probe): Support discovering partition type.
14812 (main): Support -t msdos_parttype.
14814 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
14816 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
14817 infinite recursion using counter.
14818 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
14819 init to skip it if the magic check fails.
14820 (dec_stream_header): Init s->crc32.
14822 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14823 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
14824 2012-01-22 Richard Laager <rlaager@wiktel.com>
14826 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
14828 (find_bestub): Determine correct size.
14829 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
14830 (scan_disk): Align the size down.
14831 Call check pool before find_bestub to have ashift.
14833 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14835 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
14836 dprintf in no-malloc zone.
14838 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
14840 * configure.ac: Add back in test for limits.h.
14842 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14844 Support 4K-sector NTFS.
14846 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
14847 (grub_ntfs_data): Remove blocksize.
14848 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
14849 Remove data argument. All users updated.
14851 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
14853 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
14854 being in .text to avoid dprel references.
14855 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
14856 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
14857 (grub_arch_highmemsize): Likewise.
14858 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
14859 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
14860 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
14862 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14864 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
14866 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
14867 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
14869 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14871 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
14873 (grub_set_datetime_cmos): Likewise.
14875 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14877 Make XZ compression parameters dependent on target and not host CPU.
14879 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
14880 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
14882 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
14884 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
14885 set but not used variable.
14887 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14889 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
14890 created when no uuid support is compiled into mkfs.reiser.
14892 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14894 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
14895 (utf8_to_macroman): Do the opposite.
14896 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
14898 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14900 * configure.ac: Refise build qemu_mips w/o unifont.
14902 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14904 Eliminate grub_min/grub_max prone to overflow usage.
14906 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
14907 (poll_nonroot_hub): Likewise.
14908 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
14909 (grub_affs_label): Likewise.
14910 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
14911 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
14912 (grub_hfs_label): Likewise.
14913 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
14914 * grub-core/fs/zfs/zfs.c (MIN): Remove.
14915 (zap_leaf_array_equal): Use grub_size. Remove MIN.
14916 (zap_leaf_array_get): Likewise.
14917 (dnode_get_path): Likewise.
14918 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
14919 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
14920 * grub-core/script/execute.c (grub_script_break): Likewise.
14921 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
14923 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
14924 * include/grub/misc.h (grub_min): Removed.
14925 (grub_max): Likewise.
14927 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
14929 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
14932 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14934 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
14936 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14938 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
14940 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14942 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
14943 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
14945 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14947 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
14948 rather than a hack for grub_strncasemap.
14950 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14952 Support multiple initrds
14953 Note: part of this was accidently committed in r3739.
14955 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
14957 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
14958 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
14959 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
14960 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14961 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
14963 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14965 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
14966 disks with unknown size.
14967 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
14969 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14971 Remove defines pertaining to arbitrary limits not affecting GRUB
14974 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
14975 (EXT2_MAX_SYMLINKCNT): Likewise.
14976 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
14977 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
14978 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
14979 (GRUB_PXE_MAX_BLKSIZE): Likewise.
14980 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
14981 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
14982 (DN_MAX_OBJECT_SHIFT): Likewise.
14983 (DN_MAX_OFFSET_SHIFT): Likewise.
14984 (DN_MAX_OBJECT): Likewise.
14985 (DNODES_PER_LEVEL_SHIFT): Likewise.
14986 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
14987 (SPA_MAXBLOCKSIZE): Likewise.
14988 (SPA_BLOCKSIZES): Likewise.
14989 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
14990 (MZAP_MAX_BLKSZ): Likewise.
14992 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14994 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
14995 handle NULL appropriately.
14998 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15002 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
15004 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
15005 * configure.ac: Fix efiemu check.
15007 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
15009 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
15011 Reported by: adamwill
15013 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
15015 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
15017 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15019 Fix handling of wide characters in gfxterm.
15021 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
15022 (clear_char): Likewise.
15023 (paint_char): Skip code == NULL chars.
15024 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
15026 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
15028 * grub-core/normal/charset.c: Move comment to right place.
15030 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15032 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
15033 (GRUB_AFFS_FLAG_FFS): Put back where it was.
15034 (grub_affs_mount): Revert the correct version checking.
15036 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
15038 * docs/grub.texi (Unicode): Mention several other unsupported features.
15040 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15042 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
15043 case statements as compile-time one.
15044 (direct_read): Prevent spurious warnings.
15045 (grub_squash_read_data): Likewise.
15047 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15049 Various squash4 fixes and LZO and XZ support.
15051 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
15052 Add xzembed source files.
15053 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
15054 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
15055 (grub_squash_inode): New subtype long_dir.
15056 (SQUASH_TYPE_LONG_DIR): New inode type.
15057 (COMPRESSION): New enum.
15058 (XZBUFSIZ): New const.
15059 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
15060 (read_chunk): Use data->decompress.
15061 (zlib_decompress): New function.
15062 (lzo_decompress): Likewise.
15063 (xz_decompress): Likewise.
15064 (squash_mount): Set new data fields.
15065 (grub_squash_iterate_dir): Handle long dir.
15066 (squash_unmount): Free xzdec and xzbuf.
15067 (grub_squash_open): Check ino type.
15068 (direct_read): Stylistic fixes. Use data->decompress.
15069 (grub_squash_read_data): Likewise.
15070 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
15071 (get_byte): Likewise.
15072 (grub_zlib_disk_read): Removed.
15073 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
15074 (GRUB_POSIX_BOOL_DEFINED): New define.
15075 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
15076 * grub-core/lib/xzembed/xz.h: Addmissing includes.
15077 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
15078 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
15080 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
15082 Don't override more informative errors.
15084 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
15085 * grub-core/font/font.c (open_section): Likewise.
15086 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
15087 filename. Don't override errors.
15088 (grub_cmd_openbsd_ramdisk): Don't override errors.
15089 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
15090 (grub_cmd_initrd): Likewise.
15091 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15092 (grub_cmd_initrd): Likewise.
15093 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
15094 (grub_cmd_linux): Likewise.
15095 (grub_cmd_initrd): Likewise.
15096 (grub_cmd_payload): Likewise.
15097 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
15098 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
15099 (grub_cmd_module): Likewise.
15100 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15101 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
15102 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
15103 (grub_cmd_xnu_mkext): Likewise.
15104 (grub_cmd_xnu_ramdisk): Likewise.
15105 (grub_xnu_check_os_bundle_required): Likewise.
15106 (grub_xnu_load_kext_from_dir): Likewise.
15107 (grub_cmd_xnu_kextdir): Likewise.
15108 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
15110 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15112 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
15113 as 1024 in block size field. Found on one of my test images.
15114 Small optimisation while on it.
15116 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15118 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
15119 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
15120 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
15121 performance fixes while on it.
15122 (grub_sfs_close): Fix memory leak while on it.
15123 (grub_sfs_label): Convert Latin1 to UTF-8.
15125 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15127 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
15128 space to avoid overflows.
15129 (grub_hfs_label): Convert from macroman to UTF-8.
15131 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15133 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
15135 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15137 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
15139 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15141 * unicode: Import Unicode 6.0 data.
15143 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15145 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
15148 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15150 Avoid cutting in the middle of UTF-8 character.
15152 * include/grub/charset.h (grub_getend): New function.
15153 * grub-core/script/function.c (grub_script_function_find): Use
15155 * grub-core/normal/completion.c (add_completion): Likewise.
15157 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15159 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
15160 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
15161 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
15162 (GRUB_UNICODE_TAG_END): Likewise.
15163 (GRUB_UNICODE_LAST_VALID): Likewise.
15165 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15167 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
15168 len and make it smaller. All users updated.
15169 * util/import_unicode.py: Put length and not end character.
15172 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15174 Make better Unicode-compliant and unify some UTF-8 code pathes.
15176 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
15178 (grub_is_valid_utf8): Use grub_utf8_process.
15179 Check resulting code range.
15180 (grub_utf8_to_ucs4): Use grub_utf8_process.
15181 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
15184 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15186 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
15188 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15190 * docs/grub.texi (Filesystems): Mention AFS.
15192 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
15194 * docs/grub.texi (Filesystems): Clarify restrictions.
15195 (Regexp): Mention non-Unicode regexp behaviour.
15196 (Other): Mention non-Unicode matching behaviour.
15198 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15200 Make HFS implementation use MacRoman.
15202 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
15203 (macroman): New const array.
15204 (macroman_to_utf8): New function.
15205 (utf8_to_macroman): Likewise.
15206 (grub_hfs_find_dir): Use utf8_to_macroman.
15207 (grub_hfs_dir): Use macroman_to_utf8.
15208 Set case_insensitive.
15210 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15212 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
15214 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15216 Integrate hints into autogeneration scripts.
15218 * docs/grub.texi (Filesystems): Add a hostdisk example.
15219 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
15220 (grub-probe): Add ofpath.
15221 * gentpl.py: Remove group nosparc64.
15222 * grub-core/commands/search.c (cache_entry): New struct.
15224 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
15225 * grub-core/commands/search_wrap.c (options): Add platform-specific
15227 (grub_cmd_search): Handle platform-specific hints.
15228 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
15229 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
15230 (grub_util_biosdisk_data): Likewise.
15231 (grub_util_biosdisk_open): Set device_map.
15232 (read_device_map): Handle "" as indication of no map.
15234 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
15235 (grub_util_biosdisk_get_compatibility_hint): New function.
15236 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
15237 * include/grub/emu/hostdisk.h
15238 (grub_util_biosdisk_get_compatibility_hint): New proto.
15239 * util/grub-install.in: Don't call grub-mkdevicemap.
15240 Add platform-specific hint to load.cfg.
15241 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
15242 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
15243 hints. Set root preliminary to compatibility hint, not to OS name.
15244 * util/grub-probe.c (PRINT_*): Add hints.
15245 (print): Make static.
15246 (escape_of_path): New function.
15247 (guess_bios_drive): Likewise.
15248 (guess_efi_drive): Likewise.
15249 (guess_baremetal_drive): Likewise.
15250 (print_full_name): Likewise.
15251 (probe): Handle hints.
15253 * util/ieee1275/devicemap.c: Removed.
15254 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
15256 (grub_util_devname_to_ofpath): Return NULL on failure.
15258 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
15260 * util/getroot.c (grub_util_pull_device): Fix memory leak.
15262 * po/POTFILES.in: Regenerated.
15264 Allow purely long options
15266 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
15267 (SHORT_ARG_USAGE): Likewise.
15268 (grub_arg_show_help): Compare opt with help_options.
15269 (parse_option): Receive opt as argument. If makes big simplificatons.
15272 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15274 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
15275 Restructure to avoid warning.
15277 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15279 * util/grub-install.in: Account for possible escaped comma in device
15282 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15284 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
15287 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15289 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
15290 allocation and zero-setting.
15291 (grub_ieee1275_get_devname): Check that alias is complete.
15293 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15295 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
15296 unaligned segments.
15298 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
15300 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
15302 (grub_ofdisk_open): Check and discard ieee1275 prefix.
15303 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
15304 Add ieee1275 prefix.
15306 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15308 * docs/grub.texi (Filesystems): Update.
15310 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15312 Support odc, newc and bigendian cpio formats.
15314 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
15315 * grub-core/Makefile.core.def (newc): New module.
15317 (cpio_be): Likewise.
15318 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
15320 (MAGIC2): Likewise.
15321 (head) [MODE_ODC]: Adapt for the format.
15322 (head) [MODE_NEWC]: Likewise.
15323 (head) [!MODE_*]: Write fields of interest as arrays.
15324 (MAGIC_USTAR): Removed.
15325 (read_number) [MODE_NEWC]: Change to hex.
15326 (read_number) [!MODE_*]: Parse binary arrays.
15327 (grub_cpio_find_file): Factor out the code for better structure and
15328 always use read_number.
15329 (grub_cpio_mount): Use MAGIC and MAGIC2.
15330 (grub_cpio_dir): Exit on first hook non-0 return.
15331 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
15332 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
15333 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
15334 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
15335 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
15336 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
15337 * grub-core/fs/newc.c: New file.
15338 * grub-core/fs/odc.c: Likewise.
15339 * grub-core/fs/cpio_be.c: Likewise.
15341 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15343 Fix handling of tar numbers occupying the whole field.
15345 * grub-core/fs/cpio.c (read_number): New function.
15346 (grub_cpio_find_file): Use read_number instead of strtoull.
15348 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15350 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
15351 occupying the whole field size.
15353 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
15355 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
15357 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15359 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
15361 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
15363 * grub-core/Makefile.core.def (lzma_decompress): Add missing
15364 TARGET_IMG_LDFLAGS.
15366 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15368 * util/getroot.c (ESCAPED_PATH_MAX): New define.
15369 (mountinfo_entry): Increase the field size to take escaping into
15371 (find_root_device_from_libzfs): Add one byte to size of strings for
15374 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15376 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
15378 * util/grub-setup.c (setup): Likewise.
15380 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
15382 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
15385 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15387 * docs/grub.texi (Internationalisation): New section.
15389 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
15391 * docs/grub.texi (Loopback booting): New section.
15393 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
15395 * util/grub-mkstandalone.in: Fix minor typo errors.
15397 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
15399 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
15401 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
15402 net/icmp.c and net/icmp6.c.
15403 (http): New module.
15404 (priority_queue): Likewise.
15405 * grub-core/io/bufio.c: Rewritten.
15406 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
15407 TYPE_WITH_CONFIGFILE_OPTION.
15408 (legacy_commands): Add bootp and dhcp.
15409 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
15410 (grub_legacy_parse): Likewise.
15411 * grub-core/lib/priority_queue.c: New file.
15412 * grub-core/net/arp.c: Add missing license header.
15413 (arp_find_entry): Removed.
15414 (arp_find_entry): Likewise.
15415 (grub_net_arp_resolve): Rename to ...
15416 (grub_net_arp_send_request): ...this.
15417 (grub_net_arp_receive): New card argument.
15418 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
15419 Set router and DNS server.
15420 (grub_net_configure_by_dhcp_ack): Handle routing information.
15421 (grub_cmd_bootp): Set checksum.
15422 (grub_bootp_init): Remove net_dhcp.
15423 * grub-core/net/dns.c: New file.
15424 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
15426 (get_card_packet): Handle allocation.
15427 (grub_efinet_findcards): Set mtu.
15428 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
15429 (get_card_packet): Handle allocation.
15430 (emucard): Set mtu.
15431 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
15432 (GRUB_MOD_INIT): Set mtu.
15433 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
15435 (get_card_packet): Handle allocation.
15436 (grub_ofnet_findcards): Set mtu.
15437 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
15439 (grub_net_recv_ethernet_packet): Handle IPv6.
15440 * grub-core/net/http.c: New file.
15441 * grub-core/net/icmp.c: Likewise.
15442 * grub-core/net/icmp6.c: Likewise.
15443 * grub-core/net/ip.c (ip6addr): New type.
15444 (ip6hdr): Likewise.
15445 (reassemble): Likewise.
15446 (cmp): New function.
15447 (reassembles): New variable.
15448 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
15449 (id): New variable.
15450 (send_fragmented): New function.
15451 (grub_net_send_ip_packet): Rename to ...
15452 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
15454 (grub_net_recv_ip_packets): Rename to ...
15455 (handle_dgram): ... this. Check checksum. Handle non-UDP.
15456 (free_rsm): New function.
15457 (free_old_fragments): Likewise.
15458 (grub_net_recv_ip4_packets): New function.
15459 (grub_net_send_ip6_packet): Likewise.
15460 (grub_net_send_ip_packet): Likewise.
15461 (grub_net_recv_ip6_packets): Likewise.
15462 (grub_net_recv_ip_packets): Likewise.
15463 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
15464 (LINK_LAYER_CACHE_SIZE): New const.
15465 (link_layer_find_entry): New function.
15466 (grub_net_link_layer_add_address): Likewise.
15467 (grub_net_link_layer_resolve_check): Likewise.
15468 (grub_net_link_layer_resolve): Likewise.
15469 (grub_net_ipv6_get_slaac): Likewise.
15470 (grub_net_ipv6_get_link_local): Likewise.
15471 (grub_cmd_ipv6_autoconf): Likewise.
15472 (parse_ip): Handle one number representation.
15473 (parse_ip6): New functoion.
15474 (match_net): Handle IPv6.
15475 (grub_net_resolve_address): Handle IPv6 and DNS.
15476 (grub_net_resolve_net_address): Handle IPv6.
15477 (route_cmp): New function.
15478 (grub_net_route_address): Find best route.
15479 (grub_net_addr_to_str): Handle IPv6.
15480 (grub_net_addr_cmp): New function.
15481 (grub_net_add_addr): Register local route.
15482 (print_net_address): Handle net address.
15483 (grub_net_poll_cards): Retransmit TCP.
15484 (grub_net_poll_cards_idle_real): Likewise.
15485 (have_ahead): New function.
15486 (grub_net_seek_real): Use underlying seek.
15487 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
15488 * grub-core/net/tcp.c: New file.
15489 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
15490 (cmp): New function.
15492 (tftp_receive): Handle unordered input.
15493 (destroy_pq): New function.
15494 (tftp_close): Close pq.
15495 * grub-core/net/udp.c: Put missing license header.
15496 (grub_net_udp_socket): New function.
15497 (udp_socket_register): Likewise.
15498 (grub_net_udp_close): Likewise.
15499 (grub_net_recv_udp_packet): Check checksum.
15500 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
15501 * include/grub/misc.h (grub_memchr): New function.
15502 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
15503 (grub_net_card_driver): Return buf in recv.
15504 (grub_net_slaac_mac_list): New struct.
15505 (grub_network_level_protocol_id): Add ipv6.
15506 (grub_net_network_level_addr): Likewise.
15507 (grub_net_network_level_net_addr): Likewise.
15508 (grub_net_app_protocol): Add seek.
15509 (grub_net_socket): Removed.
15510 (grub_net_sockets): Likewise.
15511 (grub_net_socket_register): Likewise.
15512 (grub_net_socket_unregister): Likewise.
15513 (FOR_NET_SOCKETS): Likewise.
15514 (grub_net_add_addr): Add const.
15515 (GRUB_NET_BOOTP_*): New enum.
15516 (grub_net_addr_cmp): New proto.
15517 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
15518 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
15519 (grub_net_hwaddr_to_str): NEw proto.
15520 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
15521 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
15522 (grub_dns_init): New proto.
15523 (grub_dns_fini): Likewise.
15524 (grub_net_tcp_retransmit): Likewise.
15525 (grub_net_link_layer_add_address): Likewise.
15526 (grub_net_link_layer_resolve_check): Likewise.
15527 (grub_net_link_layer_resolve): Likewise.
15528 (grub_net_dns_lookup): Likewise.
15529 (grub_net_add_dns_server): Likewise.
15530 (grub_net_remove_dns_server): Likewise.
15531 (GRUB_NET_TRIES): New const.
15532 (GRUB_NET_INTERVAL): Likewise.
15533 * include/grub/net/arp.h: Mostly rewritten.
15534 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
15535 * include/grub/net/ip.h: Mostly rewritten.
15536 * include/grub/net/netbuff.h: Indent.
15537 * include/grub/net/tcp.h: New file.
15538 * include/grub/net/udp.h: Mostly rewritten.
15539 * include/grub/priority_queue.h: New file.
15540 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
15541 (grub_swap_bytes64_compile_time): Likewise.
15542 (grub_cpu_to_be16_compile_time): Likewise.
15543 (grub_cpu_to_be32_compile_time): Likewise.
15544 (grub_cpu_to_be64_compile_time): Likewise.
15545 (grub_be_to_cpu64_compile_time): Likewise.
15547 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
15549 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
15550 UINT_TO_PTR with cast.
15552 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15554 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
15557 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15559 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
15562 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15564 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
15567 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15569 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
15570 Add missing const attribute.
15571 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
15573 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
15576 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15578 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
15580 (serpent_setkey): Likewise.
15581 (serpent_encrypt_internal): Likewise.
15582 (serpent_decrypt_internal): Likewise.
15583 (serpent_encrypt): Don't put an alignment-increasing cast.
15584 (serpent_decrypt): Likewise.
15585 (serpent_test): Likewise.
15587 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15589 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
15591 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15593 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
15595 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
15597 (PTR_TO_UINT64): Likewise.
15598 (PTR_TO_UINT32): Likewise.
15600 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15602 * util/grub-mkimage.c (generate_image): Decrease the higher limit
15604 * util/grub-setup.c (setup): Don't add redundancy past the higher load
15607 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15609 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
15610 text_width > available width a bit more gracefully.
15612 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15614 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
15615 current address calculation.
15617 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15619 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
15621 (encode_block): Likewise.
15623 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15625 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
15628 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15630 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
15631 non-RS part to avoid RS messing with GDT.
15632 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
15633 Increase to suit in realmode routines.
15635 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
15637 * grub-core/kern/i386/realmode.S: Increase alignment.
15638 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
15640 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15642 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
15644 (syndroms): Compute 0 syndrom.
15645 (rs_recover): Use 0 syndrom.
15647 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15649 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
15651 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15653 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
15656 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15658 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
15660 (get_top_pad): Likewise.
15661 (get_right_pad): Likewise.
15662 (get_bottom_pad): Likewise.
15664 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15666 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
15668 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15670 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
15671 attribute as the structure isn't guaranteed to be properly aligned.
15672 (grub_efi_pci_device_path): Likewise.
15673 (grub_efi_pccard_device_path): Likewise.
15674 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
15675 specify the size of `memory_type'.
15676 (grub_efi_vendor_device_path): Likewise.
15677 (grub_efi_controller_device_path): Likewise.
15678 (grub_efi_acpi_device_path): Likewise.
15679 (grub_efi_expanded_acpi_device_path): Likewise.
15680 (grub_efi_atapi_device_path): Likewise.
15681 (grub_efi_scsi_device_path): Likewise.
15682 (grub_efi_fibre_channel_device_path): Likewise.
15683 (grub_efi_1394_device_path): Likewise.
15684 (grub_efi_usb_device_path): Likewise.
15685 (grub_efi_usb_class_device_path): Likewise.
15686 (grub_efi_i2o_device_path): Likewise.
15687 (grub_efi_mac_address_device_path): Likewise.
15688 (grub_efi_ipv4_device_path): Likewise.
15689 (grub_efi_ipv6_device_path): Likewise.
15690 (grub_efi_infiniband_device_path): Likewise.
15691 (grub_efi_uart_device_path): Likewise.
15692 (grub_efi_vendor_messaging_device_path): Likewise.
15693 (grub_efi_hard_drive_device_path): Likewise.
15694 (grub_efi_cdrom_device_path): Likewise.
15695 (grub_efi_vendor_media_device_path): Likewise.
15696 (grub_efi_file_path_device_path): Likewise.
15697 (grub_efi_protocol_device_path): Likewise.
15698 (grub_efi_piwg_device_path): Likewise.
15699 (grub_efi_bios_device_path): Likewise.
15701 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15703 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
15704 (grub_ucs4_to_utf8_alloc): Likewise.
15705 (grub_ucs4_to_utf8): Likewise.
15706 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
15707 (grub_ucs4_to_utf8_alloc): Likewise.
15709 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
15711 AFFS never uses unicode.
15713 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
15714 (grub_latin1_to_utf8): New inline function.
15715 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
15717 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15719 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
15722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15724 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
15725 (grub_squash_dirent_header): Likewise.
15726 (read_chunk): Don't double swap.
15727 (grub_squash_iterate_dir): Fix swap sizes.
15729 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15731 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
15733 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15735 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
15736 (grub_hfs_iterate_dir): Likewise.
15738 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15740 Fix video on platforms where unaligned access is forbidden.
15741 Make several optimisations while on it.
15743 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
15744 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15745 (grub_video_fbblit_replace_32bit_1bit): Likewise.
15746 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15748 (grub_video_fbblit_replace_16bit_1bit):
15749 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15750 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15751 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
15752 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
15753 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15754 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
15755 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
15756 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
15757 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
15758 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
15759 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
15760 (grub_video_fbblit_replace_index_RGB888): Likewise.
15761 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
15762 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
15763 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
15764 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
15765 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
15766 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15767 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
15769 (grub_video_fbblit_blend_XXX565_1bit):
15770 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
15771 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
15772 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
15774 * grub-core/video/fb/video_fb.c (common_blitter)
15775 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
15776 (grub_video_fb_create_render_target_from_pointer)
15777 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
15778 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
15779 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
15781 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
15783 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15785 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
15786 HH22 and HM10 relocations.
15788 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15790 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
15792 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15794 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
15795 allocation succeeded.
15797 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15799 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
15800 argument a u8 pointer. All users updated.
15801 Handle unaligned buffers.
15803 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15805 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
15806 add_part to workaround compiler bug.
15808 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15810 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
15812 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15814 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
15815 Reserve alignment invariants.
15816 (grub_multiboot_load): Likewise.
15817 (retrieve_video_parameters): Likewise.
15818 (grub_multiboot_make_mbi): Likewise.
15820 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15822 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
15825 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15827 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
15828 (grub_pata_pio_write): Likewise.
15830 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15832 Add noreturn attributes and remove unreachable code.
15834 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
15836 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
15837 code. Mark as noreturn.
15838 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
15839 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
15840 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
15842 * grub-core/kern/main.c (grub_main): Mark as noreturn.
15843 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
15844 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
15845 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
15846 * include/grub/kernel.h (grub_main): Mark as noreturn.
15847 * include/grub/reader.h (grub_rescue_run): Likewise.
15849 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15851 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
15852 redundant declaration.
15854 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15856 * include/grub/net.h (grub_net_network_level_interfaces): Remove
15857 redundant declaration.
15858 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
15860 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15862 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
15863 to ensure alignment.
15864 (grub_hdparm_print_identify): Make argument uint16 * to ensure
15865 alignment. Ensure tmp alignment.
15866 (grub_cmd_hdparm): Ensure buf alignment.
15867 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
15868 to ensure alignment.
15869 (grub_ata_dumpinfo): Ensure text alignment.
15870 (grub_atapi_identify): Preserve alignment invariant.
15871 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
15873 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15875 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
15876 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
15877 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
15878 * include/grub/misc.h (grub_reboot)
15879 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
15880 (grub_halt) [__mips__]: Likewise.
15882 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15884 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
15885 Remove redundant declaration.
15886 (grub_mmap_get_post64): Likewise.
15887 (grub_mmap_get_upper): Likewise.
15888 (grub_mmap_get_lower): Likewise.
15890 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15892 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
15893 uint32_t * to ensure alignment.
15894 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
15896 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15898 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
15899 uint16_t * to ensure alignment.
15900 (sun_pc_partition_map_iterate): Make `block' a union to ensure
15903 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15905 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
15906 to ensure alignment.
15907 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
15909 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15911 * grub-core/fs/ntfs.c (u16at): Make into inline function.
15912 Handle unaligned pointers.
15915 (fixup): Use byte access instead of v16at.
15916 (find_attr): Fix imporper usage of v32at.
15917 (read_data): Likewise.
15918 (list_file): Handle byte-swapping and unaligned strings.
15919 (grub_ntfs_label): Likewise.
15921 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15923 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
15924 as it's not necessarily aligned.
15926 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15928 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
15929 redundant declaration.
15930 (grub_serial_init): Likewise.
15931 (grub_terminfo_init): Likewise.
15933 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15935 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
15937 (ZAP_HASH_IDX): Likewise.
15938 (ZAP_LEAF_HASH_SHIFT): Likewise.
15939 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
15940 (LEAF_HASH): Likewise.
15941 (ZAP_LEAF_NUMCHUNKS): Likewise.
15942 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
15943 alignment invariants. Return pointer. All users updated.
15944 (ZAP_LEAF_ENTRY): Make into inline function.
15947 (xor_out): Use grub_crypto_xor.
15948 (dnode_get_path): Use grub_get_unaligned.
15949 (nvlist_find_value): Likewise.
15950 (grub_zfs_nvlist_lookup_uint64): Likewise.
15951 (grub_zfs_nvlist_lookup_string): Likewise.
15952 (get_nvlist_size): Likewise.
15953 (grub_zfs_open): Likewise.
15954 (fill_fs_info): Likewise.
15955 (grub_zfs_dir): Likewise.
15956 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
15957 alignment invariants.
15958 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
15959 necessarily aligned.
15961 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15963 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
15965 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15967 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
15968 arithmetic to conserve alignment invariants.
15970 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15972 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
15973 redundant declaration.
15974 (grub_efiemu_mm_obtain_request): Likewise.
15975 (grub_efiemu_prepare): Likewise.
15977 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15979 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
15982 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15984 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
15985 case of aunaligned recptr.
15986 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
15988 (grub_hfsplus_btree_search): Handle unaligned index.
15990 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15992 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
15993 to get freetag and skip.
15995 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
15997 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
15999 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
16000 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
16002 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16004 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
16005 name for checksum and fix allocation algorithm.
16007 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16009 * include/grub/types.h (grub_properly_aligned_t): New type.
16010 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
16011 (grub_get_unaligned16): Add explicit casts.
16012 (grub_get_unaligned32): Likewise.
16013 (grub_get_unaligned64): Likewise.
16014 (grub_set_unaligned16): New function.
16015 (grub_set_unaligned32): Likewise.
16017 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16019 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16021 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16023 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
16024 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
16025 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
16027 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16029 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
16032 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16034 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
16035 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
16037 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16039 Unify and improve RAID and crypto xor.
16041 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
16042 changed to grub_crypto_xor
16043 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
16044 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
16045 Use bigger types when possible.
16047 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16049 * grub-core/disk/raid.c (scan_devices): Fix condition.
16051 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16053 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
16054 Make name a const ptr.
16056 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16058 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
16059 first argument a const pointer.
16060 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
16061 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
16063 (grub_children_iterate): Likewise.
16064 (grub_machine_mmap_iterate): Remove redundant declaration.
16066 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16068 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
16069 (grub_cmd_acpi) [!x86]: Disable EBDA.
16071 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16073 Enable UTF8 in gnulib regexp.
16075 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
16076 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
16077 (isupper): Use grub_isupper.
16078 (isascii): New inline function.
16079 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
16080 * grub-core/lib/posix_wrap/wctype.h: Likewise.
16081 * grub-core/normal/charset.c (grub_utf8_process): New function.
16082 (grub_utf8_to_utf16): Use grub_utf8_process.
16083 (grub_encode_utf8_character): New function.
16084 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
16085 * include/grub/charset.h (grub_utf8_process): New declaration.
16086 (grub_encode_utf8_character): Likewise.
16087 * include/grub/misc.h (grub_islower): New inline function.
16088 (grub_isupper): Likewise.
16089 (grub_strchrsub): Moved down to fix the definitions.
16091 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16093 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
16096 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
16098 * include/grub/loader.h (grub_loader_register_preboot_hook):
16099 Use struct preboot * and not void * for handle. All users updated.
16100 (grub_loader_unregister_preboot_hook): Likewise.
16102 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16104 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
16105 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
16106 UTF-16-BE. All users updated.
16107 (grub_hfsplus_cmp_catkey): Fix unicode handling.
16108 (grub_hfsplus_iterate_dir): Likewise.
16109 (grub_hfsplus_label): Likewise.
16111 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
16113 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
16115 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
16117 Add missing const qualifiers.
16119 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
16120 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
16121 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
16122 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
16123 (grub_lvm_check_flag): Likewise.
16124 * grub-core/efiemu/i386/coredetect.c
16125 (grub_efiemu_get_default_core_name): Likewise
16126 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
16127 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
16128 * grub-core/fs/ntfs.c (fixup): Likewise.
16129 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
16130 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
16131 (fzap_lookup): Likewise.
16132 (zap_lookup): Likewise.
16133 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
16134 * grub-core/lib/legacy_parse.c (check_option): Likewise.
16135 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
16136 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
16137 (grub_freebsd_add_meta_module): Likewise.
16138 (grub_cmd_freebsd_module): Likewise.
16139 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
16140 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
16141 (grub_xnu_writetree_get_size): Likewise.
16142 (grub_xnu_writetree_toheap_real): Likewise.
16143 (grub_xnu_find_key): Likewise.
16144 (grub_xnu_create_key): Likewise.
16145 (grub_xnu_create_value): Likewise.
16146 (grub_xnu_register_memory): Likewise.
16147 (grub_xnu_check_os_bundle_required): Likewise.
16148 (grub_xnu_scan_dir_for_kexts): Likewise.
16149 (grub_xnu_load_kext_from_dir): Likewise.
16150 * grub-core/normal/color.c (color_list): Likewise.
16151 * grub-core/normal/completion.c (current_word): Likewise.
16152 * grub-core/normal/menu_entry.c (insert_string): Likewise.
16153 * grub-core/term/serial.c (grub_serial_find): Likewise.
16154 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
16155 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
16157 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
16158 (grub_freebsd_add_meta_module): Likewise.
16159 * include/grub/lib/arg.h (grub_arg_option): Likewise.
16160 * include/grub/net.h (grub_net_card_driver): Likewise.
16161 (grub_net_card): Likewise.
16162 (grub_net_app_protocol): Likewise.
16163 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
16164 * include/grub/serial.h (grub_serial_find): Likewise.
16165 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
16166 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
16167 (grub_xnu_create_value): Likewise.
16168 (grub_xnu_find_key): Likewise.
16169 (grub_xnu_scan_dir_for_kexts): Likewise.
16170 (grub_xnu_load_kext_from_dir): Likewise.
16172 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
16173 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
16174 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
16175 Moved from here ...
16176 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
16178 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
16180 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
16182 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
16184 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
16185 (read_device): Fix size calculation.
16187 2011-11-25 Robert Millan <rmh@gnu.org>
16189 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
16190 (find_root_device_from_libzfs): Add zpool output parser to be used
16191 as fallback when libzfs isn't available.
16193 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
16195 * po/Makefile.in.in: Add missing escape-continuation.
16197 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
16199 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
16201 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16203 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
16205 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16207 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
16209 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
16211 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
16213 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
16215 * grub-core/lib/adler32.c: Add missing license specification.
16216 * grub-core/lib/crc64.c: Likewise.
16217 * grub-core/loader/i386/pc/plan9.c: Likewise.
16218 * grub-core/partmap/plan.c: Likewise.
16220 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
16222 Add facility to debug GRUB with gdb under qemu.
16224 * grub-core/gdb_grub.in: New file.
16225 * grub-core/gmodule.pl.in: Likewise.
16226 * grub-core/Makefile.core.def (gmodule.pl): New script.
16227 (gdb_grub): Likewise.
16229 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16231 * util/grub-mount.c (argp_parser): Accept relative pathes.
16232 * util/grub-fstest.c (argp_parser): Likewise.
16234 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16238 * Makefile.util.def (libgrubmods): Add
16239 grub-core/partmap/plan.c.
16240 * docs/grub.texi: Notice Plan9 support.
16241 * grub-core/Makefile.core.def (plan9): New module.
16242 (part_plan): Likewise.
16243 * grub-core/loader/i386/pc/plan9.c: New file.
16244 * grub-core/partmap/plan.c: Likewise.
16245 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
16247 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
16248 * include/grub/mm.h (grub_extend_alloc): New inline function.
16250 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
16252 Make Reed-Solomon faster by using power of generator representation of
16255 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
16256 (gf_double_t): Likewise.
16257 (gf_invert): Removed.
16258 (gf_powx): New array.
16259 (gf_powx_inv): Likewise.
16260 (scratch): Move higher.
16261 (gf_reduce): Removed.
16262 (gf_mul): Use powx.
16263 (gf_invert): Likewise.
16264 (init_inverts): Replaced with ...
16265 (init_powx): ...this. All users updated.
16266 (pol_evaluate): Replace multiplications with additions.
16267 (rs_encode): Likewise.
16268 (gauss_eliminate): Call gf_invert.
16269 (grub_reed_solomon_add_redundancy): Call init_powx.
16270 (grub_reed_solomon_recover): Call init_powx unconditionally.
16272 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16274 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
16276 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16278 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
16279 disk->partiton for safety.
16281 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16283 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
16285 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
16287 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16289 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
16291 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16293 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
16295 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16297 Fix spaces handling in proc/self/mountinfo.
16299 * util/getroot.c (unescape): New function.
16300 (grub_find_root_device_from_mountinfo): Use unescape.
16302 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16304 Support ZFS embedding.
16306 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
16307 (grub_zfs_fs): Register grub_zfs_embed.
16309 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16311 Fix MIPS compilation.
16313 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
16314 * include/grub/offsets.h: Rename decompressor fields from
16315 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
16316 * util/grub-mkimage.c (image_targets): Use new names.
16318 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16320 Defer multiboot device parsing until we're in compressed part.
16322 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
16323 bsd_part. setdevice has fallen into disuse.
16324 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
16325 (bsd_part): Likewise.
16326 (boot_dev): New variable.
16327 (multiboot_trampoline): Don't parse multiboot device.
16328 Pass multiboot device in %edx.
16329 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
16331 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
16333 * grub-core/kern/i386/pc/startup.S: Save edx.
16334 (grub_boot_drive): Removed.
16335 (grub_install_dos_part): Likewise.
16336 (grub_install_bsd_part): Likewise.
16337 (grub_boot_device): New variable.
16338 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
16339 (grub_install_bsd_part): Likewise.
16340 (grub_boot_drive): Likewise.
16341 (grub_boot_device): New variable.
16342 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
16344 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
16345 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
16346 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
16347 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
16348 * util/grub-install.in: Remove redundant condition.
16350 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16352 Fix bug introduced by previous commit.
16354 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
16356 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16358 Use decompressors framework on i386-pc. It increases core size
16359 by 46 bytes but improves compatibility and maintainability.
16361 * grub-core/Makefile.core.def (lzma_decompress): New image.
16362 (kernel): Add i386_pc_ldflags.
16363 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
16364 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
16365 to real_to_prot, prot_to_real and device info.
16366 * include/grub/offsets.h: Renamed decompressor offsets.
16367 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
16368 (image_target_desc): Remove raw_size and rename decompressor fields.
16369 (compress_kernel): Handle lzma.
16370 (generate_image): Handle decompressors on i386-pc.
16372 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16374 * configure.ac: Add -fno-asynchronous-unwind-tables.
16376 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16378 Move assembly code to C by using intwrap. It increases core size
16379 by 88 bytes but improves compatibility and maintainability.
16381 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
16382 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
16383 ... here. Translated to C.
16384 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
16385 * grub-core/term/i386/pc/console.c (grub_console_getkey):
16386 ... here. Translated to C.
16387 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
16388 * grub-core/term/i386/pc/console.c (grub_console_getxy):
16389 ... here. Translated to C.
16390 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
16391 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
16392 ... here. Translated to C.
16393 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
16394 * grub-core/term/i386/pc/console.c (grub_console_cls):
16395 ... here. Translated to C.
16396 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
16397 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
16398 ... here. Translated to C.
16399 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
16400 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
16402 * grub-core/term/i386/pc/console.c (int10_9): New function.
16403 (grub_console_putchar): Likewise.
16404 * include/grub/i386/pc/console.h: Removed the not anymore shared
16407 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16409 Move grub_chainloader_real_boot out of the kernel.
16411 * grub-core/Makefile.am: Remove machine/loader.h.
16412 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
16414 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
16416 (grub_relocator16_keep_a20_enabled): Likewise.
16417 (grub_relocator16_boot): Fill new variables.
16418 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
16419 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
16421 (grub_chainloader_unload): Likewise.
16422 (grub_chainloader_cmd): Likewise.
16423 * include/grub/i386/pc/loader.h: Removed.
16424 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
16425 and esi. All initialisers updated.
16427 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
16428 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
16430 * Makefile.util.def (grub-mount): New util.
16431 * .bzrignore: Add grub-mount.
16432 * configure.ac: Check for fuse and enable grub-mount if available.
16433 * docs/man/grub-mount.h2m: New file.
16434 * util/grub-mount.c: Likewise.
16436 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16438 * grub-core/commands/efi/fixvideo.c: Gettextize.
16439 * grub-core/commands/hashsum.c: Likewise.
16440 * grub-core/commands/i386/cmostest.c: Likewise.
16441 * grub-core/commands/i386/pc/drivemap.c: Likewise.
16442 * grub-core/commands/i386/pc/lsapm.c: Likewise.
16443 * grub-core/commands/i386/pc/sendkey.c: Likewise.
16444 * grub-core/commands/lsmmap.c: Likewise.
16445 * grub-core/commands/menuentry.c: Likewise.
16446 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
16447 * grub-core/commands/setpci.c: Likewise.
16448 * grub-core/loader/i386/bsd.c: Likewise.
16449 * grub-core/loader/i386/linux.c: Likewise.
16450 * util/getroot.c: Likewise.
16451 * util/grub-editenv.c: Likewise.
16452 * util/grub-fstest.c: Likewise.
16453 * util/grub-mkfont.c: Likewise.
16454 * util/grub-mkimage.c: Likewise.
16455 * util/grub-mkpasswd-pbkdf2.c: Likewise.
16456 * util/grub-pe2elf.c: Likewise.
16457 * util/grub-probe.c: Likewise.
16458 * util/grub-setup.c: Likewise.
16459 * util/ieee1275/ofpath.c: Likewise.
16460 * util/misc.c: Likewise.
16461 * util/raid.c: Likewise.
16463 2011-11-11 Robert Millan <rmh@gnu.org>
16465 * util/getroot.c (grub_util_get_geom_abstraction): Remove
16466 __attribute__((unused)) from `os_dev', which *is* being used.
16468 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16470 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
16472 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
16473 GRUB_IA64_DL_GOT_ALIGN.
16474 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
16475 GRUB_IA64_DL_TRAMP_ALIGN.
16477 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16479 Replace grub_fatal with normal errors in i386 linux loader.
16481 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
16482 (allocate_pages): Check find_efi_mmap_size return value.
16483 (grub_e820_add_region): Return error.
16484 (grub_linux_boot): Check mmap return value.
16486 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16488 * grub-core/commands/acpihalt.c: Gettextized.
16489 * grub-core/commands/cacheinfo.c: Likewise.
16490 * grub-core/commands/cmp.c: Likewise.
16491 * grub-core/commands/efi/loadbios.c: Likewise.
16492 * grub-core/commands/gptsync.c: Likewise.
16493 * grub-core/commands/ieee1275/suspend.c: Likewise.
16494 * grub-core/commands/legacycfg.c: Likewise.
16495 * grub-core/commands/memrw.c: Likewise.
16496 * grub-core/commands/minicmd.c: Likewise.
16497 * grub-core/commands/parttool.c: Likewise.
16498 * grub-core/commands/time.c: Likewise.
16499 * grub-core/commands/videoinfo.c: Likewise.
16500 * grub-core/disk/geli.c: Likewise.
16501 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
16502 * grub-core/disk/luks.c: Likewise.
16503 * grub-core/disk/lvm.c: Likewise.
16504 * grub-core/font/font_cmd.c: Likewise.
16505 * grub-core/fs/zfs/zfscrypt.c: Likewise.
16506 * grub-core/fs/zfs/zfsinfo.c: Likewise.
16507 * grub-core/gfxmenu/view.c: Likewise.
16508 * grub-core/kern/emu/hostdisk.c: Likewise.
16509 * grub-core/kern/emu/main.c: Likewise.
16510 * grub-core/kern/emu/misc.c: Likewise.
16511 * grub-core/kern/emu/mm.c: Likewise.
16512 * grub-core/kern/mips/arc/init.c: Likewise.
16513 * grub-core/kern/mips/loongson/init.c: Likewise.
16514 * grub-core/kern/partition.c: Likewise.
16515 * grub-core/lib/i386/halt.c: Likewise.
16516 * grub-core/lib/mips/arc/reboot.c: Likewise.
16517 * grub-core/lib/mips/loongson/reboot.c: Likewise.
16518 * grub-core/loader/i386/pc/chainloader.c: Likewise.
16519 * grub-core/loader/i386/xnu.c: Likewise.
16520 * grub-core/loader/multiboot.c: Likewise.
16521 * grub-core/net/bootp.c: Likewise.
16522 * grub-core/net/net.c: Likewise.
16523 * grub-core/normal/term.c: Likewise.
16524 * grub-core/partmap/bsdlabel.c: Likewise.
16525 * grub-core/parttool/msdospart.c: Likewise.
16526 * grub-core/term/gfxterm.c: Likewise.
16527 * grub-core/term/terminfo.c: Likewise.
16528 * grub-core/video/i386/pc/vbe.c: Likewise.
16529 * util/grub-menulst2cfg.c: Likewise.
16530 * util/grub-mkdevicemap.c: Likewise.
16531 * util/grub-mklayout.c: Likewise.
16532 * util/grub-mkrelpath.c: Likewise.
16533 * util/grub-script-check.c: Likewise.
16534 * util/ieee1275/grub-ofpathname.c: Likewise.
16535 * util/resolve.c: Likewise.
16537 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16539 Support %1$d syntax.
16541 * tests/printf_unit_test.c: New file.
16542 * Makefile.util.def (printf_test): New test.
16543 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
16545 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16547 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
16550 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16552 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
16554 * grub-core/font/font.c (grub_font_load): Likewise.
16556 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16558 * util/grub-macho2img.c: Add comment concerning gettext.
16559 * grub-core/lib/legacy_parse.c: Likewise.
16561 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16563 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
16564 (grub_xvasprintf): Likewise.
16566 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16568 Add const keyword to grub_env_get and gettextize week days.
16570 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
16571 (grub_read_hook_datetime): Return const char *.
16572 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
16574 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
16576 (grub_get_weekday_name): Return const char *. Call gettext.
16577 * grub-core/script/argv.c (grub_script_argv_append): Receive const
16578 char * and len as the argument. All users updated.
16579 (grub_script_argv_split_append): Receive const char *.
16580 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
16581 * include/grub/env.h (grub_env_get): Likewise.
16582 (grub_env_read_hook_t): Return const char *.
16583 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
16584 (grub_script_argv_split_append): Likewise.
16586 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16588 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
16590 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16592 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
16593 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
16595 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16597 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
16600 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16602 Fix mips compilation.
16604 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
16606 (hashes): Use in embed decoder as well (for sizes).
16607 (dec_stream_header): Fix embed decompressor logic.
16608 (dec_stream_footer): Likewise.
16610 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16612 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
16613 an error and not a fatal on unrecognised relocation types.
16615 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16617 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
16618 Issue error rather than printf on unknown arguments.
16620 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16622 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
16625 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16627 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
16630 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16632 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
16633 leftover debug printf.
16635 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16637 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
16639 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16641 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
16644 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
16646 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
16648 2011-11-10 Shea Levy <slevy@tieronedesign.com>
16650 Allow all modules to perform serial IO
16652 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
16653 * include/grub/serial.h (grub_serial_port_configure): New inline
16655 (grub_serial_port_fetch): Likewise.
16656 (grub_serial_port_put): Likewise.
16657 (grub_serial_port_fini): Likewise.
16658 (grub_serial_find): New proto.
16660 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16662 Put symlink at the end of the node and fix a potential
16665 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
16666 Make symlink into an array.
16667 (set_rockridge): Set have_symlink and alloc_dirents.
16668 (grub_iso9660_read_symlink): Use new layout.
16669 (grub_iso9660_iterate_dir): Fix memory corruption.
16671 (grub_iso9660_dir): Set have_symlink.
16672 (grub_iso9660_open): Likewise.
16674 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16676 Remove local keyword.
16678 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
16679 (version_test_gt): Likewise.
16680 (version_find_latest): Likewise.
16681 (gettext_printf): Likewise.
16682 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
16684 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16686 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
16688 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16690 Fix ZFS memory and resource leaks.
16692 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
16695 (fill_vdev_info): New parameter inserted. All users updated.
16696 (check_pool_label): Likewise.
16697 (scan_disk): Likewise.
16698 (scan_devices): Close non-inserted disks.
16699 (fzap_iterate): Free l.
16700 (unmount_device): Free children descripto memory.
16702 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16704 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
16705 argument (access out of bounds).
16707 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16709 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
16712 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
16714 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
16717 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16719 Fix several memory leaks.
16721 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
16722 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
16723 (grub_cpio_dir): Likewise.
16724 * grub-core/fs/fat.c (grub_fat_label): Likewise.
16725 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
16726 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
16727 (grub_romfs_label): Likewise.
16728 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
16729 (squash_unmount): New function.
16730 (grub_squash_dir): Fix memory leak.
16731 (grub_squash_open): Likewise.
16732 (grub_squash_read): Likewise.
16733 (grub_squash_mtime): Likewise.
16734 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
16735 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
16736 * util/grub-fstest.c (fstest): Likewise.
16738 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16740 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
16741 avoid accessing beyond the array.
16743 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16745 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
16747 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
16749 Several AFFS fixes.
16751 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
16752 (GRUB_AFFS_FLAG_FFS): Removed.
16753 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
16754 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
16755 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
16756 (grub_fshelp_node): Make block 32-bit.
16757 Add block_cache and last_block_cache.
16758 (grub_affs_read_block): Fill and use block cache.
16759 (grub_affs_read_file): Removed.
16760 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
16762 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
16764 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
16766 (grub_affs_close): Free block cache.
16767 (grub_affs_read): Use grub_fshelp_read_file directly.
16769 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16771 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
16774 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16776 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
16778 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16781 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16783 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
16785 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
16786 byteswap when needed.
16788 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16790 Fix FreeBSD compilation.
16792 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
16793 to avoid circular dependency.
16794 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
16795 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
16796 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
16798 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16800 Fix ZFS crypto error types.
16802 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
16803 (grub_gcm_decrypt): Likewise.
16804 (grub_zfs_load_key_real): Fix error code type. Handle possible error
16807 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16811 * Makefile.util.def (10_illumos): New script.
16812 * configure.ac: Set COND_HOST_ILLUMOS.
16813 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
16814 Support Illumos calls.
16815 (find_partition_start) [__sun__]: Likewise.
16816 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
16817 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
16818 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
16819 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
16821 * util/grub-probe.c (probe) [__sun__]: Do character check.
16822 * util/grub.d/10_illumos.in: New file.
16824 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16826 Support escaped commas in hostdisk.
16828 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
16829 (find_grub_drive): Use unescape_cmp.
16830 (make_device_name): Escape commas.
16832 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16834 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
16836 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16838 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
16841 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
16843 Support trampoline jumps on powerpc.
16845 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
16847 (grub_dl_load_segments): Set mod->sz.
16848 (grub_dl_flush_cache): Flush whole space occupied by module, not just
16850 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
16852 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
16854 (trampoline): New struct.
16855 (trampoline_template): New const.
16856 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
16857 * include/grub/dl.h (grub_dl): Add sz element.
16858 [__powerpc__]: Follow __ia64__.
16859 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
16860 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
16861 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
16862 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
16864 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
16866 ZFS crypto support.
16868 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
16869 * grub-core/Makefile.core.def (zfscrypt): New module.
16870 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
16871 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
16872 it. All users updated.
16873 (grub_zfs_decrypt): New var.
16874 (grub_zfs_load_key): Likewise.
16875 (zio_checksum_functions): Add SHA256+MAC.
16876 (zio_checksum_verify): Handle incomplete comparison due to MAC.
16877 (zio_read): Handle encrypted blocks.
16878 (zap_verify): Remove incorrect check.
16879 (fzap_iterate): Handle non-standard fzap.
16880 (zap_iterate): Likewise.
16881 (zap_iterate_u64): New function.
16882 (dnode_get_fullpath): Load keys.
16883 * grub-core/fs/zfs/zfscrypt.c: New file.
16884 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
16885 (grub_crypto_ecb_encrypt): Make input const.
16886 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
16887 (grub_crypto_ecb_encrypt): Make input const.
16888 (GRUB_CIPHER_AES): New macro.
16889 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
16890 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
16891 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
16892 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
16893 prefix. All users updated.
16894 (grub_zfs_add_key): New proto.
16895 (grub_zfs_decrypt): Likewise.
16896 (grub_zfs_load_key): Likewise.
16897 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
16898 * util/grub-fstest.c (options): Add -K option.
16899 (argp_parser): Likewise.
16901 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16903 Support zle compression on ZFS.
16905 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
16906 (decomp_table): Add zle.
16907 * include/grub/zfs/zio.h (zio_compress): Add zle.
16909 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16911 Support BtrFS embedding.
16913 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
16914 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
16915 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
16916 * util/grub-setup.c (setup): Use fs embedding if available.
16917 Add additional sanity check.
16919 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
16921 * util/grub-install.in: Fix condition for config_opt.
16923 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16925 Support third redundancy strip on raidz3.
16927 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
16928 Return error on singularity. All users updated.
16929 (read_device): Don't stop on 3rd failure on raidz3.
16931 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16933 Support case-insensitive ZFS subvolumes.
16935 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
16937 (zap_hash): Likewise.
16938 (name_cmp): New function.
16939 (zap_leaf_array_equal): New parameter case_insensitive.
16941 (zap_leaf_lookup): Likewise.
16942 (fzap_lookup): Likewise.
16943 (zap_lookup): Likewise.
16944 (dnode_get_path): New parameter case_insensitive. Retrieve case
16945 sensitiviness of a volume. All users updated.
16946 (dnode_get_fullpath): New parameter case_insensitive.
16948 (grub_zfs_dir): Set info.case_insensitiveness.
16950 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16952 Support second redundancy strip on raidz(2,3).
16954 * grub-core/fs/zfs/zfs.c (powx): New array.
16955 (powx_inv): Likewise.
16957 (xor_out): New function.
16958 (gf_mul): Likewise.
16959 (recovery): Likewise.
16960 (read_device): Use second redundancy strip.
16962 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16964 Use a power of generator representation of GF(256) multiplication group
16965 to save space time and complexity.
16967 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
16968 (raid6_table2): Likewise.
16970 (powx_inv): Likewise.
16972 (grub_raid_block_mul): Replace with ...
16973 (grub_raid_block_mulx): ...this.
16974 (grub_raid6_init_table): Rewritten.
16975 (grub_raid6_recover): Use power of generator representation.
16977 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16979 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
16980 for the right device.
16982 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16984 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
16985 expected by grub-mkimage and it's more clear since there is no implicit
16988 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
16990 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
16992 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
16994 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
16996 * util/grub-mkrescue.in: Fix handling xorriso option.
16998 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17000 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
17003 2011-11-03 crocket <crockabiscuit@gmail.com>
17005 * util/grub.d/10_linux.in: Add Slackware initrd naming.
17007 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17009 XZ CRC64 and SHA256 support.
17011 * Makefile.util.def (libgrubmods): Add crc64.c.
17012 * grub-core/Makefile.core.def (crc64): New module.
17013 * grub-core/lib/crc64.c: New file.
17014 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
17015 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
17017 (MAX_HASH_SIZE): New define.
17018 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
17019 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
17020 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17021 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
17022 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
17023 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
17024 Handle non-crc32 hashes.
17025 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
17026 (dec_stream_header): Handle non-crc32 hashes.
17027 (dec_stream_footer): Likewise.
17028 (dec_block_header): Likewise.
17029 (dec_main): Likewise.
17030 (xz_dec_init): Likewise.
17031 (xz_dec_reset): Likewise.
17032 (xz_dec_end): Likewise.
17033 * util/import_gcry.py: Add CRC64 line.
17035 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17037 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
17040 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17042 Make reiserfs label retrieval similar to other *_label functions.
17044 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
17045 (REISERFS_MAX_LABEL_LENGTH): Removed.
17046 (REISERFS_LABEL_OFFSET): Likewise.
17047 (grub_reiserfs_label): Rewritten.
17049 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17051 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
17054 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
17056 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
17058 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17060 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
17061 drive failure on both raidz and raidz2.
17063 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
17065 Fix RAIDZ(2) for >= 5 devices.
17067 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
17068 asize argument. All users updated.
17070 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
17074 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
17075 (fill_vdev_info_real): Set ashift.
17076 (read_device): Rewrite RAIDZ part based on reverse engineering.
17078 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17080 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
17081 don't report potentially unavialiable fields in debug output.
17082 (find_path): Fix double-free and memory leak.
17084 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17086 Read label on UFS1.
17088 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
17089 (grub_ufs_fs): Always set .label.
17091 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17095 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
17096 (grub_ufs_data): New field log2_blksz.
17097 (grub_ufs_read_file): Use shifts.
17098 (grub_ufs_mount): Check block size and logarithm it.
17100 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
17102 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
17105 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17107 Handle symlinks and long names on tar and cpio.
17109 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
17110 (ATTR_FILE): Likewise.
17111 (ATTR_DIR): Likewise.
17112 (ATTR_LNK): Likewise.
17113 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
17114 (grub_cpio_find_file): Fill mode, handle linkname field as well as
17116 (grub_cpio_mount): Zero-fill data.
17117 (handle_symlink): New function.
17118 (grub_cpio_dir): Handle symlinks.
17119 (grub_cpio_open): Likewise.
17120 (grub_cpio_close) [MODE_USTAR]: Free linkname.
17122 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17124 Fix iso9660 filename limitations and fix memory leaks.
17126 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
17127 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
17129 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17131 Fix JFS file name length limitations.
17133 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
17134 (grub_jfs_diropen): Fix maximum filename length.
17135 (grub_jfs_getent): Fix filename length.
17136 (grub_jfs_lookup_symlink): Fix size checks.
17138 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17140 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
17143 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17145 Leverage BFS implementation to read AFS.
17147 * Makefile.util.def (libgrubmods): Add afs.c.
17148 * grub-core/Makefile.core.def (afs): New module
17149 * grub-core/fs/afs.c: New file.
17150 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
17152 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17154 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
17156 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17158 * grub-core/fs/bfs.c: Run indent.
17160 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17162 BFS implementation based on the specification.
17164 * grub-core/fs/bfs.c: New file.
17165 * Makefile.util.def (libgrubmods): Add bfs.c.
17166 * grub-core/Makefile.core.def (bfs): New module.
17168 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
17170 * util/grub-fstest.c (cmd_cp): Clarify error message.
17171 (cmd_cmp): Likewise.
17173 2011-10-30 Yves Blusseau <blusseau@zetam.org>
17175 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
17178 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
17180 Remove afs and befs because of copyright problem.
17182 * grub-core/fs/afs.c: Removed.
17183 * grub-core/fs/afs_be.c: Removed.
17184 * grub-core/fs/befs.c: Removed.
17185 * grub-core/fs/befs_be.c: Removed.
17186 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
17187 * grub-core/Makefile.core.def (afs): Removed.
17188 (afs_be): Likewise.
17190 (befs_be): Likewise.
17192 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17194 Prefer rockridge over Joliet.
17196 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
17198 (set_rockridge): ... here.
17199 (grub_iso9660_mount): Check rockridge on the primary label when
17200 discovering. Ignore Joliet if Rockridge is present.
17202 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17204 Use shifts in nilfs2.
17206 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
17207 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
17208 (grub_nilfs2_palloc_entries_per_group): Replace with ...
17209 (grub_nilfs2_log_palloc_entries_per_group): ... this.
17210 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
17211 (grub_nilfs2_entries_per_block): Replaced with ...
17212 (grub_nilfs2_log_entries_per_block_log): ... this.
17213 (grub_nilfs2_blocks_per_group): Replaced with ...
17214 (grub_nilfs2_blocks_per_group_log): ... this.
17215 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
17216 (grub_nilfs2_blocks_per_desc_block_log): ... this.
17217 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
17218 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
17219 (grub_nilfs2_palloc_entry_offset): Replaced ...
17220 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
17221 (grub_nilfs2_dat_translate): Use shifts.
17222 (grub_nilfs2_read_inode): Likewise.
17223 (GRUB_MOD_INIT): Ensure that logs are correct.
17225 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17227 Use shifts in minix filesystem.
17229 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
17230 (GRUB_MINIX_ZONE2SECT): Likewise.
17231 (grub_minix_data): Replace block_size with log_block_size.
17232 (grub_minix_read_file): Use shifts.
17233 (grub_minix_mount): Check block size and take a logarithm.
17235 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17237 Use shifts in squash4.
17239 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
17240 (squash_mount): Check block size and take logarithm.
17241 (direct_read): Use shifts.
17243 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17245 Correct befs block counting logic.
17247 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
17248 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
17249 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
17250 (grub_afs_read_inode): Use block_shift.
17251 (RANGE_SHIFT): New definition.
17252 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
17253 unexpected conditions, use shifts and appropriate types.
17254 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
17256 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
17258 * grub-core/disk/raid.c (scan_devices): Check partition.
17259 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
17261 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17263 Support BFS (befs) UUID.
17265 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
17266 (grub_afs_small_data_element_header): New struct.
17267 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
17268 (grub_afs_read_attribute) [MODE_BFS]: New function.
17269 (grub_afs_iterate_dir): Allocate for complete inode.
17270 (grub_afs_mount): Likewise.
17271 (grub_afs_uuid) [MODE_BFS]: New function.
17272 (grub_afs_fs) [MODE_BFS]: Add .uuid.
17274 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
17276 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
17277 (zfs_unmount): Fix memory leak.
17279 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17281 Support NTFS reparse points.
17283 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
17284 (symlink_descriptor): New struct.
17285 (grub_ntfs_read_symlink): New function.
17286 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
17287 (grub_ntfs_open): Likewise.
17289 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17291 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
17293 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17295 fstest xnu_uuid subcommand.
17297 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
17298 grub-core/commands/xnu_uuid.c.
17299 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
17300 (fstest): Handle xnu_uuid.
17301 (options): Document xnu_uuid.
17302 (argp_parser): Parse xnu_uuid.
17304 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17306 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
17307 -l argument. Add newline at the end if printing.
17308 (GRUB_MOD_INIT): Document -l.
17310 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17312 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
17314 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17316 ZFS multi-device and version 33 support.
17318 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
17319 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
17320 (grub_zfs_data): Add multidev-ice-related fields.
17321 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
17322 (dva_get_offset): Make dva const.
17323 (zfs_fetch_nvlist): New function.
17324 (fill_vdev_info_real): Likewise.
17325 (fill_vdev_info): Likewise.
17326 (check_pool_label): Likewise.
17327 (scan_disk): Likewise.
17328 (scan_devices): Likewise.
17329 (read_device): Likewise.
17330 (read_dva): Likewise.
17331 (zio_read_gang): Use read_dva.
17332 (zio_read_data): Likewise.
17333 (zap_leaf_lookup): Add missing endian conversion.
17334 (zap_verify): Add missing endian conversion. All users updated.
17335 (fzap_lookup): Likewise.
17336 (fzap_iterate): Likewise.
17337 (dnode_get_path): Handle SA bonus.
17338 (nvlist_find_value): Make input const. All users updated.
17339 (unmount_device): New function.
17340 (zfs_unmount): Use unmount_device.
17341 (zfs_mount): Use scan_disk.
17342 (zfs_mtime): New function.
17343 (grub_zfs_open): Handle system attributes.
17344 (fill_fs_info): Likewise.
17345 (grub_zfs_dir): Likewise.
17346 (grub_zfs_fs): Add mtime.
17347 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
17348 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
17349 (SA_MTIME_OFFSET): Likewise.
17350 (SA_SYMLINK_OFFSET): Likewise.
17351 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
17352 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
17353 (fstest): Support zfsinfo.
17354 (argp_parser): Likewise.
17356 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17358 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
17361 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
17365 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
17366 sharing the same block. Iterate over correct number of indices.
17367 (dnode_get_path): Handle symlinks correctly.
17369 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17371 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
17373 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17375 Read label on HFS+.
17377 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
17378 (grub_hfsplus_btree_search): Fix types.
17379 (grub_hfsplus_label): Implement.
17381 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17383 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
17385 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17387 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
17389 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17391 Fix symlink handling on iso9660.
17393 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
17395 (grub_iso9660_susp_iterate): Accept zero-size iterate.
17396 (grub_iso9660_read_symlink): Moved most of code ...
17397 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
17399 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17401 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
17402 Use union to avoid breaking strict-aliasing rules.
17404 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17406 Support multi-extent iso files.
17408 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
17410 (grub_fshelp_node): Revamp. All users updated.
17411 (FLAG_*): New enum.
17412 (read_node): New function.
17413 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
17415 (grub_iso9660_mount): Don't attempt to read sua when there is none.
17416 (get_node_size): New function.
17417 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
17419 Fix memory leak on . and ..
17420 (grub_iso9660_read): Use read_node.
17421 (grub_iso9660_close): Free node.
17423 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17425 Fix tar 4G limit and handle paths containing dot.
17427 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
17428 (canonicalize): New function.
17429 (grub_cpio_find_file): Use canonicalize. Store offs in
17431 (grub_cpio_dir): Use grub_disk_addr_t.
17432 (grub_cpio_open): Likewise.
17434 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17436 Fix handling of uncompressed blocks on squashfs and break 4G limit.
17438 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
17440 (grub_squash_inode): Add long_file and block_size.
17441 (grub_squash_cache_inode): New struct.
17442 (grub_squash_dirent): Make types into enum.
17443 (SQUASH_TYPE_LONG_REGULAR): New type.
17444 (grub_squash_frag_desc): Add field size.
17445 (SQUASH_BLOCK_FLAGS): New enum.
17446 (grub_squash_data): Use grub_squash_cache_inode.
17447 (grub_fshelp_node): Make ino_chunk 64-bit.
17448 (read_chunk): Minor argument change. All users updated.
17449 (squash_mount): Use correct le_to_cpu.
17450 (grub_squash_open): Handle LONG_REGULAR.
17451 (direct_read): New function.
17452 (grub_squash_read_data): Handle blocks correctly.
17454 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17456 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
17458 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17460 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
17462 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17464 Fix 2G limit on ZFS.
17466 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
17468 (uberblock_verify): Likewise.
17469 (dmu_read): Likewise.
17470 (grub_zfs_read): Likewise. Remove invalid cast.
17472 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17474 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
17475 (grub_jfs_blkno): Fix incorrect shift.
17476 (grub_jfs_read_file): Use more appropriate types.
17478 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17480 Support triple indirect on minix2 and minix3.
17482 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
17483 Declare triple_indir_zone.
17484 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
17487 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
17491 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
17492 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
17493 Rename ctime to mtime. All users updated.
17494 (grub_minix_get_file_block): Fix types and double indirect computations.
17496 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17498 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
17499 if no label is found.
17500 (grub_fat_iterate_dir): Fix file size type.
17501 (grub_fat_iterate_dir): Likewise.
17503 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17505 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
17507 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17508 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17510 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17512 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
17514 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17516 * util/import_gcry.py: Accept space between # and include.
17518 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17520 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
17522 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17524 Fine grainely disable warnings on lexer. Remove Wno-error on it.
17526 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
17527 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
17529 * grub-core/script/yylex.l: Add fine-grained #pragma.
17531 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17533 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
17534 New inline function.
17535 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
17537 (memset) [GRUB_UTIL]: Likewise.
17538 (memcmp) [GRUB_UTIL]: Likewise.
17540 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17542 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
17543 inline function rather than a define.
17545 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17547 * util/grub-setup.c: Add missing include.
17549 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17551 * util/ieee1275/grub-ofpathname.c: Add missing include.
17553 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17555 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
17556 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
17559 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17561 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
17564 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17566 * util/grub-install.in: Add datarootdir as per automake manual
17568 * util/grub-mknetdir.in: Likewise.
17570 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
17572 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
17574 * util/grub.d/10_kfreebsd.in: Likewise.
17575 * util/grub.d/10_linux.in: Likewise.
17576 * util/grub.d/10_netbsd.in: Likewise.
17577 * util/grub.d/10_windows.in: Likewise.
17578 * util/grub.d/20_linux_xen.in: Likewise.
17580 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
17582 Remove redundant grub_kernel_image_size.
17584 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
17586 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
17587 the small code. It moves it only by few bytes but simplifies the code.
17588 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
17590 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
17591 (grub_kernel_image_size): Removed.
17592 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
17593 (grub_kernel_image_size): Removed.
17594 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
17595 compiled with Apple toolchain.
17596 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
17597 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
17598 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
17599 (grub_total_module_size): Likewise.
17600 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
17602 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
17603 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
17604 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
17605 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
17606 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
17607 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
17608 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
17609 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
17611 (grub_total_module_size): Removed.
17612 * util/grub-mkimage.c (image_target_desc): Remove image_size.
17613 (image_targets): Likewise.
17614 Set .compressed_size to no field on sparc.
17615 (generate_image): Remove kernel_image_size handling.
17617 2011-10-19 Szymon Janc <szymon@janc.net.pl>
17619 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
17620 NULL pointer dereference.
17622 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17624 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
17625 done with a dedicated section.
17627 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
17628 Ensure the correct position of boot_path.
17629 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
17630 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
17632 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
17633 * include/grub/boot.h: Removed. All references removed.
17634 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
17636 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
17638 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17640 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
17643 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17645 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
17647 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17649 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
17650 Don't add the bogus brackets.
17652 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17656 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
17657 * grub-core/Makefile.core.def (exfat): New module.
17658 * grub-core/fs/exfat.c: New file.
17659 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
17660 (GRUB_FAT_ATTR_*): Make into an enum.
17661 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
17662 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
17663 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
17664 (GRUB_FAT_MAXFILE): Removed.
17665 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
17666 (grub_current_fat_bpb_t): New type.
17667 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
17668 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
17669 (grub_fat_dir_node_t): New type.
17670 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
17671 (fat_log2) [MODE_EXFAT]: Removed.
17672 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
17673 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
17674 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
17675 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
17676 (grub_fat_label) [MODE_EXFAT]: New function.
17677 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
17678 reserved_first_sector to 0.
17680 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
17682 Move grub_reboot out of the kernel.
17684 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
17685 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
17686 * grub-core/lib/efi/reboot.c: ... here.
17687 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
17688 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
17689 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
17690 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
17691 * grub-core/lib/i386/reboot_trampoline.S: ... here.
17692 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
17693 * grub-core/lib/ieee1275/reboot.c: ... here.
17694 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
17695 * grub-core/lib/mips/arc/reboot.c: ... here.
17696 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
17697 * grub-core/lib/mips/loongson/reboot.c: ...here.
17698 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
17699 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
17700 * include/grub/emu/misc.h (grub_reboot): New function declaration.
17701 * include/grub/i386/reboot.h: New file.
17702 * include/grub/mips/loongson/ec.h: Fix includes.
17703 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
17704 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
17705 * grub-core/lib/i386/reboot.c: New file.
17707 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
17709 Make grub_prefix into module to fix the arbitrary limit and save
17712 * grub-core/kern/emu/main.c (grub_prefix): Removed.
17713 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
17714 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
17715 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
17716 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
17717 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
17718 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
17719 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
17720 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
17721 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
17722 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
17723 * include/grub/ia64/efi/kernel.h: Removed.
17724 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
17725 (grub_prefix): Removed.
17726 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
17727 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
17728 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
17729 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
17730 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
17731 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
17732 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
17733 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
17734 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
17735 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
17736 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
17737 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
17738 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
17739 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
17740 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
17741 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
17742 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
17743 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
17744 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
17745 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
17746 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
17747 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
17748 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
17749 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
17750 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
17751 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
17752 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
17753 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
17754 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
17756 * util/grub-mkimage.c (image_target_desc): Removed prefix and
17758 (image_targets): Likewise.
17759 (generate_image): Put prefix as a module.
17761 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17763 Replace grub_module_iterate with FOR_MODULES.
17765 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
17766 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
17767 (grub_efi_modules_addr): ...this.
17768 * grub-core/kern/efi/init.c (grub_modbase): New variable.
17769 (grub_efi_init): Set grub_modbase.
17770 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
17771 (grub_modbase): New variable.
17772 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
17773 (grub_modbase): New variable.
17774 (grub_machine_init): Set grub_modbase.
17775 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
17776 (grub_modbase): New variable.
17777 (grub_machine_init): Set grub_modbase.
17778 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
17779 (grub_modbase): New variable.
17780 (grub_machine_init): Set grub_modbase.
17781 * grub-core/kern/main.c (grub_module_iterate): Remove.
17782 (grub_modules_get_end): Use grub_modbase.
17783 (grub_load_modules): Use FOR_MODULES.
17784 (grub_load_config): Likewise.
17785 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
17786 (grub_modbase): New variable.
17787 (grub_machine_init): Set grub_modbase.
17788 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
17789 (grub_modbase): New variable.
17790 (grub_machine_init): Set grub_modbase.
17791 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
17793 (grub_modbase): New variable.
17794 (grub_machine_init): Set grub_modbase.
17795 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
17796 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
17797 (grub_module_iterate): Likewise.
17798 (grub_modbase): New variable declaration.
17799 (FOR_MODULES): New macro.
17801 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17803 * configure.ac: Check for __ctzdi2 and __ctzsi2.
17804 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
17806 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17808 Fix few obvious type discrepancies.
17810 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
17811 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
17812 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
17814 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
17815 and connected types.
17816 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
17818 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
17819 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
17820 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
17821 and connected types.
17823 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17825 Fix python 3.x incompatibilities.
17827 * gentpl.py: Put brackets around print strings.
17828 * util/import_gcry.py: Open explicitly as utf-8.
17829 Use in instead of has_key.
17831 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
17833 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
17834 (GRUB_XFS_INO_AGBITS): Make into inline function.
17835 (GRUB_XFS_INO_INOINAG): Likewise.
17836 (GRUB_XFS_INO_AG): Likewise.
17837 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
17838 (GRUB_XFS_EXTENT_OFFSET): Likewise.
17839 (GRUB_XFS_EXTENT_BLOCK): Likewise.
17840 (GRUB_XFS_EXTENT_SIZE): Likewise.
17841 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
17842 (GRUB_XFS_NEXT_DIRENT): Likewise.
17843 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
17844 (grub_xfs_read_file): Fix offset type.
17846 2011-10-15 Robert Millan <rmh@gnu.org>
17848 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
17850 2011-10-15 Robert Millan <rmh@gnu.org>
17852 Fix build problem on FreeBSD and GNU/kFreeBSD.
17854 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
17856 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17858 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
17860 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
17862 (grub_hfsplus_btree_recoffset): Likewise.
17863 (grub_hfsplus_btree_recptr): Likewise.
17864 (grub_hfsplus_find_block): Likewise.
17865 (grub_hfsplus_btree_search): Likewise.
17866 (grub_hfsplus_read_block): Likewise.
17867 (grub_hfsplus_read_file): Likewise.
17868 (grub_hfsplus_mount): Likewise.
17869 (grub_hfsplus_btree_iterate_node): Likewise.
17870 (grub_hfsplus_btree_search): Likewise.
17871 (grub_hfsplus_iterate_dir): Likewise.
17872 (grub_hfsplus_read): A small code simplification.
17874 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17876 * grub-core/kern/emu/hostdisk.c
17877 (convert_system_partition_to_system_disk): Don't assume that children
17878 of mapper nodes are mapper nodes.
17880 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
17882 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
17883 * include/grub/misc.h (grub_isxdigit): New function.
17884 * grub-core/video/colors.c (my_isxdigit): Removed. All users
17885 switched to grub_isxdigit.
17886 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
17887 number starting with a letter.
17889 2011-10-09 Robert Millan <rmh@gnu.org>
17891 LVM support for FreeBSD and GNU/kFreeBSD.
17893 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
17895 (LVM_DEV_MAPPER_STRING): Move from here ...
17896 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
17897 * util/getroot.c: Include `<grub/util/lvm.h>'.
17898 (grub_util_get_dev_abstraction): Enable
17899 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
17900 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
17901 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
17902 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
17904 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
17906 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
17907 when LVM abstraction is required for ${GRUB_DEVICE}.
17909 2011-10-06 Szymon Janc <szymon@janc.net.pl>
17911 Add support for LZO compression in GRUB:
17912 - import of minilzo library,
17913 - LZO decompression for btrfs,
17914 - lzop files decompression.
17916 * grub-core/io/lzopio.c: New file.
17917 * grub-core/lib/adler32.c: Likewise.
17918 * grub-core/lib/minilzo/lzoconf.h: Likewise.
17919 * grub-core/lib/minilzo/lzodefs.h: Likewise.
17920 * grub-core/lib/minilzo/minilzo.c: Likewise.
17921 * grub-core/lib/minilzo/minilzo.h: Likewise.
17922 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
17923 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
17924 grub-core/lib/minilzo/minilzo.c to common.
17925 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
17926 cflags in cppflags.
17927 * grub-core/Makefile.core.def (btrfs): Likewise.
17928 * grub-core/Makefile.core.def (lzopio): New module.
17929 (adler32): Likewise.
17930 * grub-core/fs/btrfs.c: Include minilzo.h.
17931 (GRUB_BTRFS_COMPRESSION_LZO): New define.
17932 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
17933 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
17934 (grub_btrfs_lzo_decompress): New function.
17935 (grub_btrfs_extent_read): Add support for LZO compression type.
17936 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
17937 (GRUB_USHRT_MAX): Likewise.
17938 (GRUB_UINT_MAX): Likewise.
17939 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
17940 (UINT_MAX): Likewise.
17941 (CHAR_BIT): Likewise.
17942 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
17943 grub-core/lib/posix_wrap/limits.h
17944 (UCHAR_MAX): Likewise.
17945 * include/grub/file.h (grub_file_filter_id): New compression filter
17946 GRUB_FILE_FILTER_LZOPIO.
17947 * include/grub/file.h (grub_file_filter_id): Set
17948 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
17949 * include/grub/types.h (grub_get_unaligned16): New function.
17950 (grub_get_unaligned32): Likewise.
17951 (grub_get_unaligned64): Likewise.
17952 * util/import_gcry.py (cryptolist): Add adler32.
17954 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
17956 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
17957 in perspective decreases the complexity of build system and fixes
17958 compilation right now.
17960 2011-10-01 Ales Nesrsta <starous@volny.cz>
17962 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
17963 (fixed problem related to using UHCI with coreboot).
17965 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
17967 * gentpl.py: Use Autogen macros so that the output template file
17968 (Makefile.tpl) size is reduced.
17970 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
17972 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
17975 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17977 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
17978 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
17980 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17982 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
17985 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
17987 Remove extra declaration of sleep for mingw32.
17989 * util/misc.c (sleep) [__MINGW32__]: Removed.
17990 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
17992 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
17994 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
17996 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
17998 (NETBSD_BTINFO_BOOTWEDGE): New definition.
17999 (grub_netbsd_btinfo_bootwedge): New struct.
18000 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
18002 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
18004 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
18006 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
18009 2011-09-28 Andreas Born <futur.andy@googlemail.com>
18011 Fix incorrect identifiers in bash-completion.
18013 * util/bash-completion.d/grub-completion.bash.in
18014 (_grub_mkpasswd-pbkdf2): Rename to ...
18015 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
18016 (_grub_script-check): Rename to ...
18017 (_grub_script_check): ... this. All users updated.
18019 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
18021 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
18022 Return 0 if disk isn't biosdisk.
18024 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18026 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
18028 * Makefile.util.def (grub-fstest): Likewise.
18030 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
18032 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
18033 Get sector size from disk label.
18035 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
18037 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
18038 */README* as well as README*.
18039 Reported by: Axel Beckert.
18041 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18043 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
18044 case of less than 256 MiB of RAM.
18046 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18048 * grub-core/commands/wildcard.c (make_regex): Handle @.
18050 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
18052 * util/grub-install.in: Move cryptodisk logic to appropriate place.
18054 2011-08-21 Szymon Janc <szymon@janc.net.pl>
18056 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
18057 AC_LANG_CONFTEST macros.
18059 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18061 Add grub-fstest option to uncompress data for commands.
18063 * util/grub-fstest.c (uncompress): New var.
18064 (options): New option -u.
18066 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18068 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
18069 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
18071 2011-08-20 Szymon Janc <szymon@janc.net.pl>
18073 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
18074 file type was not recognized correctly (not gzip or corrupted).
18076 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18078 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
18079 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
18081 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18083 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
18085 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
18086 video_radeon_fuloong2e.
18087 * grub-core/video/radeon_fuloong2e.c: New file.
18088 * include/grub/video.h (grub_video_id_t): Add new ID
18089 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
18091 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18093 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
18095 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
18096 that PRID matches the detected subplatform and reset the subplatform
18099 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18101 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
18103 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18105 Fix PCI iterating on functions >= 4.
18107 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
18108 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
18110 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
18111 (grub_pci_read): Fix bitmask.
18112 (grub_pci_read_word): Likewise.
18113 (grub_pci_read_byte): Likewise.
18114 (grub_pci_write): Likewise.
18115 (grub_pci_write_word): Likewise.
18116 (grub_pci_write_byte): Likewise.
18118 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18120 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
18121 can still be specified in TARGET_CFLAGS)
18123 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18125 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
18127 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
18128 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
18129 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
18130 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
18131 (FULOONG): Rename to ...
18132 (FULOONG2F): ... this. All users updated.
18133 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
18134 (machtype_fuloong2f_str): ... this.
18135 (machtype_fuloong2e_str): New string.
18136 Check for machtype_fuloong2e_str.
18137 * grub-core/loader/mips/linux.c (loongson_machtypes)
18138 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
18139 * grub-core/term/serial.c (loongson_defserial)
18140 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
18141 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
18142 loongson_defserial.
18143 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
18145 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
18146 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
18147 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
18148 to IMAGE_FULOONG2F_FLASH. All users updated.
18149 (image_targets): Rename images.
18150 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
18152 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18154 Make enable of disk cache statistics code configurable.
18156 * configure.ac: --enable-cache-stats added.
18157 * config.h.in (DISK_CACHE_STATS): New define.
18158 * grub-core/Makefile.core.def (cacheinfo): New command.
18159 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
18160 * grub-core/commands/cacheinfo.c: New file.
18161 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
18162 moved to cacheinfo.c.
18163 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
18165 * include/grub/disk.h: Likewise.
18167 2011-08-19 Szymon Janc <szymon@janc.net.pl>
18169 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
18170 * grub-core/Makefile.am: Likewise.
18172 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18174 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
18177 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18179 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
18181 (grub_jfs_lookup_symlink): Use correct starting inode.
18183 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18185 * util/grub-setup.c (main): Add missing gcry initialisation.
18187 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
18189 Don't accept text modes on EFI when booting Linux.
18191 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
18192 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
18194 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
18195 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18197 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
18198 use of "/path/.." as in grub-install for EFI as well as handling
18199 symlinks correctly.
18200 Fixes Debian bug #637768.
18202 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
18204 * util/grub-probe.c: Remove duplicate #include.
18206 2011-08-10 Robert Millan <rmh@gnu.org>
18208 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
18210 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
18212 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
18213 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
18215 2011-08-03 Robert Millan <rmh@gnu.org>
18217 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
18218 la_array as packed.
18219 Reported by: Zachary Bedell
18221 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18223 * configure.ac: The Loongson port requires grub-mkfont due to its
18224 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
18227 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
18229 * util/grub-install.in: Don't source grub-mkconfig_lib until after
18230 processing arguments (otherwise help2man fails when GRUB has not yet
18233 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18235 New script grub-mkstandalone.
18237 * Makefile.util.def (grub-mkstandalone): New script.
18238 * docs/man/grub-mkstandalone.h2m: New file.
18239 * util/grub-mkstandalone.in: Likewise.
18241 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18243 Support ATA disks with 4K sectors.
18245 * include/grub/ata.h (grub_ata): New member log_sector_size.
18246 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
18247 (grub_ata_identify): Read sector size.
18248 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
18250 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18252 * util/grub-install.in: Don't use uhci outside of x86.
18254 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18256 * util/grub-mkrescue.in: Add missing quotes.
18258 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
18260 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
18263 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18265 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
18267 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18269 * include/grub/video.h: add missing EXPORT_FUND on
18270 grub_video_edid_checksum and grub_video_edid_preferred_mode.
18272 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18274 * include/grub/mips/kernel.h: Fix define conflict.
18276 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
18278 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
18281 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
18283 Preferred resolution detection for VBE.
18285 * grub-core/video/video.c (grub_video_edid_checksum): New function.
18286 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
18287 the Flat Panel extension, in line with the X.org VESA driver.
18288 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
18290 (grub_vbe_bios_get_ddc_capabilities): Likewise.
18291 (grub_vbe_bios_read_edid): Likewise.
18292 (grub_vbe_get_preferred_mode): Likewise.
18293 (grub_video_vbe_setup): When the mode is "auto", try to get the
18294 preferred mode from VBE, and use the largest mode that is no larger
18295 than the preferred mode (some BIOSes expose a preferred mode that is
18296 not in their mode list!). If this fails, fall back to 640x480 as a
18297 safe conservative choice.
18298 (grub_video_vbe_get_edid): New function.
18299 (grub_video_vbe_adapter): Add get_edid.
18300 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
18301 (struct grub_video_adapter): Add get_edid.
18302 (grub_video_edid_checksum): Add prototype.
18303 (grub_video_edid_preferred_mode): Likewise.
18304 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
18307 * grub-core/commands/videoinfo.c (print_edid): New function.
18308 (grub_cmd_videoinfo): Print EDID if available.
18310 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
18311 is more appropriate on a wider range of platforms than 640x480.
18312 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
18315 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18317 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
18319 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18321 * po/POTFILES.in: Regenerate.
18323 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18325 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
18326 incorrect memory usage.
18328 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
18330 * util/grub-install.in: Source grub-mkconfig_lib.
18332 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18334 Remove getroot.c from core on emu platform.
18336 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
18338 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
18340 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
18341 * util/getroot.c (get_win32_path): ... here.
18342 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
18343 * util/getroot.c (fini_libzfs): ... here.
18344 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
18345 * util/getroot.c (grub_get_libzfs_handle): ... here.
18346 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
18348 * util/getroot.c (grub_find_zpool_from_dir): ... here.
18349 * grub-core/kern/emu/misc.c
18350 (grub_make_system_path_relative_to_its_root): Moved from here...
18351 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
18352 * grub-core/kern/emu/getroot.c: Moved from here ...
18353 * util/getroot.c: ... here. All users updated.
18354 * grub-core/kern/emu/raid.c: Moved from here ...
18355 * util/raid.c: ... here. All users updated.
18357 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
18359 * po/POTFILES.in: Regenerate.
18361 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18363 Fix compilation on GNU/Linux.
18365 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
18367 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
18368 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
18369 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
18371 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18372 2011-07-07 Michael Gorven <michael@gorven.za.net>
18373 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
18375 LUKS and GELI support.
18377 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
18378 grub-core/disk/luks.c, grub-core/disk/geli.c,
18379 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
18380 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
18381 grub-core/lib/arg.c.
18382 (libgrubmods.a): Remove gcrypts cflags and cppflags.
18383 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
18384 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
18385 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
18386 (grub-bin2h): Add libgcry.a.
18387 (grub-mkimage): Likewise.
18388 (grub-mkrelpath): Likewise.
18389 (grub-script-check): Likewise.
18390 (grub-editenv): Likewise.
18391 (grub-mkpasswd-pbkdf2): Likewise.
18392 (grub-pe2elf): Likewise.
18393 (grub-fstest): Likewise.
18394 (grub-mkfont): Likewise.
18395 (grub-mkdevicemap): Likewise.
18396 (grub-probe): Likewise.
18397 (grub-ofpath): Likewise.
18398 (grub-mklayout): Likewise.
18399 (example_unit_test): Likewise.
18400 (grub-menulst2cfg): Likewise.
18401 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
18402 * grub-core/Makefile.core.def (cryptodisk): New module.
18405 * grub-core/disk/AFSplitter.c: New file.
18406 * grub-core/disk/cryptodisk.c: Likewise.
18407 * grub-core/disk/geli.c: Likewise.
18408 * grub-core/disk/luks.c: Likewise.
18409 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
18411 (grub_util_get_dm_abstraction): New function.
18412 (grub_util_follow_gpart_up): Likewise.
18413 (grub_util_get_geom_abstraction): Likewise.
18414 (grub_util_get_dev_abstraction): Use new functions.
18415 (grub_util_pull_device): Pull GELI and LUKS.
18416 (grub_util_get_grub_dev): Handle LUKS and GELI.
18417 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
18418 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
18419 (follow_geom_up): Removed.
18420 (grub_util_fd_seek): New function.
18421 (open_device): Use grub_util_fd_seek.
18422 (nread): Rename to ..
18423 (grub_util_fd_read): ... this. All users updated.
18424 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
18425 (grub_crypto_cbc_decrypt): Likewise.
18426 (grub_crypto_hmac_write): Likewise.
18427 (grub_crypto_hmac_buffer): Likewise.
18428 (grub_password_get): Extend to util.
18429 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
18430 New member modname.
18431 (gcry_md_spec) [GRUB_UTIL]: Likewise.
18432 * include/grub/cryptodisk.h: New file.
18433 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
18434 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
18436 (grub_util_follow_gpart_up): New proto.
18437 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
18438 (grub_util_fd_read): Likewise.
18439 (grub_cryptodisk_cheat_mount): Likewise.
18440 (grub_util_cryptodisk_print_uuid): Likewise.
18441 (grub_util_get_fd_sectors): Likewise.
18442 * util/grub-fstest.c (mount_crypt): New var.
18443 (fstest): Mount crypto if requested.
18444 (options): New option -C.
18445 (argp_parser): Parse -C.
18446 (main): Init and fini gcry.
18447 * util/grub-install.in: Support cryptodisk install.
18448 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
18449 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
18451 (prepare_grub_to_access_device): Likewise.
18452 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
18453 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
18454 (probe_cryptodisk_uuid): New function.
18455 (probe_abstraction): Likewise.
18456 (probe): Use new functions.
18457 * util/import_gcry.py: Create Makefile.utilgcry.def.
18458 Add modname member.
18460 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
18462 Lazy device scanning.
18464 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
18465 (grub-setup): Remove util/raid.c.
18466 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
18467 * grub-core/disk/lvm.c (scan_depth): New variable.
18468 (grub_lvm_iterate): Rescan if necessary.
18469 (find_lv): New function based on grub_lvm_open.
18470 (grub_lvm_open): Use find_lv. Rescan on error.
18471 (is_node_readable): New function.
18472 (is_lv_readable): Likewise.
18473 (grub_lvm_scan_device): Skip already found disks.
18474 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
18475 Stop if searched device is found and readable.
18476 * grub-core/disk/raid.c (inscnt): New variable.
18477 (scan_depth): Likewise.
18478 (scan_devices): New function based on grub_raid_register. Abort if
18479 looked for device is found.
18480 (grub_raid_iterate): Rescan if needed.
18481 (find_array): NEw function based on -grub_raid_open.
18482 (grub_raid_open): Use find_array and rescan.
18483 (insert_array): Set became_readable_at.
18484 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
18485 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
18487 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
18488 (grub_util_pull_device): New function.
18489 (grub_util_get_grub_dev): Call grub_util_pull_device.
18490 * util/raid.c: Moved to ..
18491 * grub-core/kern/emu/raid.c: ... here.
18492 (grub_util_raid_getmembers): New parameter "bootable".
18493 All users updated. Support 1.x.
18494 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
18496 * include/grub/disk.h (grub_disk_pull_t): New enum.
18497 (grub_disk_dev): Change iterate prototype.
18499 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
18501 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
18502 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
18503 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
18504 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
18506 * include/grub/util/raid.h: Removed.
18508 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18510 * po/POTFILES.in: Regenerate.
18512 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
18514 Unify sparc init with other ieee1275.
18516 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
18517 instead of kern/sparc64/ieee1275/init.c.
18518 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
18519 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
18520 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
18521 grub/machine/kernel.h.
18522 (grub_ieee1275_original_stack) [__sparc__]: New variable.
18523 (grub_claim_heap) [__sparc__]: Use sparc version.
18524 (grub_machine_init): Moved args parsing to
18525 (grub_parse_cmdline): ...this.
18526 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
18527 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
18529 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
18531 Move BOOTP to separate file.
18533 * grub-core/Makefile.core.def (net): Add net/bootp.c.
18534 * grub-core/net/net.c: Move all BOOTP functions to
18535 * grub-core/net/bootp.c: ... here.
18537 Use frame interface on PXE.
18539 * grub-core/Makefile.core.def (pxecmd): Removed.
18540 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
18541 * grub-core/commands/i386/pc/pxecmd.c: Removed.
18542 * grub-core/i386/pc/pxe.c: Moved from here ...
18543 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
18544 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
18545 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
18547 EFI network support.
18549 * grub-core/Makefile.core.def (efinet): New module.
18550 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
18552 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
18554 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
18555 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
18556 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
18557 * grub-core/net/drivers/efi/efinet.c: New file.
18558 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
18559 (grub_efi_net_config): New extern var.
18561 Various cleanups and bugfixes.
18563 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
18565 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
18566 disk declared as partition.
18567 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
18569 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
18570 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
18571 (grub_debug_zalloc): Likewise.
18572 (grub_debug_realloc): Likewise.
18573 (grub_debug_memalign): Likewise.
18574 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
18575 Check that target is IPv4.
18576 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
18577 local-mac-address as fallback.
18578 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
18580 * grub-core/net/ip.c (ipchksum): Rename to ...
18581 (grub_net_ip_chksum): ... this. All users updated.
18582 (grub_net_recv_ip_packets): Special handling for DHCP.
18583 * util/grub-mkimage.c (generate_image): Zero-out aout header.
18585 Unify prefix handling
18587 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
18588 (grub_machine_get_bootlocation): ... this.
18589 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
18590 (grub_machine_get_bootlocation): ... this.
18591 (grub_prefix): New variable.
18593 (root_dev): New variable.
18595 (main): Use new variables.
18596 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
18598 (grub_machine_get_bootlocation): ... this.
18599 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
18600 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
18601 (grub_machine_get_bootlocation): ... this.
18602 (grub_machine_set_prefix): Removed.
18603 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
18604 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
18606 (grub_machine_get_bootlocation): ... this.
18607 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
18608 (grub_set_prefix_and_root): ... this. All users updated.
18609 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
18611 (grub_machine_get_bootlocation): ... this.
18612 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
18613 (grub_machine_get_bootlocation): New proto.
18614 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
18616 Less intrusive and more reliable seek on network implementation.
18618 * grub-core/kern/file.c (grub_file_net_seek): Removed.
18619 (grub_file_seek): Don't call grub_file_net_seek.
18620 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
18621 (grub_net_fs_read_real): .. this.
18622 (grub_net_seek_real): Use net->offset.
18623 (grub_net_fs_read): Seek if necessary.
18625 Unify IEEE1275 netwotk config with the other platforms.
18627 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
18629 (grub_machine_get_bootlocation): Support network.
18630 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
18631 Support type and device parsing.
18632 (grub_ieee1275_get_device_type): New function.
18633 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
18635 (grub_ieee1275_net_config_real): ... this.
18636 (grub_ofnet_probecards): Removed.
18637 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
18638 * include/grub/ieee1275/ofnet.h: Removed.
18639 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
18641 (grub_ieee1275_get_device_type): New function.
18643 Unify network device closing across platforms and make more robust.
18645 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
18647 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
18649 * grub-core/net/net.c (grub_net_network_level_interface_register):
18651 (grub_net_card_unregister): Close all interfaces.
18652 (receive_packets): Don't poll if no iterfaces are registered.
18654 (grub_net_fini_hw): New function.
18655 (grub_net_restore_hw): Likewise.
18656 (fini_hnd): New variable.
18657 (GRUB_MOD_INIT): Register preboot hook.
18658 (GRUB_MOD_FINI): Run and unregister preboot hook.
18660 Poll network cards when idle.
18662 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
18663 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
18664 * grub-core/net/net.c (receive_packets): Save last poll time.
18665 (grub_net_poll_cards_idle_real): New function.
18666 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
18667 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
18668 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
18670 Rename ofnet interfaces.
18672 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
18673 (grub_ofnet_findcards): Use ofnet_%s names.
18675 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
18677 Cleanup socket opening.
18679 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
18680 (grub_net_fs_close): Likewise.
18681 (grub_net_fs_read_real): Use eof member.
18682 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
18683 (+grub_net_udp_close): New inline function.
18685 * include/grub/net/tftp.h: Moved to the top of ...
18686 * grub-core/net/tftp.c: ... here.
18687 * include/grub/net/ip.h: Moved mostly to the top of ...
18688 * grub-core/net/ip.c: ... here.
18689 * include/grub/net/ethernet.h: Moved mostly to the top of ...
18690 * grub-core/net/ethernet.c: ... here.
18692 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
18694 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
18697 * include/grub/net/ip.h (ipv4_ini): Removed.
18698 (ipv4_fini): Likewise.
18700 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
18701 (grub_net_send_ip_packets): Likewise.
18703 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18705 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
18706 grub_read_cmos prototype.
18708 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18710 VGA text support in qemu-mips
18712 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
18713 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
18714 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
18716 * grub-core/kern/i386/qemu/init.c: Renamed to ...
18717 * grub-core/kern/vga_init.c: ... this.
18718 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
18719 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
18720 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
18722 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
18723 GRUB_MACHINE_PCI_IO_BASE.
18725 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18727 MIPS qemu flash support.
18729 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
18731 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
18732 (grub_machine_init): Probe memory if its size isn't known.
18733 * util/grub-mkimage.c (image_targets): Add flash targets.
18734 (generate_image): Handle flash targets.
18736 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18738 MIPS qemu at_keyboard support.
18740 * gentpl.py (videoinkernel): Add qemu-mips.
18741 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
18742 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
18743 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
18745 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
18746 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
18747 * grub-core/term/serial.c (grub_serial_register)
18748 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
18750 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
18752 CMOS support on sparc.
18754 * gentpl.py (cmos): Add powerpc and sparc.
18755 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
18757 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
18758 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
18759 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
18760 grub_set_datetime_cmos.
18761 * grub-core/lib/ieee1275/cmos.c: New file.
18762 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
18763 (find_rtc): Set no_ieee1275_rtc on error.
18764 (grub_get_datetime): Call grub_get_datetime_cmos on error.
18765 (grub_set_datetime): Call grub_set_datetime_cmos on error.
18766 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
18767 fail. Move value to argument. All users updated
18768 (grub_cmos_write): Likewise.
18769 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
18770 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
18771 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
18772 grub_get_datetime_cmos and grub_set_datetime_cmos.
18774 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
18776 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
18777 sourcing grub-mkconfig_lib.
18778 * util/update-grub_lib.in: Likewise.
18779 * util/grub.d/00_header.in: Likewise.
18780 * util/grub.d/10_hurd.in: Likewise.
18781 * util/grub.d/10_kfreebsd.in: Likewise.
18782 * util/grub.d/10_linux.in: Likewise.
18783 * util/grub.d/10_netbsd.in: Likewise.
18784 * util/grub.d/10_windows.in: Likewise.
18785 * util/grub.d/20_linux_xen.in: Likewise.
18786 * util/grub.d/30_os-prober.in: Likewise.
18788 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
18790 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
18791 default_bg_color rather than black.
18792 (grub_gfxterm_fullscreen): Likewise.
18793 (grub_gfxterm_background_color_cmd): Save new background color in
18796 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18798 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
18800 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18802 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
18805 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18807 Chainloading on coreboot support.
18809 * grub-core/Makefile.core.def (chain): Add coreboot.
18810 * grub-core/loader/i386/coreboot/chainloader.c: New file.
18812 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18814 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
18817 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18819 Implement time command.
18821 * grub-core/Makefile.core.def (time): New module.
18822 * grub-core/commands/time.c: New file.
18823 * grub-core/script/parser.y: Remove "time" keyword.
18824 * grub-core/script/yylex.l: Likewise.
18826 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18828 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
18830 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18832 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
18833 when handling leftovers.
18835 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18837 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
18838 so that help2man doesn't fail.
18840 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18842 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
18843 type in pointers on sparc64.
18844 (get_card_packet): Likewise.
18846 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
18848 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
18850 (grub_cmd_videoinfo): Fetch current video mode.
18852 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18854 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
18855 because of underlying system restrictions.
18857 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18859 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
18862 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18864 Coreboot video support.
18866 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
18868 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
18869 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
18871 * grub-core/kern/i386/int.S: ... here.
18872 * grub-core/video/i386/pc/vbe.c: Updated includes.
18873 * grub-core/video/i386/pc/vga.c: Likewise.
18874 * include/grub/i386/coreboot/memory.h
18875 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
18876 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
18877 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
18878 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
18879 Disable interrupts.
18880 * include/grub/i386/pc/vga.h: Removed. All users updated.
18882 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18884 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
18885 definitions for dprintf.
18886 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
18888 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
18890 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
18892 (get_card_packet): Likewise.
18894 2011-06-26 Yves Blusseau <blusseau@zetam.org>
18896 Display the path of the file when file is not found
18898 * grub-core/fs/fat.c: Display the filename when file is not found.
18899 * grub-core/fs/fshelp.c: Likewise.
18900 * grub-core/fs/hfs.c: Likewise.
18901 * grub-core/fs/jfs.c: Likewise.
18902 * grub-core/fs/minix.c: Likewise.
18903 * grub-core/fs/ufs.c: Likewise.
18904 * grub-core/fs/btrfs.c: Likewise.
18905 * grub-core/commands/i386/pc/play.c: Likewise.
18907 2011-06-26 Szymon Janc <szymon@janc.net.pl>
18909 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
18910 pointer checks before calling grub_free().
18911 * grub-core/commands/wildcard.c (match_devices): Likewise.
18912 * grub-core/commands/wildcard.c (match_files): Likewise.
18913 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
18914 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
18915 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
18916 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
18917 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
18918 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
18919 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
18920 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
18921 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
18923 2011-06-25 Patrick <p55@mailinator.com>
18925 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
18927 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
18929 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
18930 (grub_pxe_send): Likewise.
18931 (GRUB_MOD_INIT): Fix types.
18933 2011-06-24 Szymon Janc <szymon@janc.net.pl>
18935 * grub-core/io/xzio.c: Fix code style issues
18937 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18938 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
18940 Network infrastructure.
18941 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
18943 * include/grub/net/arp.h: New file.
18944 * include/grub/net/device.h: Likewise.
18945 * include/grub/net/ethernet.h: Likewise.
18946 * include/grub/net/ip.h: Likewise.
18947 * include/grub/net/netbuff.h: Likewise.
18948 * include/grub/net/tftp.h: Likewise.
18949 * include/grub/net/udp.h: Likewise.
18950 * include/grub/ieee1275/ofnet.h: Likewise.
18951 * include/grub/emu/export.h: Likewise.
18952 * include/grub/net.h: Likewise.
18953 * grub-core/net/arp.c: Likewise.
18954 * grub-core/net/ethernet.c: Likewise.
18955 * grub-core/net/ip.c: Likewise.
18956 * grub-core/net/udp.c: Likewise.
18957 * grub-core/net/tftp.c: Likewise.
18958 * grub-core/net/netbuff.c: Likewise.
18959 * grub-core/net/net.c: Likewise.
18960 * grub-core/net/drivers/emu/emunet.c: Likewise.
18961 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
18962 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
18964 * grub-core/Makefile.core.def (net): New module.
18967 (emunet): Likewise.
18968 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
18970 * grub-core/kern/device.c (grub_net_open) : New variable.
18971 (grub_device_open): Handle network device.
18972 (grub_device_close): Likewise.
18973 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
18974 (grub_grubnet_fini): Likewise.
18975 (grub_file_seek): Seek in network device.
18976 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
18977 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
18979 (grub_machine_fini): Call grub_grubnet_fini.
18980 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
18982 (grub_ieee1275_get_aliasdevname): New function.
18983 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
18984 Add unofficial Solaris network info.
18985 (grub_multiboot_make_mbi): Likewise.
18986 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
18987 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
18988 * include/grub/device.h (grub_fs): Removed.
18989 * include/grub/err.h (grub_err_t): Add network-related values.
18990 * include/grub/i386/pc/pxe.h: Removed bootp parts.
18991 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
18992 (grub_ieee1275_get_aliasdevname): New proto.
18993 * include/grub/net.h: Rewritten.
18995 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
18997 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
19000 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19002 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
19003 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
19004 it truncates the output.
19005 Reported by: Ximin Luo.
19007 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19009 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
19011 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19013 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
19014 partmap before abstraction.
19016 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
19018 * util/grub-mkconfig_lib.in: Add missing quotes.
19020 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19022 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
19023 old method if mountinfo would return /dev/root and /dev/root doesn't
19026 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19030 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
19031 (decomp_table): Add zlib entries.
19032 (zio_read): USe 8 bits for compression function rather than 3.
19033 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
19035 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
19037 * grub-core/disk/ahci.c: Add missing license statements.
19038 * grub-core/fs/romfs.c: Likewise.
19039 * grub-core/lib/ia64/setjmp.S: Likewise.
19040 * grub-core/loader/i386/pc/freedos.c: Likewise.
19041 * grub-core/loader/ia64/efi/linux.c: Likewise.
19042 * grub-core/video/colors.c: Likewise.
19043 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
19045 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19049 * grub-core/Makefile.core.def (ata_pthru): Removed.
19050 (ahci): New module.
19052 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
19054 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
19056 (grub_hdparm_do_check_powermode_cmd): Likewise.
19057 (grub_hdparm_do_smart_cmd): Likewise.
19058 (grub_hdparm_set_val_cmd): Likewise.
19059 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
19060 * grub-core/disk/ahci.c: New file.
19061 * grub-core/disk/ata.c: Factor out the low-level part into ...
19062 * grub-core/disk/pata.c: ... here.
19063 * grub-core/disk/ata_pthru.c: Contents moved to ...
19064 * grub-core/disk/pata.c: ... here.
19065 * grub-core/disk/scsi.c (grub_scsi_names): New array.
19066 (grub_scsi_iterate): Use grub_scsi_names.
19067 (grub_scsi_open): Likewise.
19068 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
19069 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
19070 (grub_ata_regs_t): New struct.
19071 (grub_disk_ata_pass_through_parms): Likewise.
19072 (grub_ata_device): Renamed to ...
19073 (grub_ata): ... this.
19074 (grub_ata_dev): New struct.
19075 Removed all low-level inline functions.
19076 * include/grub/scsi.h: Add PATA and AHCI subsystems.
19077 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
19078 iterate hooks and open. All users updated.
19079 * util/grub-install.in: Handle AHCI disk module.
19081 2011-06-23 Szymon Janc <szymon@janc.net.pl>
19083 Add support for DRI and RSTn markers in JPEG files.
19085 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
19086 (JPEG_MARKER_RST0): Likewise.
19087 (JPEG_MARKER_RST1): Likewise.
19088 (JPEG_MARKER_RST2): Likewise.
19089 (JPEG_MARKER_RST3): Likewise.
19090 (JPEG_MARKER_RST4): Likewise.
19091 (JPEG_MARKER_RST5): Likewise.
19092 (JPEG_MARKER_RST6): Likewise.
19093 (JPEG_MARKER_RST7): Likewise.
19094 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
19095 (grub_jpeg_decode_dri): New function.
19096 (grub_jpeg_decode_sos): Move image data related part into
19097 grub_jpeg_decode_data function.
19098 (grub_jpeg_decode_data): New function.
19099 (grub_jpeg_reset): New function.
19100 (grub_jpeg_decode_jpeg): Handle new markers.
19102 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19104 * util/ieee1275/ofpath.c (check_sas): Close fd.
19105 (main): Free of_path.
19106 Reported by: David Volgyes <dvolgyes>.
19108 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19110 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
19111 Reported by: David Volgyes <dvolgyes>.
19113 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19115 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
19117 Reported by: David Volgyes <dvolgyes>.
19119 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19121 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
19123 Reported by: David Volgyes <dvolgyes>.
19125 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19127 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
19128 Prevent memory leak.
19130 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19132 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
19133 (main): Close file.
19134 Reported by: David Volgyes <dvolgyes>.
19136 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19138 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
19139 to continue if allocation is failed.
19141 Reported by: David Volgyes <dvolgyes>.
19143 2011-06-23 David Volgyes <dvolgyes>
19145 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
19148 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19150 Fix spurious warning.
19152 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
19153 (acorn_partition_map_find): Use .bin member.
19155 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19157 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
19158 /dev/root as a valid device.
19160 2011-06-23 Jim Meyering <meyering@redhat.com>
19162 Avoid NULL deref in grub_device_open.
19164 * grub-core/kern/device.c (grub_device_open): Don't dereference
19165 a NULL pointer upon failed grub_env_get.
19167 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
19169 Support non-512B sectors and agglomerate reads.
19171 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
19172 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
19173 (disk_io_guid): Removed.
19174 (make_devices): Locate solely by BlockIO.
19175 (grub_efidisk_open): Fill log_sector_size and total_sectors.
19176 (grub_efidisk_read): Use read_blocks.
19177 (grub_efidisk_write): Use write_blocks.
19178 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
19180 (get_safe_sectors): Handle non-512B sectors.
19181 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
19183 (grub_biosdisk_write): Handle non-512B sectors.
19184 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
19185 (grub_scsi_read): Remove special non-512B block handling (now handled
19187 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
19188 and do sanity checks.
19189 (grub_disk_adjust_range): Handle non-512B sectors.
19190 (transform_sector): New function.
19191 (grub_disk_read_small): Likewise.
19192 (grub_disk_read): Rewritten.
19193 (grub_disk_write): Handle non-512B sectors.
19194 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
19196 (open_device): Use log_sector_size.
19197 (grub_util_biosdisk_read): Likewise.
19198 (grub_util_biosdisk_write): Likewise.
19199 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
19201 (pc_partition_map_embed): Likewise.
19202 * include/grub/disk.h (grub_disk): New field log_sector_size.
19203 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
19204 (GRUB_DISK_CACHE_BITS): Increased to 6.
19205 * util/grub-fstest.c (fstest): New command testload.
19206 (argp_parser): Likewise.
19208 2011-06-16 Robert Millan <rmh@gnu.org>
19210 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
19211 `ata' driver on kernel of FreeBSD 9.
19213 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
19214 (get_ataraid_disk_name): New functions.
19215 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
19216 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
19217 get_ataraid_disk_name() and get_ada_disk_name().
19219 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
19221 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
19224 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
19226 * docs/grub.texi (Obtaining and Building GRUB): Substitute
19227 `ftp.gnu.org' for `alpha.gnu.org'.
19229 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19231 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
19232 partitions under /dev/disk/by-id/.
19234 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
19236 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
19237 after ten consecutive open failures. Scanning all the way up to
19238 10000 is excessive and can cause serious performance problems in
19239 some configurations.
19240 Fixes Ubuntu bug #787461.
19242 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19244 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
19247 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
19248 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
19250 Don't stat devices unless we have to.
19252 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
19253 dir == /dev/mapper.
19254 (grub_guess_root_device): Use already known os_dev if possible.
19255 * grub-core/kern/emu/hostdisk.c
19256 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
19257 if device is known to be a dm one.
19259 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
19261 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
19262 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
19263 Reported by: Pawel Tecza.
19265 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
19267 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
19268 (lsefisystab): Likewise.
19270 (lsefimmap): Likewise.
19271 (hdparm): Enable on qemu-mips.
19272 (setjmp): Add ia64 nodist.
19273 (serial): Simplify tags.
19275 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19277 * Makefile.util.def (grub-ofpathname): Install manual page.
19279 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19281 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
19283 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19285 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
19287 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19289 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
19292 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19294 Use full 64-bit division.
19296 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
19297 (grub_divmod64): ... this.
19298 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
19301 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19303 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
19306 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19308 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
19309 to avoid accidents when debugging with 'sh -x'.
19310 * grub-core/gensyminfo.sh.in: Likewise.
19311 * tests/example_scripted_test.in: Likewise.
19312 * tests/grub_cmd_regexp.in: Likewise.
19313 * tests/grub_script_blanklines.in: Likewise.
19314 * tests/grub_script_dollar.in: Likewise.
19315 * tests/grub_script_expansion.in: Likewise.
19316 * tests/grub_script_final_semicolon.in: Likewise.
19317 * tests/partmap_test.in: Likewise.
19318 * tests/util/grub-shell-tester.in: Likewise.
19319 * tests/util/grub-shell.in: Likewise.
19321 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19323 Move gfxmenu color handling to video, so that gfxterm can use it
19326 * grub-core/gfxmenu/named_colors.c: Move to ...
19327 * grub-core/video/colors.c: ... here. Rename
19328 grub_gui_get_named_color to grub_video_get_named_color.
19329 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
19330 * grub-core/video/colors.c (my_isxdigit): ... here.
19331 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
19333 * grub-core/video/colors.c (parse_hex_color_component): ... here.
19334 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
19336 * grub-core/video/colors.c (grub_video_parse_color): ... here.
19338 * include/grub/gui.h (grub_gui_color_t): Move to ...
19339 * include/grub/video.h (grub_video_rgba_color_t): ... here.
19340 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
19341 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
19342 * include/grub/gui.h (grub_gui_map_color): Move to ...
19343 * include/grub/video.h (grub_video_map_rgba_color): ... here.
19344 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
19346 * include/grub/video.h (grub_video_get_named_color): ... here.
19347 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
19348 * include/grub/video.h (grub_video_parse_color): ... here.
19350 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
19352 (gfxmenu): Remove gfxmenu/named_colors.c.
19353 (video) [videomodules]: Add video/colors.c.
19355 Add a background_color command.
19357 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
19359 (GRUB_MOD_INIT): Register background_color command.
19360 (GRUB_MOD_FINI): Unregister background_color command.
19361 (redraw_screen_rect): Allow blend/replace of text layer to be
19362 controlled independently from whether there is a background bitmap.
19363 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
19366 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19368 Patch BPB in ntldr and chainloader --bpb.
19370 * grub-core/fs/fat.c: Include grub/fat.h.
19371 (grub_fat_bpb): Moved to ...
19372 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
19373 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
19375 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
19377 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
19379 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
19381 (grub_chainloader_cmd): Patch BPB if --bpb is given.
19382 (GRUB_MOD_INIT): Show --bpb.
19383 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
19384 * grub-core/normal/main.c (features): New variable.
19385 (GRUB_MOD_INIT): Set feature_* variables.
19386 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
19388 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
19390 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19392 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
19395 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19397 FreeDOS direct loading support.
19399 * docs/grub.texi (Supported OS): Add FreeDOS.
19400 * grub-core/Makefile.core.def (freedos): New module.
19401 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
19403 (grub_relocator16_boot): Handle %ebx.
19404 * grub-core/lib/i386/relocator16.S: Likewise.
19405 * grub-core/loader/i386/pc/freedos.c: New file.
19407 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19409 Long Linux command line support.
19411 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19412 (maximal_cmdline_size): New variable.
19413 (allocate_pages): Use maximal_cmdline_size.
19414 (grub_cmd_linux): Set and use maximal_cmdline_size.
19415 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
19416 (allocate_pages): Use maximal_cmdline_size.
19417 (grub_cmd_linux): Set and use maximal_cmdline_size.
19418 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
19419 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
19422 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19423 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
19425 Improve devmapper support
19427 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
19428 (grub_util_is_lvm): New function.
19429 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
19430 than lvm if not dmraid.
19431 Handle mapped md nodes.
19432 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
19433 (grub_util_device_is_mapped): ... this. Make always available. All users
19435 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
19436 (convert_system_partition_to_system_disk): Handle lvm, mpath and
19438 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
19440 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
19442 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
19444 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
19445 * grub-core/modinfo.sh.in: New file.
19446 * grub-core/Makefile.core.def (modinfo.sh): New script.
19447 * util/grub-mknetdir.in: Use modinfo.sh.
19448 * util/grub-mkrescue.in: Likewise.
19450 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19452 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
19453 Fix potential usage of Elf32 instead of Elf64 when compiling on
19454 32-bit architecture. Add endianness macros while on it.
19456 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19458 Use mipsel- rather than mips- in directories involving mipsel ports to
19459 allow both endiannesses coexist.
19461 * configure.ac: proparate target_cpu=mipsel rather than resetting to
19462 mips. All conditions adjusted.
19463 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
19465 * util/grub-install.in: Adjust conditions to take renaming into account.
19466 * util/grub-mkimage.c (image_targets): Likewise. New target
19467 mips-qemu_mips-elf for bigendian mips.
19469 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19471 Avoid unnecessary copying on MIPS.
19473 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
19474 early if src == dest.
19475 * util/grub-mkimage.c (generate_image): Arange for src == dest if
19476 compression is none.
19478 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19480 Reduce memory footprint on SGI by putting modules before the kernel
19481 as opposed to after.
19483 * grub-core/Makefile.core.def (kernel): Increase linking address.
19484 (none_decompress): Likewise.
19485 (xz_decompress): Likewise.
19486 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
19488 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
19490 (grub_arch_modules_addr): New function.
19491 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
19492 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
19493 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
19495 * grub-core/kern/mips/startup.S (total_size): Rename to ...
19496 (grub_total_modules_size): ... this. Make global.
19497 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
19498 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
19500 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
19501 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
19502 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
19503 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
19504 * util/grub-mkimage.c (image_target_desc): New flag
19505 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
19506 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
19507 (generate_image): Handle images with modules before kernel.
19509 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19511 Prevent potential loss of memory map by overwrite on qemu-mips.
19513 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19514 Save ram size in $s4.
19515 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
19516 All users changed to grub_arch_memsize.
19517 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
19519 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
19520 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
19521 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
19524 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19526 * .bzrignore: Remove grub-dumpbios.
19528 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19530 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
19531 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
19532 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
19533 existing options which append).
19534 * docs/grub.texi (Simple configuration): Document new options.
19535 Reported by: Ian Jackson. Fixes Debian bug #617538.
19537 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19539 * util/grub-fstest.c (cmd_cat): New function.
19540 (fstest): Handle CMD_CAT.
19541 (options): Add cat.
19542 (argp_parser): Handle cat.
19544 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
19546 * Makefile.util.def (grub-bin2h): Don't install.
19547 * docs/man/grub-bin2h.h2m: Remove.
19549 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19551 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
19554 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19556 Reenable qemu-mips port.
19558 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
19559 Fix small arc bug while on it.
19560 * gentpl.py: Handle qemu_mips.
19561 * grub-core/Makefile.am: Likewise.
19562 * grub-core/Makefile.core.def: Likewise.
19563 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
19564 inappropriate includes.
19565 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
19566 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
19567 * grub-core/kern/main.c (grub_modules_get_end)
19568 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
19569 * grub-core/kern/mips/qemu-mips: Moved to ..
19570 * grub-core/kern/mips/qemu_mips: ... this.
19571 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
19572 (grub_machine_init): Call terminfo_init and serial_init.
19573 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
19574 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
19576 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
19578 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
19579 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
19580 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
19581 * include/grub/mips/qemu_mips/cmos.h: New file.
19582 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
19583 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
19585 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
19586 Use correct mips-style address.
19587 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
19588 (GRUB_TICKS_PER_SECOND): Removed.
19589 (grub_get_rtc): Likewise.
19590 (grub_cpu_idle): Likewise.
19591 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
19593 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
19594 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
19595 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
19596 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
19597 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
19598 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
19599 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
19600 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
19602 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
19606 * Makefile.util.def (libgrubmods.a): Add dvh.c.
19607 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
19609 * configure.ac: New target mips-arc.
19610 * gentpl.py: Likewise.
19611 * grub-core/Makefile.am: Likewise.
19612 * grub-core/Makefile.core.def: Likewise.
19613 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
19614 (none_decompress): Likewise.
19615 (lsdev): New module.
19616 (datetime): Use lib/arc/datetime.c on ARC.
19617 (part_dvh): New module.
19618 * grub-core/commands/arc/lsdev.c: New file.
19619 * grub-core/disk/arc/arcdisk.c: Likewise.
19620 * grub-core/kern/mips/arc/init.c: Likewise.
19621 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
19623 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
19625 (grub_arch_dl_relocate_symbols): Likewise.
19626 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
19627 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
19628 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
19630 * grub-core/lib/arc/datetime.c: New file.
19631 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
19632 pci.h on non-loongson.
19633 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
19634 (grub_linux_boot): Set unused registers to 0.
19635 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
19636 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
19637 * grub-core/mmap/mips/uppermem.c: ...here.
19638 * grub-core/partmap/dvh.c: New file.
19639 * grub-core/term/arc/console.c: Likewise.
19640 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
19641 (grub_terminfo_set_current): Add terminal "arc".
19642 (grub_terminfo_readkey): Support ARC sequences.
19643 * include/grub/arc/arc.h: New file.
19644 * include/grub/arc/console.h: Likewise.
19645 * include/grub/disk.h (grub_disk_dev_id): Add
19646 GRUB_DISK_DEVICE_ARCDISK_ID.
19647 * include/grub/mips/arc/kernel.h: New file.
19648 * include/grub/mips/arc/memory.h: Likewise.
19649 * include/grub/mips/arc/time.h: Likewise.
19650 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
19651 * include/grub/mips/kernel.h (grub_halt): ... here.
19652 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
19654 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
19655 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
19656 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
19657 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
19659 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
19661 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
19662 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
19663 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
19664 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
19665 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
19666 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
19667 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
19668 (grub_phys_addr_t): Moved from here ...
19669 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
19670 (grub_vtop): Moved from here ...
19671 * include/grub/mips/memory.h (grub_vtop): ... here.
19672 (grub_map_memory): Moved from here ...
19673 * include/grub/mips/memory.h (grub_map_memory): ... here.
19674 (grub_unmap_memory): Moved from here ...
19675 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
19676 (grub_machine_mmap_iterate): Moved from here ...
19677 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
19678 (grub_mmap_get_lower): Moved from here ...
19679 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
19680 (grub_mmap_get_upper): Moved from here ...
19681 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
19682 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19684 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19685 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
19687 * include/grub/mips/time.h (grub_get_rtc): ... here.
19688 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
19690 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
19691 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
19693 * include/grub/mips/time.h (grub_cpu_idle): ... here.
19694 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
19696 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
19697 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
19698 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
19699 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
19700 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
19701 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
19702 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
19703 (GRUB_MACHINE_LINK_ADDR): Likewise.
19704 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
19706 * util/grub-install.in: Run dvhtool on ARC.
19707 * util/grub-mkimage.c (image_targets): Add mips-arc.
19708 (generate_image): Handle ECOFF output for mips-arc.
19710 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19712 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
19715 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19717 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
19718 after enabling port.
19720 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19722 Skip incorrect USB devices.
19724 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
19726 * include/grub/usb.h (grub_usb_err_t): New enum value
19727 GRUB_USB_ERR_BADDEVICE.
19729 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
19731 Fuloong video init support.
19733 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
19735 (grub_vga_read_arx): New function.
19736 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
19738 (framebuffer): New members io, mmioptr and mmiobase.
19739 (read_sis_cmd): New function.
19740 (write_sis_cmd): Likewise.
19741 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
19742 rather than 640x400.
19743 * grub-core/video/sis315_init.c: New file.
19745 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19747 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
19749 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
19750 to grub_dl_register_symbol.
19752 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19754 Fix compilation errors.
19756 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
19757 potentially unused.
19758 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
19759 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
19760 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
19761 to loongson machines.
19763 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19765 Several FS mtime support.
19767 * grub-core/fs/affs.c (grub_affs_time): New struct.
19768 (grub_affs_file): New field mtime.
19769 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
19770 type. Removed 'size'. New field 'di'. All users updated.
19771 (grub_affs_mount): Simplify checsum checking.
19772 (grub_affs_iterate_dir): New helper grub_affs_create_node.
19773 (grub_affs_dir): Handle mtime.
19774 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
19775 (grub_cpio_dir): Likewise.
19776 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
19777 (grub_hfs_filerec): New field mtime.
19778 (grub_hfs_dir): Handle mtime.
19779 (grub_hfs_mtime): New function.
19780 (grub_hfs_fs): Register grub_hfs_mtime.
19781 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
19782 (grub_iso9660_dir): New field mtime.
19783 (grub_fshelp_node): New field dirent.
19784 (iso9660_to_unixtime): New function.
19785 (iso9660_to_unixtime2): Likewise.
19786 (grub_iso9660_read_symlink): Use node->dirent.
19787 (grub_iso9660_iterate_dir): Likewise.
19788 (grub_iso9660_dir): Set mtime.
19789 (grub_iso9660_mtime): New function.
19790 (grub_iso9660_fs): Register grub_iso9660_mtime.
19791 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
19792 (grub_jfs_inode): New fields atime, ctime and mtime.
19793 (grub_jfs_dir): Set mtime.
19794 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19795 * grub-core/fs/ntfs.c (list_file): Set mtime.
19796 (grub_ntfs_dir): Likewise.
19797 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
19798 (grub_reiserfs_iterate_dir): Set mtime.
19799 (grub_reiserfs_dir): Likewise.
19800 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
19801 (grub_fshelp_node): Likewise.
19802 (grub_sfs_iterate_dir): Set mtime.
19803 (grub_sfs_dir): Likewise.
19804 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
19805 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
19806 (grub_xfs_inode): New fields atime, mtime, ctime.
19807 (grub_xfs_dir): Set mtime.
19808 * include/grub/datetime.h (grub_datetime2unixtime): New function.
19809 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
19810 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
19812 Support UDF symlinks.
19814 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
19815 (grub_ufs_read_symlink): New function. All users updated.
19817 Check amiga partmap checksum.
19819 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
19820 (grub_amiga_partition): Likewise.
19821 (amiga_partition_map_checksum): New function.
19822 (amiga_partition_map_iterate): Check checksum.
19824 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19828 * Makefile.util.def (libgrubmods.a): Add romfs.
19829 * grub-core/Makefile.core.def (romfs): New module.
19830 * grub-core/fs/romfs.c: New file.
19832 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19834 Squashfs v4 support.
19836 * Makefile.util.def (libgrubmods.a): Add squash4.
19837 * grub-core/Makefile.core.def (squash4): New module.
19838 * grub-core/fs/squash4.c: New file.
19839 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
19840 disk_input_start, disk_input.
19841 (get_byte): Handle disk_input.
19842 (grub_zlib_disk_read): New function.
19843 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
19845 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19846 2011-05-15 Feiran Zheng <famcool@gmail.com>
19848 * Makefile.util.def (libgrubmods.a): Add minix3.
19849 * grub-core/Makefile.core.def (minix3): New module.
19850 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
19851 (GRUB_MINIX_BSIZE): Removed.
19852 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
19853 (grub_minix_ino_t): New type.
19854 (grub_minix_le_to_cpu_ino): New macro.
19855 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
19856 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
19857 (grub_minix_data): New field block_size.
19858 (grub_minix_read_file): Handle 64-bit correctly.
19859 * grub-core/fs/minix3.c: New file.
19861 2011-05-15 Tristan Gingold <gingold@free.fr>
19862 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
19863 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19867 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
19868 * configure.ac: Add ia64-efi target.
19869 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
19870 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
19871 * gentpl.py: Add ia64_efi platform.
19872 Rename x86_efi to efi and Add ia64-efi. All users updated.
19873 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
19874 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
19875 Remove kern/generic/rtc_get_time_ms.c on EFI.
19876 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
19877 kern/ia64/dl_helper.c on ia64-efi.
19878 Add kern/emu/cache.c on emu.
19879 (linux): Use on loader/ia64/efi/linux.c on ia64.
19880 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
19881 whether symbol is a function.
19882 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
19883 (grub_symbol): New field 'isfunc'.
19884 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
19885 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
19886 (grub_dl_load_segments): Place all sections into the same region.
19887 [__ia64__]: Create trampolines and got.
19888 [GRUB_MACHINE_EMU]: Call mprotect.
19889 (grub_dl_resolve_symbols): Resolve symbol type as well.
19890 [__ia64__]: Create function descriptors.
19891 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
19892 (grub_rtc_get_time_ms): ... this. Expressions simplified.
19893 (grub_get_rtc): New function.
19894 * grub-core/kern/emu/cache.c [__ia64__]: New file.
19895 * grub-core/kern/emu/cache.S: Renamed to ...
19896 * grub-core/kern/emu/cache_s.S: ... this.
19897 [__ia64__]: Add a nop.
19898 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
19899 [__ia64__]: New function.
19900 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
19901 * grub-core/kern/ia64/dl.c: New file.
19902 * grub-core/kern/ia64/dl_helper.c: Likewise.
19903 * grub-core/kern/ia64/efi/init.c: New file.
19904 * grub-core/kern/ia64/efi/startup.S: Likewise.
19905 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
19906 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
19907 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
19908 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
19909 * grub-core/loader/ia64/efi/linux.c: New file.
19910 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
19911 (GRUB_MOD_DEP): Likewise.
19912 (grub_dl) [__ia64__]: New fields got and tramp.
19913 (grub_dl): New field 'base'.
19914 (grub_dl_register_symbol): New argument isfunc. All users updated.
19915 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
19916 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
19917 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
19918 (grub_ia64_dl_get_tramp_got_size): New proto.
19919 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
19920 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
19921 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
19922 * include/grub/efi/api.h: Skip call wrappers on ia64.
19923 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
19924 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
19925 * include/grub/elf.h (ELF_ST_INFO): New definition.
19926 * include/grub/ia64/efi/kernel.h: New file.
19927 * include/grub/ia64/efi/memory.h: Likewise.
19928 * include/grub/ia64/efi/time.h: Likewise.
19929 * include/grub/ia64/kernel.h: Likewise.
19930 * include/grub/ia64/setjmp.h: Likewise (from glibc).
19931 * include/grub/ia64/time.h: New file.
19932 * include/grub/ia64/types.h: Likewise.
19933 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
19934 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
19936 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
19937 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
19938 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
19939 * util/grub-mkimage.c (image_target_desc): New field pe_target.
19941 (EFI64_HEADER_SIZE): New definition. All users updated.
19942 (image_targets): Add ia64-efi.
19943 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
19944 jumpers_addr. All users updated.
19945 Create function descriptors.
19946 (count_funcs): New function.
19947 (unaligned_uint32): New struct.
19948 (MASK20): New definition.
19949 (MASK19): Likewise.
19950 (MASKF21): Likewise.
19951 (add_value_to_slot_20b): New function.
19952 (add_value_to_slot_21_real): Likewise.
19953 (add_value_to_slot_21): Likewise.
19954 (ia64_kernel_trampoline): New struct.
19955 (nopm): New variable.
19957 (make_trampoline): New function.
19958 (relocate_addresses): Handle ia64.
19959 (make_reloc_section): Likewise.
19960 (load_image): Likewise.
19962 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19964 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
19965 warning. Move variables before code while on it.
19967 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
19971 * configure.ac: Rename yeeloong platform to loongson. All users updated.
19972 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
19973 * grub-core/boot/mips/loongson/fuloong.S: New file.
19974 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
19975 Explicitly init CS5536.
19976 [FULOONG]: Don't use serial until CS5536 is available.
19977 Set GPIO based on dumps.
19978 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
19979 [FULOONG]: Handle GPIO and memory controller differences.
19980 Parse machine type in $a2.
19981 * grub-core/boot/mips/startup_raw.S: Determine and save the
19983 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
19984 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
19985 init on architecture type.
19986 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
19987 SIS315E. Don't init at_keyboard on fuloong.
19988 (grub_halt): Support Fuloong.
19989 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
19990 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
19991 (loongson_machtypes): New array.
19992 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
19994 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
19995 config. All users updated. Handle CS5536 serial.
19996 * grub-core/term/serial.c (grub_serial_register): Conditionalise
19997 default port on machine type. Register serial as inactive.
19998 * grub-core/video/sis315pro.c: New file.
19999 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
20001 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
20002 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
20003 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
20004 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
20005 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
20006 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
20008 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
20009 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
20011 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
20012 (grub_arch_machine): New extern var.
20013 * include/grub/mips/loongson/serial.h
20014 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
20015 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
20016 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
20017 (GRUB_MACHINE_SERIAL_PORT0): ... this.
20018 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
20019 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
20020 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
20021 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
20022 * include/grub/term.h (grub_term_register_input_inactive): New inline
20024 (grub_term_register_output_inactive): Likewise.
20025 * include/grub/video.h (grub_video_driver_id): New value
20026 GRUB_VIDEO_DRIVER_SIS315PRO.
20027 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
20028 New field "names". All users updated.
20029 New field value IMAGE_FULOONG_FLASH.
20030 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
20032 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
20034 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
20035 and add some clarification.
20037 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20039 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
20040 platforms if kernel is compressed.
20042 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20044 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
20045 unused modules since currently referrence counter isn't reliable and
20046 there isn't much memory to recover there anyway.
20048 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20050 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
20051 rather than resetting it to allow modules to reference themselves
20054 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20056 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
20057 counter on dependencies since grub_dl_unref already handles this.
20059 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20061 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
20062 on error if not already done.
20064 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20066 Fix few potential memory misusage.
20068 * grub-core/font/font.c (load_font_index): Don't free char_index to
20070 (grub_font_load): Zero-fill font at alloc for safety.
20071 Close file on error.
20072 (free_font): Free bmp_idx.
20074 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20076 * docs/grub.texi (Installation): Fix several outdated claims.
20078 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20080 Handle module_license on windows.
20082 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
20084 (insert_string): Make argument const char * instead of char *.
20085 (write_section_data): Handle long section names.
20086 Handle module_license.
20088 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20090 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
20091 handle class-free menuentries.
20092 (grub_normal_add_menu_entry): Add a check to be sure.
20094 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
20096 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
20099 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20101 * configure.ac: Bump version to 1.99.
20103 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20105 Give ATA device a bit more time on first try in order to allow disks
20108 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
20109 if dev->present is 1. Reset dev->present on failure.
20110 (grub_ata_device_initialize): Set dev->present to 1.
20111 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
20112 (grub_ata_device): New member 'present'.
20114 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20116 * util/grub-mkimage.c (generate_image): Update hash.
20118 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20120 Flush caches on DMA memory.
20122 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
20123 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
20124 (grub_dma_free): Likewise.
20125 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
20127 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20129 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
20130 to avoid asm treating ld and sd as macros.
20132 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20134 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
20137 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20139 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
20140 grub_decompress_core since later would fail if grub_decompress_core
20143 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
20145 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
20146 R_MIPS_JALR since it's used by newer compiler.
20148 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
20150 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
20152 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20154 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
20155 file_path to 0 for surety.
20156 (grub_chainloader_boot): Set exit_data to NULL.
20157 Unset the loader once done.
20158 (grub_cmd_chainloader): Fix confusing error message if file is empty.
20160 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20162 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
20163 unknown key into a dprintf.
20165 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20167 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
20168 on first non-existant partition.
20170 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20172 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
20174 Reported by: Mark Korenberg.
20176 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20178 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
20181 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
20183 * util/grub-mkimage.c (main): Explicitely flush and sync the output
20184 before closing to ensure that it will be readable by grub-setup.
20186 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20188 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
20189 (devpath_1): Use MAKE_PIWG_PATH.
20190 (devpath_2): Likewise.
20191 (devpath_3): Likewise.
20192 (devpath_4): Likewise.
20193 (devpath_5): Likewise.
20194 (devpath_6): Likewise.
20196 The appleldr.mod was checked that to be binary identical to previous
20199 2011-05-05 Zach <mikezackles>
20201 Support 2010 Macbooks.
20203 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
20204 (devs): Add devpath_6.
20206 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20208 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
20209 /dev/random. /dev/urandom is good enough for our purposes (salting).
20211 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20213 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
20215 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20217 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
20220 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
20222 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
20223 and not 0 on failure.
20225 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20227 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
20228 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
20229 disk; otherwise grub_fs_probe will not fall back to the next
20231 (grub_pxefs_open): Likewise, for consistency.
20232 Reported and tested by: Ezekiel Grave.
20234 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
20236 * tests/partmap_test.in: Don't hardcode path to parted.
20237 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
20239 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
20241 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
20242 of `ls' to find out which devices are available.
20244 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20246 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
20247 than source address for efi mmap buffer.
20249 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20251 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
20252 wrong action on non-detecting the magic.
20254 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20256 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
20257 already supplied by another part of the module (fixes compilation on
20260 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
20262 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
20263 match the one used by mdadm.
20265 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20267 * po/README: Add instructions for creating po/LINGUAS.
20269 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20271 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
20274 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
20275 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
20276 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
20277 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
20278 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
20279 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
20280 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
20281 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
20282 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
20283 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
20284 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
20285 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
20286 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
20287 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
20288 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
20289 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
20290 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
20291 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
20292 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
20293 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
20294 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
20295 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
20297 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20299 * grub-core/kern/emu/getroot.c
20300 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
20301 test that was incorrectly reintroduced in r3214.
20302 Reported by: Ian Dall. Fixes Savannah bug #33133.
20304 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
20306 Fix stack pointer handling in 16-bit relocator.
20308 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
20309 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
20310 Fixes Ubuntu bug #683904.
20312 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20314 * configure.ac: Bump version to 1.99~rc2.
20316 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20318 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
20319 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
20320 * grub-core/lib/x86_64/setjmp.S: Likewise.
20321 * grub-core/lib/mips/setjmp.S: Likewise.
20322 * grub-core/lib/powerpc/setjmp.S: Likewise.
20323 * grub-core/lib/sparc64/setjmp.S: Likewise.
20325 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
20327 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
20328 * grub-core/lib/efi/datetime.c: Likewise.
20330 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20332 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
20334 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
20335 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
20336 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
20338 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20340 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
20342 (grub_gfxterm_term_init): Likewise.
20344 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
20346 Take into account the decorations the computing menu entry width.
20348 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
20349 (grub_gfxmenu_create_box): Register get_border_width.
20350 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
20352 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
20355 2011-04-18 Endres Puschner <code@e7p.de>
20357 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
20358 Don't skip first class.
20360 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20362 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
20364 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
20366 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20368 Complete 64-bit division support.
20370 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
20371 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
20372 * include/grub/misc.h (grub_divmod64): Rename to ...
20373 (grub_divmod64_full): ... this.
20374 (grub_divmod64): New inline function.
20376 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20378 * util/grub-mkimage.c (generate_image): Add forgotten comma.
20380 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
20382 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
20383 performing the necessary test.
20385 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20387 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
20388 (kfreebsd.elf): Likewise.
20389 (pc-chainloader.elf): Likewise.
20390 (ntldr.elf): Likewise.
20392 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
20394 Identify RAID by its UUID rather than (guessed) name.
20396 * grub-core/disk/raid.c (ascii2hex): New function.
20397 (grub_raid_open): Accept mduuid/%s specification.
20398 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
20399 (get_mdadm_uuid): ... this.
20400 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
20402 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
20404 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
20407 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20409 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
20411 * util/grub.d/20_linux_xen.in: Likewise.
20413 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
20415 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
20416 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
20418 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
20419 Build a list of relevant visible mounts using the mnt_id and
20420 parent_mnt_id fields, and then scan that list at the end.
20422 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20424 * docs/grub.texi (normal): New section.
20425 (normal_exit): New section.
20426 (Embedded configuration): Add reference to normal.
20427 (GRUB only offers a rescue shell): Likewise.
20428 * docs/grub-dev.texi (Error Handling): Fix typo.
20430 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20432 * NEWS: Drop obsolete entry about probe-only btrfs support.
20434 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
20436 * util/import_gcry.py: Fix typo.
20438 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20440 * NEWS: Add btrfs support.
20442 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20443 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20445 BtrFS support. Written by me (Vladimir) with important bugfixes and
20446 even more important testing by Colin.
20448 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
20449 * grub-core/Makefile.core.def (btrfs): Add crc.c.
20450 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
20451 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
20452 mem_input_off and mem_input. All users updated to accept in-RAM input.
20453 (gzio_seek): New function.
20454 (test_zlib_header): Likewise.
20455 (grub_gzio_read): Likewise.
20456 (grub_zlib_decompress): Likewise.
20457 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
20458 Accept partial and non-virtual mounts.
20459 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
20460 avoid receiving /dev/dm-X as device.
20461 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
20462 Handle bind and partial mounts.
20463 * grub-core/lib/crc.c: New file.
20464 * include/grub/deflate.h: Likewise.
20465 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
20467 * include/grub/lib/crc.h: New file.
20469 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20471 Implement automatic module license checking according to new GNU
20474 * grub-core/kern/dl.c (grub_dl_check_license): New function.
20475 (grub_dl_load_core): Use grub_dl_check_license.
20476 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
20477 (GRUB_MOD_LICENSE): Likewise.
20478 (GRUB_MOD_DUAL_LICENSE): Likewise.
20479 All modules updated.
20481 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
20483 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
20484 reserved_first_sector to 1. btrfs reserves plenty of space for boot
20486 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
20488 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20490 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
20492 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20494 * util/grub-fstest.c (read_file): Report GRUB error if file opening
20497 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
20499 * grub-core/kern/file.c (grub_file_open): Don't take into account the
20500 parenthesis in the middle of the filename.
20502 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20504 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
20505 rather than trying to put initrd way too high.
20506 Reported by: Ryan Lortie <desrt@desrt.ca>
20508 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20510 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
20511 improperly removed string.
20513 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20515 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
20517 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
20518 (open_device) Likewise.
20519 (grub_util_biosdisk_close): Likewise.
20520 Reported by: Mark Korenberg.
20522 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
20524 * util/grub-mkconfig_lib.in: Add missing quotes.
20526 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
20528 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
20531 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20533 Dynamically count the number of lines for the lower banner.
20535 * grub-core/normal/menu_entry.c (per_term_screen): New member
20537 (print_down): Use num_entries.
20538 (update_screen): Likewise.
20539 (grub_menu_entry_run): Set num_entries.
20540 * grub-core/normal/menu_text.c (menu_viewer_data): New member
20542 (grub_print_message_indented): Move real part to ...
20543 (grub_print_message_indented_real): ... here. Additional argument
20545 (draw_border): Additional argument num_entries.
20546 (print_message): Additional argument dry_run.
20547 (print_entries): Receive menu viewer data.
20548 (grub_menu_init_page): New argment num_entries.
20549 (menu_text_set_chosen_entry): Use num_entries.
20550 (grub_menu_try_text): Likewise.
20551 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
20553 (grub_ucs4_count_lines): New function.
20554 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
20555 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
20556 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
20557 (grub_term_border_height): Likewise.
20558 (grub_term_num_entries): Likewise.
20560 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
20562 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
20563 Remove now unused string.
20565 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20567 * docs/grub-dev.texi (Finding your way around): Update for 1.99
20569 (Getting started): GRUB is developed in Bazaar now, not Subversion.
20571 (Comment): Fix typo.
20572 (Getting started): General copy-editing.
20573 (Typical Development Experience): Likewise.
20574 (Error Handling): Likewise.
20575 (Video API): Likewise.
20577 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
20579 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
20582 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20584 * util/grub-mkimage.c (main): Handle special naming of yeeloong
20587 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20589 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
20590 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
20593 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20595 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
20596 grub_strcpy since the lines aren't necessarily 0-terminated.
20598 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20600 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
20603 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20605 * grub-core/commands/probe.c (options): Argument to set isn't optional.
20606 (GRUB_MOD_INIT): DEVICE isn't optional.
20608 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20610 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
20611 word on new line if it's too long anyway. Fixes a hang.
20613 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20615 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
20617 * util/grub-setup.c (main): Reuse md device name if available.
20618 * util/raid.c (grub_util_raid_getmembers): Receive device name and
20619 not GRUB name as argument.
20620 Based on patch by: Florian Wagner <fwagner>.
20622 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20624 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
20625 Place mbi on low memory for better compatibility.
20627 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20629 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
20631 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20632 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
20634 * autogen.sh: Ensure that collate and ctype locale is C.
20635 * conf/Makefile.common: Likewise.
20637 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20639 * grub-core/normal/menu.c: Add missing include.
20641 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20643 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
20645 2011-04-08 Martin Zuther <mzuther@mzuther.de>
20647 * util/grub-mkconfig.in: Ignore emacsen backup.
20649 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20651 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
20653 (grub_util_biosdisk_close): Likewise.
20655 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
20657 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
20658 const attribute and use grub_isdigit.
20660 2011-04-06 Andrey <dev_null@ukr.net>
20662 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
20665 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20667 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
20668 useful grub_dprintf's.
20670 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20672 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
20674 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20676 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
20678 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20680 Output errors if theme loading failed.
20682 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
20683 grub_gfxterm_fullscreen on error paths to ...
20684 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
20685 theme loading error.
20687 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20689 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
20690 space for older compilers.
20691 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
20693 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
20695 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
20696 and report them as not RAID members since they are useless for GRUB.
20697 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
20699 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20701 Increase LVM implementation robustness in order not to crash on
20702 configurations like pvmove. Previously code assumed that in some places
20703 only lvs or only pvs are used whereas it seems that they are used
20706 * grub-core/disk/lvm.c (read_node): New function.
20707 (read_lv): Use read_node.
20708 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
20709 Match volumes only at the end when all lvs are found. Take both
20710 pvs (first) and lvs (second) into account.
20711 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
20712 mirror_* into node_*. All users updated.
20713 (grub_lvm_stripe): Merge this ...
20714 (grub_lvm_mirror): ... and this ...
20715 (grub_lvm_node): ... into this. All users updated.
20717 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20719 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
20720 of function to allow further scanning for LVMs.
20722 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20724 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
20725 on failed seek as it breaks open fd reusage.
20727 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20729 * util/grub-install.in: Add a recommendation to use --recheck before
20732 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20734 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
20737 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
20739 GRUB developper manual based on existing Internals section and
20740 contributions by the various authors with active copyright assignment.
20742 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
20743 * docs/font_char_metrics.png: New file.
20744 * docs/font_char_metrics.txt: Likewise.
20745 * docs/grub-dev.texi: Likewise.
20746 * docs/grub.texi (Internals): Move from here ...
20747 * docs/grub-dev.texi: ... here.
20749 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20751 Store the loopback device as data on loopback grub_disk structures,
20752 rather than the file it points to. This fixes use of freed memory
20753 if an existing loopback device is replaced.
20755 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
20756 disk->data, not dev->file.
20757 (grub_loopback_read): Adjust file assignment to match.
20758 Fixes Ubuntu bug #742967.
20760 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20762 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
20763 when replacing an existing device.
20765 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
20767 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
20768 memory corruptions.
20770 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
20772 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
20773 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
20774 (grub_jfs_read_inode): Likewise.
20775 (grub_jfs_opendir): Likewise. Remove now useless casts.
20776 (grub_jfs_getent): Likewise.
20777 Make ino a grub_uint32_t rather than int.
20778 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
20779 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
20780 division and module with bit operations.
20781 (grub_jfs_find_file): Make ino a grub_uint32_t.
20782 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
20784 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
20786 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
20787 warning. (This was in fact always initialised before use, but GCC
20788 wasn't smart enough to prove that.)
20789 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
20791 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
20793 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
20795 (efi_wrap_1): Likewise.
20796 (efi_wrap_2): Likewise.
20797 (efi_wrap_3): Likewise.
20798 (efi_wrap_4): Likewise.
20799 (efi_wrap_5): Likewise.
20800 (efi_wrap_6): Likewise.
20801 (efi_wrap_10): Likewise.
20802 Based on information by: Red Hat/Peter Jones.
20804 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20806 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
20807 set-but-not-used variable.
20809 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
20811 * docs/grub.texi (Simple configuration): Be more explicit about
20812 GRUB_DEFAULT, and add an example.
20813 Reported by: Leslie Rhorer.
20815 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20817 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
20820 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20822 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
20823 * util/grub.d/20_linux_xen.in: Likewise.
20825 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20827 * util/grub.d/10_linux.in: Try alternative config filenames where
20828 we parse config file.
20829 * util/grub.d/20_linux_xen.in: Likewise.
20831 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
20833 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
20834 * util/grub.d/20_linux_xen.in: Likewise.
20836 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20838 * grub-core/disk/raid.c (insert_array): Add few potentially
20839 useful grub_util_info.
20840 (grub_raid_register): Likewise.
20842 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20844 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
20845 Preserve partition number in mdadm code path.
20847 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20849 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
20850 few potentially useful grub_util_info.
20852 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20854 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
20856 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20858 * docs/grub.texi (default): Use @example rather than nested
20859 itemized lists to avoid breaking gendocs.
20861 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20863 * docs/grub.texi (Future): Update.
20865 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20867 * docs/grub.texi (Environment): New chapter.
20868 (Changes from GRUB Legacy): Link to "Environment block" section for
20869 details of limitations.
20870 (Simple configuration): Likewise. Link to documentation of gfxmode
20871 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
20873 (Shell-like scripting): Note that normal variables are stored in the
20875 (gettext): Link to documentation of lang and locale_dir.
20876 (list_env): New section.
20877 (load_env): New section.
20878 (save_env): New section.
20880 (Reporting bugs): Fix typo.
20882 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20884 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
20887 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
20889 * grub-core/term/at_keyboard.c (set_scancodes)
20890 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
20892 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20894 * docs/grub.texi (Menu-specific commands): Remove some semantics
20895 that were true in GRUB Legacy but not in GRUB 2.
20896 (submenu): New section.
20897 (false): New section.
20898 (read): New section.
20899 (true): New section.
20901 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20903 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
20905 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
20907 * docs/grub.texi (Simple configuration): Explain some of the
20908 current limitations of grub-mkconfig.
20909 Reported by: Leslie Rhorer.
20911 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20913 Old macs search for boot.efi rather than for bootia32.efi.
20915 * util/grub-install.in: Copy bootia32.efi to boot.efi.
20916 * util/grub-mkrescue.in: Likewise.
20917 Suggested by: Peter Jones.
20919 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20921 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
20923 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20925 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
20926 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
20927 (grub_lvm_mirror): New struct.
20928 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
20929 (grub_lvm_iterate): Iterate only visible volumes.
20930 (grub_lvm_read): Factor out to ..
20931 (read_lv): ... this. Support mirrors.
20932 (grub_lvm_read): New wrapper function.
20933 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
20934 stripped or mirrored.
20936 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20938 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
20940 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20942 * docs/grub.texi (loopback): New section.
20944 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20946 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
20949 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20951 * docs/grub.texi (BIOS installation): New section, partly based on
20952 previous text in other sections.
20953 (Installing GRUB using grub-install): Replace BIOS discussion with a
20955 (Images): Likewise.
20957 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20959 * grub-core/kern/emu/hostdisk.c (find_partition_start)
20960 [HAVE_DIOCGDINFO]: Add safety checks.
20962 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20964 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
20965 per default compiled in kernel and prior to 8.0 isn't shipped at all.
20967 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
20969 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
20970 real_sb->size is zero (e.g. RAID-0), get the disk size from
20971 real_sb->data_size instead.
20972 Fixes Ubuntu bug #743136.
20974 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20976 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
20977 printf clauses for printing size and start.
20979 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20981 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
20982 Reported and tested by: Timothy Nikkel.
20984 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20986 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
20987 (dirty_region_add_real): ... this.
20988 (dirty_region_add): Don't discard margin refresh when performing
20991 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
20993 * grub-core/lib/relocator.c (allocate_regstart)
20994 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
20995 terminals are capabple of malloc-free operation.
20996 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20997 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
20999 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
21001 * util/grub-setup.c: Copy the partition table zone if floppy support
21002 is disabled, even if no partition table is found.
21004 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
21005 during POST if an invalid partition table is contained in the PBR
21006 of the active partition when GRUB is installed to a partition.
21008 2011-03-28 Colin Watson <cjwatson@debian.org>
21010 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
21013 2011-03-28 Colin Watson <cjwatson@debian.org>
21015 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
21016 to be specific about what kind of RAID device we're scanning for.
21018 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
21020 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
21021 return freed string.
21023 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21025 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
21027 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21029 Use libgeom on FreeBSD to detect partitions.
21031 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
21032 (grub-mkrelpath): Likewise.
21033 (grub-script-check): Likewise.
21034 (grub-editenv): Likewise.
21035 (grub-mkpasswd-pbkdf2): Likewise.
21036 (grub-fstest): Likewise.
21037 (grub-mkfont): Likewise.
21038 (grub-mkdevicemap): Likewise.
21039 (grub-probe): Likewise.
21040 (grub-setup): Likewise.
21041 (grub-ofpathname): Likewise.
21042 (grub-mklayout): Likewise.
21043 (example_unit_test): Likewise.
21044 (grub-menulst2cfg): Likewise.
21045 * grub-core/Makefile.core.def (grub-emu): Likewise.
21046 (grub-emu-lite): Likewise.
21047 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
21048 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
21049 define HAVE_DIOCGDINFO.
21050 (follow_geom_up) [FreeBSD]: New function.
21051 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
21052 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
21053 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
21054 unconditionally of HAVE_DIOCGDINFO.
21056 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
21058 Fix FreeBSD compilation problem.
21060 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
21061 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
21063 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
21065 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
21066 Switch back to page zero before loading a kernel, since some kernel
21067 drivers expect that.
21068 Thanks to: Felix Kuehling.
21070 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21072 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
21073 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
21074 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
21076 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21078 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
21079 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
21081 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21083 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
21084 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
21085 malloc is disabled.
21087 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
21089 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
21090 for modules headers when counting the needed allocation size.
21092 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21094 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
21095 if no ASCII character is found to prevent crash.
21097 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
21099 * grub-core/video/bitmap.c (match_extension): Ignore case.
21101 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21103 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
21105 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21107 * grub-core/script/parser.y: Declare "time" as valid argument.
21109 2011-03-23 Peter Jones <pjones@redhat.com>
21111 Fix incorrect assert failure reporting.
21113 * grub-core/tests/example_functional_test.c (example_test): Add
21115 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
21116 (failure_start): ...this. Check that malloc succeeded.
21117 Don't call xvasprintf. Return failure struct.
21118 (failure_append_vtext): New function.
21119 (failure_append_text): Likewise.
21120 (add_failure): Likewise.
21121 (grub_test_assert_helper): Likewise.
21122 * include/grub/test.h (grub_test_assert_helper): New declaration.
21123 (grub_test_assert): Macro rewritten.
21125 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21127 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
21129 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21131 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
21133 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21135 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
21136 into GRUB-style one.
21138 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21140 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
21141 error and not grub_errno.
21142 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
21144 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21146 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
21147 GRUB_USB_SPEED_NONE in case of failure and not the error code.
21149 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21151 * grub-core/efiemu/i386/pc/cfgtables.c
21152 (grub_machine_efiemu_init_tables): Make declaration a prototype.
21153 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
21154 (grub_xnu_unlock): Likewise.
21155 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
21157 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21159 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
21160 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
21161 * grub-core/commands/hashsum.c (aliases): Likewise.
21162 * grub-core/commands/setpci.c (pci_registers): Likewise.
21163 * grub-core/disk/usbms.c (attach_hook): Likewise.
21164 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
21165 (zio_checksum_table): Likewise.
21166 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
21167 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
21168 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
21169 * grub-core/lib/relocator.c (leftovers): Likewise.
21170 (extra_blocks): Likewise.
21171 * grub-core/loader/i386/bsd.c (relocator): Likewise.
21172 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
21173 (modules_last): Likewise.
21174 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
21175 (devices): Likewise.
21176 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
21177 (modules_last): Likewise.
21178 * grub-core/normal/auth.c (users): Likewise.
21179 * grub-core/normal/context.c (initial_menu): Likewise.
21180 (current_menu): Likewise.
21181 * grub-core/normal/crypto.c (crypto_specs): Likewise.
21182 * grub-core/term/serial.c (grub_serial_ports): Likewise.
21183 (grub_serial_terminfo_input_template): Likewise.
21184 (grub_serial_terminfo_output_template): Likewise.
21185 (grub_serial_terminfo_input): Likewise.
21186 (grub_serial_terminfo_output): Likewise.
21187 (registered): Likewise.
21188 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
21190 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21192 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
21193 grub_video_mode_type_t.
21194 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
21195 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
21196 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
21198 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
21200 * util/grub-install.in: Correct the x86-64 name as x86_64.
21202 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
21204 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
21205 initial chunk read from the kernel always includes GRUB's multiboot
21206 header, which is now outside the first sector.
21208 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21210 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
21211 cached mmap_size, so that this works correctly when called multiple
21213 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
21215 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
21217 * docs/grub.texi (Simple configuration): Tidy up formatting.
21219 2011-03-07 Szymon Janc <szymon@janc.net.pl>
21221 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
21222 Set-but-not-used variable removed.
21224 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21226 Workaround yet another IEEE1275 bug.
21228 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
21229 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
21230 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
21231 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
21233 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21234 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
21236 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
21238 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
21241 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
21243 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
21244 empty, since in that case we can only generate either nothing or a
21245 syntactically invalid configuration file.
21246 Reported by: Michal Suchanek. Fixes Debian bug #612898.
21248 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21250 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
21251 (Making a GRUB bootable CD-ROM): Likewise.
21252 (Invoking grub-mkrescue): New section.
21253 Reported by: Yann Dirson. Fixes Debian bug #612585.
21255 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
21257 * util/grub-install.in: Remove unnecessary brackets from tr
21259 * util/grub.d/10_hurd.in: Likewise.
21260 * util/grub.d/10_kfreebsd.in: Likewise.
21261 * util/grub.d/10_linux.in: Likewise.
21262 * util/grub.d/20_linux_xen.in: Likewise.
21263 Reported by: Jamie Heilman. Fixes Debian bug #612564.
21265 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
21267 * include/grub/file.h (not_easly_seekable): Rename to ...
21268 (not_easily_seekable): ... this. Update all users.
21270 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
21272 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
21275 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
21277 * util/grub-mkimage.c (generate_image): Refuse to create the images
21278 bigger than the actual flash (512K) in Loongson machines. 512K is also
21279 the biggest chip supported by them.
21281 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21283 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
21285 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
21287 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
21288 super_offset field.
21290 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21292 * util/grub-install.in: Ignore install device on platforms
21293 where it doesn't make sense. Always use UUIDs except on pc, efi and
21295 Reported by: Daniel Kahn Gillmor.
21297 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21299 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
21301 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21303 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
21304 (iterate_real): Don't rely on partition being non-NULL.
21306 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21308 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
21309 supported platforms. Put a compile time assert for this rather than
21310 generate a warning with 32-bit shift.
21312 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21314 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
21315 logical expression more readable.
21317 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
21319 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
21320 even if some elements have a name.
21321 Reported by: Alexander GQ Gerasiov.
21323 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21325 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
21326 path unreadable if `grub-probe -t abstraction' fails, for example if
21327 memberlist fails on an LVM volume group.
21328 Reported by: Darius Jahandarie.
21330 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
21332 * docs/grub.texi (Simple configuration): Document
21333 GRUB_PRELOAD_MODULES.
21335 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
21337 * .bzrignore: Remove nonexistent grub-pbkdf2.
21339 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
21341 * configure.ac: Bump version to 1.99~rc1.
21343 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
21345 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
21348 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21350 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
21353 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
21355 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
21357 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21359 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
21362 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
21364 Fix compilation on cygwin.
21366 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
21367 -R .drectve on cygwin.
21368 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
21369 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
21370 (COND_CYGWIN): New condition.
21371 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
21372 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
21373 not @TARGET_OBJ2ELF@.
21374 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
21375 type to determine whether aux is to be used.
21377 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21379 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
21380 realpath'ed device string.
21381 Handle floppy (somewhat).
21382 Issue error in unknown case rather than garbage.
21383 Reported by: Axel Beckert.
21385 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21387 * util/grub.d/00_header.in (load_video): Handle the case when no video
21389 Thanks to: Axel Beckert.
21391 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21393 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
21394 variable. Fixes problem on big endian platforms.
21396 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21398 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
21399 It doesn't work well there.
21401 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21403 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
21405 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
21406 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
21409 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
21411 Use alias->path rather than buggy "canon".
21413 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
21414 (ofdisk_hash_add): New argument curcan. All users updated.
21416 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21418 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
21420 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21422 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
21423 loadmask before doing any calculations. Use correct type for offset.
21424 (grub_linux_load64): Likewise.
21426 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
21428 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
21430 (console_grub_equivalences_unshift): Likewise.
21431 Reported by: Daniel Dehennin.
21433 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21435 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
21436 (set_env_limn_ro): Likewise.
21437 (GRUB_MOD_INIT): Likewise.
21438 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
21439 ARRAY_SIZE while on it.
21440 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
21441 * grub-core/normal/context.c (grub_env_export): Move from here ...
21442 * grub-core/kern/env.c (grub_env_export): ... here.
21443 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
21445 * grub-core/kern/main.c (grub_main): Export root and prefix.
21446 * include/grub/env.h (grub_env_export): Export.
21447 Reported by: Seth Goldberg.
21449 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21451 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21452 Take into account space used by ELF sections and multiboot palette.
21453 Reported by: Grégoire Sutre.
21455 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
21459 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21461 Pass more appropriate video id to Linux.
21463 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
21464 grub_video_get_driver_id and variable gfxpayloadforcelfb to
21466 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
21467 shift params->lfb_size.
21468 * include/grub/i386/linux.h: Make an enume out of have_vga values.
21470 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21472 * util/grub-menulst2cfg.c: Add missing include of misc.h.
21474 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21476 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
21477 separator and pass bootpath/devid even if only one of them is available.
21478 Reported by: Seth Goldberg.
21480 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21482 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
21483 implementations bug on them.
21485 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
21487 (filter_memory_map): Likewise.
21489 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21491 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
21492 Reported by: nebuchadnezzar.
21494 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21496 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
21497 Reported by: nebuchadnezzar.
21499 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21501 Submenu default support.
21503 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
21504 auto_boot. All users updated.
21506 Handle chosen and default with submenus.
21507 (grub_menu_execute_with_fallback): Declared static.
21508 Don't notify failure if autobooted. Upper level does it.
21509 (menuentry_eq): New function.
21510 (get_entry_number): Use menuentry_eq.
21511 (show_menu): New parameter "autobooted". All users updated.
21512 (grub_show_menu): Likewise.
21513 * include/grub/normal.h (grub_show_menu): Likewise.
21514 * include/grub/menu.h (grub_menu_execute_entry): Removed.
21515 (grub_menu_execute_with_fallback): Likewise.
21517 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21519 * util/grub-mklayout.c (usage): Update help text.
21521 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21523 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
21525 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21527 * util/grub-menulst2cfg.c (main): Trim the line.
21529 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21531 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
21532 (grub_machine_init): Don't check amount of low memory as reportedly
21533 INT 12h can be broken and if low memory is too low we wouldn't have
21534 gotten into grub_machine_init anyway.
21536 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21538 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
21539 (grub_machine_mmap_iterate): Take low memory into account
21541 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21543 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
21545 Reported by: TiCPU.
21547 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
21549 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
21552 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21554 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
21555 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
21557 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
21559 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
21560 openbsd and netbsd types being in part_bsd module.
21562 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21564 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
21565 (_FILE_OFFSET_BITS): Likewise.
21566 Reported by: Seth Goldberg.
21568 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
21570 * configure.ac: Check for libdevmapper header.
21572 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21574 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
21576 (fzap_lookup): Likewise.
21577 (dnode_get): Likewise.
21578 (make_mdn): Likewise.
21579 (zfs_mount): Likewise.
21580 (fzap_iterate): Use temporary pointer to avoid aliasing.
21581 (grub_zfs_read): Likewise.
21582 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
21583 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
21584 pointers to avoid aliasing.
21585 (grub_cmd_xnu_kernel64): Likewise.
21586 (grub_xnu_load_driver): Likewise.
21588 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21590 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
21592 (grub_cmd_terminal_output): Likewise.
21593 Reported and tested by: Grégoire Sutre.
21595 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21597 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
21599 Reported and tested by: Grégoire Sutre.
21601 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21603 * configure.ac: Do CPU substitution even if it's specified explicitly.
21604 Reported and tested by: Alain Greppin.
21606 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21608 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
21609 Reported and tested by: Alain Greppin.
21611 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21613 Satisfy some bison versions need for inttypes.h.
21615 * grub-core/lib/posix_wrap/inttypes.h: New file.
21616 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
21617 (int16_t): Likewise.
21618 (int32_t): Likewise.
21619 (int64_t): Likewise.
21620 Reported and tested by: Alain Greppin.
21622 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
21624 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
21625 Silence spurious warning.
21626 Reported and tested by: Alain Greppin.
21628 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21630 * docs/grub.texi (Support automatic decompression): Update with xz
21631 decompression support.
21633 2011-01-07 Szymon Janc <szymon@janc.net.pl>
21635 Improve loaders' kernel command line handling.
21637 * grub-core/lib/cmdline.c: New file.
21638 * include/grub/lib/cmdline.h: Likewise.
21639 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
21640 grub_create_loader_cmdline to create kernel command line.
21641 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
21642 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
21643 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
21644 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
21645 (linux): Add lib/cmdline.c on common.
21647 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21649 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
21650 inopos might be unaligned.
21652 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21654 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
21655 endian transformations.
21656 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
21657 Based on report by: Doug Nazar.
21659 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
21661 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
21662 array->members[i].start_sector.
21663 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
21665 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21667 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
21668 Reported and tested by: Grégoire Sutre.
21670 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21672 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
21673 avoid causing test failures by clearing the screen.
21675 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
21677 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
21678 Fix prefix check to handle the case where dir ends with a slash
21679 (most significantly, "/" itself).
21680 Reported by: Michael Vogt.
21682 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21684 Run terminfo_cls on initing terminfo output to clear the screen and
21685 move the cursor to (0,0).
21687 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
21688 Call grub_terminfo_output_init.
21689 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21690 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
21691 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
21693 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21695 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
21698 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21700 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
21703 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
21705 The E820 type 5 is BADRAM, not EXEC_CODE.
21707 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21708 (GRUB_E820_BADRAM): New define.
21709 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
21710 into reserved. Propagate BADRAM.
21711 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
21712 (GRUB_E820_BADRAM): New define.
21714 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21716 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
21717 Ignore the memory post-4G.
21718 (grub_relocator_firmware_alloc_region): Additional debug statement.
21720 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21722 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
21724 Reported by: David Pravec.
21726 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21728 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
21731 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21733 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
21735 (grub_reed_solomon_recover): Likewise.
21737 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21739 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
21741 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
21743 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
21746 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
21748 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
21749 descriptions of extract_legacy_entries_source and
21750 extract_legacy_entries_configfile.
21751 Reported by: Seung Soo, Ha.
21753 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
21755 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
21756 on devices that do not implement function 0.
21758 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
21760 * grub-core/fs/hfsplus.c: Make parent unsigned.
21761 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
21763 (grub_hfsplus_cmp_extkey): Likewise
21765 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21767 * util/grub-install.in: Correctly use bootloader_id and not
21768 GRUB_DISTRIBUTOR on efibootmgr line.
21770 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
21772 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
21774 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
21776 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
21777 Xen and reorder menu item wording to make it clearer that this entry
21778 will launch Xen. Print separate messages when loading Xen and
21781 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21783 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
21784 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
21785 loop in case of incorrect amiga partmap.
21787 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21789 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
21790 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
21793 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
21795 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
21797 Reported by: crocket
21799 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21801 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
21803 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
21805 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21807 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
21809 (grub_cmd_xnu_kextdir): Likewise.
21810 (grub_cmd_xnu_splash): Likewise.
21812 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21814 Avoid using Reed-Solomon with 0 redundancy.
21816 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
21817 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
21819 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
21820 (grub_reed_solomon_recover): Likewise.
21822 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
21824 Don't use disk subsystem in freebsd_boot.
21826 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
21827 (freebsd_biosdev): Likewise.
21828 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
21829 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
21831 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
21833 Handling of files of unknown size is currently limited. They can't be
21834 used e.g. for initrd or modules. Moreover gzip handling of not
21835 easily seekable files is buggy. Disable unknown file size for now. May
21836 be inefficient but works.
21838 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
21839 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
21841 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
21843 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
21846 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
21848 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
21850 2010-12-25 Shea Levy <shlevy>
21852 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
21854 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21856 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
21857 Windows Server 2008.
21858 Reported by: Devin Giddings.
21860 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
21862 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
21863 writing an error message because of async power management.
21864 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
21865 (grub_reboot): Likewise.
21867 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
21869 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
21870 keep unit tests from failing when they shouldn't.
21872 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21874 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
21875 previous patch increased the size of the RS code by 20 bytes (at
21876 least with gcc-4.4), so increase this by 20 bytes to match.
21877 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
21879 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21881 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
21882 scratch area. Make sure to initialise chosen in standalone mode as
21883 well as non-standalone.
21884 Reported by: Robert Hooker and Andy Whitcroft.
21885 Tested by: Andy Whitcroft.
21887 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21889 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
21890 constructing a new unescaped string and passing it to grub_xputs in
21891 one go, rather than passing characters to grub_printf one at a time.
21893 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21895 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
21896 initialising utf16.
21898 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
21900 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
21901 comment. Add an extra layer of quotation, requiring the output of
21902 this function to be used in a printf format string.
21903 (gettext_printf): New function.
21904 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
21905 Extract translatable strings from here-documents and use a temporary
21906 variable instead, so that xgettext can find them.
21907 * util/grub.d/10_kfreebsd.in: Likewise.
21908 * util/grub.d/10_linux.in: Likewise.
21909 * util/grub.d/20_linux_xen.in: Likewise.
21911 * po/grub.d.sed: New file.
21912 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
21913 arguments. Set c-format flags on all strings extracted from
21914 util/grub.d/ (xgettext refuses to include these itself for strings
21915 it extracted from a shell file, but these really are c-format).
21917 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
21919 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
21920 Avoid next pointing to nowhere.
21922 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21924 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
21925 rather than assuming than rootblock is exactly in the middle.
21926 (grub_affs_label): Likewise.
21928 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21930 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
21931 reserved_first_sector to 0.
21932 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
21933 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
21934 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
21936 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
21938 Fix handling of UTF-16 UDF labels.
21940 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
21941 (read_string): .. here.
21942 (grub_udf_label): Use read_string.
21944 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
21946 * grub-core/normal/menu_entry.c (run): Execute commands from menu
21947 editor under argument scope.
21948 Reported by: Jordan Uggla
21950 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21952 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
21954 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
21956 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
21957 line, and other keys scroll an entire page (previous handling was
21958 for \r and \n to scroll a page and other keys to scroll two lines).
21960 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
21962 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
21963 Set ptrdest to correct get_physical_target_address rather than
21964 incorrect get_virtual_current_address.
21966 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
21968 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
21969 correct cat to grub_uint8_t * rather than grub_uint32_t *.
21971 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21973 * .bzrignore: Ignore grub-core/rs_decoder.S.
21975 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
21977 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
21978 .mo/.mo.gz opening sequence to ...
21979 (grub_mofile_open_lang): ... here.
21980 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
21981 * util/grub.d/00_header.in (grub_lang): Include country part of
21983 Reported by: Mario Limonciello.
21985 2010-12-09 Robert Millan <rmh@gnu.org>
21987 * NEWS: Document addition of ZFS support.
21989 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
21991 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
21992 rather than `/ 2', as the latter requires -Wa,--divide which would
21993 require bumping our minimum binutils version.
21995 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
21997 * util/grub-script-check.c (main): Print script line number on
22000 2010-12-01 Robert Millan <rmh@gnu.org>
22002 * grub-core/fs/zfs/zfs.c: New file.
22003 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
22004 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
22005 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
22006 * grub-core/fs/zfs/zfsinfo.c: Likewise.
22008 * include/grub/zfs/dmu.h: Likewise.
22009 * include/grub/zfs/dmu_objset.h: Likewise.
22010 * include/grub/zfs/dnode.h: Likewise.
22011 * include/grub/zfs/dsl_dataset.h: Likewise.
22012 * include/grub/zfs/dsl_dir.h: Likewise.
22013 * include/grub/zfs/sa_impl.h: Likewise.
22014 * include/grub/zfs/spa.h: Likewise.
22015 * include/grub/zfs/uberblock_impl.h: Likewise.
22016 * include/grub/zfs/vdev_impl.h: Likewise.
22017 * include/grub/zfs/zap_impl.h: Likewise.
22018 * include/grub/zfs/zap_leaf.h: Likewise.
22019 * include/grub/zfs/zfs.h: Likewise.
22020 * include/grub/zfs/zfs_acl.h: Likewise.
22021 * include/grub/zfs/zfs_znode.h: Likewise.
22022 * include/grub/zfs/zil.h: Likewise.
22023 * include/grub/zfs/zio.h: Likewise.
22024 * include/grub/zfs/zio_checksum.h: Likewise.
22026 * Makefile.util.def: Build ZFS into libgrubmods.
22027 * grub-core/Makefile.core.def: Build zfs.mod.
22029 2010-11-30 Szymon Janc <szymon@janc.net.pl>
22031 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
22033 * grub-core/commands/wildcard.c (match_files): Likewise.
22035 2010-11-30 Robert Millan <rmh@gnu.org>
22037 * grub-core/loader/i386/bsd.c
22038 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
22039 whether kernel is loaded using grub_loader_is_loaded(), rather
22040 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
22041 certain error conditions.
22043 2010-11-30 Robert Millan <rmh@gnu.org>
22045 * grub-core/commands/echo.c: Include `<grub/term.h>'.
22046 (grub_cmd_echo): Call grub_refresh() after printing a message.
22048 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22050 Avoid using tricks for initialising endian variables.
22052 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
22054 (GRUB_MOD_INIT): Don't byte-swap.
22055 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22056 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
22057 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
22058 (grub_swap_bytes32_compile_time): Likewise.
22059 (grub_cpu_to_le32_compile_time): Likewise.
22060 (grub_cpu_to_le16_compile_time): Likewise.
22062 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
22064 * util/grub-setup.c (setup): Stop recommending --force. People who
22065 understand the dangers of blocklists are able to find this option
22066 anyway and the ones who don't shouldn't use it anyway.
22068 2010-11-26 Robert Millan <rmh@gnu.org>
22070 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
22073 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
22075 Fix LVM-on-RAID probing.
22077 * util/grub-probe.c (probe): Remember which disk was detected as
22078 RAID (perhaps an LVM physical volume). Use that disk's raidname
22079 rather than that of the top-level disk.
22081 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
22083 Fix cmdline argument quotes for setparams command of menuentry
22086 * grub-core/commands/menuentry.c (setparams_prefix): Use single
22087 quotes for arguments.
22088 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
22089 grub_strchrsub function instead.
22091 * include/grub/misc.h (grub_strchrsub): New function.
22093 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22095 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
22096 effort by skipping "." and ".." entries up-front.
22097 Suggested by: Michael Lazarev.
22099 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22101 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
22102 ldflags to ldadd, to fix link line ordering.
22103 (none_decompress): Likewise.
22105 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
22107 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
22109 (grub-emu-lite): Remove kern/emu/cache.S.
22111 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22113 * util/deviceiter.c (compare_devices): If the by-id link for a
22114 device couldn't be resolved, fall back to sorting by the by-id link
22115 rather than segfaulting.
22116 Reported and tested by: Daniel Mierswa.
22118 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22120 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
22121 ldflags, to fix link line ordering.
22123 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22125 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
22126 linkers are picky about this.
22128 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22130 * grub-core/Makefile.am (command.lst): Adjust sed expression
22131 ordering so that extended and priority commands aren't treated as
22134 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
22136 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
22137 Remove byte-swapping function calls, which are not valid in
22138 structure initialisers.
22139 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
22141 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
22142 grub_gpt_partition_type_bios_boot.
22144 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22146 Fix test program build on GNU/kFreeBSD.
22148 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
22149 $(LIBNVPAIR)' library dependencies.
22151 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22153 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
22155 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
22157 * util/grub-install.in: Remove excessive quoting that broke
22158 installations to RAID devices.
22160 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22162 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
22163 bootloader version instead of 0.
22165 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22167 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
22170 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
22172 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
22173 retrieve the metadat sector if size isn't known.
22174 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22176 2010-11-18 Robert Millan <rmh@gnu.org>
22178 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
22179 with grub_memcmp().
22181 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
22183 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
22185 Reported by: Jordan Uggla.
22187 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22189 Make better UTF compliant.
22191 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
22192 sequences as incorrect.
22193 (grub_is_valid_utf8): Likewise.
22194 (grub_utf8_to_ucs4): Likewise.
22195 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
22196 (grub_ucs4_to_utf8_alloc): Likewise.
22197 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
22199 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
22201 Make legacy_source behave like source.
22203 * grub-core/commands/legacycfg.c (legacy_file): Don't call
22205 (grub_cmd_legacy_source): Call grub_show_menu if needed.
22207 2010-11-16 Colin Watson <cjwatson@debian.org>
22209 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
22210 (-Wunused implies -Wunused-parameter, but not vice versa).
22212 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
22214 * configure.ac: Make error messages less confusing by testing for
22215 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
22216 accepted, but produces a diagnostic if something else is wrong).
22218 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22220 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
22221 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
22223 (grub_keyboard_controller_init)
22224 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
22225 read the initial state since controller isn't inited yet.
22227 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
22229 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
22230 allocate_regbeg may need to create new chunk header.
22232 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22234 Fix quoting in legacy parser.
22236 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
22238 (grub_legacy_parse): Likewise.
22239 Reported by: Jordan Uggla.
22240 Tested by: Jordan Uggla.
22242 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22244 Don't add -lgcc on i386 and x86_64.
22246 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
22247 * conf/Makefile.common (LDADD_KERNEL): Likewise.
22248 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
22250 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22252 * configure.ac: Add -Wno-trampolines when supported.
22254 2010-11-14 Modestas Vainius <modax@debian.org>
22256 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
22259 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22261 Add generic logical block size support for UDF.
22263 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
22264 (GRUB_UDF_BLKSZ): Removed.
22265 (struct grub_udf_data): New field "lbshift" to hold the logical block
22266 size of the file system in log2 format. All users updated.
22267 (sblocklist): Change type to unsigned.
22268 (grub_udf_mount): Change type of "sblklist" to unsigned.
22269 Move AVDP search before VRS recognition, because the latter requires
22270 knowledge of the logical block size, which is detected during the
22272 Detect and validate logical block size during AVDP search, adding
22273 support for block sizes 512, 1024 and 4096.
22274 Make VRS recognition independent of block size.
22276 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22278 Properly handle deleted files on UDF.
22280 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
22281 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
22284 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
22286 Support reading files larger than 2 GiB.
22288 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
22289 "offset" to grub_off_t.
22290 (grub_udf_read_file): Likewise for parameter "pos".
22292 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22294 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
22296 (Simple configuration): Refer to Changes from GRUB Legacy about
22297 save_env availability.
22299 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22301 * util/grub-install.in: Ignore empty partition table detection
22302 instead of trying to include part_ module.
22304 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22306 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
22307 LVM on RAID support.
22309 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
22311 Properly define WORDS_BIGENDIAN in wrapped environments.
22313 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
22315 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
22317 Reported by: Manoel Rebelo Abranches.
22318 Tested by: Manoel Rebelo Abranches.
22320 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22322 * util/grub-mkconfig.in: Fix quoting.
22324 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22326 Support big ext2 files.
22328 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
22329 (grub_ext2_read_block): Support triple indirect blocks.
22330 (grub_ext2_read_file): Use 64-bit types and read size_high.
22331 (grub_ext2_open): Read size_high.
22332 Reported by: Ximin Luo.
22333 Tested by: Manoel Rebelo Abranches.
22335 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22337 * util/grub-install.in: Handle filenames containing spaces.
22338 Reported by: Jordan Uggla.
22339 Tested by: Jordan Uggla.
22341 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22343 * util/grub-mkconfig.in (grub_script_check): New variable.
22344 Use grub_script_check instead of grub-script-check.
22345 Reported by: Barry Jackson.
22347 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
22349 * docs/grub.texi (menu): Correct the order.
22350 Reported by: D. Hugh Redelmeier.
22352 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22354 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
22357 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
22359 * include/grub/elfload.h (grub_elf32_size): New parameter.
22361 Return maximum segments alignment.
22362 (grub_elf64_size): Likewise.
22363 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
22364 Return maximum segments alignment.
22365 (grub_elf64_size): Likewise.
22366 * grub-core/loader/powerpc/ieee1275/linux.c:
22367 (grub_linux_claimmap_iterate): New function. Uses the
22368 "available" property in the "memory" node for memory allocation
22369 for kernel in the PowerPC loader.
22370 (grub_linux_load32): Correctly find linux entry point offset.
22371 (grub_linux_load64): Likewise.
22373 2010-11-07 Robert Millan <rmh@gnu.org>
22375 On mips-yeeloong, build with -march=loongson2f when this flag is
22376 available (GCC >= 4.4).
22377 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
22379 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
22380 or otherwise add -march=mips3.
22382 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
22384 Suppress shell expansion on echo '*' and echo "*" like cases.
22385 Reported by: Jordan Uggla.
22387 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
22388 string arguments before shell expansion.
22389 * tests/grub_cmd_echo.in: New testcases.
22391 2010-11-07 Robert Millan <rmh@gnu.org>
22393 * conf/mips-qemu-mips.rmk: Remove stale file from previous
22396 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
22398 * grub-core/kern/emu/hostdisk.c
22399 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
22401 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22403 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
22404 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
22405 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
22407 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22409 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
22411 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22413 * util/grub-install.in: Replace useless recomendation to pass
22414 --modules with a recomendation to report a bug.
22416 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
22418 Properly register serial terminfo.
22419 Reported by: Jordan Uggla
22421 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
22423 (grub_serial_terminfo_output_template): Likewise.
22424 (grub_cmd_serial): Register "serial" with terminfo.
22425 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
22426 grub_serial_terminfo_output.
22428 2010-11-05 Robert Millan <rmh@gnu.org>
22430 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
22433 2010-11-05 Robert Millan <rmh@gnu.org>
22435 On Yeeloong, pass machine type information to Linux.
22437 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
22438 (LOONGSON_MACHTYPE): New macro, set to
22439 "machtype=lemote-yeeloong-2f-8.9inches".
22440 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
22441 additional argument to Linux.
22443 2010-11-04 Robert Millan <rmh@gnu.org>
22445 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
22446 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
22447 (its SATA disks are detected as slaveless IDE master drives on
22449 Reported by Carsten Aulbert.
22451 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
22453 * util/bin2h.c (main): Fix spelling error in generated output.
22455 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
22457 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
22459 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22461 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
22462 vga= option is supplied.
22464 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22466 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
22467 * util/grub.d/10_kfreebsd.in: Likewise.
22468 * util/grub.d/10_linux.in: Likewise.
22469 * util/grub.d/20_linux_xen.in: Likewise.
22471 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22473 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
22474 argument as an argument to no-argument option.
22476 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22478 * util/grub.d/10_linux.in: Add missing load_video with explicit
22479 GRUB_GFXPAYLOAD_LINUX.
22481 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22483 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
22485 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22487 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
22488 elements with invlid index.
22489 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22490 * grub-core/disk/raid.c (insert_array): Automatically reallocate
22492 * include/grub/raid.h (grub_raid_member): New struct.
22493 (grub_raid_array): Transform devices and start_sector into usage of
22494 grub_raid_member. All users updated
22495 (allocated_devs): New member.
22497 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
22499 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
22502 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
22504 NetBSD build fix for getline function conflict from gnulib.
22506 * Makefile.util.def (libgrubkern.a): New library for grub kernel
22507 components that depend on gnulib headers.
22508 (libgrubmods.a): Renamed from earlier libgrub.a.
22509 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
22511 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22513 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
22514 install rather than creating a broken install.
22516 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22518 * util/grub-setup.c (argp): Remove misleading example of installing to
22521 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22523 * util/grub-setup.c (setup): Clarify the error message.
22525 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
22527 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
22529 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22531 * grub-core/kern/emu/misc.c
22532 (grub_make_system_path_relative_to_its_root)
22533 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
22535 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
22537 * grub-core/kern/emu/misc.c
22538 (grub_make_system_path_relative_to_its_root): Revert r2882.
22540 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
22542 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
22543 useless field head. All users updated.
22544 (free_subchunk): Correct handling of IN_REGION subchunk.
22546 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
22548 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
22549 (Supported kernels): Likewise.
22551 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
22553 Make mktemp invocations portable.
22555 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
22556 exit if mktemp fails.
22557 * tests/grub_script_blockarg.in: Likewise.
22558 * tests/partmap_test.in: Likewise.
22559 * tests/util/grub-shell-tester.in: Likewise.
22560 * tests/util/grub-shell.in: Likewise.
22561 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
22562 * Makefile.am: Likewise, and chain shell commands with `&&'
22564 * util/grub-mkrescue.in: Use the same explicit template as above, and
22565 exit if mktemp fails.
22567 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
22569 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
22570 Linux kernel, reported by Dennis Schridde.
22572 2010-10-17 Szymon Janc <szymon@janc.net.pl>
22574 * grub-core/normal/auth.c (grub_auth_check_authentication):
22575 Set-but-not-used variable removed.
22577 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22579 * docs/grub.texi (GNU/Linux): Document APM unavailability with
22580 32-bit linux protocol.
22582 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22584 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
22585 cursor shape for sanity.
22587 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22589 * docs/grub.texi (Installation): Document buggy BIOS install.
22591 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22593 * docs/grub.texi (Installation): Indent.
22595 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22597 * util/grub-setup.c (setup): New parameter allow_floppy.
22598 (arguments): New member allow_floppy.
22599 (argp_parser): Handle --allow-floppy.
22600 (main): Pass allow_floppy.
22601 * util/grub-install.in: New option --allow-floppy passed though to
22604 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22606 * util/grub-install.in: Handle partitionless disks.
22608 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
22610 * util/grub-setup.c (setup): Don't clean blocklists before readability
22613 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22615 * docs/grub.texi (Installation): Document embedding zone. Remove
22616 obsolete grub-install example.
22618 2010-10-16 Szymon Janc <szymon@janc.net.pl>
22620 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
22621 Set-but-not-used variable ifdef'ed.
22622 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
22623 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
22625 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
22626 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
22627 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
22628 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
22629 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
22630 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
22631 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
22632 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
22633 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
22634 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
22635 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
22638 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22640 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
22641 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
22644 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22646 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
22647 synonym to _S5_. Needed for some DSDTs.
22649 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22651 Userspace ACPI parser debugging.
22653 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
22654 headers and add relevant defines. Don't include standard headers.
22655 (main) [GRUB_DSDT_TEST]: New function.
22656 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
22657 Don't declare functions.
22659 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22661 Remove dead grub_efi_mm_fini.
22663 * grub-core/kern/efi/mm.c (allocated_page): Removed.
22664 (ALLOCATED_PAGES_SIZE): Likewise.
22665 (MAX_ALLOCATED_PAGES): Likewise.
22666 (allocated_pages): Likewise.
22667 (grub_efi_allocate_pages): Don't record allocated pages.
22668 (grub_efi_free_pages): Likewise.
22669 (grub_efi_mm_init): Likewise.
22670 (grub_efi_mm_fini): Removed.
22672 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22674 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
22675 (grub_efi_mm_init): Take into account the memory map size increase.
22677 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
22679 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
22680 (serial_hw_put): Wait based on real time rather than port reads. Don't
22682 * include/grub/serial.h (grub_serial_port): New field broken.
22684 2010-10-16 Robert Millan <rmh@gnu.org>
22686 * grub-core/kern/emu/misc.c
22687 (grub_make_system_path_relative_to_its_root): Fix premature return
22688 when processing non-root ZFS filesystems.
22689 Reported by Sergio Talens-Oliag.
22691 2010-10-15 Robert Millan <rmh@gnu.org>
22693 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
22694 guarantee compressed ones are processed first.
22696 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22698 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
22699 grub_efiemu_autocore.
22701 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
22703 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
22705 (grub_console_getkey): Use correct jae opcode rather than ja.
22707 2010-10-12 Robert Millan <rmh@gnu.org>
22709 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
22710 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
22711 variable. All references updated.
22713 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
22715 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
22717 Correctly distinguish mdraid flavours.
22719 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
22720 (insert_array): New argument raid.
22721 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
22722 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
22723 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
22725 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
22727 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
22728 handling of special keys.
22730 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22732 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
22733 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
22735 2010-10-02 Aleš Nesrsta <starous@volny.cz>
22737 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
22738 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
22740 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
22741 Use right endpoint when querying descriptor.
22743 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22745 Clear out 0x80 color bit on EFI.
22747 Reported by: decoder and meta tech.
22749 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
22750 (grub_console_setcolorstate): Clear out 0x80 bit.
22751 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
22752 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
22753 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
22755 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
22757 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
22760 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22762 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
22763 mo_file after freeing.
22765 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22767 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
22769 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22771 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
22774 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22776 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
22779 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
22781 Put terminfo into core on ieee1275 and yeeloong (needed for console).
22783 * gentpl.py: New groups terminfoinkernel and terminfomodule.
22784 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
22785 and terminfo.h when needed.
22786 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
22787 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
22788 (terminfo): Enable only on terminfokernel.
22789 (extcmd): Likewise.
22790 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
22791 * include/grub/lib/arg.h: Likewise.
22792 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
22793 incorrect usage of ->.
22795 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22797 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
22798 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
22800 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22802 Fix coreboot compilation.
22804 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
22805 Take VBE info into account even if only text is supported.
22806 (fill_vbe_info): Take into account the case when only VGA text
22808 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
22809 on coreboot, multiboot and qemu.
22811 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22813 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
22815 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
22817 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22819 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
22822 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22824 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
22825 if they were BSD-style.
22827 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22829 * grub-core/boot/i386/pc/lnxboot.S: Replace
22830 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
22831 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
22833 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
22835 Write embedding zone using Reed-Solomon.
22837 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
22838 * grub-core/Makefile.am (rs_decoder.S): New target.
22839 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
22840 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
22841 (multiboot): Move to RS part.
22842 (post_reed_solomon): New label.
22843 (grub_boot_drive): Move to non-RS part since it's modified in memory
22845 Include rs_decoder.S.
22846 * grub-core/lib/reed_solomon.c: New file.
22847 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
22849 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
22850 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
22851 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
22852 * include/grub/partition.h (grub_partition_map): Change prototype of
22853 embed to allow returning additional sectors.
22854 * include/grub/reed_solomon.h: New file.
22855 * util/grub-setup.c (setup): Handle Reed-Solomon.
22857 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
22859 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
22860 i386 and x86-64 definedness tests.
22862 2010-09-27 Yves Blusseau <blusseau@zetam.org>
22864 Fix generation of kernel_syms.lst
22866 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
22869 2010-09-26 Robert Millan <rmh@gnu.org>
22871 Support degraded ZFS arrays in "grub-probe -t device" resolution.
22873 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
22874 the pool is an array of devices, iterate through it and return the
22875 first device that passes a stat() test (instead of blindly returning
22878 2010-09-26 Robert Millan <rmh@gnu.org>
22880 Build fixes for GNU/kFreeBSD.
22882 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
22883 to programs that require ZFS conversion.
22884 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
22885 kernels that don't have FLOPPY_MAJOR.
22887 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22889 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
22891 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
22893 Fix grub-emu build.
22895 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
22896 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
22897 mdraid09 and mdraid1x.
22899 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
22901 Re-enable grub-extras.
22903 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
22904 avoid confusing Automake. Run autogen only twice, once for the top
22905 level and once for grub-core. Add Makefile.util.def and
22906 Makefile.core.def from extra modules to the appropriate autogen
22907 invocations. If Makefile.common exists in an extra module, include
22908 it in both Makefile.util.am and grub-core/Makefile.core.am;
22909 similarly, include any Makefile.util.common file in Makefile.util.am
22910 and any Makefile.core.common file in grub-core/Makefile.core.am.
22911 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
22912 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
22913 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
22914 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
22916 * gentpl.py (gvar_add): Turn GVARS into a set.
22917 (global_variable_initializers): Sort global variables on output.
22918 (vars_init): New function.
22919 (first_time): Likewise.
22920 (library): Ensure that non-global variable initialisations are
22921 emitted before the first time we emit code for a library block.
22922 Append to variables rather than setting them. Only emit
22923 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
22924 each conditional path.
22925 (program): installdir() emits an Autogen macro, so must be passed to
22926 var_add rather than gvar_add.
22928 (script): Likewise.
22929 (rules): New function, centralising handling for different target
22930 types. Set up Guile association lists for first_time and vars_init,
22931 and send most output to a diversion so that variable initialisations
22932 can be emitted first.
22933 (module_rules): Use new rules function.
22934 (kernel_rules): Likewise.
22935 (image_rules): Likewise.
22936 (library_rules): Likewise.
22937 (program_rules): Likewise.
22938 (script_rules): Likewise.
22939 (data_rules): Likewise.
22941 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
22943 * .bzrignore: Add contrib and grub-core/contrib. Remove
22944 grub-core/Makefile.gcry.am.
22946 2010-09-24 Yves Blusseau <blusseau@zetam.org>
22948 * grub-core/lib/LzFind.c: Add missing include.
22949 * grub-core/lib/LzmaEnc.c: Likewise.
22950 * grub-core/script/lexer.c: Likewise.
22951 * grub-core/script/yylex.l: Likewise.
22952 * util/grub-macho2img.c: Likewise.
22953 * util/grub-menulst2cfg.c: Likewise.
22954 * util/grub-mklayout.c: Likewise.
22955 * util/grub-mkpasswd-pbkdf2.c
22956 * util/grub-mkrelpath.c: Likewise.
22957 * util/resolve.c: Likewise.
22959 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
22961 * Makefile.util.def (example_unit_test): Add
22962 grub-core/gnulib/libgnu.a.
22964 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
22966 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
22968 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22970 Support xz compression on yeeloong.
22972 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
22973 * configure.ac: Check for LZMA.
22974 * grub-core/Makefile.core.def (xz_decompress): New target.
22975 (none_decompress): Likewise.
22976 * grub-core/boot/decompressor/minilib.c: New file.
22977 * grub-core/boot/decompressor/none.c: Likewise.
22978 * grub-core/boot/decompressor/xz.c: Likewise.
22979 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
22980 * grub-core/kern/mips/cache_flush.S: Likewise.
22981 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
22982 * grub-core/kern/mips/startup.S: Move first stage to ...
22983 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
22985 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
22986 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
22987 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
22988 Allocate statically.
22989 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
22990 Allocate statically or use scratch. Don't check CRC32.
22991 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
22992 Allocate statically. Don't check CRC32.
22993 * include/grub/decompressor.h: New file.
22994 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
22996 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
22997 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
22998 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
22999 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
23000 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
23001 * util/grub-mkimage.c (grub_compression_t): New type.
23002 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
23003 (image_target_desc): New field default_compression.
23004 (image_targets): Adjust yeeloong targets.
23005 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
23006 (compress_kernel): New parameter comp.
23007 (generate_image): Likewise. Handle new compression case.
23008 (options): New option --compression
23010 (main): Handle new option.
23012 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
23014 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
23016 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
23018 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
23019 typo in __i386__ conditional.
23021 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23023 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
23026 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
23028 Implement EFI and ACPI multiboot2 extensions.
23030 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
23031 new tags as supported.
23032 (acpiv2_size): New function.
23033 (grub_multiboot_get_mbi_size): Take new tags into account.
23034 (grub_multiboot_make_mbi): Add new tags.
23035 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
23037 2010-09-21 Aleš Nesrsta <starous@volny.cz>
23039 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
23040 Added missing configuration of USB device.
23042 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23044 * grub-core/normal/menu_entry.c (run): Make sure we always return
23047 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23049 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
23050 NumberOfPages is UINT64 according to the UEFI specification, not
23051 UINTN. Fix printf format.
23053 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23055 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
23056 `err' to grub_usb_err_t.
23057 Reported and tested by: KESHAV P.R.
23059 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23061 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
23062 tpart non-const, so that we can assign to it. (Since this is a
23063 typedef, the constness refers to the pointer rather than what it
23066 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23068 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
23069 $(top_srcdir)/grub-core/gnulib as well as
23070 $(top_builddir)/grub-core/gnulib.
23071 Reported by: KESHAV P.R.
23073 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23075 * util/grub-install.in: Fix the bootloader ID option to be
23076 consistently --bootloader-id, not --bootloader_id.
23077 Reported by: KESHAV P.R.
23079 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23081 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
23082 check hash checksum." consistently translatable.
23084 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23086 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
23089 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23091 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
23092 (GRUB_MOD_INIT): Register sha1sum command.
23093 (GRUB_MOD_FINI): Unregister sha1sum command.
23095 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23097 Keep boot and grub directory names in sync with utils scripts
23099 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
23100 * config.h.in: Add previous macros.
23101 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
23102 * util/grub-install.in: Use $bootdir and $grubdir variables.
23104 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23106 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
23107 convert partition names to disk names if the new `convert' parameter
23109 (grub_util_biosdisk_get_grub_dev): If opening the disk device
23110 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
23111 disk in its own right. This can happen with Xen disk images.
23113 2010-09-21 Yves Blusseau <blusseau@zetam.org>
23115 * util/grub-editenv.c: Update strings to avoid warnings when generating
23117 * util/grub-setup.c: Likewise.
23119 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23121 * configure.ac: Change version to 1.99~beta0.
23123 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
23125 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
23127 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
23129 * include/multiboot.h: Resynced with specification.
23130 * include/multiboot2.h: Likewise.
23132 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
23134 Fix po directory handling.
23136 * configure.ac: Create po/Makefile.in rather than po/Makefile.
23137 * grub-core/gnulib/Makefile.am: Import gettext module.
23138 * m4/gnulib-cache.m4: Likewise.
23139 * m4/gnulib-comp.m4: Likewise.
23140 * m4/gettext.m4: New file, from gnulib.
23141 * m4/glibc2.m4: Likewise.
23142 * m4/iconv.m4: Likewise.
23143 * m4/intdiv0.m4: Likewise.
23144 * m4/intl.m4: Likewise.
23145 * m4/intldir.m4: Likewise.
23146 * m4/intlmacosx.m4: Likewise.
23147 * m4/intmax.m4: Likewise.
23148 * m4/inttypes-pri.m4: Likewise.
23149 * m4/lcmessage.m4: Likewise.
23150 * m4/lib-ld.m4: Likewise.
23151 * m4/lib-link.m4: Likewise.
23152 * m4/lib-prefix.m4: Likewise.
23153 * m4/lock.m4: Likewise.
23154 * m4/nls.m4: Likewise.
23155 * m4/po.m4: Likewise.
23156 * m4/printf-posix.m4: Likewise.
23157 * m4/progtest.m4: Likewise.
23158 * m4/threadlib.m4: Likewise.
23159 * m4/uintmax_t.m4: Likewise.
23160 * m4/visibility.m4: Likewise.
23161 * po/Makefile.am: Remove.
23162 * po/Makefile.in.in: New file, from gettext.
23163 ($(DOMAIN).pot-update): Support POTFILES-shell.
23164 * po/Makevars: New file.
23165 * po/POTFILES-shell: Rename to ...
23166 * po/POTFILES-shell.in: ... this. Update.
23167 * po/POTFILES: Rename to ...
23168 * po/POTFILES.in: ... this. Update.
23169 * po/Rules-quot: New file, from gettext.
23170 * po/boldquot.sed: Likewise.
23171 * po/en@boldquot.header: Likewise.
23172 * po/en@quot.header: Likewise.
23173 * po/insert-header.sin: Likewise.
23174 * po/quot.sed: Likewise.
23175 * po/remove-potcdate.sin: Likewise.
23177 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23179 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
23181 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23183 * util/grub.d/20_linux_xen.in: Use submenus.
23185 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23189 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
23190 parameter submenu. All users updated.
23191 * grub-core/normal/main.c (free_menu): Rename to ...
23192 (grub_normal_free_menu): ... this. Made global.
23193 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
23195 * grub-core/normal/menu_entry.c (screen): New field submenu.
23196 (make_screen): Set submenu.
23197 (run): Open new context if requested.
23198 * include/grub/menu.h (grub_menu_entry): New field submenu.
23199 * include/grub/normal.h (grub_normal_free_menu): New proto.
23201 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23203 Menu entries extractor.
23205 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
23207 (GRUB_MOD_INIT): Register new variants.
23208 (GRUB_MOD_FINI): Unregister new variants.
23209 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
23210 into grub_cmd_legacy_source.
23211 (grub_cmd_legacy_source): Implement extractor variants.
23212 (GRUB_MOD_INIT): Register new variants.
23213 (GRUB_MOD_FINI): Unregister new variants.
23214 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
23216 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
23217 search as an extractor.
23218 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
23219 test as an extractor.
23220 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
23222 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
23223 (grub_env_new_context): New function.
23224 (grub_env_context_open): Likewise.
23225 (grub_env_extractor_open): Likewise.
23226 (grub_env_extractor_close): Likewise.
23227 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
23228 grub_extractor_level.
23229 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
23230 * include/grub/env.h (grub_env_extractor_open): New proto.
23231 (grub_env_extractor_close): Likewise.
23232 * include/grub/normal.h (grub_extractor_level): New external variable.
23234 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23236 Make cutmem accept a region specification.
23237 Suggested by: Samuel Thibault
23239 * grub-core/mmap/mmap.c (parsemem): New function.
23240 (grub_cmd_cutmem): Handle new arguments.
23242 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23244 New command cutmem.
23246 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
23247 (GRUB_MOD_INIT): Register new command.
23248 (GRUB_MOD_FINI): Unregister new command.
23250 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23252 Support some annoying BSD and Minix subpartitions.
23254 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
23255 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
23256 Properly handle concatenation.
23257 * grub-core/kern/device.c (grub_device_iterate): Likewise.
23258 * grub-core/normal/completion.c (iterate_partition): Likewise.
23259 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
23260 contain partition. All users updated.
23261 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
23263 (grub_openbsdlabel_partition_map): Likewise.
23264 (bsdlabel_partition_map_iterate): Rename to ..
23265 (iterate_real): ... this. New arguments sector, freebsd and pmap.
23266 (bsdlabel_partition_map_iterate): New function.
23267 (netopenbsdlabel_partition_map_iterate): Likewise.
23268 (netbsdlabel_partition_map_iterate): Likewise.
23269 (openbsdlabel_partition_map_iterate): Likewise.
23270 (GRUB_MOD_INIT): Register new partmaps.
23271 (GRUB_MOD_FINI): Unregister new partmaps.
23272 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
23273 (grub_partition_msdos_iterate): ... this. All users updated.
23274 Don't support embedding other than in a minix partition.
23275 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
23277 * include/grub/partition.h (grub_partition): New field msdostype.
23278 * util/grub-install.in: Handle openbsd and netbsd types being in
23281 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23283 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
23285 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
23286 * grub-core/Makefile.core.def (mdraid): Renamed to ...
23287 (mdraid09): ... this.
23288 (mdraid1x): New module.
23289 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
23290 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
23292 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23294 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
23297 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23299 * grub-core/commands/efi/lsefimmap.c: Correct header.
23302 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23304 * util/grub-editenv.c (argp_parser): Don't pass translated strings
23305 as printf format strings; the translations might contain '%' which
23306 could cause a crash.
23308 * util/grub-fstest.c (argp_parser): Likewise.
23309 * util/grub-setup.c (argp_parser): Likewise.
23312 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23314 Use argp in grub-fstest.
23316 * util/grub-fstest.c: Don't include getopt.h.
23318 (root): New variable.
23319 (args_count): Likewise.
23321 (num_disks): Likewise.
23322 (images): Likewise.
23324 (debug_str): Likewise.
23326 (options): Transformed to argp.
23328 (main): Split argument parsing into ...
23329 (argp_parser): ... this. Changed to argp format.
23330 (argp): New variable.
23331 (main): Use argp_parse.
23333 2010-09-20 Tristan Gingold <gingold@free.fr>
23334 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
23335 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23337 * grub-core/commands/efi/lsefimmap.c: New file.
23338 * grub-core/Makefile.core.def (lsefimmap): New module.
23339 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
23341 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23343 Pause the execution (10s max) if any errors are displayed so the user
23344 has a chance to see them.
23346 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
23347 (grub_print_error): Increment grub_err_printed_errors.
23348 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
23349 execution if any errors were displayed.
23350 (show_menu): Remove old code for pause.
23351 * grub-core/normal/menu_entry.c (run): Likewise.
23352 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
23354 (grub_normal_get_char_counter): Likewise.
23355 * include/grub/err.h (grub_err_printed_errors): New external variable.
23356 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
23358 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23360 Support multiboot VBE info.
23362 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
23363 Take VBE info into account.
23364 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
23365 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23366 Call fill_vbe_info when appropriate.
23367 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
23368 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
23370 (grub_multiboot_get_mbi_size): Take new tags into account.
23371 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
23372 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
23373 Call fill_vbe_tag when appropriate.
23374 (grub_multiboot_make_mbi): Properly align tags.
23375 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
23377 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
23379 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
23381 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23383 Suport manual terminal geometry specification.
23385 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
23386 Save state in grub_ofconsole_terminfo_output.
23387 (grub_ofconsole_term): Use grub_terminfo_getwh.
23388 (grub_ofconsole_getwh): Removed.
23389 * grub-core/term/serial.c (grub_serial_getwh): Removed.
23390 (grub_serial_term): Use grub_terminfo_getwh.
23391 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
23392 (options): New struct.
23393 (OPTION_*): New enum.
23394 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
23395 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
23397 (grub_terminfo_getwh): New proto.
23398 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
23400 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23402 Handle legacy "terminal" command.
23404 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
23406 (legacy_commands): Add terminal and title.
23407 (grub_legacy_parse): Handle terminal. Simplify title handling.
23409 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23411 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
23412 parameters overflow.
23414 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23416 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
23419 * docs/grub.texi (Shell-like scripting): Document `!'.
23420 (Network): Simplify using new i386-pc-pxe format. Mention
23425 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23427 * Makefile.am (SUBDIRS): Restore "."; it's important to force
23428 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
23431 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23433 * grub-core/commands/efi/lsefisystab.c: Correct header.
23434 * grub-core/commands/efi/lssal.c: Likewise.
23435 * grub-core/commands/testload.c: Likewise.
23437 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23439 * util/grub-mkrescue.in: Add explicit root argument to --set to
23440 prevent the UUID being interpreted as an argument to --set (matches
23441 previous change to prepare_grub_to_access_device).
23443 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
23445 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
23446 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
23447 the verbosity of later #ifs.
23448 (find_partition_start): Define this function on FreeBSD too.
23449 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
23451 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
23454 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23456 * util/grub-editenv.c: Use argp instead of getopt.
23458 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23460 * util/grub-setup.c: Use argp instead of getopt.
23462 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23464 Use gnulib-tool to create gnulib source files.
23466 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
23467 grub-core/gnulib directories
23468 * .bzignore: Add **/.deps and autogenerated gnulib files
23469 * configure.ac: Assign auxiliary directory to build-aux, add invocation
23470 of gnulib macros, add grub-core/gnulib/Makefile
23471 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
23472 include m4 directory to aclocal.
23473 * Makefile.util.def: Remove direct compilation of gnulib source files
23474 and use the new grub-core/gnulib/libgnu.a.
23475 * build-aux/config.rpath: move config.rpath from top directory to
23477 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
23479 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
23480 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
23481 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
23483 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
23486 2010-09-20 Yves Blusseau <blusseau@zetam.org>
23488 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
23489 grub-core/genmod.sh and grub-core/gensyminfo.sh
23491 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
23493 Add a test for echo command options.
23495 * tests/grub_cmd_echo.in: New test.
23496 * Makefile.util.def: Rules for new test.
23498 2010-09-20 Szymon Janc <szymon@janc.net.pl>
23500 Remove crc.mod and move crc command to hashsum.mod.
23501 Remove lib/crc.c - users updated to use gcrypt implementation.
23503 * grub-core/commands/crc.c: Removed.
23504 * grub-core/Makefile.core.def (crc): Module removed.
23505 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
23506 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
23507 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
23508 * grub-core/lib/crc.c: Removed.
23509 * include/grub/lib/crc.h: Removed.
23510 * Makefile.util.def (crc): Remove lib/crc.c
23511 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
23512 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
23513 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
23514 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
23515 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
23516 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
23518 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
23520 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
23522 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23524 Split config.h for util and core.
23526 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
23527 (ADDR32): Likewise.
23528 (DATA32): Likewise.
23529 (BSS_START_SYMBOL): Likewise.
23530 (END_SYMBOL): Likewise.
23531 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
23532 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
23533 * config.h.in: New file.
23534 * configure.ac: Use config-util.h as config define file.
23535 Rename MACHINE into GRUB_MACHINE. All users updated.
23536 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
23538 (NESTED_FUNC_ATTR): Likewise.
23539 Substitue new variables.
23540 (COND_HAVE_ASM_USCORE): New conditional.
23541 * grub-core/Makefile.am (ASM_PREFIX): New variable.
23542 (kernel_syms.lst): Use ASM_PREFIX.
23543 * grub-core/kern/emu/console.c: Include config-util.h.
23544 * grub-core/kern/emu/misc.c: Likewise.
23545 * grub-core/kern/emu/mm.c: Likewise.
23546 * include/grub/emu/misc.h: Likewise.
23547 * include/grub/libgcc.h: Likewise.
23549 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23551 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
23553 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
23554 Fix GRUB_TERM_KEY_* constants usage.
23555 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
23557 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23559 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
23561 * grub-core/bus/usb/uhci.c: Remove empty define.
23562 (grub_uhci_check_transfer): Add missing cast.
23563 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
23565 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
23567 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
23569 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23571 * grub-core/Makefile.core.def (legacycfg): Add
23572 lib/i386/pc/vesa_modes_table.c on emu.
23574 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23576 Reduce number of temporary files generated by build system.
23578 * grub-core/gencmdlist.sh: Removed.
23579 * grub-core/genfslist.sh: Removed.
23580 * grub-core/genhandlerlist.sh: Removed.
23581 * grub-core/genmodsrc.sh: Removed.
23582 * grub-core/genpartmaplist.sh: Removed.
23583 * grub-core/genparttoollist.sh: Removed.
23584 * grub-core/gentermiinallist.sh: Removed.
23585 * grub-core/genvideolist.sh: Removed.
23587 * grub-core/genmod.sh.in: New file.
23588 * grub-core/gensyminfo.sh.in: New file.
23590 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
23591 * conf/Makefile.extra-dist: Update with new files.
23592 * gentpl.py: Remove rules related to unnecessary temporary files.
23593 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
23595 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
23597 * grub-core/bus/usb/uhci.c: Remove empty #define.
23598 * grub-core/genmoddep.awk: Updated with new syminfo format.
23599 * util/bash-completion.d/Makefile.am: Add config.log to
23602 2010-09-19 Yves Blusseau <blusseau@zetam.org>
23604 * Makefile.util.def: Add forgotten $(LIBINTL) library.
23606 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
23608 * util/grub-mkconfig.in: Check the config script for syntax errors
23611 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
23612 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23614 * Makefile.util.def (grub-install): Use util/grub-install.in on all
23616 * util/grub-install.in: Add EFI and IEEE1275 support.
23617 * util/i386/efi/grub-install.in: Removed.
23618 * util/ieee1275/grub-install.in: Likewise.
23620 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
23622 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
23623 (grub_cmd_cmosclean): Likewise.
23624 (GRUB_MOD_INIT): Register command cmosclean.
23625 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
23626 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
23628 2010-09-18 Carles Pina i Estany <carles@pina.cat>
23629 2010-09-18 Aleš Nesrsta <starous@volny.cz>
23630 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23632 Add keyboard layouts support.
23634 * Makefile.util.def (grub-mklayout): New file.
23635 (grub-kbdcomp): New script.
23636 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
23637 Add keyboard_layouts.h.
23638 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
23639 commands/boot.c on yeeloong.
23640 (keylayouts): New module.
23641 * grub-core/bus/usb/ohci.c
23642 * grub-core/bus/usb/uhci.c
23643 * grub-core/bus/usb/usbhub.c (rescan): New variable.
23644 (grub_usb_add_hub): Poll interrupt pipe for device handling.
23645 (attach_root_port): Likewise.
23646 (poll_nonroot_hub): Likewise.
23647 (grub_usb_poll_devices): Likewise.
23648 (detach_device): Close transfer.
23649 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
23651 (grub_usb_bulk_setup_readwrite): Likewise.
23652 (grub_usb_bulk_finish_readwrite): Likewise.
23653 * grub-core/commands/keylayouts.c: New file.
23654 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
23655 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
23657 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
23658 support scancode 2.
23659 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
23660 * include/grub/keyboard_layouts.h: New file.
23661 * util/grub-mklayout.c: New file.
23662 * util/grub-kbdcomp.in: Likewise.
23664 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23666 Unify memory types.
23668 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
23669 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
23671 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
23672 (grub_upper_mem): Likewise.
23673 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
23674 * include/grub/memory.h (grub_memory_type_t): New enum.
23677 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23679 * grub-core/Makefile.core.def (lsapm): New module.
23680 * grub-core/commands/i386/pc/lsapm.c: New file.
23681 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
23682 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
23684 * include/grub/i386/pc/apm.h: New file.
23685 * include/multiboot.h (multiboot_apm_info): New struct.
23687 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
23689 GRUB-legacy configuration file support.
23691 * Makefile.util.def (grub-menulst2cfg): New util.
23692 * docs/man/grub-menulst2cfg.h2m: New file.
23693 * grub-core/Makefile.core.def (legacycfg): New module.
23694 * grub-core/commands/legacycfg.c: New file.
23695 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
23696 (grub_normal_add_menu_entry): ... this.
23697 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
23698 (grub_normal_set_password): ...this.
23699 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
23700 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
23701 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
23702 * grub-core/lib/legacy_parse.c: New file.
23703 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
23704 * include/grub/i386/pc/vesa_modes_table.h: New file.
23705 * include/grub/legacy_parse.h: Likewise.
23706 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
23707 * util/grub-menulst2cfg.c: New file.
23709 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23711 * grub-core/kern/emu/hostdisk.c
23712 (convert_system_partition_to_system_disk): Initialise node.
23714 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23716 * grub-core/kern/emu/hostdisk.c
23717 (convert_system_partition_to_system_disk): Fix devmapper memory pool
23719 Reported and based on patch by: Modestas Vainius.
23721 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
23723 Fix DM-RAID probing with recent versions of device-mapper udev
23726 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
23727 canonicalise device paths under /dev/mapper/.
23728 (convert_system_partition_to_system_disk): Compare the
23729 uncanonicalised path to /dev/mapper/ rather than the canonicalised
23730 path, since device nodes under /dev/mapper/ are often symlinks.
23732 2010-09-17 Yves Blusseau <blusseau@zetam.org>
23734 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
23736 2010-09-16 Yves Blusseau <blusseau@zetam.org>
23738 * configure.ac: Avoid some annoying error messages if freetype-config
23739 program is not found.
23741 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23743 Support RAID on virtio devices, and others.
23745 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
23747 [__MINGW32__] (grub_find_device): ... this.
23748 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
23749 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
23750 reasonable default if dir is NULL.
23751 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
23753 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
23754 (grub_guess_root_device): Update callers.
23755 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
23757 * util/raid.c (grub_util_getdiskname): Remove.
23758 (grub_util_raid_getmembers): Use grub_find_device rather than
23759 grub_util_getdiskname.
23761 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23763 * docs/grub.texi (serial): Remove obsolete comment about GRUB
23764 needing to be compiled with serial support.
23765 (ls): Indicate that multiple files are accepted.
23766 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
23767 indicate that multiple files are accepted.
23769 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
23771 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
23772 libgrub_a_init.c, and util/bash-completion.d/grub.
23774 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23776 * util/grub-setup.c (setup): Fix incorrect container semantics.
23778 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23780 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
23782 Reported by: J. Nick Terry
23784 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23786 Move embedding routines to partmap sources files.
23788 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
23789 [GRUB_UTIL]: New variable.
23790 (gpt_partition_map_iterate): Set part.parent.
23791 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
23792 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
23793 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
23795 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
23796 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
23797 (grub_partition_map) [GRUB_UTIL]: New field embed.
23798 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
23799 (setup): Use ->embed.
23801 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23803 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
23805 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
23806 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
23808 2010-09-15 Yves Blusseau <blusseau@zetam.org>
23810 Add function to get completions from usage.
23812 * util/bash-completion.d/grub-completion.bash.in: Add function to get
23813 completions from usage. Use LC_ALL=C to get options properly.
23815 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23817 * grub-core/gnulib/basename-lgpl.c: Imported.
23818 * grub-core/gnulib/basename.c: Likewise.
23819 * grub-core/gnulib/dirname-lgpl.c: Likewise.
23820 * grub-core/gnulib/dirname.c: Likewise.
23821 * grub-core/gnulib/dirname.h: Likewise.
23822 * grub-core/gnulib/stripslash.c: Likewise.
23824 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
23826 * grub-core/gnulib/error.c: Resynced.
23827 * grub-core/gnulib/getopt.c: Likewise.
23828 * grub-core/gnulib/getopt_int.h: Likewise.
23829 * grub-core/gnulib/regex.h: Likewise.
23830 * grub-core/gnulib/regex_internal.c: Likewise.
23831 * grub-core/gnulib/regex_internal.h: Likewise.
23833 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23835 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
23836 CRC calculations and validity checks.
23837 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
23840 2010-09-15 Szymon Janc <szymon@janc.net.pl>
23842 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
23844 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23846 Fix incorrect echo options handling.
23847 Reported by: Yves Blusseau.
23849 * include/grub/command.h (grub_command_flags_t): New flags
23850 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
23851 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
23852 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
23854 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23856 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
23858 (GRUB_COMMAND_FLAG_MENU): Likewise.
23859 (GRUB_COMMAND_FLAG_BOTH): Likewise.
23860 (GRUB_COMMAND_FLAG_TITLE): Removed.
23861 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
23862 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
23863 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
23864 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
23865 (grub_command_flags_t): New enum. All users updated.
23867 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
23869 Fix solaris compilation.
23871 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
23872 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
23873 (grub-emu-list): Likewise.
23875 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23877 Remove deprecated root command.
23879 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
23882 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23884 * util/i386/pc/grub-setup.c: Merge this ...
23885 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
23886 * util/grub-setup.c: ... into this.
23887 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
23890 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23892 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
23895 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23897 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
23900 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23902 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
23903 explicit root argument to set to prevent UUID to be interpreted as
23906 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23908 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
23910 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23912 Don't export grub_gate_a20.
23914 * grub-core/kern/i386/pc/init.c: Remove leftovers.
23915 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
23917 (grub_gate_a20): ... this. All users updated.
23918 * include/grub/i386/pc/init.h: Removed. All users updated.
23920 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23922 Create euro.pf2 which supports most European languages.
23924 * Makefile.am (grubdata_DATA): Add euro.pf2.
23925 (euro.pf2): New target.
23926 (CLEANFILES): Add euro.pf2.
23928 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
23930 * configure.ac: Disable emu-usb by default to prevent inadvertent
23933 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23935 Disable usbserial on grub-emu since our libusb code isn't good enough
23938 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
23939 (usbserial_pl2303): Likewise.
23940 (usbserial_ftdi): Likewise.
23942 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23944 * include/grub/disk.h (grub_disk): Remove has_partitions.
23946 * disk/loopback.c (grub_loopback): Remove has_partitions.
23948 (options): Remove partitions. All users updated.
23949 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
23950 * util/i386/pc/grub-setup.c (setup): copy partition table only when
23951 actual partition table is found.
23953 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23955 Remove readability checks (too many false negatives).
23957 * util/grub-install.in: Remove readability checks.
23958 * util/grub-mkconfig.in: Likewise.
23959 * util/grub.d/10_hurd.in: Likewise.
23960 * util/grub.d/10_kfreebsd.in: Likewise.
23961 * util/grub.d/10_linux.in: Likewise.
23962 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
23965 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23967 Enable acpi shutdown on all ACPI platforms.
23969 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
23970 on coreboo, multiboot and EFI.
23971 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
23972 (grub_acpi_halt): Likewise.
23973 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
23974 (grub_cmd_halt): Don't call grub_acpi_halt directly.
23975 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
23976 * grub-core/lib/i386/halt.c (grub_halt)
23977 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
23979 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23981 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
23984 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23986 * grub-core/video/efi_gop.c: Fix over-80-chars line.
23987 * grub-core/video/efi_uga.c: Likewise.
23989 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
23991 Filter devaliases and never open same device twice.
23993 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
23994 (last_ihandle): Likewise.
23995 (ofdisk_hash_ent): New member shortest.
23996 (ofdisk_hash_add): Add canonical path too.
23997 (scan): New function.
23998 (grub_ofdisk_iterate): Iterate over hashed entries.
23999 (compute_dev_path): Don't add :0.
24000 (grub_ofdisk_open): Don't really open the disk.
24001 (grub_ofdisk_close): Avoid closing unrelated disk.
24002 (grub_ofdisk_read): Implement reopen logic.
24003 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
24005 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
24008 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24012 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
24013 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
24014 right address. Add sparc64_ieee1275_ldflags.
24015 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
24016 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
24017 to grub_host_to_target_addr
24018 (load_image): Likewise.
24020 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24022 * grub-core/normal/completion.c (complete_file): Handle device
24024 Fix based on patch by Doug Nazar.
24026 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24028 grub-mknetdir script.
24030 * Makefile.util.def (grub-mknetdir): New module.
24031 * tests/util/grub-shell.in: Support boot=net
24032 * util/grub-mknetdir.in: New file.
24034 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24036 videoinfo on non-vbe.
24038 * grub-core/Makefile.core.def (vbeinfo): Removed.
24039 (vbetest): Removed.
24040 (videoinfo): New module.
24041 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
24042 * grub-core/commands/i386/pc/vbetest.c: Removed.
24043 * grub-core/commands/videoinfo.c: New file.
24044 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
24046 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
24048 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
24049 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
24050 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
24051 mode_number. New parameter mode. All users updated.
24052 (grub_video_gop_iterate): New function.
24053 (grub_video_efi_gop): New member iterate.
24054 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
24055 (grub_vbe_set_video_mode): Remove setting useless fields.
24056 (vbe2videoinfo): New function.
24057 (grub_video_vbe_iterate): Likewise.
24058 (grub_video_vbe_setup): Use vbe2videoinfo.
24059 (grub_video_vbe_print_adapter_specific_info): New function.
24060 (grub_video_vbe_adapter): New fields iterate and
24061 print_adapter_specific_info.
24062 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
24064 (grub_video_mode_info): New field mode_number.
24065 (grub_video_adapter): New fields iterate and
24066 print_adapter_specific_info.
24068 2010-09-13 Tristan Gingold <gingold@free.fr>
24069 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24070 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24072 * grub-core/commands/efi/lsefisystab.c: New file.
24073 * grub-core/commands/efi/lssal.c: Likewise.
24074 * grub-core/Makefile.core.def (lsacpi): New module.
24075 (lsefisystab): Likewise.
24076 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
24077 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
24078 (grub_efi_sal_system_table): New struct.
24079 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
24080 (grub_efi_sal_system_table_memory_descriptor): Likewise.
24081 (grub_efi_sal_system_table_platform_features): Likewise.
24082 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
24083 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
24084 (grub_efi_sal_system_table_ap_wakeup): Likewise.
24085 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
24087 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24089 Support explicit user claim that a device is BIOS-visible.
24091 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
24092 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
24093 * grub-core/kern/emu/hostdisk.c
24094 (convert_system_partition_to_system_disk): Support mdX.
24095 (find_system_device): New parameter add. All users updated.
24096 (grub_util_biosdisk_is_present): New function.
24097 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
24100 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
24102 Search hints support.
24104 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
24107 2010-09-13 Yves Blusseau <blusseau@zetam.org>
24109 Bash completion script for util commands
24111 * Makefile.am: Add util/bash-completion.d directory
24112 * configure.ac: Likewise.
24113 * util/bash-completion.d/Makefile.am: New file.
24114 * util/bash-completion.d/grub-completion.bash.in: Likewise.
24116 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24118 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
24119 (print_backlog): set backlog_ucs4 and backlog_glyphs.
24120 Reported by: Yves Blusseau.
24122 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24124 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
24125 partition size and offset.
24127 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24129 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
24131 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24133 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
24135 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24137 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
24138 (grub_xvasprintf): Likewise.
24140 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24142 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
24144 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24146 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
24147 args ending with NULL.
24149 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
24151 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
24154 2010-09-11 Szymon Janc <szymon@janc.net.pl>
24156 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
24158 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24160 Shutdown using ACPI.
24162 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
24163 * grub-core/commands/acpihalt.c: New file.
24164 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
24165 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
24166 (grub_acpi_halt): New proto.
24167 (GRUB_ACPI_SLP_EN): New const.
24168 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
24169 (GRUB_ACPI_OPCODE_*): New enum.
24170 (GRUB_ACPI_EXTOPCODE_*): Likewise.
24172 2010-09-11 Tristan Gingold <gingold@free.fr>
24173 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
24174 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24176 * commands/lsacpi.c: New file.
24177 * grub-core/Makefile.core.def (lsacpi): New module.
24178 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
24179 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
24180 (grub_acpi_madt_entry_header): New struct.
24181 (grub_acpi_madt): Likewise.
24182 (grub_acpi_madt_entry_interrupt_override): Likewise.
24183 (grub_acpi_madt_entry_sapic): Likewise.
24184 (grub_acpi_madt_entry_lsapic): Likewise.
24185 (grub_acpi_madt_entry_platform_int_source): Likewise.
24186 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
24187 (PRIuGRUB_UINT32_T): Likewise.
24188 (PRIxGRUB_UINT64_T): Likewise.
24190 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24192 Implement loading palette on ieee1275_fb.
24194 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
24195 (have_setcolors): Likewise.
24196 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
24197 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
24198 (grub_video_ieee1275_set_palette): Implement.
24200 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24201 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
24203 * util/grub-install.in (grub_partition): New variable.
24204 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
24205 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
24206 Fixes a bug reported by Yves Blusseau.
24208 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
24212 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
24213 =grub_cpu_flush_cache on all mips and not only yeeloong.
24214 * configure.ac (COND_mips): New conditional.
24215 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
24217 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
24218 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
24219 [GRUB_LINKER_HAVE_INIT]: New function.
24220 (grub_emu_post_init): Likewise.
24221 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
24222 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
24223 * include/grub/cache.h (_mips): Include mips/cache.h.
24224 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
24225 LVM and RAID prototypes.
24226 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
24227 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
24230 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24232 * util/grub-install.in: Don't try to verify core.img until after
24233 running grub-mkimage to create it.
24235 2010-09-10 Robert Millan <rmh@gnu.org>
24237 * util/grub.d/10_hurd.in: Add misc readability checks.
24238 * util/grub.d/10_kfreebsd.in: Likewise.
24239 * util/grub.d/10_linux.in: Likewise.
24241 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24243 * util/grub-install.in: ${imgext} won't be defined here until the
24244 install branch is merged. For the meantime, only verify core.img on
24245 i386-pc and sparc64-ieee1275 platforms.
24247 2010-09-10 Robert Millan <rmh@gnu.org>
24249 Solaris support in grub_find_zpool_from_dir(). Thanks
24250 Seth Goldberg for referring to getextmntent() facility.
24252 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
24254 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
24256 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
24257 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
24258 method for finding zpool name.
24260 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
24262 grub-fstest needs the host and hostfs modules while other utilities
24263 actively require those modules to be absent, so grub-fstest needs
24264 its own initialisation and finalisation code.
24266 * Makefile.am (grub_fstest.pp): New target.
24267 (grub_fstest_init.lst): Likewise.
24268 (grub_fstest_init.c): Likewise.
24269 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
24271 2010-09-10 Robert Millan <rmh@gnu.org>
24273 * configure.ac: Check for `struct statfs.f_fstypename' and
24274 `struct statfs.f_mntfromname'.
24276 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
24277 kFreeBSD-specific code.
24279 2010-09-10 Robert Millan <rmh@gnu.org>
24281 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
24282 on ZFS. Now non-main filesystems are supported as / too.
24284 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
24286 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
24287 and grub-core/disk/host.c to ...
24288 (grub-fstest): ... here. Having the host disk implementation
24289 present confuses grub-probe and other utility programs.
24291 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
24292 when writing to a file, not when writing to stdout.
24294 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
24296 * tests/partmap_test.in: New test for partitions.
24297 * Makefile.util.def: Rules for new test.
24299 2010-09-09 Robert Millan <rmh@gnu.org>
24301 * util/grub-probe.c (probe): Fix a pair of unhandled error
24304 2010-09-09 Robert Millan <rmh@gnu.org>
24306 Basic Btrfs support (detection and UUID).
24308 * grub-core/fs/btrfs.c: New file.
24309 * Makefile.util.def (library): Register btrfs.c.
24310 * grub-core/Makefile.core.def: Likewise.
24312 2010-09-08 Robert Millan <rmh@gnu.org>
24314 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
24315 with (optional) parameters to specify device and relative path.
24316 * util/grub-install.in: Use is_path_readable_by_grub() to
24317 verify readability of a few critical files.
24318 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
24319 verify readability of grub.cfg.new.
24321 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24323 Split minix.mod into minix.mod and minix2.mod.
24325 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
24326 * grub-core/Makefile.core.def (minix2): New module.
24327 * grub-core/fs/minix.c: Use definitions instead of runtime version
24329 * grub-core/fs/minix2.c: New file.
24331 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24333 Add new --boot-directory option to replace --root-directory
24335 * util/grub-install.in: Add new --boot-directory option
24336 * util/grub-reboot.in: Likewise.
24337 * util/grub-set-default.in: Likewise.
24339 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24341 * util/grub-mkconfig.in: Use new variable.
24343 2010-09-08 Yves Blusseau <blusseau@zetam.org>
24345 * configure.ac: Define some useful variables.
24347 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
24349 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
24350 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
24351 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
24352 Use terminfo and don't use cursor-on/cursor-off unless it's known
24354 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
24355 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
24357 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
24359 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
24360 starts with "(,", fill the drive containing the loaded image in
24361 between those two characters, but expect that a full partition
24362 specification including partition map names will follow.
24364 2010-09-08 Robert Millan <rmh@gnu.org>
24366 * configure.ac: Remove `--enable-grub-fstest' option.
24367 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
24369 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
24370 `grub-fstest' instead of `grub-probe' for readability verification.
24371 * util/grub-probe.c (probe): Remove readability verification kludge.
24373 2010-09-08 Robert Millan <rmh@gnu.org>
24375 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
24376 initializing `GRUB_FS'.
24378 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
24380 Not command (!) support to GRUB script.
24382 * tests/grub_script_not.in: New test.
24383 * Makefile.util.def: Rules for new test.
24385 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
24386 ! command as a special case.
24387 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
24389 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24391 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
24394 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24396 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
24398 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
24400 * docs/grub.texi (Shell-like scripting): Documentation for break,
24401 continue, shift and return commands.
24403 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
24405 Rename CD-ROM to cd on BIOS.
24407 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
24409 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
24411 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24413 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
24414 * util/grub-probe.c (main): Likewise.
24415 * util/i386/pc/grub-setup.c (main): Likewise.
24416 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
24417 Reported and debugged by: alexxy
24419 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24421 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
24424 2010-09-05 Jo Shields <directhex@apebox.org>
24426 * util/grub.d/30_os-prober.in: Add missing classes.
24428 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24430 * docs/grub.texi (Theme file format): Document new position format.
24432 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24434 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
24435 a table. Use @code instead of @verbatim.
24437 2010-09-05 Colin D Bennett <colin@gibibit.com>
24439 Gfxmenu documentation.
24441 * docs/grub.texi (Theme file format): New chapter.
24443 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24445 * grub-core/Makefile.core.def (xzio): New module.
24446 * grub-core/io/xzio.c: New file.
24447 * grub-core/lib/xzembed/xz.h: New file (from xembed).
24448 * grub-core/lib/xzembed/xz_config.h: Likewise.
24449 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
24450 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
24451 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
24452 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
24453 * grub-core/lib/xzembed/xz_private.h: Likewise.
24454 * grub-core/lib/xzembed/xz_stream.h: Likewise.
24455 * include/grub/file.h (grub_file_filter_id): New compression filter
24456 GRUB_FILE_FILTER_XZIO.
24458 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24460 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
24461 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
24464 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24466 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
24467 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
24469 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24471 Uncompressed checksum support.
24473 * grub-core/commands/hashsum.c (options): Add option --uncompress.
24474 (check_list): New parameter uncompress.
24475 (grub_cmd_hashsum): Handle --uncompress.
24477 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24479 Reintroduce testload.
24481 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
24483 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
24484 (GRUB_MOD_INIT): New function.
24485 (GRUB_MOD_FINI): Likewise.
24486 * grub-core/Makefile.core.def (testload): New module.
24488 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24490 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
24491 (uint8_t): New type.
24492 (uint16_t): Likewise.
24493 (uint32_t): Likewise.
24494 (uint64_t): Likewise.
24496 2010-09-05 Szymon Janc <szymon@janc.net.pl>
24498 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
24500 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
24502 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
24504 (grub_gzfile_open): Removed. All users updated.
24505 (GRUB_MOD_INIT): New function.
24506 (GRUB_MOD_FINI): Likewise.
24507 * grub-core/kern/file.c (grub_file_filters_all): New variable.
24508 (grub_file_filters_enabled): Likewise.
24509 (grub_file_open): Handle filters.
24510 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
24511 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
24512 * include/grub/file.h (grub_file_filter_id_t): New type.
24513 (grub_file_filter_t): Likewise.
24514 (grub_file_filters_all): New extern variable.
24515 (grub_file_filters_enabled): Likewise.
24516 (grub_file_filter_register): New inline function.
24517 (grub_file_filter_unregister): Likewise.
24518 (grub_file_filter_disable): Likewise.
24519 (grub_file_filter_disable_compression): Likewise.
24520 * include/grub/gzio.h: Removed.
24522 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24524 Filename expansion support for wildcards in GRUB script.
24526 * tests/grub_script_expansion.in: New test.
24527 * Makefile.util.def: Rule for new test.
24529 * grub-core/commands/wildcard.c: New file, implements filename
24530 expansion support for GRUB script.
24531 * grub-core/Makefile.core.def: Rule update for regexp.mod.
24532 * grub-core/script/argv.c: Cosmetic changes.
24533 * grub-core/script/execute.c (grub_script_arglist_to_argv):
24534 Refactored to perform wildcard expansion on arguments.
24535 * include/grub/script_sh.h (grub_script_wildcard_translator): New
24538 * tests/util/grub-shell.in: Fix quoting for read input.
24540 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24542 Support for updating environment variables with matched substrings
24545 * tests/grub_cmd_regexp.in: New test.
24546 * Makefile.util.def: Rule for new test.
24548 * grub-core/commands/regexp.c: New option -s to update environment
24549 variables with regexp matches.
24551 2010-09-04 Szymon Janc <szymon@janc.net.pl>
24553 * include/grub/file.h (grub_file): New member not_easly_seekable.
24554 (grub_file_seekable): New inline function.
24555 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
24557 (grub_gzio_open): Set not_easly_seekable.
24558 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
24559 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
24561 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24563 Support for options to appear multiple times on cmdline.
24565 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
24566 * grub-core/commands/extcmd.c: Support for repeatable option.
24567 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
24568 repeatable option support.
24570 Refactor menuentry into a regular command.
24572 * grub-core/commands/menuentry.c: New file, menuentry command
24574 * grub-core/Makefile.core.def: Rule update for normal.mod.
24575 * grub-core/normal/main.c: Moved menuentry creation to
24576 grub-core/commands/menuentry.c.
24577 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
24578 (grub_menu_execute_entry_real): Removed.
24579 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
24581 (grub_script_execute_menuentry): Removed.
24582 * grub-core/script/parser.y (menuentry): Removed.
24583 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
24584 * grub-core/script/yylex.l (menuentry): Removed.
24585 * include/grub/menu.h (grub_menu_init): New prototype.
24586 (grub_menu_fini): New prototype.
24587 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
24588 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
24589 (grub_script_execute_sourcecode): New prototype.
24591 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24593 "return" command for GRUB script functions.
24595 * tests/grub_script_return.in: New test.
24596 * Makefile.util.def: Rules for new test.
24598 * grub-core/script/execute.c (grub_script_return): New function.
24599 * grub-core/script/main.c: Register/unregister return commaond.
24600 * include/grub/script_sh.h (grub_script_return): New prototype.
24602 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24604 "setparams" command to update positional parameters.
24606 * tests/grub_script_setparams.in: New test.
24607 * Makefile.util.def: Rules for new test.
24609 * grub-core/script/argv.c (grub_script_argv_make): New function.
24610 * grub-core/script/execute.c (replace_scope): New function.
24611 (grub_script_setparams): New function.
24612 * grub-core/script/lexer.c: Remove unused variables.
24613 * grub-core/script/main.c: Register/unregister setparams command.
24614 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
24615 (grub_script_setparams): New prototype.
24617 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24619 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
24622 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24624 Support for passing block of commands as an argument to extcmds.
24626 * Makefile.util.def: Rules for new test.
24627 * tests/grub_script_blockarg.in: New test.
24628 * grub-core/tests/test_blockarg.c: New file, block argument
24629 command used in the test.
24631 * include/grub/extcmd.h (grub_extcmd_context): New struct.
24632 (grub_register_extcmd_prio): New function prototype.
24633 (grub_extcmd_dispatcher): New function prototype.
24634 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
24636 * include/grub/script_sh.h (struct grub_script): New members
24637 `children', `next_siblings' and `refcnt' for block arguments and
24638 reference counting.
24639 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
24640 (grub_script_arg): New member `script' for block argument.
24641 (grub_script_argv): New member `script' for block argument.
24642 (grub_parser_param): New member `scripts' for block argument.
24643 (grub_script_mem_free): New extern function prototype.
24644 (grub_script_ref): New function prototype.
24645 (grub_script_unref): New function prototype.
24647 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
24648 extcmd form to support block arguments.
24649 * grub-core/script/argv.c: Block arguments support.
24650 * grub-core/script/execute.c: Likewise.
24651 * grub-core/script/lexer.c: Likewise.
24652 * grub-core/script/main.c: Likewise.
24653 * grub-core/script/script.c: Likewise.
24654 * grub-core/script/parser.y: Likewise. New `block' and `block0'
24657 * grub-core/commands/acpi.c: Update extcmd implementations with
24658 grub_extcmd_context_t.
24659 * grub-core/commands/cat.c: Likewise.
24660 * grub-core/commands/echo.c: Likewise.
24661 * grub-core/commands/extcmd.c: Likewise.
24662 * grub-core/commands/hashsum.c: Likewise.
24663 * grub-core/commands/hdparm.c: Likewise.
24664 * grub-core/commands/help.c: Likewise.
24665 * grub-core/commands/hexdump.c: Likewise.
24666 * grub-core/commands/i386/cpuid.c: Likewise.
24667 * grub-core/commands/i386/pc/drivemap.c: Likewise.
24668 * grub-core/commands/i386/pc/halt.c: Likewise.
24669 * grub-core/commands/i386/pc/sendkey.c: Likewise.
24670 * grub-core/commands/iorw.c: Likewise.
24671 * grub-core/commands/keystatus.c: Likewise.
24672 * grub-core/commands/loadenv.c: Likewise.
24673 * grub-core/commands/ls.c: Likewise.
24674 * grub-core/commands/lspci.c: Likewise.
24675 * grub-core/commands/memrw.c: Likewise.
24676 * grub-core/commands/probe.c: Likewise.
24677 * grub-core/commands/search_wrap.c: Likewise.
24678 * grub-core/commands/setpci.c: Likewise.
24679 * grub-core/commands/sleep.c: Likewise.
24680 * grub-core/disk/loopback.c: Likewise.
24681 * grub-core/hello/hello.c: Likewise.
24682 * grub-core/loader/i386/bsd.c: Likewise.
24683 * grub-core/loader/xnu.c: Likewise.
24684 * grub-core/term/gfxterm.c: Likewise.
24685 * grub-core/term/serial.c: Likewise.
24686 * grub-core/tests/lib/functional_test.c: Likewise.
24688 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
24690 Multi-line quoted strings support.
24692 * grub-core/script/lexer.c (append_newline): Removed.
24693 (grub_script_lexer_yywrap): Refactored.
24694 (grub_script_lexer_init): Refactored.
24695 * grub-core/script/yylex.l (yywrap): New function.
24696 (grub_lexer_resplit): New function.
24697 (grub_lexer_unput): New function.
24698 * include/grub/script_sh.h (grub_lexer_param): New members, unput
24700 * tests/grub_script_echo1.in: Added few more testcases.
24702 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
24704 * grub-core/kern/misc.c: Don't add abort alias in utils.
24705 Reported by: echoline.
24707 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
24709 Add missing files into "make dist" tarball for other platforms.
24711 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
24712 * conf/Makefile.common (dist_noinst_DATA): New variable.
24713 * conf/Makefile.extra-dist: Added missing make dist files.
24714 * grub-core/Makefile.core.def: Likewise.
24716 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24718 Compress grub_prefix.
24720 * grub-core/boot/i386/pc/lnxboot.S: Use
24721 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
24722 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
24723 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
24724 GRUB_MACHINE_PREFIX_END. All users updated.
24725 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
24726 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
24728 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
24729 * util/grub-mkimage.c (image_target_desc): Change data_end to
24730 prefix_end. All users updated.
24732 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
24734 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
24736 (grub_openbsd_boot): Likewise.
24737 (grub_netbsd_boot): Likewise.
24738 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
24739 (grub_xnu_boot): Likewise.
24741 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24743 * configure.ac: Clean LIBS variable after tests.
24745 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24747 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
24749 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24751 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
24752 echo if libdevmapper will be used.
24754 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
24756 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
24757 constant for the same file.
24759 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24761 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
24763 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24765 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
24768 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
24770 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
24771 required by the boot protocol.
24773 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
24774 ebp and edi members.
24775 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
24776 state.ebp and state.edi.
24777 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
24778 %ebp and %edi according to grub_relocator32_ebp and
24779 grub_relocator32_edi respectively.
24780 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
24783 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24785 Add i386-pc-pxe image target.
24787 * util/grub-mkimage.c (image_target_desc): New enum value
24789 (image_targets): New target i386-pc-pxe.
24790 (generate_image): Handle i386-pc-pxe image.
24792 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
24796 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
24797 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
24799 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
24800 (grub_pxe_pxenv): Correct type.
24802 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24804 * NEWS: Document most of the important changes since 1.98.
24806 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24808 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
24809 generated manual page) a little.
24811 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
24813 * docs/grub.texi: Add myself as an author.
24815 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
24817 * Makefile.util.def (libgrub.a): Add missing sunpc.
24818 Reported by: Seth Goldberg.
24820 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
24822 Interrupt wrapping and code simplifications.
24824 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
24825 x86_noieee1275 which are functionaly equivalent in this case.
24826 (grub-install): Make source on each platform explicit. Enable on
24828 * gentpl.py (x86_efi_pc): Removed group.
24829 (x86_noefi): Likewise.
24830 (i386_noefi): Likewise.
24831 (x86_noieee1275): Likewise.
24832 (i386_noieee1275): Likewise.
24833 (i386_noefi_noieee1275): Likewise.
24834 (i386_pc_qemu_coreboot): Likewise.
24835 (i386_coreboot_multiboot): Likewise.
24836 (i386_pc_coreboot_multiboot_qemu): Likewise.
24837 (x86_noefi_mips): Likewise.
24838 (noieee1275): Likewise.
24839 (ieee1275_mips): Likewise.
24840 (noemu_noieee1275): Likewise.
24843 (videoinkernel): Likewise.
24844 (videomodules): Likewise.
24845 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
24846 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
24847 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
24848 include/grub/loader.h, include/grub/msdos_partition.h,
24849 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
24850 include/grub/machine/console.h, include/grub/machine/vga.h,
24851 include/grub/machine/vbe.h, include/grub/machine/init.h,
24852 include/grub/machine/kernel.h, include/grub/cpu/time.h,
24853 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
24854 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
24855 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
24856 * grub-core/Makefile.core.def (kernel): Explicit the source for
24857 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
24858 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
24859 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
24860 Use videoinkernel tag.
24861 (usb): Enable on all usb.
24862 (usbserial_common): Likewise.
24863 (usbserial_pl2303): Likewise.
24864 (usbserial_ftdi): Likewise.
24865 (uhci): Enable on all x86.
24866 (ohci): Enable on all pci.
24867 (cmostest): Enable on all CMOS.
24868 (acpi): Include commands/acpi.c on all platforms.
24869 (halt): Add relevant lib/*/halt.c.
24870 (hdparm): Enable on all pci.
24872 (usbtest): Enable on all usb.
24873 (ata): Enable on all pci.
24874 (ata_pthru): Likewise.
24875 (usbms): Enable on all usb.
24876 (usb_keyboard): Likewise.
24877 (font): Use tag videomodules.
24879 (datetime): Use tag cmos. Enable on all noemu.
24880 (mmap): Use tags common and x86.
24881 (gfxterm): Use tag videomodules.
24882 (bitmap): Likewise.
24883 (bitmap_scale): Likewise.
24884 (video_fb): Likewise.
24886 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
24887 adjust padding accordingly. All users updated.
24888 (grub_ohci_transaction): Fix bad format specification.
24889 (GRUB_MOD_INIT): Add asserts for struct size.
24890 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
24891 (grub_alloc_td): Likewise.
24892 (grub_free_queue): Likewise.
24893 (grub_uhci_transfer): Likewise.
24894 (grub_uhci_transaction): Fix bad format specification.
24895 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
24896 (grub_usb_bulk_readwrite): Likewise.
24897 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
24898 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
24900 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
24902 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
24903 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
24904 Transformed into C.
24905 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
24906 Moved from here ...
24907 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
24908 ... here. Transformed into C. Made static.
24909 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
24910 Moved from here ...
24911 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
24912 ... here. Transformed into C. Made static.
24913 * grub-core/kern/i386/pc/startup.S
24914 (grub_biosdisk_check_int13_extensions): Moved from here ...
24915 * grub-core/disk/i386/pc/biosdisk.c
24916 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
24918 * grub-core/kern/i386/pc/startup.S
24919 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
24920 * grub-core/disk/i386/pc/biosdisk.c
24921 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
24922 Transformed into C. Made static.
24923 * grub-core/kern/i386/pc/startup.S
24924 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
24925 * grub-core/disk/i386/pc/biosdisk.c
24926 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
24927 Transformed into C. Made static.
24928 * grub-core/kern/i386/pc/startup.S
24929 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
24930 * grub-core/disk/i386/pc/biosdisk.c
24931 (grub_biosdisk_get_diskinfo_standard): ... here.
24932 Transformed into C. Made static.
24933 * grub-core/kern/i386/pc/startup.S
24934 (grub_biosdisk_get_num_floppies): Moved from here ...
24935 * grub-core/disk/i386/pc/biosdisk.c
24936 (grub_biosdisk_get_num_floppies): ... here.
24937 Transformed into C. Made static.
24938 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
24940 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
24941 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
24942 Transformed into C. Made static.
24943 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
24944 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
24945 Transformed into C. Made static.
24946 * grub-core/kern/i386/ieee1275/init.c: Removed.
24947 * grub-core/kern/i386/misc.S: Likewise.
24948 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
24949 Splitted from here ...
24950 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
24951 Transformed into C. Made static. All users updated.
24952 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
24953 Transformed into C. Made static. All users updated.
24954 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
24956 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
24957 Transformed into C. Made static. All users updated.
24958 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
24960 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
24961 Transformed into C. Made static. All users updated.
24962 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
24963 Removed (replaced by C version).
24964 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
24966 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
24967 Transformed into C. Made static.
24968 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
24970 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
24971 ... here. Transformed into C.
24972 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
24974 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
24975 ... here. Transformed into C.
24976 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
24978 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
24979 ... here. Transformed into C. Made static.
24980 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
24982 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
24983 ... here. Transformed into C.
24984 * grub-core/kern/i386/pc/startup.S
24985 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
24986 * grub-core/video/i386/pc/vbe.c
24987 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
24988 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
24990 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
24991 ... here. Transformed into C.
24992 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
24994 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
24995 ... here. Transformed into C.
24996 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
24998 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
24999 ... here. Transformed into C.
25000 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
25002 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
25003 ... here. Transformed into C.
25004 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
25006 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
25007 ... here. Transformed into C. Made static.
25008 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
25010 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
25011 ... here. Transformed into C. Made static.
25012 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
25014 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
25015 ... here. Transformed into C. Made static.
25016 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
25017 pxe_rm_entry as third argument.
25018 (grub_bios_interrupt): New function.
25019 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
25020 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
25021 of calling grub_stop.
25022 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
25023 * grub-core/lib/efi/halt.c (grub_halt): ...here.
25024 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
25025 * grub-core/lib/emu/halt.c (grub_halt): ... here.
25026 * grub-core/lib/i386/halt.c: Moved from here ...
25027 * grub-core/lib/i386/halt.c: ... here.
25028 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
25029 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
25030 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
25032 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
25033 * include/grub/i386/coreboot/init.h: Removed.
25034 * include/grub/i386/multiboot/init.h: Likewise.
25035 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
25036 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
25037 * include/grub/i386/pc/int.h: New file.
25038 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
25039 (grub_pxe_scan): Removed.
25040 (grub_pxe_call): Update prototype.
25041 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
25043 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
25044 * include/grub/i386/qemu/init.h: Removed.
25045 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
25047 (grub_halt): Likewise.
25048 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
25049 (grub_reboot): Likewise.
25050 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
25051 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
25052 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
25054 2010-08-30 Robert Millan <rmh@gnu.org>
25056 * NEWS: Document addition of ZFS support in `grub-install' and
25059 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
25061 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
25064 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25066 Remove leftover embedding of font objects.
25068 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25069 * util/grub-install.in (font): Removed.
25070 * util/grub-mkimage.c (generate_image): Remove font support. All users
25073 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25075 Remove leftover embedding of font objects.
25077 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
25078 * util/grub-install.in (font): Removed.
25079 * util/grub-mkimage.c (generate_image): Remove font support. All users
25082 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25084 * docs/grub.texi (Network): Fix reference to pxe_blksize.
25085 Reported by: Ian Turner
25087 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25089 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
25090 timeout to avoid indefinite boot stalling.
25092 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25094 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
25095 (grub_env_write_color_highlight): Likewise.
25097 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25099 * grub-core/normal/term.c (print_more): Return to normal and not
25100 to standard state after printing "---MORE---".
25102 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
25104 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
25105 Mask out the bit 0x80 since it has other meaning that specifiing color.
25107 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25109 New relocator. Allows for more kernel support and more straightforward
25112 * Makefile.am (BOOTTARGET): New variable.
25113 (QEMU32): Likewise.
25114 (linux.init.x86_64): New target.
25115 (linux.init.i386): Likewise.
25116 (multiboot.elf): Likewise.
25117 (kfreebsd.elf): Likewise.
25118 (kfreebsd.aout): Likewise.
25119 (pc-chainloader.elf): Likewise.
25120 (pc-chainloader.bin): Likewise.
25121 (ntldr.elf): Likewise.
25122 (ntldr.bin): Likewise.
25123 (multiboot2.elf): Likewise.
25124 (kfreebsd.init.x86_64): Likewise.
25125 (kfreebsd.init.i386): Likewise.
25126 (knetbsd.init.i386): Likewise.
25127 (kopenbsd.init.i386): Likewise.
25128 (knetbsd.init.x86_64): Likewise.
25129 (kopenbsd.init.x86_64): Likewise.
25130 (linux-initramfs.i386): Likewise.
25131 (linux-initramfs.x86_64): Likewise.
25132 (kfreebsd-mfsroot.i386.img): Likewise.
25133 (knetbsd.image.i386): Likewise.
25134 (kopenbsd.image.i386): Likewise.
25135 (kopenbsd.image.x86_64): Likewise.
25136 (knetbsd.miniroot-image.i386.img): Likewise.
25137 (kfreebsd-mfsroot.x86_64.img): Likewise.
25138 (knetbsd.image.x86_64): Likewise.
25139 (knetbsd.miniroot-image.x86_64.img): Likewise.
25140 (kfreebsd-mfsroot.i386.gz): Likewise.
25141 (bootcheck-kfreebsd-i386): Likewise.
25142 (kfreebsd-mfsroot.x86_64.gz): Likewise.
25143 (bootcheck-kfreebsd-x86_64): Likewise.
25144 (knetbsd.miniroot-image.i386.gz): Likewise.
25145 (bootcheck-knetbsd-i386): Likewise.
25146 (bootcheck-kopenbsd-i386): Likewise.
25147 (bootcheck-kopenbsd-x86_64): Likewise.
25148 (knetbsd.miniroot-image.x86_64.gz): Likewise.
25149 (bootcheck-knetbsd-x86_64): Likewise.
25150 (bootcheck-linux-i386): Likewise.
25151 (bootcheck-linux-x86_64): Likewise.
25152 (bootcheck-linux16-i386): Likewise.
25153 (bootcheck-linux16-x86_64): Likewise.
25154 (bootcheck-multiboot): Likewise.
25155 (bootcheck-multiboot2): Likewise.
25156 (bootcheck-kfreebsd-aout): Likewise.
25157 (bootcheck-pc-chainloader): Likewise.
25158 (bootcheck-ntldr): Likewise.
25159 (CLEANFILES): Add new targets.
25160 (BOOTCHECKS): New variable.
25161 (.PHONY): Add bootchecks.
25162 (SUCCESSFUL_BOOT_STRING): New variable.
25163 (BOOTCHECK_TIMEOUT): Likewise.
25164 (bootcheck): New target
25165 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
25166 * configure.ac: Correct efiemu excuse.
25167 * docs/grub.texi (Supported kernels): New chapter.
25168 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
25169 include/grub/mm_private.h. Simplify inclusion of
25170 include/grub/boot.h, include/grub/loader.h
25171 and include/grub/msdos_partition.h
25172 (KERNEL_HEADER_FILES) [i386_coreboot]:
25173 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
25174 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
25175 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
25176 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
25177 include/grub/machine/loader.h.
25178 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
25179 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
25181 (pci.mod): Enable on i386-multiboot.
25182 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
25183 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
25185 (relocator.mod): Rewritten.
25186 (aout.mod): Enable on all x86.
25187 (bsd.mod): Likewise.
25188 (ntldr.mod): New module.
25189 (linux.mod): Use loader/i386/linux.c on all x86.
25190 (xnu.mod): Enable on all x86.
25191 (vga_text.mod): disable on EFI and QEMU.
25192 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
25193 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
25194 * grub-core/efiemu/loadcore.c: Likewise.
25195 * grub-core/efiemu/main.c: Likewise.
25196 (grub_efiemu_exit_boot_services): Removed.
25197 (grub_efiemu_finish_boot_services): Likewise.
25198 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
25200 * grub-core/efiemu/i386/nocfgtables.c: New file.
25201 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
25202 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
25203 (grub_efi_finish_boot_services): Moved from here ...
25204 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
25205 Fille finish memory map and related data.
25206 (finish_mmap_buf): New variable.
25207 (grub_efi_uintn_t finish_mmap_size): Likewise.
25208 (grub_efi_uintn_t finish_key): Likewise.
25209 (grub_efi_uintn_t finish_desc_size): Likewise.
25210 (grub_efi_uint32_t finish_desc_version): Likewise.
25211 (grub_efi_is_finished): Likewise.
25212 (grub_efi_get_memory_map): Use saved memory map if EFI is already
25214 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
25215 (grub_elf64_phdr_iterate): Likewise.
25216 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
25217 (grub_os_area_size): Likewise.
25218 (grub_machine_init): Don't reserve os area.
25219 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
25220 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
25221 * grub-core/kern/i386/loader.S: Removed.
25222 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
25223 (grub_os_area_size): Likewise.
25224 (grub_machine_init): Don't reserve os area.
25225 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
25226 Don't call grub_dl_unload_all.
25227 Don't include loader.S.
25228 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
25229 Declare the memory after _end as available.
25230 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
25231 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
25232 (GRUB_MM_ALLOC_MAGIC): Moved from here...
25233 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
25234 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
25235 * include/grub/mm_private.h (grub_mm_header): ... here.
25236 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
25237 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
25238 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
25239 (grub_mm_region): ..here. Removed addr. Added pre_size.
25241 * grub-core/kern/mm.c (base): Renamed to ...
25242 (grub_mm_base): ... this. Made global.
25243 (grub_real_malloc): Alloc from end of region.
25244 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
25245 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
25246 * grub-core/kern/powerpc/cache_flush.S: ... here.
25247 * grub-core/lib/efi/relocator.c: New file.
25248 * grub-core/lib/i386/relocator.c: Rewritten.
25249 * grub-core/lib/i386/relocator16.S: New file.
25250 * grub-core/lib/i386/relocator32.S: Likewise.
25251 * grub-core/lib/i386/relocator64.S: Likewise.
25252 * grub-core/lib/i386/relocator_asm.S: Rewritten.
25253 * grub-core/lib/i386/relocator_common.S: New file.
25254 * grub-core/lib/ieee1275/relocator.c: Likewise.
25255 * grub-core/lib/mips/relocator.c: Rewritten.
25256 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
25257 stylistic adjustments.
25258 * grub-core/lib/powerpc/relocator.c: New file.
25259 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
25260 * grub-core/lib/relocator.c: Rewritten.
25261 * grub-core/lib/x86_64/relocator_asm.S: New file.
25262 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
25263 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
25264 (bsd_tag): New struct.
25265 (tags): New variable.
25266 (tags_last): Likewise.
25267 (netbsd_module): New struct.
25268 (netbsd_mods): New variable.
25269 (netbsd_mods_last): Likewise.
25270 (openbsd_opts): New parameter "serial".
25271 (OPENBSD_SERIAL_ARG): New definition.
25272 (netbsd_opts): New parameter "serial".
25273 (NETBSD_SERIAL_ARG): New definition.
25274 (grub_freebsd_add_meta): Reorganised into ...
25275 (grub_bsd_add_meta): ...this. All users updated.
25276 (grub_freebsd_add_mmap): Reorganised into ...
25277 (generate_e820_mmap): ...this...
25278 (grub_bsd_add_mmap): ...and this. All users updated.
25279 (grub_freebsd_list_modules): Use tags.
25280 (grub_netbsd_add_meta_module): New function.
25281 (grub_netbsd_list_modules): Likewise.
25282 (grub_freebsd_boot): Use relocator and finish EFI.
25283 (grub_openbsd_boot): Likewise.
25284 (grub_netbsd_setup_video): New function.
25285 (grub_netbsd_add_modules): Likewise.
25286 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
25288 (grub_bsd_unload): Unload tags.
25289 (grub_bsd_load_aout): Use relocator.
25290 (grub_bsd_elf32_size_hook): New function.
25291 (grub_bsd_elf32_hook): Use relocator.
25292 (grub_bsd_elf64_size_hook): New function.
25293 (grub_bsd_elf64_hook): Use relocator.
25294 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
25295 (grub_bsd_load): Zero-out openbsd_ramdisk.
25296 (grub_bsd_load): Use relocator.
25297 (grub_cmd_openbsd): Support serial.
25298 (grub_cmd_netbsd): Support modules.
25299 (grub_cmd_freebsd_module): Use relocator.
25300 (grub_netbsd_module_load): New function.
25301 (grub_cmd_netbsd_module): Likewise.
25302 (grub_cmd_openbsd_ramdisk): Likewise.
25303 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
25305 (GRUB_MOD_FINI): Unregister new commands.
25306 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
25307 (grub_freebsd_load_elfmodule_obj): Use relocator.
25308 (grub_freebsd_load_elfmodule): Likewise.
25309 (grub_freebsd_load_elf_meta): Likewise.
25310 (grub_netbsd_load_elf_meta): New function.
25311 (grub_openbsd_find_ramdisk): Likewise.
25312 * grub-core/loader/i386/bsd_helper.S: Removed.
25313 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
25314 * grub-core/loader/i386/bsd_trampoline.S: Removed.
25315 * grub-core/loader/i386/efi/linux.c: Likewise.
25316 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
25317 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
25318 (DEFAULT_VIDEO_MODE): Likewise.
25319 (real_mode_target): New variable.
25320 (prot_mode_target): Likewise.
25321 (initrd_mem_target): Likewise.
25322 (relocator): Likewise.
25323 (efi_mmap_buf): Likewise.
25324 (efi_mmap_size): Likewise.
25325 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
25326 (free_pages): Use relocator.
25327 (allocate_pages): Account for efi_mmap and use relocator. Return error.
25328 (grub_linux_setup_video): Return error.
25329 (grub_linux_trampoline_start): Removed.
25330 (grub_linux_trampoline_end): Likewise.
25331 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
25332 andd video parameters depending on firmware.
25333 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
25334 [GRUB_MACHINE_EFI]: Pass EFI parameters.
25335 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
25336 (grub_cmd_initrd): Use relocator.
25337 * grub-core/loader/i386/linux_trampoline.S: Removed.
25338 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
25339 (elf_sec_entsize): Likewise.
25340 (elf_sec_shstrndx): Likewise.
25341 (elf_sections): Likewise.
25342 (grub_multiboot_load): Use relocator.
25343 (grub_multiboot_get_mbi_size): Account for sections.
25344 (grub_multiboot_make_mbi): Use relocator and support sections.
25345 (grub_multiboot_add_elfsyms): New function.
25346 (grub_multiboot_free_mbi): Free sections.
25347 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
25348 (grub_linux_real_target): Likewise.
25349 (grub_linux_real_chunk): Likewise.
25350 (grub_linux16_prot_size): Likewise.
25351 (grub_linux16_boot): Use relocator.
25352 (grub_linux_unload): Unload relocator.
25353 (grub_cmd_linux): Use relocator.
25354 (grub_cmd_initrd): Likewise.
25355 * grub-core/loader/i386/pc/ntldr.c: New file.
25356 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
25357 Don't try to guess CPU frequency.
25358 (grub_xnu_set_video): Stretch bitmap.
25359 (grub_xnu_boot): Use relocator.
25360 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
25361 (grub_linux_unload): Free relocator.
25362 (grub_linux_load32): Use relocator.
25363 (grub_linux_load64): Likewise.
25364 (grub_cmd_initrd): Likewise.
25365 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
25366 (grub_multiboot_unload): Unload relocator.
25367 (grub_cmd_multiboot): Use relocator.
25368 (grub_cmd_module): Likewise.
25369 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
25370 Use relocator and support sections.
25371 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
25372 (elf_sec_entsize): Likewise.
25373 (elf_sec_shstrndx): Likewise.
25374 (elf_sections): Likewise.
25375 (grub_multiboot_load): Use relocator.
25376 (grub_multiboot_get_mbi_size): Account for sections.
25377 (grub_multiboot_make_mbi): Use relocator and support sections.
25378 (grub_multiboot_add_elfsyms): New function.
25379 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
25380 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
25381 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
25382 Prototype changed. All users updated.
25383 (grub_xnu_align_heap): Simplified.
25384 (grub_xnu_writetree_toheap): Likewise.
25385 (grub_xnu_unload): Unload relocator.
25386 (grub_cmd_xnu_kernel): Use relocator.
25387 (grub_cmd_xnu_kernel64): Likewise.
25388 (grub_xnu_register_memory): Simplified.
25389 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
25390 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
25392 (grub_console_checkkey): Likewise.
25393 (grub_console_getkey): Likewise.
25394 (grub_console_getwh): Likewise.
25395 (grub_console_getxy): Likewise.
25396 (grub_console_gotoxy): Likewise.
25397 (grub_console_cls): Likewise.
25398 (grub_console_setcolorstate): Likewise.
25399 (grub_console_setcursor): Likewise.
25400 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
25401 * grub-core/tests/boot/kbsd.init-i386.S: New file.
25402 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
25403 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
25404 * grub-core/tests/boot/kernel-8086.S: Likewise.
25405 * grub-core/tests/boot/kernel-i386.S: Likewise.
25406 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
25407 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
25408 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
25409 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
25410 * grub-core/tests/boot/knetbsd.cfg: Likewise.
25411 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
25412 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
25413 * grub-core/tests/boot/linux.cfg: Likewise.
25414 * grub-core/tests/boot/linux.init-i386.S: Likewise.
25415 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
25416 * grub-core/tests/boot/linux16.cfg: Likewise.
25417 * grub-core/tests/boot/multiboot.cfg: Likewise.
25418 * grub-core/tests/boot/multiboot2.cfg: Likewise.
25419 * grub-core/tests/boot/ntldr.cfg: Likewise.
25420 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
25421 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
25422 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
25424 * include/grub/dl.h (grub_dl_unload_all): Removed.
25425 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
25426 (grub_efi_finish_boot_services): Change prototype.
25427 (grub_efi_is_finished): New variable.
25428 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
25430 (grub_efiemu_finish_boot_services): Removed.
25431 (grub_machine_efiemu_init_tables): New prototype.
25432 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
25433 (grub_elf64_phdr_iterate): Likewise.
25434 * include/grub/i386/bsd.h: Include relocator.h.
25435 (freebsd_tag_header): New struct.
25436 (grub_openbsd_bios_mmap): Removed.
25437 (grub_unix_real_boot): Removed.
25438 (grub_freebsd_load_elfmodule32): Changed prototype.
25439 (grub_freebsd_load_elfmodule_obj64): Likewise.
25440 (grub_freebsd_load_elf_meta32): Likewise.
25441 (grub_freebsd_load_elf_meta64): Likewise.
25442 (grub_freebsd_add_meta): Removed.
25443 (grub_netbsd_load_elf_meta32): New prototype.
25444 (grub_netbsd_load_elf_meta64): Likewise.
25445 (grub_bsd_add_meta): Likewise.
25446 (grub_openbsd_ramdisk_descriptor): New struct.
25447 (grub_openbsd_find_ramdisk32): New prototype.
25448 (grub_openbsd_find_ramdisk64): Likewise.
25449 * include/grub/i386/coreboot/loader.h: Removed.
25450 * include/grub/i386/efi/loader.h: Likewise.
25451 * include/grub/i386/ieee1275/loader.h: Likewise.
25452 * include/grub/i386/linux.h (linux_kernel_header): Change void *
25454 * include/grub/i386/loader.h: Removed.
25455 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
25457 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
25458 (grub_phys_addr_t): New type.
25459 (grub_vtop): New inline function.
25460 (grub_map_memory): Likewise.
25461 (grub_unmap_memory): Likewise.
25462 * include/grub/i386/multiboot/loader.h: Removed.
25463 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
25464 (NETBSD_BTINFO_CONSOLE): New definition.
25465 (NETBSD_BTINFO_SYMTAB): Likewise.
25466 (NETBSD_BTINFO_MODULES): Likewise.
25467 (NETBSD_BTINFO_FRAMEBUF): Likewise.
25468 (grub_netbsd_bootinfo): New struct.
25469 (grub_netbsd_btinfo_common): Use explicit bitsize.
25470 (grub_netbsd_btinfo_mmap_entry): Removed.
25471 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
25472 (grub_netbsd_btinfo_bootdisk): New struct.
25473 (grub_netbsd_btinfo_symtab): Likewise.
25474 (grub_netbsd_btinfo_serial): Likewise.
25475 (grub_netbsd_btinfo_modules): Likewise.
25476 (grub_netbsd_btinfo_framebuf): Likewise.
25477 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
25478 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
25480 (grub_openbsd_bootargs): Use explicit bitsize.
25481 (grub_openbsd_bootarg_console): New struct.
25482 (GRUB_OPENBSD_COM_MAJOR): New definition.
25483 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
25484 * include/grub/i386/pc/efiemu.h: Removed.
25485 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
25486 * include/grub/i386/qemu/loader.h: Removed.
25487 * include/grub/i386/relocator.h: Rewritten.
25488 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
25489 * include/grub/mips/memory.h: New file.
25490 * include/grub/mips/multiboot.h: Rewritten.
25491 * include/grub/mips/relocator.h: Rewritten.
25492 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
25493 (grub_vtop): New function.
25494 (grub_map_memory): Likewise.
25495 (grub_unmap_memory): Likewise.
25496 * include/grub/misc.h (ALIGN_DOWN): New definition.
25497 * include/grub/mm.h (grub_mm_check_real): New proto.
25498 (GRUB_MM_CHECK): New definition.
25499 * include/grub/mm_private.h: New file.
25500 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
25501 (grub_multiboot_get_mbi_size): Removed.
25502 (grub_multiboot_make_mbi): Change prottype.
25503 (grub_multiboot_set_accepts_video): New proto.
25504 (grub_multiboot_add_elfsyms): Likewise.
25505 (grub_multiboot_payload_eip): New variable.
25506 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
25508 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
25510 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
25511 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
25512 * include/grub/powerpc/ieee1275/loader.h: Removed.
25513 * include/grub/powerpc/memory.h: New file.
25514 * include/grub/powerpc/relocator.h: Likewise.
25515 * include/grub/relocator.h: Likewise.
25516 * include/grub/relocator_private.h: Likewise.
25517 * include/grub/sparc64/ieee1275/loader.h: Removed.
25518 * include/grub/x86_64/memory.h: New file.
25519 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
25520 (grub_xnu_heap_malloc): Likewise.
25521 (grub_xnu_heap_real_start): Removed.
25522 (grub_xnu_heap_start): Likewise.
25523 (grub_xnu_relocator): New variable.
25524 (grub_xnu_heap_target_start): Likewise.
25525 * tests/util/grub-shell.in: Support non-pc.
25526 * util/grub-mkimage.c (image_targets): Fix multiboot target.
25528 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25530 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
25532 (grub_bidi_logical_to_visual): Check that malloc succeded.
25533 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
25535 (grub_xputs_normal): Likewise.
25537 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25539 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
25542 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25544 * grub-core/efiemu/runtime/efiemu.sh: Removed.
25546 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25548 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
25550 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
25552 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
25555 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
25557 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
25559 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25561 * grub-core/normal/term.c (print_more): Fix a memory leak.
25562 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
25563 (grub_xputs_normal): Likewise.
25565 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25567 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
25568 the begining of the string
25570 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25572 * grub-core/script/script.c (grub_script_parse): Free parsed on
25575 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25577 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
25580 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25582 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
25585 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25587 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
25588 (scroll_up): Fix a memory leak.
25590 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
25592 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
25595 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
25597 Handle USB pendrives exposed as floppies.
25599 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
25601 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
25602 Check for partitions on all devices.
25604 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
25606 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
25607 (readkey): Likewise.
25609 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
25611 Multiple variable names support to "export" command.
25613 * normal/context.c (grub_cmd_export): "export" command supports
25614 multiple variable names.
25616 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
25618 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
25619 --target=drive output to Mach device name.
25621 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25623 New Automake based build system for GRUB.
25625 * ABOUT-NLS: New file.
25626 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
25627 in Makefile.util.def file.
25628 * Makefile.util.def: New file. Autogen build definitions file for
25630 * conf/Makefile.common: New file. Common variables for GRUB host
25631 utils and target modules.
25632 * conf/Makefile.extra-dist: New file. Extra files for make dist.
25633 * docs/Makefile.am: New file. Automake file for docs.
25634 * gentpl.py: New file. Python script to generate Autogen
25636 * grub-core/Makefile.am: New file. GRUB target modules' rules
25637 that doesn't fit in Makefile.core.def file.
25638 * grub-core/Makefile.core.def: New file. Autogen build
25639 definitions file for GRUB target modules.
25640 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
25641 specific setjmp.S file.
25642 * po/Makefile.am: New file.
25644 * .bzrignore: New ignores.
25645 * INSTALL: New requirements, without Ruby.
25646 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
25647 * autogen.sh: Updated to invoke autogen as necessary.
25648 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
25649 and defines for Automake conditionals.
25650 * geninit.sh: Refactoring.
25652 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
25654 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
25657 * include/grub/test.h: Fix functional test modules' naming.
25658 * grub-core/tests/example_functional_test.c: Fix test module name.
25660 * util/misc.c: Hosted versions' of grub functions for libgrub.a
25661 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
25662 * util/grub-editenv.c: Likewise.
25663 * util/grub-fstest.c: Likewise.
25664 * util/grub-mkdevicemap.c: Likewise.
25665 * util/grub-mkfont.c: Likewise.
25666 * util/grub-mkimage.c: Likewise.
25667 * util/grub-mkpasswd-pbkdf2.c: Likewise.
25668 * util/grub-probe.c: Likewise.
25669 * util/grub-script-check.c: Likewise.
25670 * util/i386/pc/grub-setup.c: Likewise.
25671 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25673 * tests/util/grub-shell.in: Fix override directory path.
25674 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
25675 * util/import_gcry.py: Create Makefile.gcry.def file instead.
25677 * util/lvm.c: Update #includes.
25678 * util/raid.c: Likewise.
25679 * util/resolve.c: Likewise.
25680 * grub-core/bus/emu/pci.c: Likewise.
25681 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
25682 * grub-core/lib/posix_wrap/string.h: Likewise.
25683 * grub-core/kern/emu/main.c: Likewise.
25685 * grub-core/gensymlist.sh: New file. Script for generating kernel
25687 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
25689 * grub-core/gentrigtables.c: Fix unused variable warnings.
25691 * Makefile.in: Removed.
25692 * conf/any-emu.rmk: Removed.
25693 * conf/common.rmk: Removed.
25694 * conf/i386-coreboot.rmk: Removed.
25695 * conf/i386-efi.rmk: Removed.
25696 * conf/i386-ieee1275.rmk: Removed.
25697 * conf/i386-multiboot.rmk: Removed.
25698 * conf/i386-pc.rmk: Removed.
25699 * conf/i386-qemu.rmk: Removed.
25700 * conf/i386.rmk: Removed.
25701 * conf/mips-yeeloong.rmk: Removed.
25702 * conf/mips.rmk: Removed.
25703 * conf/powerpc-ieee1275.rmk: Removed.
25704 * conf/sparc64-ieee1275.rmk: Removed.
25705 * conf/tests.rmk: Removed.
25706 * conf/x86-efi.rmk: Removed.
25707 * conf/x86_64-efi.rmk: Removed.
25708 * gendistlist.sh: Removed.
25709 * geninitheader.sh: Removed.
25710 * genkernsyms.sh.in: Removed.
25711 * genmk.rb: Removed.
25712 * gensymlist.sh.in: Removed.
25713 * mkinstalldirs: Removed.
25715 * grub-core/boot: ... to here.
25717 * grub-core/bus: ... to here.
25718 * commands: Moved ...
25719 * grub-core/commands: ... to here.
25721 * grub-core/disk: ... to here.
25722 * efiemu: Moved ...
25723 * grub-core/efiemu: ... to here.
25725 * grub-core/font: ... to here.
25727 * grub-core/fs: ... to here.
25728 * gencmdlist.sh: Moved ...
25729 * grub-core/gencmdlist.sh: ... to here.
25730 * genemuinit.sh: Moved ...
25731 * grub-core/genemuinit.sh: ... to here.
25732 * genemuinitheader.sh: Moved ...
25733 * grub-core/genemuinitheader.sh: ... to here.
25734 * genfslist.sh: Moved ...
25735 * grub-core/genfslist.sh: ... to here.
25736 * genhandlerlist.sh: Moved ...
25737 * grub-core/genhandlerlist.sh: ... to here.
25738 * genmoddep.awk: Moved ...
25739 * grub-core/genmoddep.awk: ... to here.
25740 * genmodsrc.sh: Moved ...
25741 * grub-core/genmodsrc.sh: ... to here.
25742 * genpartmaplist.sh: Moved ...
25743 * grub-core/genpartmaplist.sh: ... to here.
25744 * genparttoollist.sh: Moved ...
25745 * grub-core/genparttoollist.sh: ... to here.
25746 * genterminallist.sh: Moved ...
25747 * grub-core/genterminallist.sh: ... to here.
25748 * gentrigtables.c: Moved ...
25749 * grub-core/gentrigtables.c: ... to here.
25750 * genvideolist.sh: Moved ...
25751 * grub-core/genvideolist.sh: ... to here.
25752 * gettext: Moved ...
25753 * grub-core/gettext: ... to here.
25754 * gfxmenu: Moved ...
25755 * grub-core/gfxmenu: ... to here.
25756 * gnulib: Moved ...
25757 * grub-core/gnulib: ... to here.
25759 * grub-core/hello: ... to here.
25761 * grub-core/hook: ... to here.
25763 * grub-core/io: ... to here.
25765 * grub-core/kern: ... to here.
25767 * grub-core/lib: ... to here.
25768 * loader: Moved ...
25769 * grub-core/loader: ... to here.
25771 * grub-core/mmap: ... to here.
25772 * normal: Moved ...
25773 * grub-core/normal: ... to here.
25774 * partmap: Moved ...
25775 * grub-core/partmap: ... to here.
25776 * parttool: Moved ...
25777 * grub-core/parttool: ... to here.
25778 * script: Moved ...
25779 * grub-core/script: ... to here.
25781 * grub-core/term: ... to here
25782 * tests/example_functional_test.c: Moved ...
25783 * grub-core/tests/example_functional_test.c: ... to here.
25784 * tests/lib/functional_test.c: Moved ...
25785 * grub-core/tests/lib/functional_test.c: ... to here.
25786 * tests/lib/test.c: Moved ...
25787 * grub-core/tests/lib/test.c: ... to here.
25789 * grub-core/video: ... to here.
25791 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
25793 Replace --enable-grub-emu-modules with grub-emu-lite.
25795 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
25798 * include/grub/emu/misc.h (grub_emu_init): New prototype.
25799 * kern/emu/full.c: New file. For grub-emu specific initialization.
25800 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
25801 * kern/emu/main.c: Call initialization function grub_emu_init.
25803 * Makefile.in: Include grub-emu-lite in install.
25804 * commands/parttool.c: Use grub_no_autoload to differentiate
25805 between grub-emu and grub-emu-lite.
25806 * include/grub/misc.h: New variable grub_no_autoload.
25808 * conf/any-emu.rmk: New rules for grub-emu-lite.
25809 * configure.ac: Remove --enable-grub-emu-modules.
25810 * genmk.rb: Cleanup unnecessary rules.
25811 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
25813 * normal/main.c: Don't load list files on grub-emu-lite.
25814 * util/misc.c (grub_arch_sync_caches): Removed.
25816 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
25818 * kern/mips/startup.S (grub_prefix): Update comment to refer to
25819 grub-mkimage rather than grub-mkelfimage.
25820 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
25822 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
25824 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
25825 a key after CapsLock or NumLock. It's just a qemu bug.
25827 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25829 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
25830 needed by libusb wrapper.
25832 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
25834 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
25836 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
25838 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
25839 --nounzip is passed.
25841 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
25843 USB hotunplugging and USB serial support.
25845 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
25846 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
25847 (grub_uhci_transfer): Respect timeout and set *actual.
25848 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
25849 non-standard length.
25850 (grub_usb_device_attach): Autoload modules.
25851 (GRUB_MOD_INIT): Set grub_term_poll_usb.
25852 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
25853 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
25855 (grub_usb_add_hub): Fill nports and children.
25856 (attach_root_port): Receive hub instead of controller.
25857 All users updated. Fill hub->devices.
25858 (grub_usb_root_hub): Allocate hub->devices.
25859 (detach_device): New function.
25860 (poll_nonroot_hub): Fill children and detach devices.
25861 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
25862 actual arguments. All users updated.
25863 (grub_usb_bulk_read_extended): New function.
25864 * bus/usb/serial/common.c: New file.
25865 * bus/usb/serial/ftdi.c: Likewise.
25866 * bus/usb/serial/pl2303.c: Likewise.
25867 * commands/terminal.c (handle_command): Support wildcard.
25868 * commands/usbtest.c: Output "Unknown" instead of empty string.
25869 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
25870 (usbserial_common_mod_SOURCES): New variable.
25871 (usbserial_common_mod_CFLAGS): Likewise.
25872 (usbserial_common_mod_LDFLAGS): Likewise.
25873 (pkglib_MODULES): Add usbserial_pl2303.mod.
25874 (usbserial_pl2303_mod_SOURCES): New variable.
25875 (usbserial_pl2303_mod_CFLAGS): Likewise.
25876 (usbserial_pl2303_mod_LDFLAGS): Likewise.
25877 (pkglib_MODULES): Add usbserial_ftdi.mod.
25878 (usbserial_ftdi_mod_SOURCES): New variable.
25879 (usbserial_ftdi_mod_CFLAGS): Likewise.
25880 (usbserial_ftdi_mod_LDFLAGS): Likewise.
25881 (pkglib_MODULES): Add serial.mod.
25882 (serial_mod_SOURCES): New variable.
25883 (serial_mod_CFLAGS): Likewise.
25884 (serial_mod_LDFLAGS): Likewise.
25885 * conf/i386-pc.rmk: Likewise.
25886 * conf/mips-yeeloong.rmk: Likewise.
25887 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
25888 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
25889 * disk/usbms.c (first_available_slot): New variable.
25890 (grub_usbms_attach): Don't reuse free slots due to potential cache
25892 * include/grub/serial.h: Moved to ..
25893 * include/grub/ns8250.h: ...this.
25894 * include/grub/serial.h: New file.
25895 * include/grub/term.h (grub_term_poll_usb): New variable.
25896 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
25897 readkey. All users updated.
25898 (grub_terminfo_output_state): Pass term to put.
25899 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
25900 (grub_usb_controller_dev): Add timeout and actual arguments to
25901 transfer. All users updated.
25902 (grub_usb_interface): New field detach_data.
25903 (grub_usb_device): New fields children and nports.
25904 (grub_usb_ep_type_t): New type.
25905 (grub_usb_get_ep_type): New function.
25906 (grub_usb_bulk_read_extended): Likewise.
25907 * include/grub/usbdesc.h (grub_usb_desc): New type.
25908 * include/grub/usbserial.h: New file.
25909 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
25910 * kern/term.c (grub_term_poll_usb): New variable.
25911 (grub_getkey): Call grub_term_poll_usb if set.
25912 (grub_checkkey): Likewise.
25913 (grub_getkeystatus): Likewise.
25914 * term/serial.c: Moved controller-specific parts to ...
25915 * term/ns8250.c: ... here.
25916 * term/serial.c: Mostly rewritten.
25917 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
25920 2010-08-20 Robert Millan <rmh@gnu.org>
25922 Make kFreeBSD code more generic to support ext2fs as root, ufs as
25923 a separate module and maybe other interesting combinations.
25925 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
25926 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
25927 (kfreebsd_entry): Add generic filesystem module load routine.
25928 Map GRUB `ext2' to kFreeBSD `ext2fs'.
25930 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25932 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
25933 "numcenter" (I misunderstood the purpose of this entry).
25934 * docs/grub.texi (sendkey): Likewise.
25936 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
25938 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
25939 status flag options; simply omitting the option is equivalent and
25940 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
25941 (keysym_table): Rename "num5numlock" to "numlock".
25942 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
25943 can uniformly say that only the last of multiple `sendkey'
25944 invocations has any effect.
25945 * docs/grub.texi (sendkey): New section.
25947 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
25949 * commands/i386/pc/sendkey.c (options): Fix three typos.
25951 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
25953 Implement sendkey support.
25955 * commands/i386/pc/sendkey.c: New file.
25956 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
25957 (sendkey_mod_SOURCES): New variable.
25958 (sendkey_mod_CFLAGS): Likewise.
25959 (sendkey_mod_LDFLAGS): Likewise.
25961 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25963 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
25964 fix warnings from Autoconf.
25966 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
25968 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
25969 to avoid false positives with some assemblers that output things
25970 like "someprefix_func" as part of their output.
25972 2010-08-15 Robert Millan <rmh@gnu.org>
25974 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
25976 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
25977 grub_get_libzfs_handle() errors.
25979 2010-08-14 Robert Millan <rmh@gnu.org>
25981 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
25982 filesystem is not ZFS.
25984 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25986 Fix for misspelled color names defaulting to black/black (bug
25987 reported by Doug Nazar)
25989 * include/grub/normal.h (grub_parse_color_name_pair): Add return
25990 status to prototype.
25991 * normal/color.c (grub_parse_color_name_pair): Return failure
25993 (grub_env_write_color_normal): Ignore bad color names.
25994 (grub_env_write_color_highlight): Likewise.
25995 * normal/main.c (GRUB_MOD_INIT): Set default color names.
25997 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
25999 "shift" command support to GRUB script.
26001 * include/grub/script_sh.h (grub_script_shift): New prototype.
26002 * script/execute.c (grub_script_shift): New function.
26003 * script/main.c (grub_script_init): Register shift command.
26004 (grub_script_fini): Unregister shift command.
26005 * util/grub-script-check.c (grub_script_cmd_shift): New function.
26007 * tests/grub_script_shift.in: New testcase.
26008 * conf/tests.rmk: Rules for new testcase.
26010 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26012 "continue" command support to GRUB script.
26014 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
26015 (grub_script_break): Continue support.
26016 * script/main.c (grub_script_init): Register continue command.
26017 (grub_script_fini): Unregister continue command.
26019 * tests/grub_script_continue.in: New testcase.
26020 * conf/tests.rmk: Rules for new testcase.
26022 2010-08-12 BVK Chaitanya <bvk@dbook>
26024 "break" command support to GRUB script.
26026 * conf/common.rmk: Rule updates to grub-script-check.
26027 * include/grub/misc.h (grub_min): New function.
26028 * include/grub/script_sh.h (grub_script_init): New prototype.
26029 (grub_script_fini): New prototype.
26030 (grub_script_break): New prototype.
26031 * script/main.c (grub_script_init): New function.
26032 (grub_script_fini): New function.
26033 * script/execute.c (grub_script_break): New function.
26034 * normal/main.c: Calls to grub_script_{init,fini}.
26035 * util/grub-script-check.c (grub_script_break): New function.
26037 * tests/grub_script_break.in: New testcase.
26038 * conf/tests.rmk: Rules for new test case.
26040 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26042 Function parameters support to GRUB script.
26044 * script/yylex.l (VARIABLE): Regular expression update.
26045 * script/function.c (grub_script_function_call): Moved ...
26046 * script/execute.c (grub_script_function_call): ... to here.
26047 (grub_script_execute_arglist_to_argv): Removed.
26048 (grub_script_arglist_to_argv): New function.
26049 * script/argv.c: New file.
26050 (grub_script_argv_free): New function.
26051 (grub_script_argv_next): Likewise.
26052 (grub_script_argv_append): Likewise.
26053 (grub_script_argv_split_append): Likewise.
26054 * include/grub/script_sh.h (grub_script_argv): New struct.
26055 (grub_script_argv_free): New function.
26056 (grub_script_argv_next): Likewise.
26057 (grub_script_argv_append): Likewise.
26058 (grub_script_argv_split_append): Likewise.
26060 * conf/common.rmk (normal.mod): New source script/argv.c.
26062 * tests/grub_script_echo1.in: More tests.
26063 * tests/grub_script_vars1.in: Likewise.
26064 * tests/grub_script_functions.in: New test case.
26065 * conf/tests.rmk: Rules for new testcase.
26067 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
26069 Remove grub_script_cmdblock struct.
26071 * include/grub/script_sh.h: Remove grub_script_cmdblock.
26072 * script/parser.y: Likewise.
26073 * script/execute.c: Rename cmdblock suffix to cmdlist.
26074 * script/script.c: Likewise.
26075 * util/grub-script-check.c: Likewise.
26077 2010-08-11 Yves Blusseau <blusseau@zetam.org>
26079 * .bzrignore: add grub-macho2img
26081 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26083 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
26085 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
26087 Remove the dump of sm712 initialisation sequence.
26089 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
26090 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
26091 (GRUB_VGA_IO_MISC_WRITE): Likewise.
26092 (GRUB_VGA_CR_*): Added many registers.
26093 (GRUB_VGA_SR_*): Likewise.
26094 (GRUB_VGA_GR_*): Likewise.
26095 (grub_vga_write_arx): New function.
26096 (grub_video_hw_config): New struct.
26097 (grub_vga_set_geometry): New function.
26098 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
26099 GRUB_PCI_CLASS_SUBCLASS_VGA.
26100 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
26101 * video/sm712.c (grub_sm712_write_reg): New function
26102 (grub_sm712_read_reg): Likewise.
26103 (grub_sm712_sr_write): Likewise.
26104 (grub_sm712_gr_write): Likewise.
26105 (grub_sm712_cr_write): Likewise.
26106 (grub_sm712_write_arx): Likewise.
26107 (grub_sm712_cr_shadow_write): Likewise.
26108 (grub_sm712_write_dda_lookup): Likewise.
26109 (grub_video_sm712_setup): Initialise the video rather then
26110 blindly replay the dump.
26111 (main) [TEST]: Add a routine to be able to compile as standalone for
26113 * video/sm712_init.c (sm712_init): Removed.
26114 (sm712_sr_seq1): New array.
26115 (sm712_sr_seq2): Likewise.
26117 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26119 * include/grub/vga.h: Add missing grub/pci.h include.
26121 2010-08-10 Yves Blusseau <blusseau@zetam.org>
26123 * util/grub-macho2img.c (main): fix typo
26125 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
26127 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
26128 (grub_vga_gr_read): Likewise.
26129 (grub_vga_cr_write): Likewise.
26130 (grub_vga_cr_read): Likewise.
26131 (grub_vga_sr_write): Likewise.
26132 (grub_vga_sr_read): Likewise.
26133 (grub_vga_palette_read): Likewise.
26134 (grub_vga_palette_write): Likewise.
26135 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
26136 (grub_sm712_sr_read): New function.
26137 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
26138 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
26140 2010-08-09 Robert Millan <rmh@gnu.org>
26142 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
26143 out unused variables on non-ZFS build.
26145 2010-08-08 Robert Millan <rmh@gnu.org>
26147 Fix path generation for sub-filesystems in ZFS.
26149 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
26152 2010-08-08 Robert Millan <rmh@gnu.org>
26154 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
26156 2010-08-08 Robert Millan <rmh@gnu.org>
26158 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
26159 exist, issue a proper error message (rely on `ls' for translated
26162 2010-08-08 Robert Millan <rmh@gnu.org>
26164 Fix grub-probe invocation.
26166 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
26168 2010-08-04 Robert Millan <rmh@gnu.org>
26170 * configure.ac: Remove checks for getfsstat() and getmntany().
26171 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
26172 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
26173 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
26174 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
26175 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
26177 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
26178 via find_mount_point_from_dir() and getfsstat() / getmntany().
26180 2010-08-04 Robert Millan <rmh@gnu.org>
26182 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26183 (grub_find_zpool_from_mount_point): Merge into ...
26184 (grub_find_zpool_from_dir): ... this.
26185 * kern/emu/misc.c: Likewise.
26188 (grub_make_system_path_relative_to_its_root): Replace
26189 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
26190 with grub_find_zpool_from_dir().
26191 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
26193 2010-08-04 Robert Millan <rmh@gnu.org>
26195 Support OpenSolaris in ZFS device resolution.
26197 * configure.ac: Check for getmntany().
26198 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
26199 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
26202 2010-08-03 Robert Millan <rmh@gnu.org>
26204 Fix grub-emu build.
26206 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
26207 * include/grub/emu/misc.h: ... here.
26209 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
26210 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
26212 * util/misc.c: Remove `<grub/util/libzfs.h>'.
26213 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
26214 (grub_get_libzfs_handle): Move to ...
26215 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
26216 (grub_get_libzfs_handle): ... here.
26218 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
26220 * script/execute.c (grub_script_execute_cmdline): Check for NULL
26221 as command name case.
26223 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
26225 * disk/raid.c (insert_array): Select unique numbers for named arrays
26226 as well, for use as keys in the disk cache.
26228 2010-08-01 Robert Millan <rmh@gnu.org>
26230 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
26231 kFreeBSD device name, except on ZFS where the filesystem label is
26233 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
26234 `/boot/zfs/zpool.cache'.
26235 Set mountfrom kernel variable using ${kfreebsd_device}.
26237 2010-08-01 Robert Millan <rmh@gnu.org>
26239 Make it even harder to use uninitialized `libzfs_handle' (and
26240 make the interface a bit simpler).
26242 * include/grub/util/misc.h (grub_util_init_libzfs)
26243 (libzfs_handle): Remove.
26244 (grub_get_libzfs_handle): New prototype.
26246 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
26248 (grub_util_init_libzfs): Remove.
26249 (grub_get_libzfs_handle): New function.
26251 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
26252 grub_get_libzfs_handle() to obtain a libzfs handle instead of
26253 accessing `libzfs_handle' directly.
26255 2010-08-01 Robert Millan <rmh@gnu.org>
26257 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26258 (grub_find_zpool_from_mount_point): New function prototypes.
26260 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26261 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26263 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26264 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26265 `static' attribute.
26267 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26268 finding zpool from mount point into ...
26269 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26271 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26272 requested path is part of a ZFS pool, use
26273 grub_find_zpool_from_mount_point() to detect its filesystem name,
26274 and generate a path with `/fsname@path' syntax.
26276 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26278 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
26279 (void) rather than () so that this is a proper prototype.
26281 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26283 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
26285 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26287 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
26288 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
26290 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26292 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
26294 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26296 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
26298 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26300 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
26301 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
26302 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
26303 disable gfxpayload.
26304 (Shell-like scripting): Add real content.
26305 (Serial terminal): Suggest `terminal_input serial; terminal_output
26306 serial' rather than putting the two commands on separate lines,
26307 since console input will be inoperative after the first command.
26308 (menuentry): Document --class, --users, and --hotkey options.
26309 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
26310 Vladimir Serbinenko).
26312 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
26313 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26315 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
26317 2010-08-01 Robert Millan <rmh@gnu.org>
26319 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
26320 (grub_find_zpool_from_mount_point): New function prototypes.
26322 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
26323 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
26325 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
26326 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
26327 `static' attribute.
26329 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
26330 finding zpool from mount point into ...
26331 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
26333 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
26334 requested path is part of a ZFS pool, use
26335 grub_find_zpool_from_mount_point() to detect its filesystem name,
26336 and generate a path with `/fsname@path' syntax.
26338 2010-08-01 Robert Millan <rmh@gnu.org>
26340 Prevent accidental use of uninitialized libzfs_handle.
26342 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
26343 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
26344 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
26346 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
26348 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
26349 util/grub.d/10_linux.in). Fixes Debian bug #591093.
26351 2010-08-01 Robert Millan <rmh@gnu.org>
26353 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
26355 2010-07-31 Robert Millan <rmh@gnu.org>
26357 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
26359 2010-07-31 Robert Millan <rmh@gnu.org>
26361 * kern/emu/misc.c: Add missing license header.
26363 2010-07-31 Robert Millan <rmh@gnu.org>
26365 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
26367 * include/grub/util/libnvpair.h: Include `<config.h>'.
26368 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
26369 declaring libnvpair prototypes ourselves.
26370 * include/grub/util/libzfs.h: Include `<config.h>'.
26371 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
26372 declaring libzfs prototypes ourselves.
26374 (libzfs_handle): Moved to ...
26375 * include/grub/util/misc.h (libzfs_handle): ... here.
26376 Include `<grub/util/libzfs.h>'.
26378 2010-07-30 Robert Millan <rmh@gnu.org>
26380 * include/grub/emu/misc.h: Add missing license header.
26382 2010-07-30 Robert Millan <rmh@gnu.org>
26384 Enable `grub-probe -t device' resolution on ZFS.
26386 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
26387 * include/grub/util/libnvpair.h: New file.
26388 * include/grub/util/libzfs.h: New file.
26390 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
26391 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
26392 `<grub/util/libnvpair.h>'.
26393 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
26395 (find_mount_point_from_dir): New static function.
26396 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
26398 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
26399 find_root_device_from_libzfs() before ressorting to find_root_device().
26401 * include/grub/util/misc.h (grub_util_init_libzfs): New function
26403 * util/misc.c: Include `<grub/util/libzfs.h>'.
26404 (grub_util_init_libzfs): New function.
26405 [HAVE_LIBZFS] (libzfs_handle): New global variable.
26406 [HAVE_LIBZFS] (fini_libzfs): New static function.
26407 (grub_util_init_libzfs): New function.
26408 * util/grub-probe.c (main): Call grub_util_init_libzfs().
26410 2010-07-30 Robert Millan <rmh@gnu.org>
26412 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
26413 (xmalloc, xrealloc, xstrdup, xasprintf): Add
26414 `warn_unused_result' attribute.
26415 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
26416 (grub_xasprintf, grub_xvasprintf): Likewise.
26417 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
26419 2010-07-29 Robert Millan <rmh@gnu.org>
26421 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
26422 (probe): Handle `PRINT_FS_LABEL'.
26423 (main): Handle `-t fs_label'.
26425 2010-07-29 Robert Millan <rmh@gnu.org>
26427 * configure.ac: Remove grub-mkisofs checks.
26429 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
26431 * util/ieee1275/grub-install.in: Don't use empty grub_device.
26432 Reported by: Lennart Sorensen.
26434 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26436 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
26437 prior to terminal_input/terminal_output separation. It's been over 1.5
26438 years and those versions weren't widely deployed.
26440 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
26442 * disk/raid.c (insert_array): Don't count named arrays when looking
26443 for unused array numbers.
26444 Reported and tested by: Michael Guntsche.
26446 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26448 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
26449 implementation of this so that grub-emu links again, with a note
26450 that this should support hotplugging in the future.
26452 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26454 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26456 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26458 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
26460 (grub_loopback_close): Remove empty function.
26461 (grub_loopback_dev): Remove close method.
26463 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26465 Disable EFI cursor when the EFI console becomes inactive.
26467 * term/efi/console.c (grub_efi_console_init): New function.
26468 (grub_efi_console_fini): New function.
26469 (grub_console_term_output): Register init and fini methods.
26471 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26473 * tests/util/grub-shell-tester.in: Remove bashism and declare as
26476 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26478 * disk/loopback.c (grub_loopback): Replace filename with file.
26479 (delete_loopback): Handle new semantics.
26480 (grub_cmd_loopback): Likewise.
26481 (grub_loopback_iterate): Likewise.
26482 (grub_loopback_close): Likewise.
26484 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26486 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
26488 Reported by: Tito Keitel.
26490 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26492 * docs/grub.texi (Naming convention): Document new naming convention.
26494 2010-07-20 Vadim Solomin <vadic052@gmail.com>
26495 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26497 Generate device.map in something closer to the old ordering.
26499 * util/deviceiter.c (struct device): New declaration.
26500 (compare_file_names): Rename to ...
26501 (compare_devices): ... this. Sort by kernel name in preference to
26502 the stable by-id name, but keep the latter as a fallback comparison.
26503 Update header comment.
26504 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
26505 of `struct device' rather than of plain file names.
26507 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
26509 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
26512 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
26514 * commands/acpi.c (setup_common_tables): Use sizeof instead of
26516 (setv1table): Likewise.
26518 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26520 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
26521 removing the homehost if present.
26522 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
26523 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
26524 removing the homehost if present.
26525 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
26527 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
26529 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
26530 parameter. Set its pointer target to 0.
26531 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
26532 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
26533 `data_offset' value from the superblock for 1.x metadata.
26534 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
26535 data on the device.
26536 (insert_array): Record the start sector of data on the device.
26537 (grub_raid_register): Pass start_sector parameters to
26538 grub_raid_list->detect and insert_array.
26539 * include/grub/raid.h (struct grub_raid_array): Add start_sector
26541 (struct grub_raid): Add start_sector parameter to `detect'.
26543 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
26544 __attribute__ ((packed)), leaving a comment.
26545 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
26546 (grub_mdraid_detect_09): ... here and ...
26547 (grub_mdraid_detect_1x): ... here.
26549 2010-07-20 Peter Henn <peter.henn@web.de>
26551 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
26552 chunk size and disk size, which are already given as sector counts
26553 as distinct from the 0.90 units. Fetch the correct device number
26554 from the role table instead of using the table index.
26556 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
26558 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
26559 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
26560 (WriteMostly1): New macro.
26561 Set array->name to NULL for metadata format 0.90. Add support for
26562 metadata 1.x. Fix some comments.
26563 * disk/raid.c (): Add support for name based RAID arrays. Fix a
26565 * util/getroot.c (grub_util_get_grub_dev): Add support for
26566 /dev/md/name style devices.
26568 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
26570 * .bzrignore: Ignore 20_linux_xen.
26572 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
26574 * util/import_unicode.py: Remove unnecessary imports.
26576 2010-07-17 Aleš Nesrsta <starous@volny.cz>
26578 Hotplugging and USB hub support.
26580 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
26581 (grub_ohci): Likewise.
26582 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
26583 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
26584 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
26585 (GRUB_OHCI_CTRL_EDS): Likewise.
26586 (GRUB_OHCI_BULK_EDS): Likewise.
26587 (GRUB_OHCI_TDS): Likewise.
26588 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
26589 (grub_ohci_ed_phys2virt): New function.
26590 (grub_ohci_virt_to_phys): Likewise.
26591 (grub_ohci_td_phys2virt): Likewise.
26592 (grub_ohci_td_virt2phys): Likewise.
26593 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
26595 (grub_ohci_find_ed): New function.
26596 (grub_ohci_alloc_td): Likewise.
26597 (grub_ohci_free_td): Likewise.
26598 (grub_ohci_free_tds): Likewise.
26599 (grub_ohci_transfer): Use previously allocated memory.
26600 (grub_ohci_portstatus): Reset status changed bit.
26601 (grub_ohci_detect_dev): Supply status changed.
26602 (grub_ohci_fini_hw): Free memory.
26603 (grub_ohci_restore_hw): Reallocate memory.
26604 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
26605 Reset status change.
26606 (grub_uhci_detect_dev): Supply status_change.
26607 * bus/usb/usb.c (attach_hooks): New var.
26608 (grub_usb_device_attach): New function.
26609 (grub_usb_register_attach_hook_class): Likewise.
26610 (grub_usb_unregister_attach_hook_class): Likewise.
26611 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
26612 (grub_usb_add_hub): Reset connection changed bit.
26613 (attach_root_port): New function.
26614 (grub_usb_root_hub): Likewise.
26615 (poll_nonroot_hub): Likewise.
26616 (grub_usb_poll_devices): Likewise.
26617 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
26618 * disk/usbms.c (grub_usbms_open): Use device hooks.
26619 (grub_usbms_iterate) :Poll devices.
26620 (grub_usbms_finddevs): Split into ...
26621 (grub_usbms_attach): ... this ...
26622 (grub_usbms_attach): ... and this.
26623 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
26625 (grub_usb_interface): New fields attached and detach_hook.
26626 (grub_usb_attach_hook_class): New type.
26627 (grub_usb_attach_desc): New struct.
26628 (grub_usb_register_attach_hook_class): New function.
26629 (grub_usb_unregister_attach_hook_class): Likewise.
26630 (grub_usb_poll_devices): Likewise.
26631 (grub_usb_device_attach): Likewise.
26632 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
26633 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
26635 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26637 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
26638 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
26639 delta determination style. Works with most NetBSD partitions too.
26641 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26643 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
26644 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
26646 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
26648 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
26650 2010-07-14 Anton Blanchard <anton@samba.org>
26652 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
26655 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26657 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
26659 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
26661 * kern/partition.c (grub_partition_check_containment): New function to
26662 check that a partition is physically contained in a parent. Since
26663 offsets are relative (and non-negative), this reduces to checking that
26664 the partition ends before its parent.
26665 (grub_partition_map_probe): Discard out-of-range sub-partitions.
26666 (grub_partition_iterate): Likewise.
26667 * include/grub/partition.h (grub_partition_map): Slightly more detailed
26669 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
26670 partitions that start before their parent, and add debug printfs.
26672 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26674 * Makefile.in (.SUFFIX): Spell correctly, as ...
26675 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
26676 bare module name without `.mod', e.g. `test') tried to invoke a
26679 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
26681 * README: Point to the Info manual.
26683 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
26685 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
26686 2nd superblock position from partition size.
26688 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
26690 * Makefile.in (MAINTAINER_CLEANFILES): Remove
26691 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
26692 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
26695 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26697 Restructure SCSI .id handling.
26698 Reported and tested by: Aleš Nesrsta.
26700 * disk/ata.c (grub_atapi_close): Removed. All users updated.
26701 (grub_atapi_dev): Changed .name to "ata". New field .id.
26702 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
26703 (grub_usbms_dev): New field .id.
26704 * disk/scsi.c (grub_scsi_iterate): Generate name.
26705 (grub_scsi_open): Parse name.
26706 * include/grub/scsi.h (grub_make_scsi_id): New function.
26707 (grub_scsi_dev): Change iterate and open to number instead of naming
26708 busses. All users updated.
26709 (grub_scsi): Remove name. Add .bus.
26711 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26713 * commands/help.c (grub_cmd_help): Fix a typo.
26715 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26717 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
26718 Reported and tested by: Colin Watson.
26720 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
26722 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
26725 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
26727 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
26729 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
26731 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
26734 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26736 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
26737 and disk/raid6_recover.c.
26738 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26739 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26741 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26743 * term/gfxterm.c (repaint_schedulded): Rename to ...
26744 (repaint_scheduled): ... this. Update all callers.
26745 (repaint_was_schedulded): Rename to ...
26746 (repaint_was_scheduled): ... this. Update all callers.
26748 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26750 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
26751 which we expect to be handled by upper layers.
26753 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
26755 * bus/usb/usbhub.c: #include time.h header.
26757 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26759 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
26760 entry_name also for entries without stat blocks (e.g. ".."); fixes
26761 corruption of the first entry in a directory.
26763 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
26765 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
26766 after setting gfxterm as the active terminal. GRUB_BACKGROUND
26767 doesn't work otherwise.
26769 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26771 * docs/grub.texi (Features): Update list of supported file systems.
26772 (GNU/Linux): Update for GRUB 2.
26773 (Serial terminal): Remove mention of --disable-serial, which was a
26774 GRUB Legacy configure option. Update instructions to use
26775 `terminal_input' and `terminal_output' rather than `terminal'.
26776 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
26777 configuration' and `Installing GRUB using grub-install'.
26778 (Menu entry editor): Update for GRUB 2.
26779 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
26780 Document new -a, -u, and -v options.
26781 (initrd): New section.
26782 (initrd16): New section.
26783 (linux): New section.
26784 (linux16): New section.
26785 (search): The `var' argument to `--set' is optional.
26786 (GRUB only offers a rescue shell): Go into a little more detail on
26789 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26791 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
26793 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26795 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
26796 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
26798 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
26800 * util/i386/pc/grub-setup.c (setup): Rename prefix to
26801 install_prefix, in line with install_dos_part and install_bsd_part.
26802 Add new prefix variable, which is copied to install_prefix after
26803 comparing core.img in memory with the one read from disk in the
26804 no-embedding case, and use that rather than overwriting
26805 install_prefix immediately when installing to a partition.
26806 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
26809 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26811 * configure.ac: Avoid == in test command, it's not portable.
26812 * util/grub.d/30_os-prober.in: Likewise.
26814 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
26816 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
26818 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
26820 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
26821 multiple (top-level) partmaps.
26823 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26825 * util/i386/efi/grub-install.in: Don't use empty grub_device.
26826 Reported by: Tino Keitel.
26828 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
26830 Bidi and diacritics support.
26832 * Makefile.in (widthspec.bin): New target.
26833 (widthspec.h): Likewise.
26834 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
26835 * autogen.sh: Generate unidata.c.
26836 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
26837 * commands/ls.c (grub_ls_list_devices): Likewise.
26838 (grub_ls_list_files): Likewise.
26839 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
26840 (grub_mini_cmd_lsmod): Likewise.
26841 * commands/read.c: Likewise.
26842 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
26843 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
26844 * lib/arg.c (grub_arg_show_help): Likewise.
26845 * lib/crypto.c (grub_password_get): Likewise.
26846 * normal/auth.c (grub_username_get): Likewise.
26847 * normal/misc.c (grub_normal_print_device_info): Likewise.
26848 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
26849 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
26850 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
26851 (normal/charset.c_DEPENDENCIES): New variable.
26852 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
26853 (pkglib_MODULES): Remove charset.mod.
26854 (charset_mod_SOURCES): Removed.
26855 (charset_mod_CFLAGS): Likewise.
26856 (charset_mod_LDFLAGS): Likewise.
26857 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
26858 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
26860 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26861 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
26862 (kernel_img_HEADERS): Add terminfo.h.
26863 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
26864 Fill ->font. Reverse ascii bitmaps.
26865 (grub_font_get_xheight): New function.
26866 * font/font.c (grub_font_get_string_width): Moved from here ...
26867 * gfxmenu/font.c (grub_font_get_string_width): ... here.
26868 * font/font.c (grub_font_draw_string): Moved from here ...
26869 * gfxmenu/font.c (grub_font_draw_string): ... here.
26870 * font/font.c (grub_font_dup_glyph): New function.
26871 (grub_font_blit_glyph): Likewise.
26872 (grub_font_blit_glyph_mirror): Likewise.
26873 (blit_comb): Likewise.
26874 (grub_font_construct_dry_run): Likewise.
26875 (grub_font_get_constructed_device_width): Likewise.
26876 (grub_font_construct_glyph): Likewise.
26877 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
26878 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
26879 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
26880 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
26881 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
26882 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
26883 (grub_font_get_xheight): New proto.
26884 (grub_font_get_constructed_device_width): Likewise.
26885 (grub_font_construct_glyph): Likewise.
26886 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
26887 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
26888 * include/grub/font.h (grub_font_draw_string): Moved from here ...
26889 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
26890 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
26891 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
26892 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
26893 (grub_console_getcharwidth): Likewise.
26894 * include/grub/misc.h (grub_xputs): New proto.
26895 (grub_puts): Inlined.
26896 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
26897 (grub_normal_get_line_counter): Removed.
26898 (grub_install_newline_hook): Likewise.
26899 (grub_normal_get_char_counter): New proto.
26900 (grub_normal_reset_more): Likewise.
26901 (grub_xputs_normal): Likewise.
26902 * include/grub/powerpc/ieee1275/console.h: Removed.
26903 * include/grub/sparc64/ieee1275/console.h: Likewise.
26904 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
26905 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
26906 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
26907 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
26908 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
26909 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
26910 (grub_term_input): Pass reference to self. All users updated.
26911 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
26912 Pass reference to self. New fields normal_color, highlight_color and
26913 data. All users updated.
26914 (grub_putchar): Removed.
26915 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
26916 (grub_unicode_estimate_width): New function.
26917 (grub_term_getcharwidth): Add defaults.
26918 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
26919 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
26920 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
26921 (grub_cls): Remove EXPORT_FUNC.
26922 (grub_setcolorstate): Inline.
26923 (grub_newline_hook): Removed.
26924 * include/grub/terminfo.h: Rewritten. All users updated.
26925 * include/grub/unicode.h: New file.
26926 * include/grub/video.h (grub_video_signed_rect): New type.
26927 * kern/emu/console.c (grub_console_highlight_color): Removed.
26928 (grub_console_normal_color): Likewise.
26929 (grub_console_standard_color): Made static.
26930 (grub_ncurses_putchar): Remove mapping.
26931 (grub_ncurses_getcharwidth): Removed.
26932 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
26933 (grub_ncurses_setcolor): Removed.
26934 (grub_ncurses_getcolor): Likewise.
26935 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
26936 (grub_console_putchar): ... this.
26937 (grub_console_putchar): Handle argument difference.
26938 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
26939 console_init_early and console_init_lately.
26940 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
26941 * kern/misc.c (grub_puts): Removed.
26942 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
26943 (grub_vsnprintf_real): Remove str = NULL support.
26944 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
26945 * normal/charset.c (grub_utf8_to_ucs4): ... here.
26946 * kern/term.c (grub_putcode): Renamed to ...
26947 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
26948 (grub_putchar): Removed.
26949 (grub_xputs_dumb): New function.
26950 (grub_xputs): New variable.
26951 * lib/charset.c: Move from here ...
26952 * normal/charset.c: ... to here.
26953 (grub_ucs4_to_utf8): New function.
26954 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
26955 (join_types): New variable.
26956 (unpack_join): New function.
26957 (bidi_types): New variable.
26958 (unpack_bidi): New function.
26959 (get_bidi_type): Likewise.
26960 (get_join_type): Likewise.
26961 (is_mirrored): Likewise.
26962 (grub_unicode_get_comb_type): Likewise.
26963 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
26964 (is_type_after): Likewise.
26965 (grub_unicode_aglomerate_comb): Likewise.
26966 (bidi_line_wrap): Likewise.
26967 (grub_bidi_line_logical_to_visual): Likewise.
26968 (grub_bidi_logical_to_visual): Likewise.
26969 (grub_unicode_mirror_code): Likewise.
26970 (grub_unicode_shape_code): Likewise.
26971 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
26972 Don't use grub_putchar.
26973 * normal/main.c (grub_normal_init_page): Use grub_putcode.
26974 (grub_normal_reader_init): Likewise.
26975 (grub_xputs_saved): New variable.
26976 (GRUB_MOD_INIT): Set grub_xputs.
26977 (GRUB_MOD_FINI): Restore grub_xputs.
26978 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
26979 (menu_init): Avoid printing gfxmenu error.
26980 (show_menu): Use grub_normal_get_char_counter.
26981 * normal/menu_entry.c (update_screen): Fix out-of-array.
26982 (complete): Avoid NULL dereferencing.
26983 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
26984 * normal/menu_text.c (print_spaces): Removed.
26985 (grub_print_ucs4): Likewise.
26986 (grub_print_message_indented): Use grub_print_ucs4.
26987 (print_message): Use grub_putcode.
26988 (print_entry): Hanlde diacritics.
26989 * normal/term.c (term_state): New type.
26990 (grub_more_lines): Removed.
26991 (term_states): New variable.
26992 (grub_normal_line_counter): Renamed to ..
26993 (grub_normal_char_counter): ...this. All users updated.
26994 (grub_normal_get_line_counter): Renamed to ...
26995 (grub_normal_get_char_counter): ... this.
26996 (grub_normal_reset_more): New function.
26997 (process_newline): Removed.
26998 (print_more): New function.
26999 (grub_install_newline_hook): Removed.
27000 (map_code): New function.
27001 (grub_puts_terminal): Use grub_print_ucs4.
27002 (putglyph): New function.
27003 (putcode_real): Likewise.
27004 (grub_putcode): Use putcode_real.
27005 (get_maxwidth): New function.
27006 (get_startwidth): Likewise.
27007 (print_ucs4_terminal): Likewise.
27008 (find_term_state): Likewise.
27009 (put_glyphs_terminal): Likewise.
27010 (print_backlog): Likewise.
27011 (print_ucs4_real): Likewise.
27012 (grub_print_ucs4): Likewise.
27013 (grub_xputs_normal): Likewise.
27014 * term/efi/console.c (grub_console_putchar): Output diacritics.
27015 (grub_console_getcharwidth): Removed.
27016 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27017 * term/gfxterm.c (clear_char): Free chars.
27018 (scroll_up): Avoid leaking memory.
27019 (grub_gfxterm_putchar): Support diacritics.
27020 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
27021 * term/i386/pc/console.c (grub_console_term_output): Declare as
27022 GRUB_TERM_CODE_TYPE_VGA.
27023 * term/i386/pc/vga.c (grub_vga_term): Declare as
27024 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
27025 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
27026 GRUB_TERM_CODE_TYPE_VGA.
27027 * term/i386/vga_common.c (map_char): Removed.
27028 (grub_console_putchar): Likewise.
27029 (grub_console_getcharwidth): Likewise.
27030 * term/ieee1275/ofconsole.c: Simplify using terminfo.
27031 (colors): Reordered to match terminfo.
27032 (grub_ofconsole_normal_color): Removed.
27033 (grub_ofconsole_writeesc): Likewise.
27034 (grub_ofconsole_highlight_color): Likewise.
27035 (grub_ofconsole_getcharwidth): Likewise.
27036 (grub_ofconsole_setcolorstate): Likewise.
27037 (grub_ofconsole_setcolor): Likewise.
27038 (grub_ofconsole_getcolor): Likewise.
27039 (grub_ofconsole_readkey): Renamed to ...
27040 (readkey): ... this. Remove escape sequence handling. Return -1 on no
27042 (grub_ofconsole_checkkey): Removed.
27043 (grub_ofconsole_getkey): Likewise.
27044 (grub_ofconsole_getxy): Likewise.
27045 (grub_ofconsole_gotoxy): Likewise.
27046 (grub_ofconsole_cls): Likewise.
27047 (grub_ofconsole_refresh): Likewise.
27048 (grub_ofconsole_terminfo_input): New struct.
27049 (grub_ofconsole_terminfo_output): Likewise.
27050 (grub_ofconsole_term_input): Use terminfo.
27051 (grub_ofconsole_term_output): Likewise.
27052 (grub_console_init): Split into ...
27053 (grub_console_init_early): ...this and ...
27054 (grub_console_init_lately): ...this. Use terminfo.
27055 (grub_ofconsole_putchar): Renamed to ...
27056 (put): ... this. Remove mapping.
27057 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
27058 * term/serial.c: Simplify using terminfo.
27061 (keep_track): Likewise.
27062 (registered): Likewise.
27063 (input_buf): Likewise.
27064 (npending): Likewise.
27065 (serial_translate_key_sequence): Likewise.
27066 (fill_input_buf): Likewise.
27067 (grub_serial_checkkey): Likewise.
27068 (grub_serial_getkey): Likewise.
27069 (grub_serial_getxy): Likewise.
27070 (grub_serial_gotoxy): Likewise.
27071 (grub_serial_putchar): Likewise.
27072 (grub_serial_cls): Likewise.
27073 (grub_serial_setcolorstate): Likewise.
27074 (grub_serial_setcursor): Likewise.
27075 (serial_hw_init): Use serial_hw_fetch.
27076 (grub_serial_terminfo_input): New variable.
27077 (grub_serial_terminfo_output): Likewise.
27078 (grub_serial_term_input): Use terminfo.
27079 (grub_serial_term_output): Likewise.
27080 * term/terminfo.c (putstr): Use put.
27081 (grub_terminfo_all_free): New function
27082 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
27083 (grub_terminfo_output_register): New function.
27084 (grub_terminfo_output_unregister): Likewise.
27085 (grub_terminfo_getxy): Likewise.
27086 (grub_terminfo_readkey): Likewise.
27087 (grub_terminfo_checkkey): Likewise.
27088 (grub_terminfo_getkey): Likewise.
27089 (grub_terminfo_input_init): Likewise.
27090 (print_terminfo): Likewise.
27091 (grub_cmd_terminfo): Handle encoding.
27092 (grub_terminfo_gotoxy): Track position.
27093 (grub_terminfo_cls): Likewise.
27094 (grub_terminfo_putchar): Likewise.
27095 (grub_terminfo_setcolorstate): Handle colors
27096 (grub_terminfo_cursor_on): This ...
27097 (grub_terminfo_cursor_off): ... and this merged into ...
27098 (grub_terminfo_setcursor): ... this.
27099 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
27100 * unicode/ArabicShaping.txt: New file (imported from Unicode).
27101 * unicode/BidiMirroring.txt: Likewise.
27102 * unicode/UnicodeData.txt: Likewise.
27103 * unicode/COPYING: Likewise.
27104 * util/grub-editenv.c (grub_putchar): Removed.
27105 (grub_xputs_real): New function.
27106 (grub_xputs): New variable.
27107 * util/grub-fstest.c (grub_putchar): Removed.
27108 (grub_xputs_real): New function.
27109 (grub_xputs): New variable.
27110 * util/grub-mkdevicemap.c (grub_putchar): Removed.
27111 (grub_xputs_real): New function.
27112 (grub_xputs): New variable.
27113 * util/grub-probe.c (grub_putchar): Removed.
27114 (grub_xputs_real): New function.
27115 (grub_xputs): New variable.
27116 * util/grub-script-check.c (grub_putchar): Removed.
27117 (grub_xputs_real): New function.
27118 (grub_xputs): New variable.
27119 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
27120 (grub_xputs_real): New function.
27121 (grub_xputs): New variable.
27122 * util/import_unicode.py: New file.
27123 * util/grub-mkfont.c (ft_errmsgs): New array.
27124 (grub_glyph_info): Make bitmap a pointer.
27125 (file_formats): New type WIDTH_SPEC.
27126 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
27127 (options): Add width-spec.
27129 (add_char): Renamed to ...
27130 (add_glyph): ... this.
27131 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
27132 (glyph_replace): New type.
27133 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
27134 (add_char): New function.
27135 (add_subst): Likewise.
27136 (process_cursive): Likewise.
27137 (add_font): Handle GSUB.
27138 (write_font_width_spec): New function.
27139 (main): Sort glyphs.
27140 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
27141 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
27142 * kern/term.c (grub_cls): Moved from here...
27143 * normal/term.c (grub_cls): ... here.
27145 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27147 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
27148 suitable for using within the format argument of printf when
27149 converting grub_size_t.
27150 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
27151 "x" to convert grub_size_t arguments.
27153 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27155 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
27157 (list_get_minimal_size): Take selection box into account.
27159 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27161 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
27164 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27166 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
27167 devices when iterating over /dev/disk/by-id; they will be handled
27168 later if appropriate, which they aren't always (e.g. LVM).
27170 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27172 * include/grub/misc.h (grub_reboot): Declare as noreturn.
27173 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
27175 (grub_halt): Likewise.
27176 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
27178 (grub_halt): Don't return, even if all of shut-down, power-off, and
27181 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27183 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
27184 arguments, not three.
27186 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27188 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
27189 * util/grub.d/10_linux.in: Use it to check for LVM, so that
27190 LVM-on-RAID is handled correctly.
27192 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27194 * docs/grub.texi (Changes from GRUB Legacy): New section.
27195 (Future): Fix typo.
27197 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
27199 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
27200 grub.d/README accidentally ends up executable for one reason or
27201 another. Ignore it.
27203 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27205 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
27206 (gpt_partition_map_iterate): Support non-512B sectors.
27208 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27210 * kern/efi/init.c (grub_efi_init): Disable watchdog.
27211 Tested by: Seth Goldberg.
27213 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
27215 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
27216 Properly align mbi.
27217 Reported by: Seth Goldberg.
27219 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27221 * util/grub-mkrescue.in: Avoid module duplication.
27223 2010-07-01 Sean Finney <seanius@seanius.net>
27225 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
27227 2010-07-01 Sean Finney <seanius@seanius.net>
27229 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
27231 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27233 * disk/lvm.c (grub_lvm_checkvalue): New function.
27234 (grub_lvm_check_flag): Likewise.
27236 2010-07-01 Robert Millan <rmh@gnu.org>
27238 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
27239 Support 'p' as partition separator on kernel of FreeBSD (used
27241 (grub_util_biosdisk_get_grub_dev): Likewise.
27243 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
27245 Yeeloong firmware port.
27247 * boot/mips/yeeloong/fwstart.S: New file.
27248 * bus/cs5536.c (gpiodump): New const.
27249 (set_io_space): New function.
27250 (set_iod): Likewise.
27251 (set_p2d): Likewise.
27252 (grub_cs5536_init_geode): Likewise.
27253 * commands/mips/yeeloong/lsspd.c: New file.
27254 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
27255 (serial_mod_SOURCES): New variable.
27256 (serial_mod_CFLAGS): Likewise.
27257 (serial_mod_LDFLAGS): Likewise.
27258 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
27259 term/terminfo.c and term/tparm.c.
27260 (pkglib_IMAGES): Add fwstart.img.
27261 (fwstart_img_SOURCES): New variable.
27262 (fwstart_img_CFLAGS): Likewise.
27263 (fwstart_img_ASFLAGS): Likewise.
27264 (fwstart_img_LDFLAGS): Likewise.
27265 (fwstart_img_FORMAT): Likewise.
27266 (pkglib_MODULES): Add lsspd.mod.
27267 (lsspd_mod_SOURCES): New variable.
27268 (lsspd_mod_CFLAGS): Likewise.
27269 (lsspd_mod_LDFLAGS): Likewise.
27270 (pkglib_MODULES): Add halt.mod.
27271 (halt_mod_SOURCES): New variable.
27272 (halt_mod_CFLAGS): Likewise.
27273 (halt_mod_LDFLAGS): Likewise.
27274 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
27275 (serial_mod_SOURCES): Removed.
27276 (serial_mod_CFLAGS): Likewise.
27277 (serial_mod_LDFLAGS): Likewise.
27278 * disk/ata.c (check_device): New function.
27279 (grub_ata_device_initialize): Use check_device.
27280 (grub_ata_iterate): Recheck devices.
27281 (grub_ata_open): Likewise.
27282 (grub_atapi_iterate): Likewise.
27283 (grub_atapi_open): Likewise.
27284 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
27285 (GRUB_ATA_CH1_PORT1): Likewise.
27286 (GRUB_ATA_CH0_PORT2): Likewise.
27287 (GRUB_ATA_CH1_PORT2): Likewise.
27288 * include/grub/mips/loongson.h: New file.
27289 * include/grub/mips/yeeloong/ec.h: Likewise.
27290 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
27291 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
27292 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
27293 * include/grub/misc.h (grub_halt): Declare as noreturn.
27294 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
27295 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
27296 (UART_ENABLE_FIFO_TRIGGER1): New definition.
27297 (UART_ENABLE_DTRRTS): Likewise.
27298 (UART_ENABLE_MODEM): Removed.
27299 (UART_ENABLE_OUT2): New const.
27300 * include/grub/term.h (grub_term_register_input_active): New function.
27301 (grub_term_register_output_active): Likewise.
27302 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
27304 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
27305 (init_pci): New function.
27306 (grub_machine_init): Execute platform init when firmware. Init serial.
27307 (grub_halt): Implement.
27308 (grub_exit): Likewise.
27309 (grub_reboot): Likewise.
27310 * term/serial.c (serial_hw_init): Update macros.
27311 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
27312 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
27313 (image_targets): New target mipsel-yeeloong-flash.
27314 (generate_image): Support IMAGE_YEELOONG_FLASH.
27315 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
27316 (grub_video_sm712_setup): Init card.
27317 (grub_video_sm712_set_palette): Removed.
27318 * video/sm712_init.c: New file.
27320 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
27322 * Makefile.in (install-local): Temporarily prepend $(builddir) to
27323 PATH when running help2man and then run it on the unadorned
27324 executable names, rather than passing $(builddir)/* paths to
27325 help2man. This avoids the build directory ending up in generated
27328 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27330 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
27331 to avoid accidents when debugging with 'sh -x'.
27332 * util/grub-mkrescue.in: Likewise.
27333 * util/grub.d/00_header.in: Likewise.
27334 * util/grub.d/10_hurd.in: Likewise.
27335 * util/grub.d/10_kfreebsd.in: Likewise.
27336 * util/grub.d/10_linux.in: Likewise.
27337 * util/grub.d/10_netbsd.in: Likewise.
27338 * util/grub.d/10_windows.in: Likewise.
27339 * util/grub.d/20_linux_xen.in: Likewise.
27340 * util/grub.d/30_os-prober.in: Likewise.
27341 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27343 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
27345 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
27346 last character in the buffer.
27347 Reported by: Vladimir Serbinenko.
27349 2010-06-29 Robert Millan <rmh@gnu.org>
27351 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
27352 (Command-line and menu entry commands): Document `badram' command.
27354 2010-06-28 Robert Millan <rmh@gnu.org>
27356 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
27357 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
27358 command using ${GRUB_BADRAM} as parameter.
27360 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27362 * docs/grub.texi (Device map): New section.
27363 (Themes): New section (stub).
27364 * Makefile.in (docs/grub.info): The info documentation now builds
27365 without errors. Make sure it stays that way.
27367 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27369 Use normal parser for menu entries.
27370 Reported by: Thomas Frauendorfer
27372 * include/grub/parser.h (grub_parser_execute): Don't export.
27373 * normal/menu.c (grub_menu_execute_entry_real): New function.
27374 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
27376 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27378 * docs/grub.texi (Embedded configuration): New section (replacing
27379 old "Preset Menu" stub).
27380 (Images): New section.
27381 (configfile): Note that any menu entries defined in `file' are shown
27384 2010-06-28 Josh Triplett <josh@joshtriplett.org>
27386 * mmap/i386/pc/mmap_helper.S: Set CF on return.
27388 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27390 * util/grub-install.in: Add --debug-image= option.
27392 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27394 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
27397 * util/deviceiter.c (check_device): Rename to ...
27398 (check_device_readable_unique): ... this. Update all callers.
27399 Maintain and check a list of which devices (by canonicalized name)
27400 have already been seen.
27401 (clear_seen_devices): New function.
27402 (compare_file_names) [__linux__]: New function.
27403 (grub_util_iterate_devices): Clear the list of seen devices on exit
27404 and (just in case) on entry.
27405 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
27406 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
27407 seen-devices list, superseded by general code in check_device.
27409 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
27411 * commands/cat.c (options): New variable.
27412 (grub_cmd_cat): Parse options. If the --dos option is given, print
27413 DOS-style "\r\n" line endings as simple newlines (Debian bug
27415 (GRUB_MOD_INIT): Use extcmd.
27416 (GRUB_MOD_FINI): Likewise.
27417 * docs/grub.texi (cat): Document --dos.
27419 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27421 XEN with Linux grub-mkconfig support.
27423 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
27424 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
27425 GRUB_CMDLINE_XEN_DEFAULT.
27426 * util/grub.d/20_linux_xen.in: New file.
27428 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
27430 Initialise VGA video on qemu ourselves.
27432 * boot/i386/qemu/boot.S: Don't call 0xc000.
27433 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
27434 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
27435 (kernel_img_HEADERS): Add pci.h.
27436 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
27437 * configure.ac: Force unifont on qemu and yeeloong.
27438 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
27439 (grub_vga_palette_write): Use correct register.
27440 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
27441 Call grub_qemu_init_cirrus.
27442 * kern/i386/qemu/init.c: New file.
27443 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
27445 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
27447 2010-06-26 Pavel Roskin <proski@gnu.org>
27449 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
27452 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27454 * docs/grub.texi (Simple configuration): Explain that
27455 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
27456 set to `true' to disable their respective recovery entries, not
27459 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
27461 Make the `source' command slightly faster.
27463 * normal/main.c (grub_normal_execute): Don't re-read list files when
27466 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27468 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
27469 field position and mask size to red fields from mode_info, not
27471 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
27472 Remove redundant tag->common.framebuffer_type assignment.
27473 Reported by: Seth Goldberg.
27475 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
27477 Sync up other versions of the Linux loader with Robert Millan's
27478 change of 2010-01-09, "Make loader output a bit more user-friendly".
27480 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
27482 (grub_cmd_linux): Likewise.
27483 (grub_cmd_initrd): Likewise.
27484 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
27485 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
27487 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
27489 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
27490 larger than MEMORY_MAP_SIZE.
27492 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
27494 Fix parallel build.
27496 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
27498 * script/parser.y: #include grub_script.tab.h header.
27500 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27502 Support >3GiB and <16MiB RAM in i386-qemu.
27504 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
27505 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
27506 (grub_lower_mem): Removed.
27507 (grub_upper_mem): Likewise.
27508 (mem_size): Made static.
27509 (above_4g): New variable.
27510 (grub_machine_mmap_init): Detect small mem_size and above_4g.
27511 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
27514 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27516 Cirrus 5446 and Bochs video cards support.
27518 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
27520 (video_cirrus_mod_SOURCES): New variable.
27521 (video_cirrus_mod_CFLAGS): Likewise.
27522 (video_cirrus_mod_LDFLAGS): Likewise.
27523 (video_bochs_mod_SOURCES): Likewise.
27524 (video_bochs_mod_CFLAGS): Likewise.
27525 (video_bochs_mod_LDFLAGS): Likewise.
27526 * include/grub/vga.h: New file.
27527 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
27528 (grub_video_fb_set_page_t): New type.
27529 (grub_video_fb_setup): New prototype.
27530 (grub_video_fb_swap_buffers): Likewise.
27531 (grub_video_fb_get_info_and_fini): Likewise.
27532 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
27533 (CRTC_DATA_PORT): Likewise.
27534 (CRTC_CURSOR): Likewise.
27535 (CRTC_CURSOR_ADDR_HIGH): Likewise.
27536 (CRTC_CURSOR_ADDR_LOW): Likewise.
27537 (CRTC_CURSOR_DISABLE): Likewise.
27538 (update_cursor): Use grub_vga_cr_write.
27539 (grub_vga_text_setcursor): Likewise.
27540 * video/bochs.c: New file.
27541 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
27542 (palette): Likewise.
27543 (palette_size): Likewise.
27544 (framebuffer): New variable.
27545 (grub_video_fb_init): Use 'framebuffer'.
27546 (grub_video_fb_fini): Likewise.
27547 (grub_video_fb_get_info): Likewise.
27548 (grub_video_fb_get_palette): Likewise.
27549 (grub_video_fb_set_palette): Likewise.
27550 (grub_video_fb_set_viewport): Likewise.
27551 (grub_video_fb_get_viewport): Likewise.
27552 (grub_video_fb_map_color): Likewise.
27553 (grub_video_fb_map_rgb): Likewise.
27554 (grub_video_fb_map_rgba): Likewise.
27555 (grub_video_fb_unmap_color): Likewise.
27556 (grub_video_fb_unmap_color_int): Likewise.
27557 (grub_video_fb_fill_rect): Likewise.
27558 (grub_video_fb_blit_bitmap): Likewise.
27559 (grub_video_fb_blit_render_target): Likewise.
27560 (grub_video_fb_scroll): Likewise.
27561 (grub_video_fb_create_render_target): Likewise.
27562 (grub_video_fb_doublebuf_blit_init): Likewise.
27563 (grub_video_fb_set_active_render_target): Handle doublebuffering.
27564 (doublebuf_pageflipping_update_screen): New function.
27565 (doublebuf_pageflipping_init): Likewise.
27566 (grub_video_fb_setup): Likewise.
27567 (grub_video_fb_swap_buffers): Likewise.
27568 (grub_video_fb_get_info_and_fini): Likewise.
27569 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
27571 (doublebuf_pageflipping_commit): Restructured into ...
27572 (doublebuf_pageflipping_set_page): ... this.
27573 (doublebuf_pageflipping_update_screen): Removed.
27574 (doublebuf_pageflipping_init): Likewise.
27575 (double_buffering_init): Likewise.
27576 (grub_video_vbe_setup): Use grub_video_fb_setup.
27577 (grub_video_vbe_swap_buffers): Removed.
27578 (grub_video_vbe_set_active_render_target): Likewise.
27579 (grub_video_vbe_get_active_render_target): Likewise.
27580 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
27581 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
27582 grub_video_fb_set_active_render_target and
27583 grub_video_fb_get_active_render_target.
27584 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
27585 (SEQUENCER_DATA_PORT): Likewise.
27586 (MAP_MASK_REGISTER): Likewise.
27587 (CRTC_ADDR_PORT): Likewise.
27588 (CRTC_DATA_PORT): Likewise.
27589 (START_ADDR_HIGH_REGISTER): Likewise.
27590 (START_ADDR_LOW_REGISTER): Likewise.
27591 (GRAPHICS_ADDR_PORT): Likewise.
27592 (GRAPHICS_DATA_PORT): Likewise.
27593 (READ_MAP_REGISTER): Likewise.
27594 (INPUT_STATUS1_REGISTER): Likewise.
27595 (INPUT_STATUS1_VERTR_BIT): Likewise.
27596 (get_map_mask): Use grub_vga_sr_read.
27597 (set_map_mask): Use grub_vga_sr_write.
27598 (set_read_map): Use grub_vga_gr_write.
27599 (set_start_address): Use grub_vga_cr_write.
27600 * video/sm712.c (framebuffer): Remove leftover fields.
27602 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
27604 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
27605 setting GRUB_VIDEO_BACKEND. Make it available as a user override
27606 instead. Replace the gfxterm backend check with a check that
27607 ${GRUB_PREFIX}/video.lst is non-empty.
27608 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
27610 (load_video): New generated function. Call it before loading
27611 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
27612 * util/grub.d/10_linux.in (linux_entry): Call load_video.
27613 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
27614 * docs/grub.texi (Simple configuration): Document
27615 GRUB_VIDEO_BACKEND.
27617 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
27619 Use video functions in linux and xnu loaders.
27621 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
27622 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
27623 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
27624 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
27625 loader/i386/pc/linux.c.
27626 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
27627 (find_line_len): Removed.
27628 (find_framebuf): Likewise.
27629 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
27630 * loader/i386/efi/xnu.c: Removed.
27631 * loader/i386/pc/xnu.c: Moved from here...
27632 * loader/i386/xnu.c: ...here.
27634 Enable priorities in video drivers.
27636 * include/grub/video.h (grub_video_adapter_prio_t): New type.
27637 (grub_video_adapter): New field prio.
27638 (grub_video_register): Respect prio when inserting.
27639 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
27640 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
27641 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
27642 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
27643 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
27644 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
27645 * video/sm712.c (grub_video_sm712_adapter): Likewise.
27649 * include/grub/video.h (grub_video_driver_id_t): New value
27650 GRUB_VIDEO_DRIVER_SDL.
27651 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
27653 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27655 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
27656 argument to printf.
27657 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27659 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27661 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
27662 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27664 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27666 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
27667 directly, and recommend grub-install instead.
27668 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
27670 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
27672 Fix i386-pc prefix handling with nested partitions (Debian bug
27673 #585068). Note that the case where the core image is booted using
27674 multiboot and relocated from its original location still requires
27677 * kern/i386/pc/init.c (make_install_device): If the prefix starts
27678 with "(,", fill the boot drive in between those two characters, but
27679 expect that a full partition specification including partition map
27681 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
27682 specified, write a prefix without the drive name but including a
27683 full partition specification.
27685 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
27687 * util/grub-mkconfig.in: Ignore non-option arguments, for
27688 compatibility with older versions (before 2010-06-12) which did the
27689 same. In particular, this makes it easier to ship an update-grub
27690 wrapper which is compatible with that used with GRUB Legacy (Debian
27693 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27695 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
27696 for manual page generation.
27698 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
27700 * po/POTFILES: Remove leftover commands/handler.c.
27702 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27704 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
27705 left this script non-functional.
27707 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
27709 * docs/man/grub-emu.h2m: New file.
27711 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
27713 * docs/grub.texi (Commands): Document reduced command set in rescue
27715 (cpuid): New section.
27717 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
27719 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
27720 new partition naming style.
27721 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
27723 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
27725 Add "-o grub.iso" like cmdline options support.
27727 * util/grub-install.in: Improve cmdline option parsing.
27728 * util/grub-mkconfig.in: Likewise.
27729 * util/grub-mkrescue.in: Likewise.
27730 * util/grub-reboot.in: Likewise.
27731 * util/grub-set-default.in: Likewise.
27732 * util/i386/efi/grub-install.in: Likewise.
27733 * util/ieee1275/grub-install.in: Likewise.
27734 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27736 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27738 * .bzrignore: Ignore 41_custom.
27740 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27742 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
27744 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27746 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
27747 prototype declarations.
27749 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
27750 generating fs, partmap, and video lists.
27751 * include/grub/fs.h (grub_fs_register): Omit prototype if
27752 GRUB_LST_GENERATOR is defined.
27753 * include/grub/partition.h (grub_partition_map_register): Likewise.
27754 * include/grub/video.h (grub_video_register): Likewise.
27756 2010-06-12 Javier Martín <lordhabbit@gmail.com>
27758 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
27760 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
27762 * util/grub-mkrescue.in: Support --xorriso argument.
27764 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27766 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
27767 Suggested by: Thomas Schmitt.
27769 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27771 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
27772 Suggested by: Thomas Schmitt.
27774 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
27776 custom.cfg support.
27778 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
27779 * util/grub.d/41_custom.in: New file.
27781 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
27783 * util/grub-mkrescue.in (make_image): Remove sh module, which has
27784 been merged back into normal.
27786 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27788 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
27789 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
27791 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
27793 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
27794 when generating manual pages.
27795 * docs/man/grub-bin2h.h2m: New file.
27796 * docs/man/grub-editenv.h2m: New file.
27797 * docs/man/grub-fstest.h2m: New file.
27798 * docs/man/grub-install.h2m: New file.
27799 * docs/man/grub-macho2img.h2m: New file.
27800 * docs/man/grub-mkconfig.h2m: New file.
27801 * docs/man/grub-mkdevicemap.h2m: New file.
27802 * docs/man/grub-mkfont.h2m: New file.
27803 * docs/man/grub-mkimage.h2m: New file.
27804 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
27805 * docs/man/grub-mkrelpath.h2m: New file.
27806 * docs/man/grub-mkrescue.h2m: New file.
27807 * docs/man/grub-ofpathname.h2m: New file.
27808 * docs/man/grub-pe2elf.h2m: New file.
27809 * docs/man/grub-probe.h2m: New file.
27810 * docs/man/grub-reboot.h2m: New file.
27811 * docs/man/grub-script-check.h2m: New file.
27812 * docs/man/grub-set-default.h2m: New file.
27813 * docs/man/grub-setup.h2m: New file.
27815 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
27817 Use FOR_* macros instead of *_iterate whenever possible.
27819 * commands/handler.c: Removed.
27820 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
27821 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
27822 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27823 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
27824 (grub_probe_SOURCES): Remove kern/parser.c.
27825 (util/grub-script-check.c_DEPENDENCIES): Removed.
27826 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
27827 and grub_script_check_init.c.
27828 (grub_script_check_init.lst): Removed.
27829 (grub_script_check_init.h): Likewise.
27830 (grub_script_check_init.c): Likewise.
27831 (pkglib_MODULES): Remove handler.mod and sh.mod.
27832 (handler_mod_SOURCES): Removed.
27833 (handler_mod_CFLAGS): Likewise.
27834 (handler_mod_LDFLAGS): Likewise.
27835 (normal_mod_SOURCES): Remove normal/handler.c.
27836 Add script/main.c, script/script.c, script/execute.c,
27837 script/function.c, script/lexer.c, grub_script.tab.c
27838 and grub_script.yy.c.
27839 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27840 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27841 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
27842 (grub_setup_SOURCES): Remove kern/parser.c.
27843 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27844 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
27845 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
27846 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27847 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
27848 (grub_setup_SOURCES): Remove kern/parser.c.
27849 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
27850 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
27851 * include/grub/command.h (grub_command_iterate): Removed.
27852 (FOR_COMMANDS): New macro.
27853 * include/grub/dl.h (grub_dl): New member next.
27854 (grub_dl_iterate): Removed.
27855 (grub_dl_head): New variable declaration.
27856 (FOR_DL_MODULES): New macro.
27857 * include/grub/fs.h: Include list.h.
27858 (grub_fs): Make next first element.
27859 (grub_fs_list): New variable declaration.
27860 (grub_fs_register): Make inline.
27861 (grub_fs_unregister): Likewise.
27862 (grub_fs_iterate): Removed.
27863 (FOR_FILESYSTEMS): New macro.
27864 * include/grub/handler.h: Removed.
27865 * include/grub/list.h (grub_list_hook_t): Removed.
27866 (grub_list_test_t): Likewise.
27867 (grub_list_pop): Likewise.
27868 (grub_list_iterate): Likewise.
27869 (grub_list_insert): Likewise.
27870 (FOR_LIST_ELEMENTS): New macro.
27871 * include/grub/parser.h (grub_parser_class): Removed.
27872 (grub_parser_register): Likewise.
27873 (grub_parser_unregister): Likewise.
27874 (grub_parser_get_current): Likewise.
27875 (grub_parser_set_current): Likewise.
27876 (grub_register_rescue_parser): Likewise.
27877 (grub_rescue_parse_line): New function.
27878 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
27879 * include/grub/script_sh.h (grub_script_function_list): New variable
27881 (FOR_SCRIPT_FUNCTIONS): New macro.
27882 (grub_script_function_iterate): Removed.
27883 (grub_normal_parse_line): New prototype.
27884 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
27885 (FOR_DISABLED_TERM_INPUTS): Likewise.
27886 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
27887 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
27888 * include/grub/video.h (grub_video_adapter): Move 'next' to first
27890 (grub_video_register): Inline.
27891 (grub_video_unregister): Likewise.
27892 (grub_video_adapter_list): New variable declaration.
27893 (grub_video_iterate): Removed.
27894 (FOR_VIDEO_ADAPTERS): New macro.
27895 * kern/dl.c (grub_dl_list): Removed. All users updated.
27896 (grub_dl_iterate): Removed.
27897 * kern/fs.c (grub_fs_list): Make global.
27898 (grub_fs_register): Removed.
27899 (grub_fs_unregister): Likewise.
27900 (grub_fs_iterate): Likewise.
27901 * kern/handler.c: Removed.
27902 * kern/list.c (grub_list_pop): Removed.
27903 (grub_list_iterate): Likewise.
27904 (grub_list_insert): Likewise.
27905 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
27906 (grub_prio_list_insert): Don't use grub_list_insert.
27907 * kern/main.c (grub_register_rescue_parser): Don't call
27908 grub_register_rescue_parser.
27909 * kern/parser.c (grub_parser_class): Removed.
27910 (grub_parser_execute): Use grub_rescue_parse_line.
27911 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
27912 (grub_rescue_parser): Removed.
27913 (grub_register_rescue_parser): Likewise.
27914 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
27915 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
27916 (grub_auth_check_authentication): Likewise.
27917 * normal/completion.c (iterate_command): Removed.
27918 (grub_normal_do_completion): Use FOR_COMMANDS.
27919 * normal/handler.c: Removed.
27920 * normal/main.c (read_config_file): Remove parser changing.
27921 (grub_normal_execute): Don't call read_handler_list.
27922 (grub_normal_read_line_real): Statically allocate prompt.
27923 (grub_cmdline_run): Use grub_normal_parse_line.
27924 (GRUB_MOD_FINI): Don't call free_handler_list.
27925 * normal/menu_entry.c (run): Likewise.
27926 * script/function.c (grub_script_function_list): Make global.
27927 (grub_script_function_iterate): Removed.
27928 * script/main.c (grub_normal_parse_line): Make global.
27929 (grub_sh_parser): Removed.
27930 (GRUB_MOD_INIT): Likewise.
27931 (GRUB_MOD_FINI): Likewise.
27932 * tests/lib/functional_test.c (grub_functional_test): Use
27934 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
27935 (grub_test_run): Use FOR_LIST_ELEMENTS.
27936 * tests/lib/unit_test.c (main): Likewise.
27937 * util/deviceiter.c (grub_util_iterate_devices): Don't use
27939 * util/grub-fstest.c (grub_term_input_class): Removed.
27940 (grub_term_output_class): Likewise.
27941 * util/grub-probe.c: Likewise.
27942 * util/i386/pc/grub-setup.c: Likewise.
27943 * util/sparc64/ieee1275/grub-setup.c: Likewise.
27944 * util/grub-script-check.c (main): Don't call grub_init_all and
27946 * video/video.c (grub_video_adapter_list): Make global.
27947 (grub_video_register): Removed.
27948 (grub_video_unregister): Likewise.
27949 (grub_video_iterate): Likewise.
27951 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
27953 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
27954 reported by Henrique Ferreiro.
27956 2010-06-09 Robert Millan <rmh@gnu.org>
27958 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
27959 ones, when both are available.
27961 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27963 Make --version uniform and avoid hard-coded program name.
27965 * util/grub-mkimage.c (main): Use `program_name' instead of
27967 * util/i386/pc/grub-setup.c (main): Likewise.
27968 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
27969 * util/grub-install.in: Save the basename of $0 in $self, and use the
27970 latter in informational messages. Use the same format for --version
27971 as the binary programs.
27972 * util/grub-mkconfig.in: Likewise.
27973 * util/grub-mkrescue.in: Likewise.
27974 * util/grub-reboot.in: Likewise.
27975 * util/grub-set-default.in: Likewise.
27976 * util/i386/efi/grub-install.in: Likewise.
27977 * util/ieee1275/grub-install.in: Likewise.
27978 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
27980 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27982 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
27983 embedding area. Use <= instead of == when checking for non-emptiness.
27985 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
27987 * configure.ac: Add `.' to the directories searched for unifont.
27989 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27991 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
27994 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
27996 * docs/grub.texi (History): Expand to cover GRUB 2.
27997 (Serial terminal): Refer to `terminal_input' and `terminal_output'
27998 commands, not `terminal'.
27999 (serial): Likewise.
28000 (terminal_input): New section.
28001 (terminal_output): New section.
28002 (uppermem): New section (stub).
28003 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
28005 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
28007 * docs/grub.texi (Security): Menu entries are unrestricted by
28008 default, not restricted to superusers as I had previously thought.
28009 Reword to account for this.
28011 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28013 * kern/emu/misc.c (device_mapper_null_log): New function.
28014 (grub_device_mapper_supported): New function.
28015 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
28017 * kern/emu/hostdisk.c (find_partition_start): Check whether
28018 device-mapper is supported before trying to use it.
28019 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
28021 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28023 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
28024 (File name syntax): Likewise.
28025 (help): --all is no longer supported in GRUB 2. Be more precise
28026 about pattern matching.
28028 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28030 * normal/completion.c (grub_normal_do_completion): When completing
28031 arguments to "set" and the current word contains an equals sign,
28032 skip to after the equals sign before starting completion.
28034 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28036 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
28038 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28040 * docs/grub.texi (Network): New section.
28041 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
28042 `(nd)' as in GRUB Legacy.
28043 (pxe_unload): New section.
28045 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28047 * docs/grub.texi (Troubleshooting): `echo' is not usually available
28048 in the rescue shell, so recommend using `set' instead. Thanks,
28051 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28053 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
28054 (password): New section.
28055 (password_pbkdf2): New section.
28056 (search): New section.
28057 (Security): New section.
28058 (Troubleshooting): New section, currently very incomplete.
28059 (Invoking grub-mkpasswd-pbkdf2): New section.
28060 (Internals): New section, currently very incomplete.
28062 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28064 * util/grub.d/00_header.in: Add some more quoting (of
28065 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
28067 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
28069 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
28071 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
28072 to `count', fixing variable shadowing that broke the -c option.
28074 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
28076 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
28077 in case they contain spaces.
28079 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28081 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
28082 "part_" to partmap module names, in line with grub-install.
28083 Reported by: Jindřich Makovička (Debian bug #584426).
28085 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
28087 * util/grub-mkimage.c: Make target-related error messages slightly
28088 more helpful; -O talks about "format". Explicitly point to the use
28089 of -O if no target is specified.
28090 Reported by: Didier Raboud (Debian bug #584415).
28092 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
28094 * INSTALL: Document several build requirements for optional features
28095 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
28097 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
28099 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
28100 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
28101 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
28103 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28105 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
28106 Thanks to Jordan Uggla for spotting this.
28108 2010-06-02 Aleš Nesrsta <starous@volny.cz>
28110 Finally make USB usable.
28112 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
28113 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
28114 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
28115 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
28116 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
28117 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
28118 (GRUB_OHCI_FSMPS): Likewise.
28119 (GRUB_OHCI_PERIODIC_START): Likewise.
28120 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
28121 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
28122 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
28123 (GRUB_OHCI_SET_PORT_RESET): Likewise.
28124 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
28125 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
28126 (grub_ohci_transaction): Likewise.
28127 (grub_ohci_transfer): Improve condition detection algorithms.
28128 Handle toggle property. Program the transactions correctly.
28129 Improve error handling. Various important fixups.
28130 (grub_ohci_portstatus): Put register writes in right order.
28131 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
28132 (grub_uhci_transfer): Don't show "failed" message on success.
28133 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
28135 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
28136 determine its size.
28137 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
28138 before initialization is completed. Use IN direction for empty
28139 transfers. Use last_trans and compute toggle.
28140 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
28141 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
28142 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
28143 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
28144 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
28145 (grub_usb_device): Increase toggle to 256.
28146 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
28147 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
28148 GRUB_USBMS_SUBCLASS_SFF8070.
28149 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
28150 (grub_scsi_inquiry): New member page and alloc_length.
28151 (grub_scsi_request_sense): New structure.
28152 (grub_scsi_request_sense_data): Likewise.
28153 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
28155 * disk/scsi.c (grub_scsi_request_sense): New function.
28156 (grub_scsi_test_unit_ready): Likewise.
28157 (grub_scsi_inquiry): Fill new fields.
28158 (grub_scsi_read_capacity): Likewise.
28159 (grub_scsi_read10): Add request sense at the end.
28160 (grub_scsi_read12): Likewise.
28161 (grub_scsi_write10): Likewise.
28162 (grub_scsi_write12): Likewise.
28163 (grub_scsi_open): Add Test Unit Ready.
28164 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
28165 Support additional subclasses. Con't clear halt yet. Activate the
28166 proper config. Calculate LUNs correctly.
28167 (grub_usbms_transfer): Various important fixups.
28169 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28171 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
28172 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
28173 (grub_ohci_fini_hw): New function.
28174 (grub_ohci_restore_hw): Likewise.
28175 (GRUB_MOD_INIT(ohci)): Register preboot hook.
28176 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
28177 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
28179 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28181 Dedicated DMA allocations.
28183 * bus/pci.c (grub_memalign_dma32): New function
28184 (grub_dma_free): Likewise.
28185 (grub_dma_get_virt): Likewise.
28186 (grub_dma_get_phys): Likewise.
28187 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
28188 (grub_ohci_pci_iter): Use dma32_alloc.
28189 (grub_ohci_transfer): Likewise.
28190 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
28191 (grub_usb_bulk_readwrite): Likewise.
28192 * include/grub/pci.h: Add declarations.
28194 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
28198 * bus/cs5536.c: New file.
28199 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
28200 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
28201 (cs5536_mod_SOURCES): New variable.
28202 (cs5536_mod_CFLAGS): Likewise.
28203 (cs5536_mod_LDFLAGS): Likewise.
28204 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
28206 (kernel_img_SOURCES): Add bus/cs5536.c.
28207 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
28209 (usb_mod_SOURCES): New variable.
28210 (usb_mod_CFLAGS): New variable.
28211 (usb_mod_LDFLAGS): New variable.
28212 (usbtest_mod_SOURCES): New variable.
28213 (usbtest_mod_CFLAGS): New variable.
28214 (usbtest_mod_LDFLAGS): New variable.
28215 (ohci_mod_SOURCES): New variable.
28216 (ohci_mod_CFLAGS): New variable.
28217 (ohci_mod_LDFLAGS): New variable.
28218 (usbms_mod_SOURCES): New variable.
28219 (usbms_mod_CFLAGS): New variable.
28220 (usbms_mod_LDFLAGS): New variable.
28221 (usb_keyboard_mod_SOURCES): New variable.
28222 (usb_keyboard_mod_CFLAGS): New variable.
28223 (usb_keyboard_mod_LDFLAGS): New variable.
28224 * include/grub/smbus.h: New file.
28225 * include/grub/cs5536.h: New file.
28227 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28229 * util/grub.d/00_header.in: Add safety check to make sure that
28230 ${locale_dir} exists before trying to probe it.
28232 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28234 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
28235 per the GNU Coding Standards; this is now too obscure to be worth
28238 (chainloader): Remove cross-reference to `SCO UnixWare'.
28240 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28242 * docs/grub.texi (Chain-loading): New section.
28243 (DOS/Windows): New section, borrowed from GRUB Legacy with details
28244 adjusted for GRUB 2.
28245 (SCO UnixWare): Likewise.
28247 (chainloader): Add reference to `Block list syntax'.
28248 (drivemap): New section.
28249 (parttool): New section.
28251 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28253 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
28255 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
28256 (Installing GRUB using grub-install): Remove reference to the grub
28257 shell; mention `grub-mkimage' and `grub-setup' instead.
28258 (Invoking grub-install): Likewise.
28259 (Interface): Add reference to `Menu entry editor'.
28260 (serial): Remove `--device' option.
28262 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28264 * docs/grub.texi (Configuration): New section, documenting
28265 configuration file generation using grub-mkconfig. I've left a slot
28266 for documenting the full shell scripting format but have not yet
28267 started on writing that up.
28268 (Invoking grub-mkconfig): New section.
28270 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28272 * docs/grub.texi (direntry): Remove grub-terminfo reference.
28273 (GNU GRUB manual): Likewise.
28274 (General commands): Update description of `terminfo' for GRUB 2.
28276 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28278 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
28279 (GRUB_MOD_INIT): Fix capitalisation.
28280 * docs/grub.texi (Command-line and menu entry commands): Document
28281 gettext and gptsync commands.
28283 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
28285 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
28286 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
28288 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
28290 Add btrfs probing support, currently only in the single-device case.
28292 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
28294 (grub_guess_root_device): Call find_root_device_from_mountinfo
28295 before looking in /dev.
28297 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28299 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
28300 GRUB_DISK_SIZE_UNKNOWN.
28301 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
28303 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
28305 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
28306 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
28307 corrupted or not synced properly.
28309 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28311 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
28312 Reported by: Seth Goldberg.
28314 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28316 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
28318 Reported by: Seth Goldberg.
28320 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28322 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
28323 Reported by: Seth Goldberg.
28325 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
28327 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
28328 64-bit address as signed on MIPS.
28330 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28332 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
28333 to the empty string.
28335 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
28337 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
28339 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
28340 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
28341 * kern/misc.c (__enable_execute_stack): Disable on
28344 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
28346 Make grub-probe work with symbolic links under /dev/mapper as well
28347 as with real block devices. The Linux world seems to be (at best)
28348 in transition here, and GRUB shouldn't get caught in the middle.
28350 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
28353 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28355 * util/grub-script-check.c (main): Ensure defined behaviour on empty
28356 input files (in which case exit zero).
28358 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28360 * kern/emu/misc.c (canonicalize_file_name): realpath can still
28361 return NULL for various reasons even if it has a maximum-length
28362 buffer: for example, there might be a symlink loop, or the path
28363 might exceed PATH_MAX. If this happens, return NULL.
28365 2010-05-27 Robert Millan <rmh@gnu.org>
28367 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
28368 partmap module to handle cross-partmap setups.
28369 Reported by Orestes Mas. Gràcies!
28371 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
28373 * util/grub-mkrescue.in: Initialise override_dir rather than
28374 assuming that it's unset or empty in the environment.
28376 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
28378 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
28379 variable index into p_index to suppress a warning with -Wshadow.
28381 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
28383 * INSTALL: Added flex >= 2.5.35 requirement.
28385 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28387 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
28389 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28393 * commands/i386/cmostest.c: New file.
28394 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
28395 (cmostest_mod_SOURCES): New variable.
28396 (cmostest_mod_CFLAGS): Likewise.
28397 (cmostest_mod_LDFLAGS): Likewise.
28398 * conf/i386-pc.rmk: Likewise.
28399 * docs/grub.texi (Vendor power-on keys): New section.
28400 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
28401 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
28402 and GRUB_BUTTON_CMOS_ADDRESS.
28403 * util/grub.d/00_header.in: Handle powering-on by separate button.
28405 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28407 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
28408 Removed drawing_scrollbar argument. All users updated
28410 Reported by Jo Shields
28412 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28414 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
28415 buffer since gfxterm handles double repaint.
28417 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
28419 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
28420 * term/gfxterm.c (real_scroll): Likewise.
28422 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28424 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
28425 before calling BIOS.
28427 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28429 * include/grub/i18n.h: Always enable grub_gettext.
28431 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
28433 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
28434 partition naming style.
28436 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
28438 * util/grub-mkconfig.in: Fix handling of -o so that it works when
28439 not the first option.
28441 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28443 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
28445 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
28447 * util/misc.c: Move inclusion of <limits.h> to ...
28448 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
28450 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
28452 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
28453 Fix merge error in NetBSD code.
28454 (find_partition_start) [__NetBSD__]: Likewise.
28456 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
28458 Fix grub-mkrescue usage unit testing.
28460 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
28462 2010-05-18 Christian Franke <franke@computer.org>
28464 * util/grub.d/10_windows.in: Use path names instead of
28465 drive letters to prevent warning from Cygwin 1.7.
28466 Add drivemap command to menuentry if needed.
28468 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
28470 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
28471 gnumach and gnumach.gz.
28473 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28475 * include/grub/i18n.h (gettext): Inline instead of using #define.
28476 (grub_gettext): Likewise.
28479 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28481 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
28482 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
28483 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
28484 (main): Add a slash after pkglibdirroot.
28486 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28488 * util/grub-install.in: Add missing "in" keyword.
28490 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28492 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
28493 Reported by: Seth Goldberg.
28495 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
28497 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
28499 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28501 * configure.ac: Check for Linux device-mapper support.
28503 * util/hostdisk.c (device_is_mapped): New function.
28504 (find_partition_start): New function, partly broken out from
28505 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
28506 device-mapper support added.
28507 (linux_find_partition): Use find_partition_start.
28508 (convert_system_partition_to_system_disk): Add `st' argument.
28509 Support Linux /dev/mapper/* devices if device-mapper support is
28510 available; only DM-RAID devices are understood at present.
28511 (find_system_device): Add `st' argument. Pass it to
28512 convert_system_partition_to_system_disk.
28513 (grub_util_biosdisk_get_grub_dev): Pass stat result to
28514 find_system_device and convert_system_partition_to_system_disk. Use
28515 find_partition_start.
28517 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
28518 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
28519 * util/deviceiter.c [__linux__]: Define MINOR.
28520 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
28521 * util/mkdevicemap.c (grub_putchar): New function.
28522 (grub_getkey): New function.
28523 (grub_refresh): New function.
28524 (main): Set debug=all if -v -v is used.
28526 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28528 Fix build with non-GNU libcs.
28530 * util/misc.c (canonicalize_file_name): Move to ...
28531 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
28532 grub_make_system_path_relative_to_its_root.
28534 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
28536 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
28537 we handle finding grub-mkimage. Default to finding grub-mkimage in
28538 ${bindir} with program_transform_name applied, and provide a
28539 --grub-mkimage option to override this.
28541 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28543 Remove grub-mkisofs.
28545 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
28546 (grub_mkisofs_SOURCES): Removed.
28547 (grub_mkisofs_CFLAGS): Removed.
28548 * util/mkisofs/defaults.h: Removed.
28549 * util/mkisofs/eltorito.c: Likewise.
28550 * util/mkisofs/exclude.h: Likewise.
28551 * util/mkisofs/hash.c: Likewise.
28552 * util/mkisofs/include/: Likewise.
28553 * util/mkisofs/include/fctldefs.h: Likewise.
28554 * util/mkisofs/include/mconfig.h: Likewise.
28555 * util/mkisofs/include/prototyp.h: Likewise.
28556 * util/mkisofs/include/statdefs.h: Likewise.
28557 * util/mkisofs/iso9660.h: Likewise.
28558 * util/mkisofs/joliet.c: Likewise.
28559 * util/mkisofs/match.c: Likewise.
28560 * util/mkisofs/match.h: Likewise.
28561 * util/mkisofs/mkisofs.c: Likewise.
28562 * util/mkisofs/mkisofs.h: Likewise.
28563 * util/mkisofs/msdos_partition.h: Likewise.
28564 * util/mkisofs/multi.c: Likewise.
28565 * util/mkisofs/name.c: Likewise.
28566 * util/mkisofs/rock.c: Likewise.
28567 * util/mkisofs/tree.c: Likewise.
28568 * util/mkisofs/write.c: Likewise.
28570 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
28572 Unify grub-mkimage accross platforms.
28574 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
28575 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
28576 (grub_mkelfimage_SOURCES): Removed.
28577 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
28578 (util/grub-mkimage.c_DEPENDENCIES): .. this.
28579 (bin_UTILITIES): Add grub-mkimage.
28580 (grub_mkimage_SOURCES): New variable.
28581 (kernel_img_HEADERS): Remove machine/kernel.h.
28582 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
28583 (pkglib_PROGRAMS): Add kernel.img.
28584 (kernel_img_HEADERS): Add machine/kernel.h.
28585 (kernel_img_FORMAT): Removed.
28586 (bin_UTILITIES): Remove grub-mkimage.
28587 (grub_mkimage_SOURCES): Removed.
28588 (grub_mkimage_CFLAGS): Likewise.
28589 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28590 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
28591 (pkglib_PROGRAMS): Add kernel.img.
28592 (bin_UTILITIES): Remove grub-mkimage.
28593 (grub_mkimage_SOURCES): Removed.
28594 (grub_mkimage_CFLAGS): Likewise.
28595 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28596 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
28597 (pkglib_PROGRAMS): Add kernel.img.
28598 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
28599 (pkglib_PROGRAMS): Add kernel.img.
28600 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
28601 (grub_mkimage_SOURCES): Removed.
28602 (grub_mkimage_CFLAGS): Likewise.
28603 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28604 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
28605 (pkglib_PROGRAMS): Add kernel.img.
28606 (bin_UTILITIES): Remove grub-mkimage.
28607 (grub_mkimage_SOURCES): Removed.
28608 (grub_mkimage_CFLAGS): Likewise.
28609 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28610 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
28611 (grub_mkimage_SOURCES): Removed.
28612 (grub_mkimage_CFLAGS): Likewise.
28613 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
28614 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
28615 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
28616 (grub_pe32_optional_header): ... this.
28617 (grub_pe64_optional_header): ... and this. All users updated.
28618 (GRUB_PE32_PE32_MAGIC): Split into ..
28619 (GRUB_PE32_PE32_MAGIC): .. this.
28620 (GRUB_PE32_PE64_MAGIC): .. and this.
28621 (GRUB_PE32_SIGNATURE_SIZE): New definition.
28622 * include/grub/elf.h (PT_GNU_STACK): New definition.
28623 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
28624 * include/grub/i386/efi/kernel.h: Likewise.
28625 * include/grub/i386/kernel.h: Likewise.
28626 * include/grub/i386/pc/kernel.h: Likewise.
28627 * include/grub/i386/qemu/boot.h: Likewise.
28628 * include/grub/mips/kernel.h: Likewise.
28629 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28630 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
28631 * include/grub/powerpc/kernel.h: Likewise.
28632 * include/grub/sparc64/ieee1275/boot.h: Likewise.
28633 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
28634 * include/grub/sparc64/kernel.h: Likewise.
28635 * include/grub/x86_64/efi/kernel.h: Likewise.
28636 * include/grub/x86_64/kernel.h: Likewise.
28637 * include/grub/offsets.h: New file.
28638 * include/grub/kernel.h (grub_module_info): Split into ...
28639 (grub_module_info32): ... this.
28640 (grub_module_info64): ... and this.
28641 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
28642 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
28643 (grub_boot_blocklist): Moved from here ...
28644 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
28645 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
28646 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
28647 * include/grub/types.h (grub_target_to_host16): Removed.
28648 (grub_target_to_host32): Likewise.
28649 (grub_target_to_host64): Likewise.
28650 (grub_host_to_target16): Likewise.
28651 (grub_host_to_target32): Likewise.
28652 (grub_host_to_target64): Likewise.
28653 (grub_host_to_target_addr): Likewise.
28655 Support grub-mkrescue for efi, coreboot and qemu.
28657 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
28658 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
28659 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
28660 * util/grub-mkrawimage.c: Moved from here ...
28661 * util/grub-mkimage.c: ... here. All users updated.
28662 (ALIGN_ADDR): Use image_target.
28663 (TARGET_NO_FIELD): New const.
28664 (image_target_desc): New type.
28665 (image_targets): New array.
28666 (grub_target_to_host64): Use image_target.
28667 (grub_target_to_host32): Likewise.
28668 (grub_target_to_host16): Likewise.
28669 (grub_host_to_target64): Likewise.
28670 (grub_host_to_target32): Likewise.
28671 (grub_host_to_target16): Likewise.
28672 (grub_host_to_target_addr): Likewise.
28673 (generate_image): Handle multiimage.
28674 (main): Require -O parameter. All users updated.
28675 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
28676 util/efi/grub-mkimage.c
28677 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
28678 New option --rom-directory.
28680 * util/i386/efi/grub-mkimage.c: Removed.
28681 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
28682 (grub_target_to_host32): Likewise.
28683 (grub_target_to_host64): Likewise.
28684 (grub_host_to_target16): Likewise.
28685 (grub_host_to_target32): Likewise.
28686 (grub_host_to_target64): Likewise.
28687 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
28688 (grub_target_to_host32): Likewise.
28689 (grub_target_to_host64): Likewise.
28690 (grub_host_to_target16): Likewise.
28691 (grub_host_to_target32): Likewise.
28692 (grub_host_to_target64): Likewise.
28694 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
28696 Source tree is reorganized for emu build.
28698 * include/grub/util/console.h: Move from here...
28699 * include/grub/emu/console.h: ...to here.
28700 * include/grub/util/getroot.h: Move from here...
28701 * include/grub/emu/getroot.h: ...to here.
28702 * include/grub/util/hostdisk.h: Move from here...
28703 * include/grub/emu/hostdisk.h: ...to here.
28704 * util/console.c: Move from here...
28705 * kern/emu/console.c: ...to here.
28706 * util/getroot.c: Move from here...
28707 * kern/emu/getroot.c: ...to here.
28708 * util/grub-emu.c: Move from here...
28709 * kern/emu/main.c: ...to here.
28710 * util/hostdisk.c: Move from here...
28711 * kern/emu/hostdisk.c: ...to here.
28712 * util/hostfs.c: Move from here...
28713 * kern/emu/hostfs.c: ...to here.
28714 * util/mm.c: Move from here...
28715 * kern/emu/mm.c: ...to here.
28716 * util/pci.c: Move from here...
28717 * bus/emu/pci.c: ...to here.
28718 * util/sdl.c: Move from here...
28719 * video/emu/sdl.c: ...to here.
28720 * util/time.c: Move from here...
28721 * kern/emu/time.c: ...to here.
28722 * util/usb.c: Move from here...
28723 * bus/usb/emu/usb.c: ...to here.
28725 * include/grub/emu/misc.h: New header for grub-emu functions.
28726 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
28728 * conf/any-emu.rmk: Rule updates for above renames.
28729 * conf/common.rmk: Likewise.
28730 * conf/i386-pc.rmk: Likewise.
28731 * conf/i386-qemu.rmk: Likewise.
28732 * conf/mips.rmk: Likewise.
28733 * conf/sparc64-ieee1275.rmk: Likewise.
28734 * conf/x86-efi.rmk: Likewise.
28736 * disk/lvm.h: #include updates for above renames.
28737 * util/grub-mkrelpath.c: Likewise.
28738 * util/grub-probe.c: Likewise.
28739 * util/i386/pc/grub-setup.c: Likewise.
28740 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28741 * kern/emu/console.c: Likewise.
28742 * kern/emu/getroot.c: Likewise.
28743 * kern/emu/hostdisk.c: Likewise.
28744 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
28746 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
28747 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
28748 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
28749 * util/misc.c: Remove grub-emu functions.
28751 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
28754 Reported by: Thorsten Grützmacher.
28756 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
28758 (circprog_set_property): Register and unregister timeout hook.
28759 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
28760 (label_destroy): Free template. and unregister hook.
28761 (label_set_state): New function.
28762 (label_set_property): Handle templates and hooks.
28763 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
28765 (progress_bar_set_property): Register and unregister timeout hook.
28766 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
28767 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
28768 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
28769 (update_timeout_visit): Removed.
28770 (update_timeouts): New function.
28771 (redraw_timeouts): Likewise.
28772 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
28773 (grub_gfxmenu_clear_timeout): Likewise.
28774 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
28775 (grub_gfxmenu_timeout_notify): Likewise.
28776 (grub_gfxmenu_timeout_notifications): New external variable.
28777 (grub_gfxmenu_timeout_register): New function.
28778 (grub_gfxmenu_timeout_unregister): Likewise.
28780 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
28782 Transform (broken) vga terminal into (working) vga video driver.
28784 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
28785 video/i386/pc/vga.c.
28786 * include/grub/video.h (grub_video_driver_id):
28787 Add GRUB_VIDEO_DRIVER_VGA.
28788 * term/i386/pc/vga.c: Renamed to ...
28789 * video/i386/pc/vga.c: ...this
28790 (DEBUG_VGA): Removed.
28791 (CHAR_WIDTH): Likewise.
28792 (CHAR_HEIGHT): Likewise.
28793 (TEXT_WIDTH): Likewise.
28794 (TEXT_HEIGHT): Likewise.
28795 (DEFAULT_FG_COLOR): Likewise.
28796 (DEFAULT_BG_COLOR): Likewise.
28797 (colored_char): Likewise.
28800 (cursor_state): Likewise.
28801 (fg_color): Likewise.
28802 (bg_color): Likewise.
28803 (text_buf): Likewise.
28806 (framebuffer): New variable.
28807 (set_read_map): Disabled.
28808 (setup): New variable.
28809 (is_target): Likewise.
28810 (grub_vga_mod_init): Likewise.
28811 (grub_vga_mod_fini): Likewise.
28812 (check_vga_mem): Likewise.
28813 (write_char): Likewise.
28814 (write_cursor): Likewise.
28815 (scroll_up): Likewise.
28816 (grub_vga_putchar): Likewise.
28817 (grub_vga_getcharwidth): Likewise.
28818 (grub_vga_getwh): Likewise.
28819 (grub_vga_getxy): Likewise.
28820 (grub_vga_gotoxy): Likewise.
28821 (grub_vga_cls): Likewise.
28822 (grub_vga_setcolorstate): Likewise.
28823 (grub_vga_setcursor): Likewise.
28824 (grub_video_vga_init): New function.
28825 (grub_video_vga_setup): Likewise.
28826 (grub_video_vga_fini): Likewise.
28827 (update_target): Likewise.
28828 (grub_video_vga_blit_bitmap): Likewise.
28829 (grub_video_vga_blit_render_target): Likewise.
28830 (grub_video_vga_set_active_render_target): Likewise.
28831 (grub_video_vga_get_active_render_target): Likewise.
28832 (grub_video_vga_swap_buffers): Likewise.
28833 (grub_video_vga_set_palette): Likewise.
28834 (grub_video_vga_get_info_and_fini): Likewise.
28835 (grub_vga_term): Removed.
28836 (grub_video_vga_adapter): New variable.
28837 (GRUB_MOD_INIT): Register a video driver instead of terminal.
28838 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
28840 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28842 * video/readers/jpeg.c: Indented.
28844 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28846 Various jpeg cleanups.
28848 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
28849 (grub_jpeg_decode_quan_table): Use sizeof.
28850 (grub_jpeg_decode_du): Use ARRAY_SIZE.
28852 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
28854 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
28855 tables. Ignore non-last ac bit.
28856 (grub_jpeg_decode_quan_table): Likewise.
28858 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28860 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
28861 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
28862 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
28863 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
28864 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
28865 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
28867 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28869 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
28872 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
28874 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
28876 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28878 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
28881 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28883 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
28886 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28888 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
28891 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
28893 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
28895 2010-05-01 Christian Franke <franke@computer.org>
28897 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
28898 Remove broken Cygwin path conversion.
28899 * util/misc.c: [__CYGWIN__] Add include and define.
28900 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
28902 (make_system_path_relative_to_its_root): Simplify loop, replace early
28904 [__CYGWIN__] Add conversion to win32 path.
28905 Include "/" case in trailing slash removal.
28907 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28909 * kern/main.c (grub_load_config): Fix copy-pasted comment.
28910 Reported by: Seth Goldberg
28912 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28914 * commands/help.c (grub_cmd_help): Fix a typo.
28915 Reported by: Seth Goldberg
28917 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28919 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
28921 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
28922 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
28923 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
28924 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
28925 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
28926 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
28927 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
28928 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
28929 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
28930 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
28931 * normal/context.c (GRUB_MOD_INIT): Likewise.
28932 * normal/main.c (GRUB_MOD_INIT): Likewise.
28933 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
28934 * term/serial.c (GRUB_MOD_INIT): Likewise.
28935 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
28937 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28939 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
28942 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28944 * commands/iorw.c: New file.
28945 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
28946 (iorw_mod_SOURCES): New variable.
28947 (iorw_mod_CFLAGS): Likewise.
28948 (iorw_mod_LDFLAGS): Likewise.
28950 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28954 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
28955 * normal/main.c (hotkey_aliases): New variable.
28956 (grub_normal_add_menu_entry): Parse "--hotkey".
28957 * normal/menu_text.c (run_menu): Handle hotkeys.
28959 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28961 * kern/i386/coreboot/init.c (grub_machine_init): Call
28962 grub_machine_mmap_init on qemu.
28964 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28966 * boot/i386/qemu/boot.S: Add a missing .code16.
28968 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28970 Use LBIO on coreboot.
28972 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
28973 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
28974 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
28976 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
28977 grub_machine_mmap_init on coreboot.
28978 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
28979 GRUB_LINUXBIOS_MEMBER_LINK.
28980 (grub_machine_mmap_iterate): Fix declaration.
28981 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
28983 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
28985 Split coreboot and multiboot ports.
28987 * conf/i386-multiboot.rmk: New file.
28988 * configure.ac: Add multiboot port.
28989 * include/grub/i386/multiboot/boot.h: New file.
28990 * include/grub/i386/multiboot/console.h: Likewise.
28991 * include/grub/i386/multiboot/init.h: Likewise.
28992 * include/grub/i386/multiboot/kernel.h: Likewise.
28993 * include/grub/i386/multiboot/loader.h: Likewise.
28994 * include/grub/i386/multiboot/memory.h: Likewise.
28995 * include/grub/i386/multiboot/serial.h: Likewise.
28996 * include/grub/i386/multiboot/time.h: Likewise.
28997 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
28998 * loader/multiboot.c: Likewise.
28999 * loader/multiboot_mbi2.c: Likewise.
29000 * util/grub-mkrescue.in: Generate multiboot rescue.
29002 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29004 * kern/parser.c (grub_parser_execute): Cope with read-only config.
29006 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
29008 Merge handling of input and output terminals. Fix a hang.
29010 * commands/terminal.c (abstract_terminal): New struct.
29011 (handle_command): New function. Based on grub_cmd_terminal_input.
29012 (grub_cmd_terminal_input): Use handle_command.
29013 (grub_cmd_terminal_output): Use handle_command.
29015 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
29017 Fix comment handling.
29019 * tests/grub_script_comments.in: New testcase.
29020 * conf/tests.rmk: Rules for new testcase.
29021 * script/yylex.l: Updated flex rules.
29023 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
29025 * docs/grub.texi (play): Document that zero pitches produce rests.
29026 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
29029 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
29031 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
29034 2010-04-26 Christian Franke <franke@computer.org>
29036 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
29037 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
29038 (grub_get_prefix): Remove function.
29039 * util/grub-emu.c (main): Replace grub_get_prefix () call by
29040 make_system_path_relative_to_its_root ().
29041 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
29043 2010-04-24 Christian Franke <franke@computer.org>
29045 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
29046 (kernel_img_LDFLAGS): Remove -static-libgcc.
29048 2010-04-24 Christian Franke <franke@computer.org>
29050 * configure.ac: Do not CHECK_BSS_START_SYMBOL
29051 and CHECK_END_SYMBOL if grub-emu is built.
29052 Unset TARGET_OBJ2ELF if grub-emu is built
29053 without module support.
29055 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
29059 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
29060 (grub_fstest_SOURCES): Likewise.
29061 (pkglib_MODULES): Add nilfs2.mod.
29062 (nilfs2_mod_SOURCES): New variable.
29063 (nilfs2_mod_CFLAGS): Likewise.
29064 (nilfs2_mod_LDFLAGS): Likewise.
29065 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29066 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
29067 * fs/nilfs2.c: New file.
29069 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
29071 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
29074 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
29076 Add grub-mkconfig support for NetBSD.
29078 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
29079 * util/grub-mkconfig.in: export new NetBSD specific variables.
29080 * po/POTFILES-shell: added 10_netbsd.in.
29081 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
29083 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
29085 Fix emu build with grub-emu-pci and grub-emu-modules.
29087 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
29089 * include/grub/libpciaccess.h: New file.
29090 * conf/any-emu.rmk: Update kernel headers for emu build.
29092 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29094 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
29096 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
29098 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
29100 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29102 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
29103 Retrieve chosen/bootpath if bootpath isn't hardcoded.
29104 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
29105 util/ieee1275/ofpath.c.
29106 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
29107 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
29108 * include/grub/sparc64/ieee1275/boot.h
29109 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
29110 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
29111 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
29112 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
29114 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
29115 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
29116 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
29119 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
29121 * util/grub-mkconfig.in: Corrected two == equality tests.
29122 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
29123 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
29124 expect a number appended to it.
29125 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
29126 expects a number appended to it.
29128 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29130 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
29132 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
29134 * util/hostdisk.c (make_device_name): Change to new partition naming.
29136 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
29138 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
29140 2010-04-17 Christian Franke <franke@computer.org>
29142 * Makefile.in: Add missing localedir setting.
29144 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
29146 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
29147 mistake in r2156. Noticed by Anthony Fok.
29149 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
29151 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
29153 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
29155 Fix a spurious, uninitialized variable warning.
29157 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
29158 Initialize variable, shdr.
29159 (grub_freebsd_load_elfmodule): Likewise.
29160 (grub_freebsd_load_elf_meta): Likewise.
29162 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
29164 Fix for escaped dollar in double quoted strings.
29166 * script/yylex.l: Updated flex rules.
29167 * conf/tests.rmk: Rule for new testcase.
29168 * tests/grub_script_dollar.in: New testcase.
29170 2010-04-13 Carles Pina i Estany <carles@pina.cat>
29171 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
29173 Enclose all translated strings in grub.cfg in single quotes, and
29174 escape them appropriately (Ubuntu bug #552921).
29176 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
29177 * util/grub.d/10_hurd.in: Use it.
29178 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
29179 * util/grub.d/10_linux.in (linux_entry): Likewise.
29181 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29183 Fix cygwin compilation.
29185 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
29186 * include/grub/misc.h (__register_frame_info)
29187 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
29188 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29189 * kern/misc.c (__register_frame_info)
29190 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
29191 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
29193 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29195 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
29197 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
29199 Unify libgcc processing.
29201 * Makefile.in (kernel_img_LDFLAGS): New variable.
29202 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
29203 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
29205 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
29206 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
29207 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
29208 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
29209 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
29210 overwriting. Remove -lgcc and -static-libgcc
29211 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
29212 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29213 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
29214 (kernel_img_LDFLAGS): Append instead of overwriting.
29215 Remove -lgcc and -static-libgcc
29216 * conf/sparc64-ieee1275.rmk: Likewise.
29217 * include/grub/powerpc/libgcc.h: Move to ...
29218 * include/grub/libgcc.h: .. this.
29219 * include/grub/libgcc.h: Don't export most of the function on x86.
29220 (__bswapsi2): New export.
29221 (__bswapdi2): Likewise.
29222 * include/grub/mips/libgcc.h: Removed.
29223 * include/grub/sparc64/libgcc.h: Likewise.
29225 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29227 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
29228 disk_info_msg (conflicts with gettexting into languages with cases).
29230 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
29232 Add grub-probe support for NetBSD.
29234 * util/getroot.c (find_root_device): Convert block device to
29235 character device on NetBSD.
29236 * util/probe.c (probe): Require character device on NetBSD.
29237 * util/hostdisk.c: NetBSD specific headers.
29238 (configure_device_driver): new function to tune device driver
29239 parameters (currently only for NetBSD floppy driver).
29240 (grub_util_biosdisk_open): NetBSD specific code (get disk size
29241 via disklabel ioctl).
29242 (open_device): call configure_device_driver on NetBSD.
29243 (convert_system_partition_to_system_disk): NetBSD specific code.
29244 (device_is_wholedisk): Likewise.
29245 (grub_util_biosdisk_get_grub_dev): Likewise.
29246 (make_device_name): Fixed a typo in bsd_part_str.
29247 * configure.ac: check for opendisk() and getrawpartition() on
29248 NetBSD and set LIBUTIL.
29249 * Makefile.in: add LIBUTIL to LIBS.
29251 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29255 * util/grub-script-check.c: Better help message.
29257 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
29261 * configure.ac: Flex version check.
29262 * conf/common.rmk: Add -Wno-error to sh.mod.
29263 * script/yylex.l: Remove all #pragma.
29265 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29267 * include/grub/util/misc.h (canonicalise_file_name): Add missing
29269 Reported by: Seth Goldberg.
29271 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29273 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
29274 Rename "module" to "module2".
29275 Reported by: Seth Goldberg.
29277 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29279 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
29281 Reported by: Seth Goldberg.
29283 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29285 * lib/posix_wrap/locale.h: Add missing file.
29286 Reported by: Seth Goldberg.
29288 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
29290 grub-emu module load support.
29292 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
29293 NO_DYNAMIC_MODULES switched to this.
29294 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
29295 (CFLAGS): Likewise.
29296 * conf/any-emu.rmk: Generate symlist.
29297 (kernel_img_HEADERS): Add util/datetime.h.
29298 (kernel_img_HEADERS) [sdl]: Add sdl.h.
29299 (kernel_img_HEADERS) [libusb]: Add libusb.h.
29300 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
29301 kern/$(target_cpu)/cache.S.
29302 * configure.ac (grub-emu-modules): New option.
29303 * genmk.rb: Handle multiple source lists.
29304 * include/grub/sdl.h: New file.
29305 * include/grub/libusb.h: Likewise.
29306 * util/grub-emu.c (main): Hanle (host) root.
29307 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
29308 GRUB_ERR_UNKNOWN_DEVICE.
29309 * util/misc.c: Move mm functions to ...
29310 * util/mm.c: ... here. All users updated.
29312 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29314 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
29315 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
29317 (maintainer-clean): Remove libgcrypt-grub.
29319 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29321 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
29323 2010-04-09 EFI Coder <eficoder@hotmail.com>
29325 * normal/menu_text.c (print_message): Clean up the message and show
29326 the Fn information when on EFI
29327 * term/efi/console.c (grub_console_checkkey): Add F4 support.
29329 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29331 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
29333 * normal/crypto.c (read_crypto_list): Likewise.
29334 * normal/dyncmd.c (read_command_list): Likewise.
29335 * normal/term.c (read_terminal_list): Likewise.
29336 * normal/main.c (read_lists): Use explicit prefix.
29337 (read_lists_hook): Use read_lists.
29338 (grub_normal_execute): Likewise.
29340 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29342 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
29343 Reported by: Thomas Schmitt.
29344 Add -no-emul-boot to grub-mkisofs parameters.
29346 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29348 * font/font.c: Indented.
29350 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29352 Elif support to GRUB script (by Deepak Vankadaru).
29354 * tests/grub_script_if.in: New testcase.
29355 * conf/tests.rmk: Rule for new testcase.
29356 * script/parser.y: Grammar rules for elif.
29358 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
29360 While and until loops support to GRUB script.
29362 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
29363 (grub_script_create_cmdwhile): New function prototype.
29364 (grub_script_execute_cmdwhile): New function prototype.
29365 * script/execute.c (grub_script_execute_cmdwhile): New function.
29366 * script/parser.y (command): New commands.
29367 (whilecmd): New grammar rule.
29368 (untilcmd): New grammar rule.
29369 * script/script.c (grub_script_create_cmdwhile): New function.
29370 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
29373 * tests/grub_script_while1.in: New testcase.
29374 * conf/tests.rmk: Rule for new testcase.
29376 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29378 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
29381 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
29383 GRUB_BACKGROUND support.
29385 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
29386 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
29388 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29390 Load fonts and modules for gfxmenu in grub-mkconfig.
29391 Idea by: Mario Vazquez
29393 * util/grub.d/00_header.in: Load pf2 and image modules.
29395 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29397 grub-mkconfig multiple terminal support.
29399 * util/grub-mkconfig.in: Handle multiple terminals correctly.
29400 * util/grub.d/00_header.in: Likewise.
29402 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
29404 * Makefile.in: Specify files explicitly instead of using $< and $@ since
29405 we use cd $(srcdir).
29407 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
29409 * util/grub.d/10_linux.in: Only use the first word of
29410 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
29411 spaces in GRUB_DISTRIBUTOR.
29412 * util/grub.d/10_kfreebsd.in: Likewise.
29413 * util/grub.d/10_hurd.in: Likewise.
29415 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
29417 Fix unit testing framework for Qemu 0.12.
29419 * tests/util/grub-shell.in: Remove -serial stdio option.
29421 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
29423 POSIX header file wrappers.
29425 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
29427 * lib/posix_wrap/ctype.h: Likewise.
29428 * lib/posix_wrap/errno.h: Likewise.
29429 * lib/posix_wrap/langinfo.h: Likewise.
29430 * lib/posix_wrap/limits.h: Likewise.
29431 * lib/posix_wrap/localcharset.h: Likewise.
29432 * lib/posix_wrap/stdint.h: Likewise.
29433 * lib/posix_wrap/stdio.h: Likewise.
29434 * lib/posix_wrap/stdlib.h: Likewise.
29435 * lib/posix_wrap/string.h: Likewise.
29436 * lib/posix_wrap/sys/types.h: Likewise.
29437 * lib/posix_wrap/unistd.h: Likewise.
29438 * lib/posix_wrap/wchar.h: Likewise.
29439 * lib/posix_wrap/wctype.h: Likewise.
29440 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
29441 (grub_script.yy.h): Likewise.
29442 * script/yylex.l: Remove POSIX emulation #defines.
29443 * Makefile.in (POSIX_CFLAGS): New variable.
29444 (GNULIB_UTIL_CFLAGS): Likewise.
29448 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
29449 (regexp_mod_SOURCES): New variable.
29450 (regexp_mod_CFLAGS): Likewise.
29451 (regexp_mod_LDFLAGS): Likewise.
29452 * commands/regexp.c: New file.
29453 * gnulib/regcomp.c: New file. Imported from gnulib.
29454 * gnulib/regex.c: Likewise.
29455 * gnulib/regex_internal.c: Likewise.
29456 * gnulib/regex_internal.h: Likewise.
29457 * gnulib/regexec.c: Likewise.
29458 * gnulib/regex.h: Likewise.
29460 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29462 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
29463 unsupported video mode types.
29465 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29467 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
29469 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
29471 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
29472 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
29474 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
29476 Remove unused grub_vga_get_font.
29478 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
29479 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
29481 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29483 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
29484 * include/grub/misc.h: Likewise.
29486 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29488 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
29489 for which failure is fatal.
29491 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29493 * util/grub-install.in: Use mkdir -p to create grub directory.
29494 * util/i386/efi/grub-install.in: Likewise.
29495 * util/ieee1275/grub-install.in: Likewise.
29497 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29499 * Makefile.in (LEX): new variable.
29501 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
29503 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
29504 `=' and added double quotes on operands of this equality test.
29506 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29508 * Makefile.in (uninstall): Remove a leftover debug echo.
29509 Reported by: Grégoire Sutre
29511 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
29513 MIPS multiboot2 support.
29515 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
29516 (multiboot2_mod_SOURCES): New variable.
29517 (multiboot2_mod_CFLAGS): Likewise.
29518 (multiboot2_mod_LDFLAGS): Likewise.
29519 (multiboot2_mod_ASFLAGS): Likewise.
29520 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
29522 (MULTIBOOT_ENTRY_REGISTER): Likewise.
29523 (MULTIBOOT_MBI_REGISTER): Likewise.
29524 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
29525 (MULTIBOOT_ELF32_MACHINE): Likewise.
29526 (MULTIBOOT_ELF64_MACHINE): Likewise.
29527 * include/grub/mips/multiboot.h: New file.
29528 * include/grub/video.h (grub_video_driver_id): New type
29529 GRUB_VIDEO_DRIVER_SM712.
29530 (grub_video_get_info_and_fini): Export.
29531 (grub_video_get_palette): Likewise.
29532 (grub_video_get_driver_id): Likewise.
29533 * include/multiboot2.h: Resynced with spec.
29534 * loader/i386/multiboot.c: Moved from here ...
29535 * loader/multiboot.c: ... here. All users updated.
29536 (grub_multiboot_boot): Use platform-specific macros.
29537 * loader/i386/multiboot_elfxx.c: Moved from here ...
29538 * loader/multiboot_elfxx.c: ... here. All users updated.
29539 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
29540 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
29541 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
29543 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
29545 Import gnulib argp module.
29547 * gnulib/argp-ba.c: New file.
29548 * gnulib/argp-eexst.c: Likewise.
29549 * gnulib/argp-fmtstream.c: Likewise.
29550 * gnulib/argp-fmtstream.h: Likewise.
29551 * gnulib/argp-fs-xinl.c: Likewise.
29552 * gnulib/argp-help.c: Likewise.
29553 * gnulib/argp-namefrob.h: Likewise.
29554 * gnulib/argp-parse.c: Likewise.
29555 * gnulib/argp-pin.c: Likewise.
29556 * gnulib/argp-pv.c: Likewise.
29557 * gnulib/argp-pvh.c: Likewise.
29558 * gnulib/argp-version-etc.c: Likewise.
29559 * gnulib/argp-version-etc.h: Likewise.
29560 * gnulib/argp-xinl.c: Likewise.
29561 * gnulib/argp.h: Likewise.
29563 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29565 * kern/device.c (grub_device_iterate): Clear errors after failed
29568 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
29570 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
29571 returned by firmware.
29573 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
29575 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
29576 compilation on coreboot and qemu
29578 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29580 * include/multiboot2.h: Resync with spec.
29582 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
29584 Multiboot2 tag support
29586 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
29587 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
29588 Remove loader/multiboot_loader.c.
29589 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
29590 (grub_multiboot2_real_boot): Likewise.
29591 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
29592 (grub_get_multiboot_mmap_count): New proto.
29593 (grub_fill_multiboot_mmap): Likewise.
29594 (grub_multiboot_set_video_mode): Likewise.
29595 (grub_multiboot_set_console): Likewise.
29596 (grub_multiboot_load): Likewise.
29597 (grub_multiboot_load_elf): Likewise.
29598 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
29599 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
29600 * include/multiboot.h: Resynced with specification.
29601 * include/multiboot2.h: Resynced with specification.
29602 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
29603 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
29604 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
29605 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
29607 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
29608 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
29609 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
29611 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
29613 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
29614 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
29616 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
29617 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
29618 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
29620 * loader/i386/multiboot_mbi2.c: New file.
29622 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29624 Resync with gnulib.
29626 * Makefile.in (GNULIB_CFLAGS): New variable.
29627 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
29628 (grub_script_check_CFLAGS): New variable.
29629 * gnulib/alloca.h: Resync with gnulib.
29630 * gnulib/error.c: Likewise.
29631 * gnulib/error.h: Likewise.
29632 * gnulib/fnmatch.c: Likewise.
29633 * gnulib/fnmatch_loop.c: Likewise.
29634 * gnulib/getdelim.c: Likewise.
29635 * gnulib/getline.c: Likewise.
29636 * gnulib/getopt.c: Likewise.
29637 * gnulib/getopt1.c: Likewise.
29638 * gnulib/getopt_int.h: Likewise.
29639 * gnulib/gettext.h: Likewise.
29640 * gnulib/progname.c: Likewise.
29641 * gnulib/progname.h: Likewise.
29643 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
29645 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
29646 which is the case with --disabled-nls.
29648 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
29649 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
29650 * util/misc.c: Likewise.
29651 * util/mkisofs/mkisofs.c: Likewise.
29652 * util/mkisofs/mkisofs.h: Likewise.
29654 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
29656 Simplify Apple CC support.
29658 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
29659 Add 0 byte at the end not to have a symbol with empty target.
29660 * mmap/i386/pc/mmap_helper.S: Likewise.
29661 * genmk.rb: Ignore errors 2030 and 2050.
29662 * kern/i386/pc/startup.S: Use LOCAL when possible.
29664 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
29666 Testcase and the fix for final semicolon on cmdline.
29668 * tests/grub_script_final_semicolon.in: New testcase.
29669 * conf/tests.rmk: Rules for the new testcase.
29670 * script/parser.y: Grammar fix.
29672 2010-03-26 BVK Chaitanya <bvk@localhost>
29674 Blank lines testcase for GRUB script.
29676 * tests/grub_script_blanklines.in: New testcase.
29677 * conf/tests.rmk: Rules for the new testcase.
29679 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29681 Don't use __FILE__.
29683 * genmk.rb: Add -DGRUB_FILE to all C targets.
29684 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
29685 * include/grub/list.h: Likewise.
29686 * include/grub/misc.h: Likewise.
29687 * include/grub/mm.h: Likewise.
29688 * include/grub/test.h: Likewise.
29689 * kern/mm.c: Likewise.
29690 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29692 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29694 Sunpc partitions support.
29696 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
29697 (grub_fstest_SOURCES): Likewise.
29698 (pkglib_MODULES): Add part_sunpc.mod.
29699 (part_sunpc_mod_SOURCES): New variable.
29700 (part_sunpc_mod_CFLAGS): Likewise.
29701 (part_sunpc_mod_LDFLAGS): Likewise.
29702 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
29703 * partmap/sunpc.c: New file.
29705 2010-03-26 BVK Chaitanya <bvk@localhost>
29707 For loop support to GRUB script.
29709 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
29710 (grub_script_create_cmdfor): New function prototype.
29711 (grub_script_execute_cmdfor): New function prototype.
29712 * script/execute.c (grub_script_execute_cmdfor): New function.
29713 * script/parser.y (command): New for command.
29714 (forcmd): New grammar rule.
29715 * script/script.c (grub_script_create_cmdfor): New function.
29716 * util/grub-script-check.c (grub_script_execute_cmdfor): New
29718 * tests/grub_script_for1.in: New testcase.
29719 * conf/tests.rmk: Rules for new testcase.
29721 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
29725 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
29726 'partition' is NULL, grub_partition_get_start already does that.
29727 * commands/loadenv.c (check_blocklists): Likewise.
29728 (write_blocklists): Likewise.
29729 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
29730 (grub_fstest_SOURCES): Likewise.
29731 (pkglib_MODULES): Add part_bsd.mod.
29732 (part_bsd_mod_SOURCES): New variable.
29733 (part_bsd_mod_CFLAGS): Likewise.
29734 (part_bsd_mod_LDFLAGS): Likewise.
29735 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
29736 (grub_emu_SOURCES): Likewise.
29737 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29738 * include/grub/bsdlabel.h: New file.
29739 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
29741 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
29742 (grub_partition_map_list): New variable.
29743 (grub_partition_map_register): Inline.
29744 (grub_partition_map_unregister): Likewise.
29745 (FOR_PARTITION_MAPS): New macro.
29746 (grub_partition_map_iterate): Removed.
29747 (grub_partition_get_start): Handle nested partitions.
29748 * include/grub/msdos_partition.h: Remove bsd-related entries.
29749 (grub_pc_partition): Remove.
29750 * kern/disk.c (grub_disk_close): Free partition data.
29751 (grub_disk_adjust_range): Handle nested partitions.
29752 * kern/partition.c (grub_partition_map_probe): New function.
29753 (grub_partition_probe): Parse name to number, handle subpartitions.
29754 (get_partmap): New function.
29755 (grub_partition_iterate): Handle subpartitions.
29756 (grub_partition_get_name): Likewise.
29757 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
29758 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
29759 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
29760 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
29762 (acorn_partition_map_probe): Remove.
29763 (acorn_partition_map_get_name): Likewise.
29764 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
29766 Set 'index' to 0 since there can be only one partition entry per sector.
29767 (amiga_partition_map_probe): Remove.
29768 (amiga_partition_map_get_name): Likewise.
29769 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
29771 Set 'offset' and 'index' to real positions of partitions.
29772 (apple_partition_map_probe): Remove.
29773 (apple_partition_map_get_name): Likewise.
29774 * partmap/bsdlabel.c: New file.
29775 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
29777 Allocate 'data' so it can be correctly freed.
29778 Set 'index' to offset inside sector.
29779 (gpt_partition_map_probe): Remove.
29780 (gpt_partition_map_get_name): Likewise.
29781 * partmap/msdos.c (grub_partition_parse): Remove.
29782 (pc_partition_map_iterate): Don't force raw access.
29784 Make 'ext_offset' a local variable.
29785 (pc_partition_map_probe): Remove.
29786 (pc_partition_map_get_name): Remove.
29787 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
29789 (sun_partition_map_probe): Remove.
29790 (sun_partition_map_get_name): Likewise.
29791 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
29792 (grub_pcpart_type): Likewise.
29793 * util/hostdisk.c (open_device): Handle new numbering scheme.
29794 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
29795 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
29796 * util/grub-probe.c (probe_partmap): Handle nested paritions.
29797 * util/grub-install.in: Insert all subpartition modules.
29798 * util/ieee1275/grub-install.in: Likewise.
29800 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
29802 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
29805 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
29807 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
29809 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
29811 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
29812 match where 'make install' puts them.
29813 * util/i386/efi/grub-install.in: Likewise.
29815 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
29817 * .bzrignore: Add gentrigtables, grub-script-check,
29818 grub_script_check_init.c, grub_script_check_init.h, and
29821 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
29823 * kern/parser.c: Indented.
29825 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29827 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
29829 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
29831 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
29832 alpha_mask_size == 0 case.
29834 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
29836 GRUB shell lexer and parser improvements.
29838 * conf/any-emu.rmk: Build rule updates.
29839 * conf/common.rmk: Likewise.
29840 * conf/i386-coreboot.rmk: Likewise.
29841 * conf/i386-efi.rmk: Likewise.
29842 * conf/i386-ieee1275.rmk: Likewise.
29843 * conf/i386-pc.rmk: Likewise.
29844 * conf/powerpc-ieee1275.rmk: Likewise.
29845 * conf/x86_64-efi.rmk: Likewise.
29847 * configure.ac: Configure check for flex.
29849 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
29851 (grub_lexer_param): Struct member updates.
29852 (grub_parser_param): Likewise.
29853 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
29854 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
29855 (grub_script_lexer_init): Prototype update.
29856 (grub_script_lexer_record_start): Likewise.
29857 (grub_script_lexer_record_stop): Likewise.
29858 (grub_script_lexer_yywrap): New function prototype.
29859 (grub_script_lexer_fini): Likewise.
29860 (grub_script_execute_argument_to_string): Removed by...
29861 (grub_script_execute_argument_to_argv): ...better version.
29863 * script/execute.c (ROUND_UPTO): New macro.
29864 (grub_script_execute_cmdline): Out of memory fixes.
29865 (grub_script_execute_menuentry): Likewise.
29866 (grub_script_execute_argument_to_string): Removed. Update all
29868 (grub_script_execute_argument_to_argv): ...better version.
29869 * script/function.c (grub_script_function_create): Use
29870 grub_script_execute_argument_to_argv instead of
29871 grub_script_execute_argument_to_string.
29873 * script/lexer.c (check_varstate): Removed.
29874 (check_textstate): Removed.
29875 (grub_script_lexer_record_start): Likewise.
29876 (grub_script_lexer_record_stop): Likewise.
29877 (recordchar): Replaced with...
29878 (grub_script_lexer_record): ...new function.
29879 (nextchar): Removed.
29880 (grub_script_lexer_init): Rewritten.
29881 (grub_script_yylex): Rewritten.
29882 (append_newline): New function.
29883 (grub_script_lexer_yywrap): New function.
29884 (grub_script_lexer_fini): New function.
29885 (grub_script_yyerror): Sets error flag.
29887 * script/yylex.l: New file.
29888 (grub_lexer_yyfree): Wrapper for flex yyffre.
29889 (grub_lexer_yyalloc): Likewise.
29890 (grub_lexer_yyrealloc): Likewise.
29891 * script/parser.y: Refactored.
29893 * script/script.c (grub_script_arg_add): Out of memory fixes.
29894 (grub_script_add_arglist): Likewise.
29895 (grub_script_create_cmdline): Likewise.
29896 (grub_script_create_cmdmenu): Likewise.
29897 (grub_script_add_cmd): Likewise.
29898 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
29899 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
29902 * tests/grub_script_echo1.in: New testcase.
29903 * tests/grub_script_vars1.in: New testcase.
29904 * tests/grub_script_echo_keywords.in: New testcase.
29906 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
29908 Remove some redundancy in build system.
29910 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
29911 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
29912 (TARGET_LDFLAGS): Add -nostdlib.
29913 (TARGET_IMG_LDFLAGS): Likewise.
29914 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
29915 anything since mmap isn't available.
29916 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
29918 (pkglib_MODULES): Remove reboot.mod.
29919 (reboot_mod_SOURCES): Removed.
29920 (reboot_mod_CFLAGS): Likewise.
29921 (reboot_mod_LDFLAGS): Likewise.
29922 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
29923 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
29924 (DEFSYMFILES): Add kernel_syms.lst.
29925 (kernel_img_HEADERS): Add common headers.
29926 (symlist.c): New target.
29927 (kernel_syms.lst): Likewise.
29928 (pkglib_MODULES): Add memdisk.mod.
29929 (memdisk_mod_SOURCES): New variable.
29930 (memdisk_mod_CFLAGS): Likewise.
29931 (memdisk_mod_LDFLAGS): Likewise.
29932 (pkglib_MODULES): Add reboot.mod.
29933 (reboot_mod_SOURCES): New variable.
29934 (reboot_mod_CFLAGS): Likewise.
29935 (reboot_mod_LDFLAGS): Likewise.
29936 (pkglib_MODULES): Add date.mod.
29937 (date_mod_SOURCES): New variable.
29938 (date_mod_CFLAGS): Likewise.
29939 (date_mod_LDFLAGS): Likewise.
29940 (pkglib_MODULES): Add datehook.mod.
29941 (datehook_mod_SOURCES): New variable.
29942 (datehook_mod_CFLAGS): Likewise.
29943 (datehook_mod_LDFLAGS): Likewise.
29944 (pkglib_MODULES): Add lsmmap.mod.
29945 (lsmmap_mod_SOURCES): New variable.
29946 (lsmmap_mod_CFLAGS): Likewise.
29947 (lsmmap_mod_LDFLAGS): Likewise.
29948 (pkglib_MODULES): Add boot.mod.
29949 (boot_mod_SOURCES): New variable.
29950 (boot_mod_CFLAGS): Likewise.
29951 (boot_mod_LDFLAGS): Likewise.
29952 * conf/i386-coreboot.rmk: Removed redundant parts.
29953 * conf/i386-ieee1275.rmk: Likewise.
29954 * conf/i386-pc.rmk: Likewise.
29955 * conf/mips-yeeloong.rmk: Likewise.
29956 * conf/mips.rmk: Likewise.
29957 * conf/powerpc-ieee1275.rmk: Likewise.
29958 * conf/sparc64-ieee1275.rmk: Likewise.
29959 * conf/x86_64-efi.rmk: Likewise.
29960 * conf/i386-coreboot.rmk: Moved qemu parts ..
29961 * conf/i386-qemu.rmk: ... here
29962 * conf/i386-efi.rmk: Moved common parts to...
29963 * conf/x86-efi.rmk: ... here.
29964 * conf/i386.rmk: Added modules common to all x86 variants.
29965 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
29966 * disk/memdisk.c: Remove grub/machine/kernel.h.
29967 * gensymlist.sh.in: Include symbol.h.
29968 * hook/datehook.c: Correct module name.
29969 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
29970 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
29971 * include/grub/i386/efi/serial.h: New file.
29972 * include/grub/x86_64/efi/serial.h: Likewise.
29973 * util/time.c: Likewise.
29974 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
29976 2010-03-14 Colin King <colin.king@ubuntu.com>
29977 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29979 Shrink the pre-partition-table part of boot.img by eight bytes.
29981 * boot/i386/pc/boot.S (ERR): New macro.
29982 (chs_mode): Use ERR.
29983 (geometry_error): Likewise.
29984 (hd_probe_error): Remove. This is only used once, so we wrwite
29986 (read_error): Instead of printing read_error_string, just set up
29987 %si and fall through to ...
29988 (error_message): ... this new function, also used by ERR.
29990 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
29992 Speed up consecutive hostdisk operations on the same device.
29994 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
29995 (grub_util_biosdisk_open): Initialise disk->data.
29996 (struct linux_partition_cache): New structure.
29997 (linux_find_partition): Cache partition start positions; these are
29998 expensive to compute on every read and write.
29999 (open_device): Cache open file descriptor in disk->data, so that we
30000 don't have to reopen it and flush the buffer cache for consecutive
30001 operations on the same device.
30002 (grub_util_biosdisk_close): New function.
30003 (grub_util_biosdisk_dev): Set `close' member.
30005 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
30006 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
30007 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
30008 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
30009 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
30011 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30013 Compile parts of grub-emu as modules.
30015 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
30016 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
30017 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
30018 (all-local): Add $(GRUB_EMU).
30019 (install-local): Install $(GRUB_EMU).
30020 (uninstall): Uninstall $(GRUB_EMU).
30021 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
30022 * kern/dl.c: Likewise.
30023 * commands/sleep.c: Not include machine/time.h.
30024 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
30025 (COMMON_CFLAGS): Likewise.
30026 (sbin_UTILITIES): Remove grub-emu.
30027 (grub_emu_SOURCES): Removed.
30028 (kernel_img_RELOCATABLE): New variable.
30029 (pkglib_PROGRAMS): Add kernel.img.
30030 (kernel_img_SOURCES): New variable
30031 (kernel_img_CFLAGS): Likewise.
30032 (kernel_img_LDFLAGS): Likewise.
30033 (TARGET_NO_STRIP): Likewise.
30034 (TARGET_NO_DYNAMIC_MODULES): Likewise.
30035 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
30036 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
30037 (grub-emu): New target.
30038 (GRUB_EMU): New variable.
30039 * configure.ac: Whitelist -emu as possible x86_64 architecture.
30040 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
30041 * loader/xnu.c: Likewise.
30042 * include/grub/pci.h: Likewise.
30043 * genemuinit.sh: New file.
30044 * genemuinitheader.sh: Likewise.
30045 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
30046 Support TARGET_NO_DYNAMIC_MODULES.
30047 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
30048 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
30049 * disk/loopback.c: Likewise.
30050 * font/font_cmd.c: Likewise.
30051 * partmap/acorn.c: Likewise.
30052 * partmap/amiga.c: Likewise.
30053 * partmap/apple.c: Likewise.
30054 * partmap/gpt.c: Likewise.
30055 * partmap/msdos.c: Likewise.
30056 * partmap/sun.c: Likewise.
30057 * parttool/msdospart.c: Likewise.
30058 * term/gfxterm.c: Likewise.
30059 * video/bitmap.c: Likewise.
30060 * video/readers/jpeg.c: Likewise.
30061 * video/readers/png.c: Likewise.
30062 * video/readers/tga.c: Likewise.
30063 * video/video.c: Likewise.
30064 * util/grub-emu.c (read_command_list): Removed.
30065 (main): Don't call util_init_nls.
30066 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
30067 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
30069 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30071 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
30072 date.mod, datehook.mod.
30073 (datetime_mod_SOURCES): New variable.
30074 (datetime_mod_CFLAGS): Likewise.
30075 (datetime_mod_LDFLAGS): Likewise.
30076 (date_mod_SOURCES): Likewise.
30077 (date_mod_CFLAGS): Likewise.
30078 (date_mod_LDFLAGS): Likewise.
30079 (datehook_mod_SOURCES): Likewise.
30080 (datehook_mod_CFLAGS): Likewise.
30081 (datehook_mod_LDFLAGS): Likewise.
30082 * conf/sparc64-ieee1275.rmk: Likewise.
30083 * lib/ieee1275/datetime.c: New file.
30085 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30087 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
30088 (ieee1275_fb_mod_SOURCES): New variable.
30089 (ieee1275_fb_mod_CFLAGS): Likewise.
30090 (ieee1275_fb_mod_LDFLAGS): Likewise.
30091 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
30093 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
30094 (HEAP_MAX_ADDR): Likewise.
30095 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
30097 Correct stop condition.
30098 (grub_ieee1275_devices_iterate): New function.
30099 * video/ieee1275.c: New file.
30101 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
30103 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
30105 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
30107 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
30108 SCRATCH_PAD_DISKBOOT as scratch.
30109 (bootit): Pass Openfirmware pointer in %o4.
30110 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
30112 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
30113 with util/grub-mkrawimage.c.
30114 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
30115 * include/grub/aout.h (AOUT_MID_SUN): New definition.
30116 (grub_aout_get_type) [GRUB_UTIL]: Removed.
30117 (grub_aout_load) [GRUB_UTIL]: Likewise.
30118 * include/grub/kernel.h (grub_modules_get_end): New proto.
30119 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
30120 (SCRATCH_PAD_BOOT): New definition.
30121 (SCRATCH_PAD_DISKBOOT): Likewise.
30122 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
30123 * include/grub/sparc64/ieee1275/ieee1275.h
30124 (grub_ieee1275_original_stack): New variable
30125 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30127 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
30128 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
30129 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
30130 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
30131 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
30132 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
30133 (grub_platform_image_format_t): New type.
30134 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
30135 * kern/main.c (grub_modules_get_end)
30136 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
30137 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
30138 (codestart): Switch stacks.
30139 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
30141 (grub_heap_init): Use grub_modules_get_end.
30142 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
30144 * util/grub-mkrawimage.c (generate_image): Support sparc64.
30146 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
30148 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
30150 * util/grub-mkrescue.in: Base ISO UUID on UTC.
30152 2010-03-08 Matt Kraai <kraai@ftbfs.org>
30154 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
30157 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
30159 * genmoddep.awk: Output all missing symbols and not only first.
30161 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30163 * NEWS: Put the date of 1.98 release.
30165 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30167 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
30170 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30172 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
30173 completition in the middle of string.
30175 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30177 * util/grub-mkrescue.in: Use mktemp with explicit template.
30179 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30181 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
30183 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
30185 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
30188 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30190 Fix FreeBSD compilation.
30192 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
30193 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
30195 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
30197 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
30199 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30201 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
30203 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30205 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
30207 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
30209 Support relative image path in theme file.
30211 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
30212 (image_set_property): Handle theme_dir and relative path.
30214 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30216 * configure.ac: Alias amd64 to x86_64.
30218 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30220 * NEWS: mention multiboot on EFI.
30222 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30224 * kern/main.c (grub_load_modules): Handle errors from init functions of
30227 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30229 * normal/autofs.c (autoload_fs_module): Handle errors.
30231 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30233 Disable linux.mod on qemu-mips since it's not functional and leads
30234 to compilation failure.
30236 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
30237 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
30238 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
30239 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
30240 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
30241 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
30242 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
30243 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
30244 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
30245 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
30246 Reported by: BVK Chaitanya
30248 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
30250 * INSTALL: Add gettext as a dependency and add qemu to a new section
30251 "Prerequisites for make-check".
30253 2010-03-04 Christian Franke <franke@computer.org>
30255 * util/grub-pe2elf.c: Add missing include "progname.h".
30257 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30259 * normal/crypto.c (read_crypto_list): Fix a typo.
30260 Reported by: Seth Goldberg.
30262 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30264 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
30265 Reported by: Seth Goldberg.
30267 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30269 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
30272 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30274 * genmk.rb: Remove terminal*.lst in make clean.
30275 Reported by: Seth Goldberg.
30277 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
30279 * util/i386/efi/grub-install.in: Copy gettext files.
30281 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30283 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
30285 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30287 Wait for user entry basing on presence of output rather than on errors.
30289 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
30290 (grub_install_newline_hook): Likewise.
30291 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
30292 * normal/menu.c (show_menu): Check line_counter to determine presence
30294 * normal/term.c (grub_normal_line_counter): New variable.
30295 (grub_normal_get_line_counter): New function.
30296 (grub_install_newline_hook): Likewise.
30298 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30300 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
30302 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
30304 * configure.ac: Update version to 1.98.
30306 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
30308 * util/grub.d/10_linux.in (linux_entry): Don't default to
30309 gfxpayload=keep if Linux doesn't support video handover.
30311 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
30313 Don't compile video modules on yeeloong since video subsystem is part
30316 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
30317 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
30318 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
30319 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
30320 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
30321 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
30322 * include/grub/bitmap_scale.h: Likewise.
30323 * include/grub/bufio.h: Likewise.
30324 * include/grub/font.h: Likewise.
30325 * include/grub/gfxterm.h: Likewise.
30326 * include/grub/video.h: Likewise.
30327 * include/grub/vbe.h: Don't include video_fb.h.
30328 * video/i386/pc/vbe.c: Include video_fb.h.
30329 * commands/i386/pc/vbetest.c: Include video.h.
30331 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
30333 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
30334 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
30335 default entry if GRUB_SAVEDEFAULT=true. This allows using
30336 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
30337 saving a new default on every boot.
30339 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30341 * normal/crypto.c (read_crypto_list): Fix a memory leak.
30342 * normal/term.c (read_terminal_list): Likewise.
30343 * normal/main.c (grub_normal_init_page): Likewise.
30344 (grub_normal_read_line_real): Likewise.
30346 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
30348 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
30350 Reported by: Seth Goldberg.
30352 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
30354 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
30355 duplicate declaration of `start'.
30357 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30359 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
30361 Reported by: Georgy Buranov
30363 2010-02-20 Carles Pina i Estany <carles@pina.cat>
30365 * util/grub-mkrawimage.c (usage): Change string formatting to
30368 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
30370 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
30373 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
30375 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
30376 Reported by: Michael Suchanek.
30378 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
30380 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
30381 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
30383 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
30385 Remove any reference to non-free fonts.
30387 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
30388 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
30389 uses non-free components.
30390 * font/font.c (grub_font_get_name): Remove example name.
30391 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
30392 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
30393 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
30394 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
30396 2010-02-16 Georgy Buranov <gburanov@gmail.com>
30398 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
30400 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30402 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
30404 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
30406 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
30408 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
30410 * gensymlist.sh.in: Use TARGET_CC instead of CC.
30412 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30414 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
30415 * docs/grub.texi (Command-line and menu entry commands): Document play
30418 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30420 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
30421 parse arguments as inline tempo and notes. Move code for playing notes
30423 (play): ... new function.
30425 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
30427 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
30428 grub_uint16_t instead of short.
30429 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
30430 disk from little endian to cpu endianness.
30432 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
30434 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
30435 GRUB_TICKS_PER_SECOND instead of 120.
30437 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30439 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
30440 escape sequence after \e.
30442 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30444 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
30445 non-ASCII characters.
30447 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30449 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
30450 set root in single quotes to prevent \, from being unescaped.
30452 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30454 Prevent unknown commands from stopping menuentry execution.
30456 * script/execute.c (grub_script_execute_cmdline): Print error after
30459 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
30461 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
30462 Reported by: Pavel Pisa.
30464 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30466 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
30468 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30470 Merge grub_ieee1275_map_physical into grub_map and rename to
30473 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
30474 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
30476 * kern/ieee1275/openfw.c (grub_map): Rename to ...
30477 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
30479 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
30481 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30483 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
30484 opening and not after.
30486 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30488 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
30491 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30493 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
30494 (alloc_phys): Use ALIGN_UP instead of align_addr.
30496 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30498 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
30500 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30502 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
30504 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30506 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
30509 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30511 Fix over-4GiB seek on sparc64.
30513 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
30514 Replace pos_i and pos_lo with pos. All users updated.
30515 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30517 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
30519 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
30522 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30524 * util/grub-mkrawimage.c (main): Call set_program_name.
30526 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30528 Properly align 64-bit targets.
30530 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
30531 (generate_image): Use ALIGN_ADDR.
30533 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30535 Properly create cross-endian images.
30537 * include/grub/types.h (grub_host_to_target_addr): New macro
30538 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
30540 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
30542 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
30544 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30546 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
30548 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
30549 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
30550 (grub_linux_boot): Divide by 64K when on VESA.
30552 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30554 Support GRUB_GFXPAYLOAD_LINUX.
30556 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
30557 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
30559 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
30561 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
30562 to show messages instead of discarding them.
30563 Process errors after executing command and not before. Keep old method
30566 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
30568 * configure.ac: Check for ft2build.h.
30570 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30572 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
30574 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30576 * genkernsyms.sh.in: Use TARGET_CC.
30578 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
30582 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30584 * include/grub/multiboot2.h: Remove leftover file.
30585 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
30586 * include/grub/partition.h [GRUB_UTIL]: Likewise.
30588 2010-02-07 Yves Blusseau <blusseau@zetam.org>
30590 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
30592 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30594 Fix warnings in grub-emu when compiling with maximum warning options.
30596 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
30597 (grub_arch_modules_addr): Return 0 and not NULL.
30598 * util/misc.c (ENABLE_RELOCATABLE): New definition.
30599 (xstrdup): Use newstr instead of dup.
30600 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
30601 of disk to dsk to avoid shadowing.
30602 (find_free_slot): Fix prototype.
30603 * util/getroot.c (grub_util_is_dmraid): Make static.
30604 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
30605 Add missing prototype.
30606 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
30608 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30610 * loader/i386/linux.c (grub_linux_setup_video): Handle error
30613 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30615 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
30618 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30620 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
30621 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
30622 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
30623 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
30624 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
30625 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
30627 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30629 * include/grub/err.h (grub_err_printf): Don't export.
30631 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30633 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
30635 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
30637 * include/grub/i18n.h (grub_gettext_dummy): Removed.
30638 * kern/misc.c (grub_gettext_dummy): Make static.
30640 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30642 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
30644 * kern/term.c (grub_putchar): Likewise.
30646 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30648 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
30649 buggy hook call and memory leak.
30651 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30653 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
30655 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30657 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
30659 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30661 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
30663 Return grub_errno on allocation error.
30665 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30667 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
30669 2010-02-06 Yves Blusseau <blusseau@zetam.org>
30671 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
30672 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
30674 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30676 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
30678 (grub_pxefs_open): Likewise.
30680 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30682 * util/grub.d/10_hurd.in: Add --class information to menuentries.
30683 * util/grub.d/10_kfreebsd.in: Likewise.
30684 * util/grub.d/10_linux.in: Likewise.
30686 2010-02-06 Colin D Bennett <colin@gibibit.com>
30688 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
30689 (gfxmenu_mod_SOURCES): New variable.
30690 (gfxmenu_mod_CFLAGS): Likewise.
30691 (gfxmenu_mod_LDFLAGS): Likewise.
30692 * include/grub/term.h (grub_term_set_current_output): Declare
30694 * docs/gfxmenu-theme-example.txt: New file.
30695 * gfxmenu/gfxmenu.c: Likewise.
30696 * gfxmenu/gui_box.c: Likewise.
30697 * gfxmenu/gui_canvas.c: Likewise.
30698 * gfxmenu/gui_circular_progress.c: Likewise.
30699 * gfxmenu/gui_image.c: Likewise.
30700 * gfxmenu/gui_label.c: Likewise.
30701 * gfxmenu/gui_list.c: Likewise.
30702 * gfxmenu/gui_progress_bar.c: Likewise.
30703 * gfxmenu/gui_string_util.c: Likewise.
30704 * gfxmenu/gui_util.c: Likewise.
30705 * gfxmenu/icon_manager.c: Likewise.
30706 * gfxmenu/model.c: Likewise.
30707 * gfxmenu/named_colors.c: Likewise.
30708 * gfxmenu/theme_loader.c: Likewise.
30709 * gfxmenu/view.c: Likewise.
30710 * gfxmenu/widget-box.c: Likewise.
30711 * include/grub/gfxmenu_model.h: Likewise.
30712 * include/grub/gfxmenu_view.h: Likewise.
30713 * include/grub/gfxwidgets.h: Likewise.
30714 * include/grub/gui.h: Likewise.
30715 * include/grub/gui_string_util.h: Likewise.
30716 * include/grub/icon_manager.h: Likewise.
30718 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30720 Agglomerate scrolling in gfxterm.
30722 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
30723 (grub_virtual_screen_setup): Initialise 'total_screen'.
30724 (write_char): Split to ...
30725 (paint_char): ... this ...
30726 (write_char): ... and this.
30727 (paint_char): Handle delayed scrolling.
30728 (draw_cursor): Likewise.
30729 (scroll_up): Split to ...
30730 (real_scroll): ... this ...
30731 (scroll_up): ... and this.
30732 (real_scroll): Handle multi-line scroll and draw below-the-bottom
30734 (grub_gfxterm_refresh): Call real_scroll.
30736 2010-02-06 Colin D Bennett <colin@gibibit.com>
30738 * include/grub/misc.h (grub_iscntrl): New inline function.
30739 (grub_isalnum): Likewise.
30740 (grub_strtol): Likewise.
30742 2010-02-06 Colin D Bennett <colin@gibibit.com>
30744 * normal/menu_text.c (get_entry_number): Move from here ...
30745 * normal/menu.c (get_entry_number): ... moved here.
30746 * include/grub/menu.h (grub_menu_get_default_entry_index):
30748 * normal/menu.c (grub_menu_get_default_entry_index): New function.
30749 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
30750 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
30751 (grub_menu_viewer_should_return): Likewise.
30752 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
30753 * normal/menu_text.c (run_menu): Enable menu switching.
30754 * normal/menu_viewer.c (should_return): New variable.
30755 (menu_viewer_changed): Likewise.
30756 (grub_menu_viewer_show_menu): Handle menu viewer changes.
30757 (grub_menu_viewer_should_return): New function.
30758 (menuviewer_write_hook): Likewise.
30759 (grub_menu_viewer_init): Likewise.
30761 2010-02-06 Colin D Bennet <colin@gibibit.com>
30762 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30764 Support for gfxterm in a window.
30766 * include/grub/gfxterm.h: New file.
30767 * include/grub/video.h (struct grub_video_rect): New declaration.
30768 (grub_video_rect_t): Likewise.
30769 * term/gfxterm.c (struct grub_gfxterm_window): New type.
30770 (refcount): New variable.
30771 (render_target): Likewise.
30772 (window): Likewise.
30773 (repaint_callback): Likewise.
30774 (grub_virtual_screen_setup): Use 'render_target'.
30775 (init_window): New function.
30776 (grub_gfxterm_init_window): Likewise.
30777 (grub_gfxterm_init): Check reference counter.
30779 (destroy_window): New function.
30780 (grub_gfxterm_destroy_window): Likewise.
30781 (grub_gfxterm_fini): Check reference counter.
30782 Use destroy_window.
30783 (redraw_screen_rect): Restore viewport.
30784 Use 'render_target' and 'window'.
30785 Call 'repaint_callback'.
30786 (write_char): Use 'render_target'.
30787 (draw_cursor): Likewise.
30788 (scroll_up): Restore viewport.
30789 Use 'render_target' and 'window'.
30790 Call 'repaint_callback'.
30791 (grub_gfxterm_cls): Likewise.
30792 (grub_gfxterm_refresh): Use 'window'.
30793 (grub_gfxterm_set_repaint_callback): New function.
30794 (grub_gfxterm_background_image_cmd): Use 'window'.
30795 (grub_gfxterm_get_term): New function.
30796 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
30798 2010-02-06 Colin D Bennett <colin@gibibit.com>
30800 Bitmap scaling support.
30802 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
30803 (bitmap_scale_mod_SOURCES): New variable.
30804 (bitmap_scale_mod_CFLAGS): Likewise.
30805 (bitmap_scale_mod_LDFLAGS): Likewise.
30806 * include/grub/bitmap_scale.h: New file.
30807 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
30808 (background_image_cmd_options): New variable.
30809 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
30810 (cmd): Rename and change type to ...
30811 (background_image_cmd_handle): ... this. All users updated.
30812 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
30813 * video/bitmap_scale.c: New file.
30815 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30819 * Makefile.in (LIBSDL): New variable.
30820 (enable_grub_emu_sdl): Likewise.
30821 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
30822 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
30823 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
30824 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
30825 * util/sdl.c: New file.
30827 2010-02-06 Colin D Bennett <colin@gibibit.com>
30828 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30830 Double buffering support.
30832 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
30833 * include/grub/video.h: Update comment.
30834 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
30836 (grub_video_fb_doublebuf_blit_init): New prototype.
30837 * term/gfxterm.c (scroll_up): Support double buffering.
30838 (grub_gfxterm_refresh): Likewise.
30839 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
30840 (grub_video_fb_doublebuf_blit_init): Likewise.
30841 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
30842 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
30843 'displayed_page', 'render_page' and 'update_screen'.
30844 (grub_video_vbe_fini): Free offscreen buffer.
30845 (doublebuf_pageflipping_commit): New function.
30846 (doublebuf_pageflipping_update_screen): Likewise.
30847 (doublebuf_pageflipping_init): Likewise.
30848 (double_buffering_init): Likewise.
30849 (grub_video_vbe_setup): Enable doublebuffering.
30850 (grub_video_vbe_swap_buffers): Implement.
30851 (grub_video_vbe_set_active_render_target): Handle double buffering.
30852 (grub_video_vbe_get_active_render_target): Likewise.
30853 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
30854 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
30855 (grub_video_vbe_enable_double_buffering): Likewise.
30856 (grub_video_vbe_swap_buffers): Use update_screen.
30857 (grub_video_set_mode): Use double buffering.
30859 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30861 * maintainance/gentrigtables.py: Remove.
30862 * lib/trig.c: Likewise.
30864 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
30866 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
30868 (trigtables.c): New rule.
30869 (gentrigtables): Likewise.
30870 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
30872 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
30874 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
30877 2010-02-06 Colin D Bennet <colin@gibibit.com>
30879 Trigonometry support.
30881 * include/grub/trig.h: New file.
30882 * lib/trig.c: Likewise.
30883 * maintainance/gentrigtables.py: Likewise.
30884 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
30885 (trig_mod_SOURCES): New variable.
30886 (trig_mod_CFLAGS): Likewise.
30887 (trig_mod_LDFLAGS): Likewise.
30889 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30891 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
30894 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
30896 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
30899 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30901 * util/hostdisk.c (open_device): Don't use partition device when reading
30902 before the partition.
30903 (grub_util_biosdisk_read): Don't read from partition and before the
30904 partition in single operation.
30905 (grub_util_biosdisk_write): Don't write to partition and before the
30906 partition in single operation.
30908 2010-02-03 Torsten Landschoff <torsten@debian.org>
30910 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30913 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
30915 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
30917 (grub_biosdisk_write): Refuse to write to CDROM.
30919 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30921 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
30923 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
30925 * font/font.c (find_glyph): Check that bmp_idx is available before
30927 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
30928 with (font == NULL).
30930 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
30932 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
30934 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
30936 * include/grub/script_sh.h (sourcecode): Add const qualifier.
30937 * util/grub-script-check.c (getline): Fix empty lines case.
30939 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
30941 * Makefile.in (check): Exit with fail status when one of the tests
30943 * tests/example_functional_test.c (example_test): Fix reversed assert.
30944 * tests/example_unit_test.c (example_test): Likewise.
30946 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
30948 * util/grub.d/10_linux.in: This script does not use any of the
30949 contents of gettext.sh, only the external command `gettext', so stop
30950 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
30951 the same prefix as GRUB.)
30952 * util/grub.d/10_kfreebsd.in: Likewise.
30954 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30956 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
30959 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30961 * kern/disk.c (grub_disk_read): Fix offset computation when reading
30964 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
30966 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
30967 having a 4KiB and not 32KiB buffer size.
30969 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30971 * util/hostfs.c: Include `<errno.h>'.
30972 (grub_hostfs_read): Handle errors from fseeko() and fread().
30974 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30976 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
30977 loop when using read hooks on files whose size isn't sector-aligned.
30979 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30981 Remove unused parameter.
30983 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
30984 (grub_iso9660_open): Remove initialization of `data->length'.
30986 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
30988 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
30989 memleak conditions.
30991 2010-01-27 Carles Pina i Estany <carles@pina.cat>
30993 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
30994 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
30996 2010-01-26 Carles Pina i Estany <carles@pina.cat>
30998 * util/bin2h.c (usage): Fix warning (space after backslash).
31000 2010-01-26 Carles Pina i Estany <carles@pina.cat>
31002 * font/font.c: Include `grub/fontformat.h.
31003 Remove font file format constants.
31004 (grub_font_load): Use the new macros.
31005 * include/grub/fontformat.h: New file.
31006 * util/grub-mkfont.c: Include `grub/fontformat.c'.
31007 (write_font_pf2): Use the new macros.
31009 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31011 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
31014 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
31016 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
31018 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
31019 (_start): Macroify `0x7F'.
31021 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
31022 (make_install_device): Use "(pxe)" as fallback prefix when booting
31025 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
31027 * configure.ac: Reset LIBS after check for libgcc symbols.
31029 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
31031 * util/hostdisk.c (open_device): Add trailing newline to debug
31034 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
31036 * configure.ac: Check for `limits.h'.
31037 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
31039 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
31041 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
31042 capitalize error strings.
31044 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
31046 * util/grub.d/10_hurd.in: Add a recovery mode.
31048 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
31050 * configure.ac: Check for libgcc symbols with -nostdlib.
31052 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
31054 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
31056 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31058 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
31059 stack since heap may be unavailable at that point.
31060 (grub_ofconsole_gotoxy): Likewise.
31062 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31064 * configure.ac: Check for _restgpr_14_x.
31065 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
31066 and _savegpr_* prototypes.
31068 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
31070 Use generic grub_reboot() for i386-efi.
31072 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
31073 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
31074 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
31076 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
31078 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
31079 presence of "prefix" variable as it breaks when normal.mod is
31082 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31084 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
31085 stack since heap is unavailable at that point.
31087 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31089 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
31090 (grub_freebsd_bootinfo): Rewritten.
31091 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
31093 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
31095 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
31097 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
31099 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
31102 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
31104 * util/misc.c (make_system_path_relative_to_its_root): Change the work
31105 around for handling "/" to the correct fix. Fix a memory leak. Use
31106 xstrdup instead of strdup.
31108 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31110 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
31112 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31114 Optimise glyph lookup by Basic Multilingual Plane lookup array.
31116 * font/font.c (struct grub_font): New member 'bmp_idx'.
31117 (font_init): Initialise 'bmp_idx'.
31118 (load_font_index): Fill 'bmp_idx'.
31119 (find_glyph): Make inline. Use bmp_idx for BMP characters.
31121 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31123 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
31126 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31128 Move context handling out of the kernel.
31130 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
31131 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
31132 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
31133 * conf/i386-efi.rmk: Likewise.
31134 * conf/i386-ieee1275.rmk: Likewise.
31135 * conf/i386-pc.rmk: Likewise.
31136 * conf/powerpc-ieee1275.rmk: Likewise.
31137 * conf/sparc64-ieee1275.rmk: Likewise.
31138 * conf/x86_64-efi.rmk: Likewise.
31139 * include/grub/env.h: Include grub/menu.h.
31140 (grub_env_var_type): Removed.
31141 (grub_env_var): Replaced field 'type' with 'global'.
31142 (grub_env_find): New prototype.
31143 (grub_env_context_open): Remove EXPORT_FUNC.
31144 (grub_env_context_close): Likewise.
31145 (grub_env_export): Likewise.
31146 (grub_env_set_data_slot): Removed.
31147 (grub_env_get_data_slot): Likewise.
31148 (grub_env_unset_data_slot): Likewise.
31149 (grub_env_unset_menu): New prototype.
31150 (grub_env_set_menu): Likewise.
31151 (grub_env_get_menu): Likewise.
31152 * include/grub/env_private.h: New file.
31153 * include/grub/normal.h (grub_context_init): New prototype.
31154 (grub_context_fini): Likewise.
31155 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
31156 * normal/context.c (grub_cmd_export): ... to here.
31157 * kern/env.c: Include env_private.h.
31158 (HASHSZ): Moved to include/grub/env_private.h.
31159 (grub_env_context): Likewise.
31160 (grub_env_sorted_var): Likewise.
31161 (current_context): Renamed from this ...
31162 (grub_current_context): ...to this. 'static' removed. All users updated.
31163 (grub_env_find): Removed 'static'.
31164 (grub_env_context_open): Moved to normal/context.c.
31165 (grub_env_context_close): Likewise.
31166 (grub_env_export): Likewise.
31167 (mangle_data_slot_name): Removed.
31168 (grub_env_set_data_slot): Likewise.
31169 (grub_env_get_data_slot): Likewise.
31170 (grub_env_unset_data_slot): Likewise.
31171 * kern/main.c (grub_set_root_dev): Don't export root.
31172 It will be done later.
31173 (grub_main): Don't export prefix.
31174 It will be done later.
31175 * normal/context.c: New file.
31176 * normal/main.c (free_menu): Use grub_env_unset_menu.
31177 (grub_normal_add_menu_entry): Use grub_env_get_menu.
31178 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
31179 (GRUB_MOD_INIT(normal)): Call grub_context_init.
31180 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
31182 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31186 * commands/setpci.c: New file.
31187 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
31188 (setpci_mod_SOURCES): New variable.
31189 (setpci_mod_CFLAGS): Likewise.
31190 (setpci_mod_LDFLAGS): Likewise.
31192 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31194 Byte-addressable PCI configuration space.
31196 * bus/pci.c (grub_pci_make_address): Use byte address instead of
31198 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
31199 GRUB_PCI_REG_CACHELINE.
31200 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
31201 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
31202 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
31203 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
31204 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
31205 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
31206 grub_pci_make_address.
31207 (lock_rom_area): Likewise.
31208 * commands/lspci.c (grub_lspci_iter): Use macroses
31209 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
31210 of grub_pci_make_address.
31211 * disk/ata.c (grub_ata_pciinit): Likewise.
31212 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
31213 (GRUB_PCI_REG_VENDOR): Likewise.
31214 (GRUB_PCI_REG_DEVICE): Likewise.
31215 (GRUB_PCI_REG_COMMAND): Likewise.
31216 (GRUB_PCI_REG_STATUS): Likewise.
31217 (GRUB_PCI_REG_REVISION): Likewise.
31218 (GRUB_PCI_REG_CLASS): Likewise.
31219 (GRUB_PCI_REG_CACHELINE): Likewise.
31220 (GRUB_PCI_REG_LAT_TIMER): Likewise.
31221 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
31222 (GRUB_PCI_REG_BIST): Likewise.
31223 (GRUB_PCI_REG_ADDRESSES): Likewise.
31224 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31225 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31226 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31227 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31228 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31229 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
31230 (GRUB_PCI_REG_CIS_POINTER): Likewise.
31231 (GRUB_PCI_REG_SUBVENDOR): Likewise.
31232 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
31233 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
31234 (GRUB_PCI_REG_CAP_POINTER): Likewise.
31235 (GRUB_PCI_REG_IRQ_LINE): Likewise.
31236 (GRUB_PCI_REG_IRQ_PIN): Likewise.
31237 (GRUB_PCI_REG_MIN_GNT): Likewise.
31238 (GRUB_PCI_REG_MAX_LAT): Likewise.
31239 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
31240 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
31241 * video/efi_uga.c (find_framebuf): Likewise.
31242 * video/sm712.c (grub_video_sm712_setup): Likewise.
31243 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
31246 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31248 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
31249 can be reliably determined to be supported.
31251 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31253 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
31254 that VESA is supported.
31255 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
31258 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31260 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
31262 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31264 * util/misc.c (make_system_path_relative_to_its_root): Work around
31265 special-casing of "/", as previous incarnation of this routine did.
31267 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31269 Fix any-emu compilation.
31271 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
31272 * grub_bin2h_SOURCES: New variable.
31274 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31276 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
31278 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
31280 * util/grub.d/00_header.in: Fix handling of locale_dir.
31282 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31284 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
31285 as possible unifont location (Gentoo).
31286 Reported by: Alexander Brüning
31288 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31290 Don't try to generate lists for kernel.img.
31292 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
31293 (pkglib_MODULES): Remove kernel.img.
31294 (kernel_img_EXPORTS): Removed.
31295 (kernel_img_RELOCATABLE): New variable.
31296 * conf/x86_64-efi.rmk: Likewise.
31297 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
31299 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31301 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
31302 grub_xasprintf or grub_snprintf.
31303 (grub_vsprintf): Likewise.
31304 (grub_snprintf): New proto.
31305 (grub_vsnprintf): Likewise.
31306 (grub_xasprintf): Likewise.
31307 (grub_xvasprintf): Likewise.
31308 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
31309 (grub_sprintf): Removed.
31310 (grub_vsnprintf): New function.
31311 (grub_snprintf): Likewise.
31312 (grub_xvasprintf): Likewise.
31313 (grub_xasprintf): Likewise.
31314 (grub_vsprintf): Renamed to ...
31315 (grub_vsnprintf_real): ...this. New argument max_len.
31317 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
31319 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
31320 fix grub-script-check warning.
31322 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31324 * include/grub/font.h (grub_font_load): Fix prototype.
31326 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31328 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
31330 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31332 * include/grub/x86_64/at_keyboard.h: New file.
31334 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31336 * loader/mips/linux.c: Include missing grub/i18n.h.
31338 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31340 * normal/menu.c (notify_execution_failure): Clarify error message.
31342 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31344 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
31345 return value (and revert all return statements). Update users.
31347 2010-01-20 Dan Merillat <debian@dan.merillat.org>
31349 * kern/device.c (grub_device_iterate): Allocate new part_ent
31350 structure based on sizeof (*p) rather than sizeof (p->next), to
31351 account for structure padding.
31353 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
31354 disk is NULL, which might happen for LVM physical volumes with no
31357 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31359 * loader/mips/linux.c (grub_cmd_initrd)
31360 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
31362 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
31364 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
31365 (grub_video_video_init, grub_video_bitmap_init)
31366 (grub_font_manager_init, grub_term_gfxterm_init)
31367 (grub_at_keyboard_init): New extern declarations.
31368 (grub_machine_init): Initialize gfxterm and at_keyboard.
31370 * kern/main.c (grub_main): Revert grub_printf delay kludge.
31372 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
31373 `gfxterm.mod' into core image.
31375 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31376 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31377 (kernel_img_FORMAT): Copy to ...
31379 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31380 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31381 (kernel_img_FORMAT): ... here, and ...
31383 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
31384 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
31385 (kernel_img_FORMAT): ... here.
31387 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
31388 and input (at_keyboard) terminals in kernel.
31389 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
31391 (pkglib_MODULES): Remove `pci.mod'.
31392 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
31393 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
31394 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
31395 (at_keyboard_mod_LDFLAGS): Remove variables.
31397 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
31399 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
31401 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
31403 * include/grub/mips/libgcc.h: Only export symbols for functions
31404 that libgcc provides.
31406 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
31410 * bus/bonito.c: New file.
31411 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
31412 GRUB_PCI_NUM_DEVICES.
31413 * term/i386/pc/serial.c: Move to ...
31414 * term/serial.c: ... here. All users updated.
31415 * util/i386/pc/grub-mkimage.c: Move to ...
31416 * util/grub-mkrawimage.c: ... here. All users updated.
31417 * term/i386/pc/at_keyboard.c: Move to ...
31418 * term/at_keyboard.c: ... here. All users updated.
31419 * conf/mips-qemu-mips.rmk: New file.
31420 * conf/mips-yeeloong.rmk: Likewise.
31421 * conf/mips.rmk: Likewise.
31422 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
31424 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
31426 (grub_ata_pciinit): Support CS5536.
31427 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
31428 * font/font_cmd.c (loadfont_command): Open file before passing it to
31430 (pseudo_file_read): New function.
31431 (pseudo_file_close): Likewise.
31432 (pseudo_fs): New structure.
31433 (load_font_module): New function.
31434 (GRUB_MOD_INIT(font_manager)): Load embedded font.
31435 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
31436 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
31437 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
31438 * include/grub/i386/at_keyboard.h: Split into ...
31439 * include/grub/at_keyboard.h: ... this ...
31440 * include/grub/i386/at_keyboard.h: ... and this.
31441 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
31443 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
31445 (grub_elf64_size): Likewise.
31446 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
31448 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
31449 * include/grub/i386/coreboot/serial.h: Rewritten.
31450 * include/grub/i386/ieee1275/serial.h: Include
31451 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
31452 * include/grub/i386/pc/serial.h: Moved from here ...
31453 * include/grub/serial.h: ... to here. All users updated.
31454 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
31455 (GRUB_PCI_NUM_BUS): Likewise.
31456 (GRUB_PCI_NUM_DEVICES): Likewise.
31457 (grub_pci_device_map_range): Add missing volatile keyword.
31458 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
31459 * include/grub/mips/at_keyboard.h: New file.
31460 * include/grub/mips/cache.h: Likewise.
31461 * include/grub/mips/io.h: Likewise.
31462 * include/grub/mips/kernel.h: Likewise.
31463 * include/grub/mips/libgcc.h: Likewise.
31464 * include/grub/mips/pci.h: Likewise.
31465 * include/grub/mips/qemu-mips/boot.h: Likewise.
31466 * include/grub/mips/qemu-mips/kernel.h: Likewise.
31467 * include/grub/mips/qemu-mips/loader.h: Likewise.
31468 * include/grub/mips/qemu-mips/memory.h: Likewise.
31469 * include/grub/mips/qemu-mips/serial.h: Likewise.
31470 * include/grub/mips/qemu-mips/time.h: Likewise.
31471 * include/grub/mips/relocator.h: Likewise.
31472 * include/grub/mips/time.h: Likewise.
31473 * include/grub/mips/types.h: Likewise.
31474 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
31475 * include/grub/mips/yeeloong/boot.h: Likewise.
31476 * include/grub/mips/yeeloong/kernel.h: Likewise.
31477 * include/grub/mips/yeeloong/loader.h: Likewise.
31478 * include/grub/mips/yeeloong/memory.h: Likewise.
31479 * include/grub/mips/yeeloong/pci.h: Likewise.
31480 * include/grub/mips/yeeloong/serial.h: Likewise.
31481 * include/grub/mips/yeeloong/time.h: Likewise.
31482 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
31483 * kern/elf.c (grub_elf32_size): New parameter. All users
31485 (grub_elf64_size): Likewise.
31486 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
31487 Load modules before saying "Welcome to GRUB!".
31488 Call grub_refresh after saying "Welcome to GRUB!".
31489 * kern/mips/cache.S: New file.
31490 * kern/mips/cache_flush.S: Likewise.
31491 * kern/mips/dl.c: Likewise.
31492 * kern/mips/init.c: Likewise.
31493 * kern/mips/qemu-mips/init.c: Likewise.
31494 * kern/mips/startup.S: Likewise.
31495 * kern/mips/yeeloong/init.c: Likewise.
31496 * kern/term.c (grub_putcode): Handle NULL terminal.
31497 (grub_getcharwidth): Likewise.
31498 (grub_getkey): Likewise.
31499 (grub_checkkey): Likewise.
31500 (grub_getkeystatus): Likewise.
31501 (grub_getxy): Likewise.
31502 (grub_getwh): Likewise.
31503 (grub_gotoxy): Likewise.
31504 (grub_cls): Likewise.
31505 (grub_setcolorstate): Likewise.
31506 (grub_setcolor): Likewise.
31507 (grub_getcolor): Likewise.
31508 (grub_refresh): Likewise.
31509 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
31510 (write_jump): Add hatch nop.
31511 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
31512 * lib/mips/setjmp.S: New file.
31513 * loader/mips/linux.c: Likewise.
31514 * term/i386/pc/at_keyboard.c: Move from here ...
31515 * term/at_keyboard.c: ... to here.
31516 * term/i386/pc/serial.c: Moved from here ...
31517 * term/serial.c: ... to here. All users updated.
31518 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
31519 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
31520 (serial_translate_key_sequence): Avoid deadlock.
31521 (grub_serial_getkey): Handle backspace.
31522 (grub_serial_putchar): Fix newline handling.
31523 * util/i386/pc/grub-mkimage.c: Move from here ...
31524 * util/grub-mkrawimage.c: ... to here. All users updated.
31525 (generate_image): New parameters 'font_path' and 'format'.
31526 Support embedding font.
31527 Use grub_host_to_target* instead of grub_cpu_to_le*.
31528 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
31529 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
31530 (options): New option "--font".
31532 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
31533 (main): Handle "--font".
31534 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
31535 (grub_virtual_screen_setup): Set bg_color_display.
31536 (redraw_screen_rect): Use bg_color_display instead of incorrect
31538 (grub_gfxterm_cls): Likewise.
31539 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
31540 Support embedding config file.
31541 (add_segments): Likewise.
31542 (options): New option "--config".
31543 (main): Handle "--config".
31544 * video/sm712.c: New file.
31546 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31548 Fix parallel builds.
31550 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
31551 font.c depend on ascii.h).
31553 2010-01-12 Carles Pina i Estany <carles@pina.cat>
31555 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
31557 2010-01-11 Carles Pina i Estany <carles@pina.cat>
31559 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
31560 By default: disabled.
31561 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
31564 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31566 * font/font.c: Update copyright years.
31567 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
31569 2010-01-10 Carles Pina i Estany <carles@pina.cat>
31571 * font/font.c: Include `ascii.h'.
31572 (ASCII_BITMAP_SIZE): New macro.
31573 (ascii_font_glyph): Define.
31574 (ascii_glyph_lookup): New function.
31575 (grub_font_get_string_width): Change comment. If glyph not found, use
31576 ascii_glyph_lookup.
31577 (grub_font_get_glyph_with_fallback): If glyph not available returns
31578 ascii_glyph_lookup.
31579 * util/grub-mkfont.c (file_formats): New enum.
31580 (options): Add `ascii-bitmaps' new option.
31581 (usage): Add `asii-bitmaps' new option.
31582 (write_font_ascii_bitmap): New function.
31583 (write_font): Rename to ...
31584 (write_font_p2): ... this. Remove print_glyphs call.
31585 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
31586 used. Call print_glyphs.
31587 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
31589 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31591 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
31592 (grub_bin2h_SOURCES): New variable.
31593 * util/bin2h.c: New file.
31595 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
31597 * include/multiboot.h: Resynced with spec.
31598 * include/multiboot2.h: Likewise.
31599 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
31600 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
31602 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31604 * include/grub/term.h (grub_term_register_input,
31605 grub_term_register_output): Check return of terminal init()
31606 routines, and abort if errors are raised.
31608 * commands/terminal.c: Update copyright year.
31610 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31612 * commands/terminal.c (grub_cmd_terminal_input)
31613 (grub_cmd_terminal_output): Check return of terminal init()
31614 routines, and abort if errors are raised.
31616 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31618 * include/grub/i386/bsd.h: Fix include pathes.
31620 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
31622 Add missing *BSD copyright headers.
31624 * include/grub/aout.h: Add BSD licence.
31625 * include/grub/i386/bsd.h: Parts under different licences moved to ...
31626 * include/grub/i386/freebsd_linker.h: ... here,
31627 * include/grub/i386/freebsd_reboot.h: ... here,
31628 * include/grub/i386/netbsd_bootinfo.h: ... here,
31629 * include/grub/i386/netbsd_reboot.h: ... here,
31630 * include/grub/i386/openbsd_bootarg.h: ... here,
31631 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
31632 licence to each file.
31634 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31636 * acinclude.m4: Remove `nop' assembly instruction; it's not
31637 implemented by all architectures.
31639 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31641 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
31642 ELILO. This is no longer necessary.
31644 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
31646 Added new tool, grub-scrit-check to verify grub.cfg syntax.
31648 * util/grub-script-check.c: grub-script-check tool.
31649 * conf/common.rmk: Make rules for grub-script-check.
31651 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31653 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
31654 spotting it back in 2008. Shame on me for forgetting he did.
31656 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
31658 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
31660 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
31661 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
31662 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
31663 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
31664 (GRUB_VIDEO_TYPE_EFI): Rename to ...
31665 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
31667 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
31669 * include/grub/test.h: Add license header.
31670 * tests/example_functional_test.c: Likewise.
31671 * tests/example_unit_test.c: Likewise.
31672 * tests/lib/functional_test.c: Likewise.
31673 * tests/lib/test.c: Likewise.
31674 * tests/lib/unit_test.c: Likewise.
31676 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
31678 Use flag-based instead of hook-based video mode selection and "auto"
31681 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
31682 (grub_video_set_mode): Changed prototype. All users updated.
31683 (grub_video_check_mode_flag): New inline function.
31684 * video/video.c (parse_modespec): New function.
31685 (grub_video_set_mode): Parse flags and keywords.
31687 2010-01-17 Carles Pina i Estany <carles@pina.cat>
31689 * util/misc.c (grub_util_info): Fix the order of the parameters in a
31692 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
31694 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
31696 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31698 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
31700 * util/grub-emu.c (usage): Likewise.
31701 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
31702 * util/i386/efi/grub-mkimage.c (usage): Likewise.
31703 * util/i386/pc/grub-mkimage.c (usage): Likewise.
31704 * util/i386/pc/grub-setup.c (usage): Likewise.
31706 2010-01-16 Carles Pina i Estany <carles@pina.cat>
31708 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
31710 (grub_util_info): Likewise.
31711 (grub_util_error): Likewise.
31712 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
31713 and/or new lines in `grub_util_warna', `grub_util_info',
31714 `grub_util_error' calls.
31715 * util/getroot.c: Likewise.
31716 * util/grub-editenv.c: Likewise.
31717 * util/grub-emu.c: Likewise.
31718 * util/grub-fstest.c: Likewise.
31719 * util/grub-mkdevicemap.c: Likewise.
31720 * util/grub-mkfont.c: Likewise.
31721 * util/grub-mkpasswd-pbkdf2.c: Likewise.
31722 * util/grub-mkrelpath.c: Likewise.
31723 * util/grub-pe2elf.c: Likewise.
31724 * util/grub-probe.c: Likewise.
31725 * util/hostdisk.c: Likewise.
31726 * util/i386/efi/grub-mkimage.c: Likewise.
31727 * util/i386/pc/grub-mkimage.c: Likewise.
31728 * util/i386/pc/grub-setup.c: Likewise.
31729 * util/ieee1275/ofpath.c: Likewise.
31730 * util/mkisofs/eltorito.c: Likewise.
31731 * util/mkisofs/rock.c: Likewise.
31732 * util/mkisofs/write.c: Likewise.
31733 * util/raid.c: Likewise.
31734 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31735 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31737 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31739 Enable multiboot on non-pc.
31741 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
31742 multiboot.mod and multiboot2.mod to ...
31743 * conf/i386.rmk (pkglib_MODULES): ... here.
31744 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
31746 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
31747 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
31749 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
31750 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
31752 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
31753 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
31755 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
31756 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
31758 (ata_mod_SOURCES): Removed.
31759 (ata_mod_CFLAGS): Likewise.
31760 (ata_mod_LDFLAGS): Likewise.
31761 (relocator_mod_SOURCES): Removed.
31762 (relocator_mod_CFLAGS): Likewise.
31763 (relocator_mod_ASFLAGS): Likewise.
31764 (relocator_mod_LDFLAGS): Likewise.
31766 * include/grub/x86_64/multiboot.h: New file.
31767 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
31770 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31772 Video multiboot support.
31774 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
31776 * include/multiboot.h: Resynced with multiboot specification.
31777 * include/multiboot2.h: Likewise.
31778 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
31779 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
31780 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
31781 (HAS_VGA_TEXT): Likewise.
31782 (accepts_video): New variable.
31783 (grub_multiboot_set_accepts_video): New function.
31784 (grub_multiboot_get_mbi_size): Account for video structures.
31785 (set_video_mode): New function.
31786 (retrieve_video_parameters): Likewise.
31787 (grub_multiboot_make_mbi): Fill video fields.
31789 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
31793 * include/grub/video.h (grub_video_driver_id): New type.
31794 (grub_video_adapter): New member 'id'. All users updated.
31795 (grub_video_get_driver_id): New proto.
31796 * video/video.c (grub_video_get_driver_id): New function.
31798 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31800 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
31803 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31805 * normal/cmdline.c (print_completion): Gettextizze.
31807 2001-01-14 Carles Pina i Estany <carles@pina.cat>
31809 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
31811 2010-01-14 Carles Pina i Estany <carles@pina.cat>
31813 * gettext/gettext.c (grub_gettext_translate): Push and pop
31815 (grub_gettext_delete_list): Change comment style.
31816 * kern/err.c (grub_error): Gettextizze.
31817 (grub_fatal): Gettextizze.
31819 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
31821 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
31822 (grub_linux16_real_boot): ... this.
31823 * kern/i386/loader.S: Likewise.
31824 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
31825 (grub_linux16_boot): New function. Switches to text mode and calls
31826 grub_linux16_real_boot().
31828 * loader/i386/bsd.c: Include `<grub/video.h>'.
31829 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
31830 text mode before calling grub_unix_real_boot().
31832 * loader/i386/multiboot.c: Include `<grub/video.h>'.
31833 (grub_multiboot_boot): Switch to text mode before calling
31834 grub_relocator32_boot().
31836 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
31837 (grub_chainloader_boot): Switch to text mode before calling
31838 grub_chainloader_real_boot().
31840 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31841 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31843 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
31846 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31847 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31849 * util/grub.d/00_header.in: Define a "savedefault" function for use
31851 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
31853 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
31854 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
31856 * util/grub-mkconfig_lib.in (save_default_entry): Only set
31857 saved_entry if boot_once is unset.
31858 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
31859 previous saved entry (i.e. grub-reboot).
31861 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31863 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
31865 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31867 * util/grub.d/00_header.in: Use `set var=val' rather than plain
31869 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
31871 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31873 * util/grub-reboot.in: Fix --version output.
31874 * util/grub-set-default.in: Likewise.
31876 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31878 * util/grub.d/00_header.in: Silently ignore zero-sized environment
31881 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31883 * util/grub.d/00_header.in: Quote the value assigned to `default',
31884 in case it contains spaces.
31886 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
31888 * util/grub.d/30_os-prober.in: Fix merge error that moved a
31889 `save_default_entry' call from the macosx case to the linux case.
31891 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
31892 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
31894 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
31895 in `chosen' environment variable.
31896 * normal/menu_text.c (get_entry_number): Check if the variable
31897 matches the title of a menu entry.
31898 (run_menu): Pass menu to get_entry_number.
31900 * util/grub-reboot.in: New file.
31901 * util/grub-set-default.in: New file.
31902 * conf/common.rmk (grub-reboot): New utility.
31903 (grub-set-default): New utility.
31905 * util/grub-mkconfig_lib.in (save_default_entry): New function.
31906 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
31907 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
31908 move it to `saved_entry' for the next boot. Load environment on
31910 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
31911 * util/grub.d/10_hurd.in: Likewise.
31912 * util/grub.d/10_linux.in (linux_entry): Likewise.
31913 * util/grub.d/10_windows.in: Likewise.
31914 * util/grub.d/30_os-prober.in: Likewise.
31916 * util/grub-install.in: Create environment block.
31917 * util/i386/efi/grub-install.in: Likewise.
31918 * util/ieee1275/grub-install.in: Likewise.
31919 * util/sparc64/ieee1275/grub-install.in: Likewise.
31921 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
31923 Unit testing framework for GRUB.
31925 * Makefile.in: Test framework build rules for 'make check'.
31926 * conf/tests.rmk: Build rules for individual tests and framework.
31928 * include/grub/test.h: Header file for whitebox tests.
31929 * tests/lib/functional_test.c: Framework support for whitebox
31931 * tests/lib/test.c: Common whitebox testing code for unit and
31933 * tests/lib/unit_test.c: Framework support for whitebox unit
31936 * tests/util/grub-shell-tester.in: Support utility for grub-script
31938 * tests/util/grub-shell.in: Utility to execute grub-script
31939 commands in a Qemu instance.
31941 * tests/example_functional_test.c: Example whitebox functional
31943 * tests/example_grub_script_test.in: Example grub-script test.
31944 * tests/example_scripted_test.in: Example scripted test.
31945 * tests/example_unit_test.c: Example whitebox unit test.
31947 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
31949 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
31950 Add loader/i386/multiboot_mbi.c.
31951 (multiboot2_mod_SOURCES): Likewise.
31952 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
31953 (multiboot2_mod_SOURCES): Likewise.
31954 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
31955 (grub_multiboot_make_mbi): Likewise.
31956 (grub_multiboot_free_mbi): Likewise.
31957 (grub_multiboot_init_mbi): Likewise.
31958 (grub_multiboot_add_module): Likewise.
31959 (grub_multiboot_set_bootdev): Likewise.
31960 * loader/i386/multiboot.c (mbi): Removed.
31961 (mbi_dest): Likewise.
31962 (alloc_mbi): New variable.
31963 (grub_multiboot_payload_size): Removed. All users updated.
31964 (grub_multiboot_pure_size): New variable.
31965 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
31966 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
31967 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
31968 (grub_fill_multiboot_mmap): Likewise.
31969 (grub_multiboot_get_bootdev): Likewise.
31970 (grub_multiboot): Use multiboot_mbi functions.
31971 * loader/i386/multiboot_mbi.c: New file.
31973 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31975 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
31976 it would result in module crash.
31978 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
31980 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
31981 (grub_ofconsole_getwh): Split to ...
31982 (grub_ofconsole_getwh): ... this.
31983 (grub_ofconsole_dimensions): ...and this.
31984 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
31986 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
31988 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
31990 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31992 * loader/i386/pc/multiboot2.c: Removed stalled file.
31994 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
31996 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
31997 Reported by: Grégoire Sutre
31999 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
32001 * util/misc.c (canonicalize_file_name): New function.
32002 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
32003 instead of realpath().
32005 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
32007 * util/grub-install.in (usage): Clarify meaning of --root-directory,
32008 and make it clearer that it's optional. Based on confusion
32011 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32013 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
32014 in premature implicit newline.
32016 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
32018 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
32019 which resulted in garbled command line at the end of screen.
32021 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32023 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
32024 initialization with similar approach as with other Linux loaders.
32026 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32028 Fix i386-ieee1275 build.
32030 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
32031 and grub_term_height() for video_{width,height} initialization.
32033 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
32035 Fix grub-emu build.
32037 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
32039 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32040 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32042 Support for multiple terminals.
32044 * Makefile.in (pkglib_DATA): terminal.lst.
32045 (terminal.lst): New target.
32046 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
32047 (GRUB_MOD_INIT(handler)): Likewise.
32048 (GRUB_MOD_FINI(handler)): Likewise.
32049 * commands/help.c (grub_cmd_help): Handle multiple terminals.
32050 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
32051 * commands/sleep.c (do_print): Use grub_term_restore_pos.
32052 (grub_cmd_sleep): Use grub_term_save_pos.
32053 * commands/terminal.c: New file.
32054 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
32055 commands/terminal.c and lib/charset.c.
32056 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
32057 (pkglib_MODULES): Add terminal.mod.
32058 (terminal_mod_SOURCES): New variable.
32059 (terminal_mod_CFLAGS): Likewise.
32060 (terminal_mod_LDFLAGS): Likewise.
32061 * genhandlerlist.sh: Don't handle terminals.
32062 * genmk.rb: Generate terminal-*.lst.
32063 * genterminallist.sh: New file.
32064 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
32065 (grub_is_valid_utf8): Likewise.
32066 (grub_utf8_to_ucs4_alloc): Likewise.
32067 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
32068 (grub_menu_register_viewer): Changed argument.
32069 (grub_menu_try_text): New proto.
32070 (grub_gfxmenu_try_hook): New declaration.
32071 * include/grub/normal.h (grub_normal_exit_level): New declaration.
32072 (grub_menu_init_page): Additional argument term.
32073 (grub_normal_init_page): Likewise.
32074 (grub_cmdline_get): Arguments simplified.
32075 (grub_utf8_to_ucs4_alloc): Removed.
32076 (grub_print_ucs4): Additional argument term.
32077 (grub_getstringwidth): Likewise.
32078 (grub_print_message_indented): Likewise.
32079 (grub_menu_text_register_instances): New proto.
32080 (grub_show_menu): Likewise.
32081 (read_terminal_list): Likewise.
32082 (grub_set_more): Likewise.
32083 * include/grub/parser.h: Include handler.h.
32084 * include/grub/reader.h: Rewritten.
32085 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
32086 (GRUB_TERM_WIDTH): Changed to function.
32087 (GRUB_TERM_HEIGHT): Likewise.
32088 (GRUB_TERM_BORDER_WIDTH): Likewise.
32089 (GRUB_TERM_BORDER_HEIGHT): Likewise.
32090 (GRUB_TERM_NUM_ENTRIES): Likewise.
32091 (GRUB_TERM_ENTRY_WIDTH): Likewise.
32092 (GRUB_TERM_CURSOR_X): Likewise.
32093 (grub_term_input_class): Likewise.
32094 (grub_term_output_class): Likewise.
32095 (grub_term_outputs_disabled): New declaration.
32096 (grub_term_inputs_disabled): Likewise.
32097 (grub_term_outputs): Likewise.
32098 (grub_term_inputs): Likewise.
32099 (grub_term_register_input): Rewritten.
32100 (grub_term_register_output): Likewise.
32101 (grub_term_unregister_input): Likewise.
32102 (grub_term_unregister_output): Likewise.
32103 (FOR_ACTIVE_TERM_INPUTS): New macro.
32104 (FOR_DISABLED_TERM_INPUTS): Likewise.
32105 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
32106 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
32107 * include/grub/terminfo.h: Add oterm argument to all protypes.
32108 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
32109 Use grub_rescue_run.
32110 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
32112 * kern/reader.c: Removed. All users updated.
32113 * kern/rescue_reader.c (grub_rescue_init): Removed.
32114 (grub_rescue_reader): Likewise.
32115 (grub_register_rescue_reader): Likewise.
32116 (grub_rescue_run): New function based on kern/reader.c.
32117 * kern/term.c: Adapted for multiterm.
32118 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
32119 (grub_is_valid_utf8): Likewise.
32120 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
32121 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
32123 * loader/i386/linux.c (grub_linux_boot): Likewise.
32124 * normal/auth.c (grub_username_get): New function.
32125 (grub_auth_check_authentication): Use grub_username_get.
32126 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
32127 * normal/color.c: Adapt for multiterm.
32128 * normal/main.c (read_config_file): Don't use grub_reader_loop.
32129 (grub_normal_init_page): Additional argument term.
32130 (read_lists): Call read_terminal_lists.
32131 (grub_enter_normal_mode): Call grub_cmdline_run.
32132 Handle grub_normal_exit_level.
32133 (grub_cmd_normal): Make reentrant.
32134 (grub_cmd_normal_exit): New function.
32135 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
32136 * normal/menu.c: Adapt for multiterm.
32137 * normal/menu_entry.c: Likewise.
32138 * normal/menu_text.c: Likewise.
32139 * normal/menu_viewer.c: Removed. All users updated.
32140 * normal/term.c: New file.
32141 * util/console.c: Change order of includes to workaround a bug in
32143 * term/terminfo.c: New argument oterm on all exported functions.
32145 * util/grub-editenv.c (grub_term_input_class): Removed.
32146 (grub_term_output_class): Likewise.
32148 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
32150 Make loader output a bit more user-friendly.
32152 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
32153 is being loaded. Likewise for the Hurd.
32155 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
32156 that kernel of FreeBSD ${version} is being loaded.
32158 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
32160 (grub_cmd_initrd): Likewise.
32161 * util/grub.d/10_linux.in (linux_entry): Print message indicating
32162 that Linux ${version} is being loaded. Likewise for initrd.
32164 2010-01-09 Carles Pina i Estany <carles@pina.cat>
32166 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
32168 2010-01-08 Carles Pina i Estany <carles@pina.cat>
32170 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
32171 (GRUB_MOD_INIT): Gettextizze.
32172 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
32173 (GRUB_MOD_INIT): Gettextizze.
32174 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
32175 (grub_cmd_linux): Capitalise Linux.
32176 (GRUB_MOD_INIT): Gettextizze.
32177 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
32178 (grub_cmd_linux): Capitalise Linux.
32179 (GRUB_MOD_INIT): Gettextizze.
32180 * loader/i386/linux.c: Include `<grub/i18n.h>'.
32181 (grub_cmd_linux): Capitalise Linux.
32182 (GRUB_MOD_INIT): Gettextizze.
32183 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
32184 (GRUB_MOD_INIT): Gettextizze.
32185 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
32186 (grub_cmd_linux): Capitalise Linux.
32187 (GRUB_MOD_INIT): Gettextizze.
32188 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
32189 (grub_cpu_xnu_init): Gettextizze.
32190 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
32191 (GRUB_MOD_INIT): Gettextizze.
32192 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
32193 (GRUB_MOD_INIT): Gettextizze.
32194 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
32195 (grub_linux_load64): Capitalise Linux.
32196 (GRUB_MOD_INIT): Gettextizze.
32197 * loader/xnu.c: Include `<grub/i18n.h>'.
32198 (GRUB_MOD_INIT): Gettextizze.
32199 * po/POTFILES: Add `loader/efi/appleloader.c',
32200 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
32201 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
32202 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
32203 `loader/i386/xnu.c', `loader/multiboot_loader.c',
32204 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
32205 and `loader/xnu.c'.
32207 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32209 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
32211 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
32213 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
32214 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
32215 * util/mkisofs/mkisofs.c (main): Readjust --version output.
32217 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32219 Reset Multiboot 2 support. New loader implements the draft in
32220 /branches/multiboot2 and shares as much code as possible with the
32221 production Multiboot 1 implementation.
32223 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
32224 * loader/multiboot2.c: Likewise.
32225 * loader/i386/multiboot_helper.S: Likewise.
32226 * include/multiboot2.h: Replace with latest version from the draft
32227 in /branches/multiboot2.
32229 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
32230 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
32231 and `loader/multiboot2.c'.
32232 (pkglib_MODULES): Add `multiboot2.mod'.
32233 (multiboot2_mod_SOURCES): New variable.
32234 (multiboot2_mod_LDFLAGS): Likewise.
32235 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
32237 * conf/i386-pc.rmk: Likewise.
32239 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
32240 (multiboot_mod_SOURCES): Remove variable.
32241 (multiboot_mod_LDFLAGS): Likewise.
32242 (multiboot_mod_CFLAGS): Likewise.
32244 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
32245 `<multiboot2.h>' instead of `<multiboot.h>'.
32246 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
32247 (MULTIBOOT_HEADER_MAGIC): New macros.
32249 * loader/multiboot_loader.c (module_version_status): Remove variable.
32250 (find_multi_boot2_header): Remove function.
32251 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
32252 logic. Always check for the Multiboot version we're compiling for.
32253 (grub_cmd_module_loader): Likewise.
32254 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
32255 command instead of `multiboot'.
32257 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32259 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
32260 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
32263 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32264 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32266 Fix breakage introduced with previous commit.
32268 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
32270 * normal/handler.c (read_handler_list): Revert part of previous commit
32271 affecting this file.
32272 * normal/main.c (read_lists): Move read_handler_list() call back to ...
32273 (grub_normal_execute): ... here.
32275 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
32277 Merge prefix-redefinition-fix branch.
32279 * normal/autofs.c (read_fs_list): Make function capable of being
32280 run multiple times, gracefuly replacing the previous data
32282 * normal/dyncmd.c (read_command_list): Likewise.
32283 * normal/handler.c (read_handler_list): Likewise.
32284 * normal/main.c (read_lists): New function. Calls all the
32285 list reading functions.
32286 (grub_normal_execute): Use read_lists() instead of calling all
32287 list reading functions explicitly. Register read_lists() as a
32288 variable hook attached to ${prefix}.
32290 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
32292 Merge crypto branch.
32294 * Makefile.in (pkglib_DATA): Add crypto.lst.
32295 (crypto.lst): New target.
32296 * commands/hashsum.c: New file.
32297 * commands/password.c (check_password): Use grub_crypto_memcmp.
32298 * commands/password_pbkdf2.c: New file.
32299 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
32300 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
32301 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
32302 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
32303 -I$(srcdir)/lib/libgcrypt_wrap.
32304 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
32305 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
32306 password_pbkdf2.mod.
32307 (crypto_mod_SOURCES): New variable.
32308 (crypto_mod_CFLAGS): Likewise.
32309 (crypto_mod_LDFLAGS): Likewise.
32310 (hashsum_mod_SOURCES): New variable.
32311 (hashsum_mod_CFLAGS): Likewise.
32312 (hashsum_mod_LDFLAGS): Likewise.
32313 (pbkdf2_mod_SOURCES): New variable.
32314 (pbkdf2_mod_CFLAGS): Likewise.
32315 (pbkdf2_mod_LDFLAGS): Likewise.
32316 (password_pbkdf2_mod_SOURCES): New variable.
32317 (password_pbkdf2_mod_CFLAGS): Likewise.
32318 (password_pbkdf2_mod_LDFLAGS): Likewise.
32319 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
32320 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
32321 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
32322 Include conf/gcry.rmk.
32323 * include/grub/auth.h: Rewritten.
32324 * include/grub/crypto.h: New file.
32325 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
32326 * include/grub/normal.h (read_crypto_list): New prototype.
32327 * lib/crypto.c: New file.
32328 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
32329 * lib/pbkdf2.c: Likewise.
32330 * normal/auth.c (grub_auth_strcmp): Removed.
32331 (grub_iswordseparator): Likewise.
32332 (grub_auth_strword): Likewise.
32333 (is_authenticated): Use grub_strword.
32334 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
32335 and grub_strword. Pass entered password to authentication callback.
32336 * normal/crypto.c: New file.
32337 * normal/main.c: Call read_crypto_list.
32338 * util/grub-mkpasswd-pbkdf2.c: New file.
32339 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
32341 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
32343 Fix descent and ascent calculation.
32345 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
32346 (options): New option "asce".
32348 (add_char): Ignore invalid glyphs for descent calculation.
32349 Calculate ascent from actual content.
32350 (print_glyphs): Use 'asce'.
32351 (write_font): Likewise. Allow ascent override.
32352 (main): Handle "asce" option.
32354 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32356 * kern/err.c: Include `<grub/i18n.h>'.
32357 (grub_print_error): Add full stop. Gettextizze.
32358 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
32359 (grub_bsd_load_elf): Capitalise ELF.
32360 (grub_cmd_freebsd_loadenv): Add `s' in error string.
32361 (grub_cmd_freebsd_module): Likewise.
32362 (grub_cmd_freebsd_module_elf): Likewise.
32363 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
32365 2010-01-06 Carles Pina i Estany <carles@pina.cat>
32367 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
32368 * commands/search_file.c (HELP_MESSAGE): New macro.
32369 * commands/search_label.c (HELP_MESSAGE): Likewise.
32370 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
32371 * po/POTFILES: Add `commands/search_file.c',
32372 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
32373 `commands/search.c'.
32375 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32377 * config.rpath: Update from Gnulib.
32379 2010-01-05 Yves Blusseau <blusseau@zetam.org>
32381 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
32383 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
32385 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
32387 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32389 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
32390 arguments to fread so that we get a return value in bytes, rather
32391 than something that will normally be rounded down to 0.
32392 Adjust error handling to avoid producing garbage when size_t is not
32393 the same size as long long.
32395 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
32397 * util/mkisofs/write.c (padblock_write): Check return value of
32400 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
32402 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
32405 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
32407 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32409 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
32410 instead of manual alignment.
32411 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
32412 verbose). Avoid attempts to read past end of the device
32413 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
32414 but GRUB_DISK_CACHE_SIZE may exceed that).
32416 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
32418 * commands/crc.c (grub_cmd_crc): Abort on read errors.
32419 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
32422 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32424 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
32426 (grub_efi_piwg_device_path): New structure
32427 (grub_efi_piwg_device_path_t): New type.
32428 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
32429 (devpath_1): Transform to a structure. All users updated.
32430 (devpath_2): Likewise.
32431 (devpath_3): Likewise.
32432 (devpath_4): Likewise.
32433 (devpath_5): Likewise.
32435 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
32437 * loader/efi/appleloader.c: Restored. Update all users.
32439 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32441 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
32443 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
32444 (struct boot_blocklist): Move from here ...
32445 * include/grub/i386/pc/boot.h [ASM_FILE]
32446 (struct grub_boot_blocklist): ... to here. Update all users.
32447 (setup): Only initialize `start' member of `first_block'
32448 structure. Add assert() calls to verify the other members.
32450 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
32451 (generate_image): Fix broken blocklist length initialization.
32452 Add assert() call to verify blocklist `segment' field.
32454 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32456 * loader/efi/appleloader.c: Remove. Update all users.
32458 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
32460 * boot/i386/pc/boot.S: Update copyright year.
32461 * boot/i386/pc/cdboot.S: Likewise.
32462 * boot/i386/pc/diskboot.S: Likewise.
32463 * boot/i386/pc/lnxboot.S: Likewise.
32464 * boot/i386/pc/pxeboot.S: Likewise.
32465 * bus/pci.c: Likewise.
32466 * commands/cmp.c: Likewise.
32467 * commands/help.c: Likewise.
32468 * commands/hexdump.c: Likewise.
32469 * commands/i386/pc/halt.c: Likewise.
32470 * commands/i386/pc/play.c: Likewise.
32471 * commands/i386/pc/vbeinfo.c: Likewise.
32472 * commands/ls.c: Likewise.
32473 * commands/test.c: Likewise.
32474 * disk/dmraid_nvidia.c: Likewise.
32475 * disk/i386/pc/biosdisk.c: Likewise.
32476 * disk/ieee1275/nand.c: Likewise.
32477 * disk/ieee1275/ofdisk.c: Likewise.
32478 * disk/lvm.c: Likewise.
32479 * disk/raid.c: Likewise.
32480 * disk/raid6_recover.c: Likewise.
32481 * disk/scsi.c: Likewise.
32482 * fs/affs.c: Likewise.
32483 * fs/cpio.c: Likewise.
32484 * fs/ext2.c: Likewise.
32485 * fs/hfs.c: Likewise.
32486 * fs/iso9660.c: Likewise.
32487 * fs/ntfs.c: Likewise.
32488 * fs/sfs.c: Likewise.
32489 * fs/udf.c: Likewise.
32490 * fs/ufs.c: Likewise.
32491 * fs/xfs.c: Likewise.
32492 * gencmdlist.sh: Likewise.
32493 * genmk.rb: Likewise.
32494 * include/grub/disk.h: Likewise.
32495 * include/grub/efi/api.h: Likewise.
32496 * include/grub/efi/efi.h: Likewise.
32497 * include/grub/efi/pe32.h: Likewise.
32498 * include/grub/elf.h: Likewise.
32499 * include/grub/fs.h: Likewise.
32500 * include/grub/i386/at_keyboard.h: Likewise.
32501 * include/grub/i386/pc/memory.h: Likewise.
32502 * include/grub/i386/pc/vbe.h: Likewise.
32503 * include/grub/i386/pci.h: Likewise.
32504 * include/grub/i386/tsc.h: Likewise.
32505 * include/grub/ieee1275/ieee1275.h: Likewise.
32506 * include/grub/ntfs.h: Likewise.
32507 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
32508 * include/grub/sparc64/libgcc.h: Likewise.
32509 * include/grub/symbol.h: Likewise.
32510 * include/grub/types.h: Likewise.
32511 * include/multiboot2.h: Likewise.
32512 * io/gzio.c: Likewise.
32513 * kern/device.c: Likewise.
32514 * kern/disk.c: Likewise.
32515 * kern/efi/efi.c: Likewise.
32516 * kern/efi/mm.c: Likewise.
32517 * kern/elf.c: Likewise.
32518 * kern/file.c: Likewise.
32519 * kern/i386/dl.c: Likewise.
32520 * kern/i386/pc/init.c: Likewise.
32521 * kern/i386/pc/startup.S: Likewise.
32522 * kern/ieee1275/ieee1275.c: Likewise.
32523 * kern/ieee1275/init.c: Likewise.
32524 * kern/main.c: Likewise.
32525 * kern/mm.c: Likewise.
32526 * kern/powerpc/dl.c: Likewise.
32527 * kern/sparc64/dl.c: Likewise.
32528 * kern/x86_64/dl.c: Likewise.
32529 * lib/hexdump.c: Likewise.
32530 * loader/efi/appleloader.c: Likewise.
32531 * loader/i386/ieee1275/linux.c: Likewise.
32532 * loader/i386/pc/chainloader.c: Likewise.
32533 * loader/i386/pc/linux.c: Likewise.
32534 * loader/i386/pc/multiboot2.c: Likewise.
32535 * loader/ieee1275/multiboot2.c: Likewise.
32536 * loader/multiboot2.c: Likewise.
32537 * loader/multiboot_loader.c: Likewise.
32538 * loader/powerpc/ieee1275/linux.c: Likewise.
32539 * normal/completion.c: Likewise.
32540 * normal/menu_entry.c: Likewise.
32541 * partmap/apple.c: Likewise.
32542 * util/grub.d/10_hurd.in: Likewise.
32543 * util/hostfs.c: Likewise.
32544 * video/readers/png.c: Likewise.
32546 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
32548 * include/grub/misc.h (GNUC_PREREQ): New macro.
32549 (ATTRIBUTE_ERROR): New macro.
32550 * include/grub/list.h (grub_bad_type_cast_real): Use
32553 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32555 * normal/menu_text.c (print_message): Change messages.
32557 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32559 * normal/menu_entry.c (store_completion): Gettextizze.
32561 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32563 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
32565 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32567 * po/POTFILES: Sort correctly.
32569 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32571 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
32572 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
32573 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
32575 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
32576 summary. Gettextizze the strings.
32577 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
32578 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
32579 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
32581 (GRUB_MOD_INIT): Remove command name from summary.
32582 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
32584 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
32585 * term/i386/pc/serial.c (options): Add full stops.
32586 (GRUB_MOD_INIT): Remove command name from the summary.
32588 2010-01-03 Carles Pina i Estany <carles@pina.cat>
32590 * commands/acpi.c: Gettextizze help strings and/or options. Include
32591 `grub/i18n.h' if needed.
32592 * commands/blocklist.c: Likewise.
32593 * commands/boot.c: Likewise.
32594 * commands/cat.c: Likewise.
32595 * commands/cmp.c: Likewise.
32596 * commands/configfile.c: Likewise.
32597 * commands/crc.c: Likewise.
32598 * commands/date.c: Likewise.
32599 * commands/echo.c: Likewise.
32600 * commands/efi/fixvideo.c: Likewise.
32601 * commands/efi/loadbios.c: Likewise.
32602 * commands/gptsync.c: Likewise.
32603 * commands/halt.c: Likewise.
32604 * commands/handler.c: Likewise.
32605 * commands/hdparm.c: Likewise.
32606 * commands/hexdump.c: Likewise.
32607 * commands/i386/cpuid.c: Likewise.
32608 * commands/i386/pc/drivemap.c: Likewise.
32609 * commands/i386/pc/halt.c: Likewise.
32610 * commands/i386/pc/pxecmd.c: Likewise.
32611 * commands/i386/pc/vbeinfo.c: Likewise.
32612 * commands/i386/pc/vbetest.c: Likewise.
32613 * commands/ieee1275/suspend.c: Likewise.
32614 * commands/keystatus.c: Likewise.
32615 * commands/loadenv.c: Likewise.
32616 * commands/ls.c: Likewise.
32617 * commands/lsmmap.c: Likewise.
32618 * commands/lspci.c: Likewise.
32619 * commands/memrw.c: Likewise.
32620 * commands/minicmd.c: Likewise.
32621 * commands/parttool.c: Likewise.
32622 * commands/password.c: Likewise.
32623 * commands/probe.c: Likewise.
32624 * commands/read.c: Likewise.
32625 * commands/reboot.c: Likewise.
32626 * commands/search.c: Likewise.
32627 * commands/sleep.c: Likewise.
32628 * commands/test.c: Likewise.
32629 * commands/true.c: Likewise.
32630 * commands/usbtest.c: Likewise.
32631 * commands/videotest.c: Likewise.
32632 * commands/xnu_uuid.c: Likewise.
32633 * disk/loopback.c: Likewise.
32634 * hello/hello.c: Likewise.
32635 * loader/i386/bsd.c: Likewise.
32636 * term/i386/pc/serial.c: Likewise.
32637 * po/POTFILES: Add new files.
32639 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
32641 * term/i386/pc/at_keyboard.c
32642 (keyboard_controller_wait_untill_ready): Rename to ...
32643 (keyboard_controller_wait_until_ready): ... this. Update all users.
32645 2010-01-01 Carles Pina i Estany <carles@pina.cat>
32647 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
32648 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
32649 string using string width.
32650 * normal/menu_text.c (grub_print_message_indented): Use
32651 grub_print_spaces and not print_spaces.
32652 (print_timeout): Likewise.
32653 (print_spaces): Move to...
32654 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
32656 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
32658 Import from Gnulib.
32660 * gnulib/getdelim.c: New file.
32661 * gnulib/getline.c: Likewise.
32663 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
32665 * include/grub/list.h (grub_assert_fail): Removed.
32666 (grub_bad_type_cast_real): New function.
32667 (grub_bad_type_cast): New macro.
32668 (GRUB_AS_LIST): Use grub_bad_type_cast.
32669 (GRUB_AS_LIST_P): Likewise.
32670 (GRUB_AS_NAMED_LIST): Likewise.
32671 (GRUB_AS_NAMED_LIST_P): Likewise.
32672 (GRUB_AS_PRIO_LIST): Likewise.
32673 (GRUB_AS_PRIO_LIST_P): Likewise.
32674 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
32676 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
32678 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
32681 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
32683 * configure.ac: Check for TARGET_CFLAGS initialization before we
32684 initialize it ourselves (sigh).
32685 Move a few modifications to TARGET_CFLAGS to be unconditional
32686 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
32689 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
32690 * term/i386/pc/at_keyboard.c
32691 (keyboard_controller_wait_untill_ready): Likewise.
32692 (keyboard_controller_led): Rename `led_status' paramter to avoid
32695 2009-12-28 Carles Pina i Estany <carles@pina.cat>
32697 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
32700 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32702 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
32704 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32706 * normal/menu_text.c (grub_print_message_indented): Prevent
32707 past-the-end-of-array dereference.
32709 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
32711 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
32712 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
32714 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32716 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
32717 * normal/main.c (grub_normal_read_line): Remove a space from the
32720 2009-12-27 Carles Pina i Estany <carles@pina.cat>
32722 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
32723 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32724 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32725 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32726 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32727 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32728 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32730 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32732 * video/readers/jpeg.c (cmd): Declare.
32733 (grub_cmd_jpegtest): Use `grub_command_t' type.
32734 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32736 (GRUB_MOD_FINI): Use `cmd' to unregister.
32737 * video/readers/png.c (cmd): Declare.
32738 (grub_cmd_pngtest): Use `grub_command_t' type.
32739 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32741 (GRUB_MOD_FINI): Use `cmd' to unregister.
32742 * video/readers/tga.c (cmd): Declare.
32743 (grub_cmd_tgatest): Use `grub_command_t' type.
32744 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
32746 (GRUB_MOD_FINI): Use `cmd' to unregister.
32748 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32750 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
32752 * kern/corecmd.c (grub_register_core_commands): Likewise.
32753 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
32754 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32755 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
32756 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32757 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
32758 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
32759 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
32760 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
32761 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32762 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
32763 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32764 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32765 * normal/handler.c (insert_handler): Likewise.
32766 * normal/main.c (GRUB_MOD_INIT): Likewise.
32767 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
32769 2009-12-26 Carles Pina i Estany <carles@pina.cat>
32771 * commands/help.c (grub_cmd_help): Print the command name before the
32773 (GRUB_MOD_INIT): Remove command name from the summary.
32774 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
32776 * lib/arg.c (find_long): Print the command name before the summary.
32777 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
32779 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
32780 * commands/cat.c (GRUB_MOD_INIT): Likewise.
32781 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
32782 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32783 * commands/crc.c (GRUB_MOD_INIT): Likewise.
32784 * commands/date.c (GRUB_MOD_INIT): Likewise.
32785 * commands/echo.c (GRUB_MOD_INIT): Likewise.
32786 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
32787 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
32788 * commands/handler.c (GRUB_MOD_INIT): Likewise.
32789 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
32790 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
32791 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
32792 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
32793 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
32794 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
32795 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
32796 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
32797 * commands/ls.c (GRUB_MOD_INIT): Likewise.
32798 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
32799 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
32800 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
32801 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
32802 * commands/password.c (GRUB_MOD_INIT): Likewise.
32803 * commands/probe.c (GRUB_MOD_INIT): Likewise.
32804 * commands/read.c (GRUB_MOD_INIT): Likewise.
32805 * commands/search.c (GRUB_MOD_INIT): Likewise.
32806 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
32807 * commands/test.c (GRUB_MOD_INIT): Likewise.
32808 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
32809 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
32810 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
32811 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
32812 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
32813 * lib/arg.c (GRUB_MOD_INIT): Likewise.
32814 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
32815 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
32816 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
32817 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
32818 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
32819 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
32820 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
32821 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
32823 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32825 Use search command for preliminar UUID search.
32827 * commands/search.c: Split into ...
32828 * commands/search_wrap.c: ...this
32829 * commands/search.c: ...and this.
32830 * commands/search_file.c: New file.
32831 * commands/search_label.c: New file.
32832 * commands/search_uuid.c: New file.
32833 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
32834 Add commands/search_wrap.c, commands/search_file.c,
32835 commands/search_label.c and commands/search_uuid.c.
32836 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
32837 (search_mod_SOURCES): Set to commands/search_wrap.c.
32838 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
32840 (search_fs_file_mod_SOURCES): New variable.
32841 (search_fs_file_mod_CFLAGS): Likewise.
32842 (search_fs_file_mod_LDFLAGS): Likewise.
32843 (search_label_mod_SOURCES): Likewise.
32844 (search_label_mod_CFLAGS): Likewise.
32845 (search_label_mod_LDFLAGS): Likewise.
32846 (search_fs_uuid_mod_SOURCES): New variable.
32847 (search_fs_uuid_mod_CFLAGS): Likewise.
32848 (search_fs_uuid_mod_LDFLAGS): Likewise.
32849 (fs_file_mod_SOURCES): Removed.
32850 (fs_file_mod_CFLAGS): Likewise.
32851 (fs_file_mod_LDFLAGS): Likewise.
32852 (fs_uuid_mod_SOURCES): Removed.
32853 (fs_uuid_mod_CFLAGS): Likewise.
32854 (fs_uuid_mod_LDFLAGS): Likewise.
32855 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
32856 Set to util/grub-install.in.
32857 * disk/fs_file.c: Removed.
32858 * disk/fs_uuid.c: Likewise.
32859 * include/grub/search.h: New file.
32860 * util/grub-install.in: Handle sparc64.
32861 Create and use load.cfg.
32862 * util/sparc64/ieee1275/grub-install.in: Removed.
32864 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32866 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
32867 Ignore return status if CF is cleared.
32868 (grub_biosdisk_get_diskinfo_standard): Likewise.
32870 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32872 * term/i386/pc/at_keyboard.c
32873 (keyboard_controller_wait_untill_ready): New function.
32874 (grub_keyboard_controller_write, grub_keyboard_controller_read)
32875 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
32876 for keyboard polling, rather than duplicate the same loop. This
32877 saves a few bytes in code size.
32879 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
32881 Support for (pxe[:server[:gateway]]) syntax and
32882 use environment variable for PXE.
32884 * commands/i386/pc/pxecmd.c (options): Removed.
32885 (print_ip): Removed.
32886 (grub_cmd_pxe): Removed
32887 (grub_cmd_pxe_unload): New function.
32888 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
32889 (grub_pxe_your_ip): Made static.
32890 (grub_pxe_default_server_ip): Likewise.
32891 (grub_pxe_default_gateway_ip): Likewise.
32892 (grub_pxe_blksize): Likewise.
32893 (parse_ip): New function.
32894 (grub_pxe_open): Support server and gateway specification.
32895 (grub_pxe_close): Free disk->data.
32896 (grub_pxefs_open): Use disk->data.
32897 (grub_pxefs_read): Likewise.
32898 (grub_env_write_readonly): New function.
32899 (set_mac_env): Likewise.
32900 (set_env_limn_ro): Likewise.
32901 (parse_dhcp_vendor): Likewise.
32902 (grub_pxe_detect): Set the environment variables.
32903 (set_ip_env): New function.
32904 (write_ip_env): Likewise.
32905 (grub_env_write_pxe_default_server): Likewise.
32906 (grub_env_write_pxe_default_gateway): Likewise.
32907 (grub_env_write_pxe_blocksize): Likewise.
32908 (GRUB_MOD_INIT(pxe)): Set environment variables.
32909 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
32910 (grub_pxe_mac_addr_t): ... this. All users updated.
32911 (grub_pxe_your_ip): Removed.
32912 (grub_pxe_server_ip): Likewise.
32913 (grub_pxe_gateway_ip): Likewise.
32914 (grub_pxe_blksize): Likewise.
32916 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32918 * commands/help.c: Include `<grub/i18n.h>'.
32919 (grub_cmd_help): Gettextizze.
32920 (GRUB_MOD_INIT): Likewise.
32921 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
32922 (GRUB_MOD_INIT): Gettextizze.
32923 * commands/search.c: Include `<grub/i18n.h>'.
32924 (options): Gettextizze.
32925 (GRUB_MOD_INIT): Gettextizze.
32926 * lib/arg.c: Include `<grub/i18n.h>'.
32927 (help_options): Gettextizze.
32928 (find_long): Likewise.
32929 (grub_arg_show_help): Likewise.
32930 * normal/dyncmd.c: Include `<grub/i18n.h>'.
32931 (read_command_list): Gettextizze.
32932 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
32933 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
32935 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
32937 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
32938 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
32939 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
32940 (led_status): New variable.
32941 (keyboard_controller_led): New function.
32942 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
32943 update led status for caps lock, num lock and scroll lock.
32945 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
32947 * util/hostdisk.c (open_device): Fix a comment.
32949 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32951 * util/grub-install.in (host_os): New variable.
32952 * util/i386/efi/grub-install.in (host_os): Likewise.
32954 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32956 * util/mkisofs/write.c (padblock_write): Abort when given an
32957 excedingly large embed image, instead of silently truncating it.
32959 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32961 * include/multiboot.h: Indentation fixes.
32963 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32965 * include/multiboot.h (struct multiboot_aout_symbol_table)
32966 (struct multiboot_elf_section_header_table): New structure
32967 declarations (stolen from GRUB Legacy).
32968 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
32971 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
32972 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
32975 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32977 * include/multiboot.h: Make comments src2texi-friendly.
32979 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32981 For consistency with [multiboot]/docs/boot.S.
32983 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
32984 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
32985 (MULTIBOOT_MAGIC2): Rename from this ...
32986 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
32988 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
32990 * include/multiboot.h: Remove `<grub/types.h>'.
32991 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
32992 types. Update all users.
32994 2009-12-25 Carles Pina i Estany <carles@pina.cat>
32996 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
32997 `couldn't' and `can not' by `cannot'.
32998 * commands/i386/pc/drivemap.c: Likewise.
32999 * disk/ata.c: Likewise.
33000 * disk/ieee1275/nand.c: Likewise.
33001 * fs/affs.c: Likewise.
33002 * fs/fat.c: Likewise.
33003 * fs/hfs.c: Likewise.
33004 * fs/hfsplus.c: Likewise.
33005 * fs/iso9660.c: Likewise.
33006 * fs/jfs.c: Likewise.
33007 * fs/minix.c: Likewise.
33008 * fs/reiserfs.c: Likewise.
33009 * fs/sfs.c: Likewise.
33010 * fs/udf.c: Likewise.
33011 * fs/ufs.c: Likewise.
33012 * fs/xfs.c: Likewise.
33013 * loader/powerpc/ieee1275/linux.c: Likewise.
33014 * loader/sparc64/ieee1275/linux.c: Likewise.
33015 * util/grub-probe.c: Likewise.
33016 * util/misc.c: Likewise.
33018 2009-12-24 Carles Pina i Estany <carles@pina.cat>
33020 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
33022 * commands/acpi.c: Likewise.
33023 * commands/blocklist.c: Likewise.
33024 * commands/efi/loadbios.c: Likewise.
33025 * commands/i386/pc/drivemap.c: Likewise.
33026 * commands/loadenv.c: Likewise.
33027 * commands/memrw.c: Likewise.
33028 * commands/password.c: Likewise.
33029 * commands/videotest.c: Likewise.
33030 * disk/ata.c: Likewise.
33031 * disk/ata_pthru.c: Likewise.
33032 * disk/dmraid_nvidia.c: Likewise.
33033 * disk/ieee1275/nand.c: Likewise.
33034 * disk/ieee1275/ofdisk.c: Likewise.
33035 * disk/loopback.c: Likewise.
33036 * disk/lvm.c: Likewise.
33037 * disk/mdraid_linux.c: Likewise.
33038 * disk/raid.c: Likewise.
33039 * disk/raid6_recover.c: Likewise.
33040 * disk/scsi.c: Likewise.
33041 * efiemu/main.c: Likewise.
33042 * efiemu/mm.c: Likewise.
33043 * efiemu/pnvram.c: Likewise.
33044 * efiemu/symbols.c: Likewise.
33045 * font/font.c: Likewise.
33046 * fs/cpio.c: Likewise.
33047 * fs/hfsplus.c: Likewise.
33048 * fs/iso9660.c: Likewise.
33049 * fs/jfs.c: Likewise.
33050 * fs/minix.c: Likewise.
33051 * fs/ntfs.c: Likewise.
33052 * fs/ntfscomp.c: Likewise.
33053 * fs/reiserfs.c: Likewise.
33054 * fs/ufs.c: Likewise.
33055 * fs/xfs.c: Likewise.
33056 * gettext/gettext.c: Likewise.
33057 * include/grub/auth.h: Likewise.
33058 * kern/elf.c: Likewise.
33059 * kern/file.c: Likewise.
33060 * kern/ieee1275/init.c: Likewise.
33061 * kern/ieee1275/mmap.c: Likewise.
33062 * kern/ieee1275/openfw.c: Likewise.
33063 * kern/powerpc/dl.c: Likewise.
33064 * kern/sparc64/dl.c: Likewise.
33065 * lib/arg.c: Likewise.
33066 * loader/i386/bsd.c: Likewise.
33067 * loader/i386/bsdXX.c: Likewise.
33068 * loader/i386/efi/linux.c: Likewise.
33069 * loader/i386/efi/xnu.c: Likewise.
33070 * loader/i386/ieee1275/linux.c: Likewise.
33071 * loader/i386/linux.c: Likewise.
33072 * loader/i386/multiboot.c: Likewise.
33073 * loader/i386/pc/linux.c: Likewise.
33074 * loader/i386/pc/multiboot2.c: Likewise.
33075 * loader/i386/xnu.c: Likewise.
33076 * loader/ieee1275/multiboot2.c: Likewise.
33077 * loader/macho.c: Likewise.
33078 * loader/machoXX.c: Likewise.
33079 * loader/multiboot2.c: Likewise.
33080 * loader/multiboot_loader.c: Likewise.
33081 * loader/powerpc/ieee1275/linux.c: Likewise.
33082 * loader/sparc64/ieee1275/linux.c: Likewise.
33083 * loader/xnu.c: Likewise.
33084 * loader/xnu_resume.c: Likewise.
33085 * mmap/i386/pc/mmap.c: Likewise.
33086 * normal/menu_viewer.c: Likewise.
33087 * partmap/acorn.c: Likewise.
33088 * partmap/amiga.c: Likewise.
33089 * partmap/apple.c: Likewise.
33090 * script/lexer.c: Likewise.
33091 * term/gfxterm.c: Likewise.
33092 * term/i386/pc/serial.c: Likewise.
33093 * term/i386/pc/vga.c: Likewise.
33094 * term/ieee1275/ofconsole.c: Likewise.
33095 * term/terminfo.c: Likewise.
33096 * video/bitmap.c: Likewise.
33097 * video/efi_gop.c: Likewise.
33098 * video/efi_uga.c: Likewise.
33099 * video/fb/video_fb.c: Likewise.
33100 * video/i386/pc/vbe.c: Likewise.
33101 * video/readers/tga.c: Likewise.
33102 * video/video.c: Likewise.
33104 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
33106 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
33107 * commands/lspci.c: Likewise.
33108 * commands/probe.c: Likewise.
33109 * commands/xnu_uuid.c: Likewise.
33110 * conf/i386-coreboot.rmk: Likewise.
33111 * conf/i386-efi.rmk: Likewise.
33112 * conf/i386-ieee1275.rmk: Likewise.
33113 * conf/i386-pc.rmk: Likewise.
33114 * conf/powerpc-ieee1275.rmk: Likewise.
33115 * conf/sparc64-ieee1275.rmk: Likewise.
33116 * conf/x86_64-efi.rmk: Likewise.
33117 * fs/i386/pc/pxe.c: Likewise.
33118 * gettext/gettext.c: Likewise.
33119 * include/grub/efi/graphics_output.h: Likewise.
33120 * include/grub/i386/pc/memory.h: Likewise.
33121 * kern/env.c: Likewise.
33122 * kern/i386/qemu/startup.S: Likewise.
33123 * lib/i386/pc/biosnum.c: Likewise.
33124 * lib/i386/relocator.c: Likewise.
33125 * lib/i386/relocator_asm.S: Likewise.
33126 * lib/relocator.c: Likewise.
33127 * loader/i386/bsd.c: Likewise.
33128 * loader/i386/multiboot.c: Likewise.
33129 * loader/i386/pc/chainloader.c: Likewise.
33130 * loader/i386/xnu.c: Likewise.
33131 * loader/xnu.c: Likewise.
33132 * normal/main.c: Likewise.
33133 * normal/menu_text.c: Likewise.
33134 * util/getroot.c: Likewise.
33135 * util/grub-mkconfig_lib.in: Likewise.
33136 * util/grub.d/00_header.in: Likewise.
33137 * util/i386/pc/grub-mkimage.c: Likewise.
33138 * util/mkisofs/eltorito.c: Likewise.
33139 * util/mkisofs/exclude.h: Likewise.
33140 * util/mkisofs/hash.c: Likewise.
33141 * util/mkisofs/iso9660.h: Likewise.
33142 * util/mkisofs/joliet.c: Likewise.
33143 * util/mkisofs/mkisofs.c: Likewise.
33144 * util/mkisofs/mkisofs.h: Likewise.
33145 * util/mkisofs/multi.c: Likewise.
33146 * util/mkisofs/name.c: Likewise.
33147 * util/mkisofs/rock.c: Likewise.
33148 * util/mkisofs/tree.c: Likewise.
33149 * util/mkisofs/write.c: Likewise.
33150 * video/efi_gop.c: Likewise.
33152 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
33154 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
33157 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33159 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
33160 * genmk.rb (class SCRIPT): Modify the target file instead of source.
33162 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33164 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
33165 (GRUB_MOD_INIT(memrw)): Update help line.
33167 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33169 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
33170 Use grub_extcmd_t. All users updated.
33171 (options): New variable.
33172 (grub_cmd_read): Restructure for readability. Support "-v" option.
33173 (grub_cmd_write): Restructure for readability.
33175 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33177 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
33179 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33181 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
33182 with the actual contents of the correspondending make variable.
33183 * util/grub-mkrescue.in (pkglib_DATA): New variable.
33184 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
33185 specifying `*.lst' and `efiemu??.o'
33187 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33189 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
33190 after function name.
33191 Noticed by Rene Engelhard <rene@debian.org>.
33193 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33195 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
33196 (options): New variable.
33197 (iospace): Likewise.
33198 (grub_lspci_iter): List IO spaces if "-i" was given.
33199 (grub_cmd_lspci): Parse options.
33200 (GRUB_MOD_INIT(lspci)): Use extcmd.
33201 (GRUB_MOD_FINI(lspci)): Likewise.
33203 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
33205 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
33206 `function' keyword.
33207 Patch by Tony Mancill <tmancill@debian.org>.
33209 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
33211 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
33212 (grub_uhci_portstatus): Likewise.
33213 (grub_uhci_portstatus): Add necessary delay.
33214 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
33216 2009-12-21 Carles Pina i Estany <carles@pina.cat>
33218 * commands/acpi.c (options): Fix capitalizations and/or full stops.
33219 (GRUB_MOD_INIT): Likewise.
33220 * commands/boot.c (GRUB_MOD_INIT): Likewise.
33221 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
33222 * commands/echo.c (options): Fix capitalizations and/or full stops.
33223 * commands/efi/loadbios.c (enable_rom_area): Likewise.
33224 (enable_rom_area): Likewise.
33225 (GRUB_MOD_INIT): Likewise.
33226 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
33227 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
33228 * commands/handler.c (GRUB_MOD_INIT): Likewise.
33229 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
33230 * commands/hexdump.c (options): Likewise.
33231 * commands/i386/cpuid.c (options): Likewise.
33232 (GRUB_MOD_INIT): Likewise.
33233 * commands/i386/pc/drivemap.c (options): Likewise.
33234 (GRUB_MOD_INIT): Likewise.
33235 * commands/i386/pc/halt (options): Likewise.
33236 (GRUB_MOD_INIT): Likewise.
33237 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
33238 * commands/i386/pc/pxecmd.c (options): Likewise.
33239 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
33240 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
33241 * commands/keystatus.c (options): Likewise.
33242 (GRUB_MOD_INIT): Likewise.
33243 * commands/loadenv.c (options): Likewise.
33244 * commands/ls.c (options): Likewise.
33245 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
33246 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
33247 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
33248 * commands/parttool.c (helpmsg): Likewise.
33249 * commands/probe.c (options): Likewise.
33250 * commands/read.c (GRUB_MOD_INIT): Likewise.
33251 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
33252 * commands/search.c (options): Likewise.
33253 * commands/sleep.c (options): Likewise.
33254 * commands/test.c (GRUB_MOD_INIT): Likewise.
33255 * commands/true.c (GRUB_MOD_INIT): Likewise.
33256 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
33257 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
33258 * lib/arg.c (help_options): Likewise.
33259 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
33261 * po/POTFILES: Add `commands/loadenv.c'.
33263 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
33265 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
33266 instead of specifying them explicit.
33268 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33270 * NEWS: Add grub-probe support for GNU/Hurd.
33272 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33274 * NEWS: gettext was added after 1.97.
33276 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33278 * util/mkisofs/msdos_partition.h: New file (based on
33279 include/grub/msdos_partition.h).
33280 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
33281 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
33282 (ld_options, main): Recognize --protective-msdos-label.
33283 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
33284 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
33285 (padblock_write): If `use_protective_msdos_label' is set, patch a
33286 protective DOS-style label in the output image.
33288 * util/grub-mkrescue.in: Use --protective-msdos-label.
33290 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33292 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
33295 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33297 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
33299 (ld_options, main): Recognize `--embedded-boot'.
33300 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
33302 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
33303 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
33304 (padblock_write): Likewise. Rewrite to support embedded boot image.
33306 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
33307 for BIOS-based disk boot instead of only ElTorito.
33309 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33311 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
33312 build (not needed for bootstrap).
33314 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33316 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
33317 from i386-pc build (not needed for bootstrap).
33318 Rewrite a pair of strings.
33320 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
33322 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
33324 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
33326 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
33328 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33330 * kern/env.c (grub_env_context_open): Mark exported variable for
33333 2009-12-21 Andreas Born <futur.andy@googlemail.com>
33335 * kern/env.c (grub_env_export): Create nonexistent variables before
33338 2009-12-20 Carles Pina i Estany <carles@pina.cat>
33340 * include/grub/auth.h: Include `<grub/i18n.h>'.
33341 (GRUB_GET_PASSWORD): Gettextizze string.
33342 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
33344 (grub_utf8_to_ucs4_alloc): Fix indentation.
33345 (grub_print_ucs4): Likewise.
33346 (grub_getstringwidth): Likewise.
33347 (print_message_indented): New declaration.
33348 * normal/auth.c: Include `<grub/i18n.h>'.
33349 (grub_auth_check_authentication): Gettexttize string.
33350 * normal/cmdline.c: Include `<grub/i18n.h>'.
33351 (grub_cmdline_get): Gettextizze.
33352 * normal/color.c: Include `<grub/i18n.h>'.
33353 (grub_parse_color_name_pair): Gettexttize strings.
33354 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
33355 string (use `print_message_indented').
33356 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
33357 `include/grub/normal.h'.
33358 (print_message_indented): Renamed to ...
33359 (grub_print_message_indented): ... this. Remove `static' qualifer (now
33360 used in normal/main.c).
33361 (print_message): Use `grub_print_message_indented' instead of
33362 `print_message_indented'.
33363 (print_timeout): Likewise.
33364 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
33365 (grub_normal_print_device_info): Gettexttize strings.
33366 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
33368 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33370 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
33371 of arguments. Return number of tokens and not arguments. All users
33374 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
33376 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
33377 non-MSDOS paritions.
33379 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
33381 * include/grub/types.h (UNUSED): Removed since it conflicts with
33382 NetBSD headers. All users changed to direct __attribute__ ((unused)).
33383 Reported by Grégoire Sutre.
33385 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33387 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
33388 (grub_print_ucs4_alloc): Likewise.
33389 (grub_getstringwidth): Likewise.
33390 * normal/main.c (grub_normal_init_page): Gettextize version string.
33391 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
33392 (getstringwidth): Renamed to ...
33393 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
33394 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
33395 (grub_print_ucs4): Remove `static' qualifer (now used in
33397 * po/POTFILES: Add normal/main.c.
33399 2009-12-19 Carles Pina i Estany <carles@pina.cat>
33401 * normal/menu_text.c (STANDARD_MARGIN): New macro.
33402 (print_message_indented): Add `margin_left' and `margin_right'
33404 (print_message): Update `print_message_indented' calls. Adds '\n' to the
33406 (print_timeout): Use `print_message_indented' to print the message.
33407 Deletes `second_stage' parameter.
33408 (run_menu): Update `print_timeout' calls.
33410 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33412 Fix console palette on OpenFirmware.
33414 * term/ieee1275/ofconsole.c (MAX): Removed.
33415 (colors): Redone based on VGA palette.
33416 (grub_ofconsole_setcolor): Discard brightness bit since only 8
33417 colors are supported.
33418 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
33420 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33422 Fix potential EfiEmu double prepare.
33424 * efiemu/main.c (prepared): New variable
33425 (grub_efiemu_unload): Set prepare to '0'.
33426 (grub_efiemu_prepare): Return if already prepared. Set prepared.
33428 set_virtual_address_map support.
33430 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
33432 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
33434 (grub_efiemu_crc32): Likewise.
33435 (grub_efiemu_crc64): Likewise.
33436 (grub_efiemu_set_virtual_address_map): Likewise.
33437 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
33439 (grub_autoefi_set_virtual_address_map): Likewise.
33440 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
33441 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
33442 Restructure flow to accomodate it.
33443 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
33444 (grub_efiemu_crc): Recompute CRC32.
33445 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
33446 (efiemu_ptv_relocated): ... this. Made global. All users updated.
33447 * efiemu/symbols.c (relocated_handle): New variable.
33448 (grub_efiemu_free_syms): Free relocated_handle.
33449 (grub_efiemu_alloc_syms): Allocate relocated_handle.
33450 (grub_efiemu_write_sym_markers): New function.
33451 (grub_efiemu_set_virtual_address_map): Likewise.
33453 Newer XNU parameters.
33455 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
33456 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
33457 (grub_xnu_fill_devicetree): New prototype.
33458 (grub_xnu_heap_real_start): New variable.
33459 * loader/xnu.c (get_name_ptr): New function.
33460 (grub_xnu_load_driver): Fill namelen and name.
33462 64-bit xnu support.
33464 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
33465 and 'loader/macho64.c'.
33466 * conf/i386-pc.rmk: Likewise.
33467 * conf/x86_64-efi.rmk: Likewise.
33468 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
33469 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
33470 * include/grub/macho.h (grub_macho_segment64): New structure.
33471 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
33472 (grub_macho_size32): ... to this.
33473 (grub_macho32_get_entry_point): Renamed from ...
33474 (grub_macho_get_entry_point32): ... to this.
33475 (grub_macho_contains_macho64): New prototype.
33476 (grub_macho_size64): Likewise.
33477 (grub_macho_get_entry_point64): Likewise.
33478 (grub_macho32_load): Renamed from ...
33479 (grub_macho_load32): ... to this.
33480 (grub_macho32_filesize): Renamed from ...
33481 (grub_macho_filesize32): ... to this.
33482 (grub_macho32_readfile): Renamed from ...
33483 (grub_macho_readfile32): ... to this.
33484 (grub_macho_filesize64): New prototype.
33485 (grub_macho_readfile64): Likewise.
33486 (grub_macho_parse32): Likewise.
33487 (grub_macho_parse64): Likewise.
33488 * loader/macho.c: Split into ...
33489 * loader/machoXX.c: ... and this. Replace 32 with XX.
33490 * loader/macho32.c: New file.
33491 * loader/macho64.c: Likewise.
33492 * loader/xnu.c (grub_xnu_is_64bit): New variable.
33493 (grub_cmd_xnu_kernel): Make 32-bit only.
33494 (grub_cmd_xnu_kernel64): New function.
33495 (grub_xnu_load_driver): Support Mach-O 64.
33496 (grub_cmd_xnu_mkext): Likewise.
33497 * util/grub.d/30_os-prober.in (osx_entry): New function.
33498 Generate entries for 64-bit boot too.
33500 Eliminate ad-hoc tree format in XNU and EfiEmu.
33502 * efiemu/main.c (grub_efiemu_prepare): Update comment.
33503 * efiemu/pnvram.c: Rewritten to use environment variables.
33506 Inline utf16_to_utf8.
33508 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
33509 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
33511 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
33513 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
33514 * commands/usbtest.c (grub_usb_get_string): ... move here.
33515 (usb_print_str): Fix error handling.
33516 * include/grub/usb.h (grub_usb_get_string): Remove.
33518 UTF-8 to UTF-16 transformation.
33520 * conf/common.rmk (pkglib_MODULES): Add charset.mod
33521 (charset_mod_SOURCES): New variable.
33522 (charset_mod_CFLAGS): Likewise.
33523 (charset_mod_LDFLAGS): Likewise.
33524 * include/grub/utf.h: New file.
33525 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
33527 Support for device properties.
33529 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
33530 (grub_xnu_devprop_device_header): Likewise.
33531 (grub_xnu_devprop_device_descriptor): Likewise.
33532 (grub_xnu_devprop_add_device): New prototype.
33533 (grub_xnu_devprop_remove_device): Likewise.
33534 (grub_xnu_devprop_remove_property): Likewise.
33535 (grub_xnu_devprop_add_property_utf8): Likewise.
33536 (grub_xnu_devprop_add_property_utf16): Likewise.
33537 (grub_cpu_xnu_init): Likewise.
33538 (grub_cpu_xnu_fini): Likewise.
33539 (grub_cpu_xnu_unload): Likewise.
33540 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
33541 (property_descriptor): Likewise.
33542 (devices): New variable.
33543 (grub_xnu_devprop_remove_property): New function.
33544 (grub_xnu_devprop_add_device): Likewise.
33545 (grub_xnu_devprop_remove_device): Likewise.
33546 (grub_xnu_devprop_add_property): Likewise.
33547 (grub_xnu_devprop_add_property_utf8): Likewise.
33548 (grub_xnu_devprop_add_property_utf16): Likewise.
33549 (hextoval): Likewise.
33550 (grub_cpu_xnu_fill_devprop): Likewise.
33551 (grub_cmd_devprop_load): Likewise.
33552 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
33553 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
33554 (cmd_devprop_load): New variable.
33555 (grub_cpu_xnu_init): New function.
33556 (grub_cpu_xnu_fini): Likewise.
33557 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
33558 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
33559 (grub_cmd_xnu_devtree): Likewise.
33560 (hextoval): New function.
33561 (unescape): Likewise.
33562 (grub_xnu_fill_devicetree): Likewise.
33564 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
33565 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
33567 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
33569 Workaround for broken ATI VBE.
33571 * video/i386/pc/vbe.c (last_set_mode): New variable.
33572 (grub_vbe_set_video_mode): Set 'last_set_mode'.
33573 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
33574 (grub_video_vbe_setup): Don't check for reserved flag.
33576 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
33578 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
33579 the `find' command.
33581 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
33583 UUID support for HFS.
33585 * fs/hfs.c (grub_hfs_uuid): New function.
33586 (grub_hfs_fs): New value .uuid.
33587 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
33589 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
33591 Fix a segfault with parsing unknown long options.
33593 * util/grub-mkrelpath.c (options): Zero terminate it.
33595 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33597 * include/grub/misc.h (grub_puts): New declaration.
33598 (grub_puts_): Likewise.
33599 * kern/misc.c (grub_puts): New definition.
33600 (grub_puts_): Likewise.
33602 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33604 * util/grub-probe.c (probe): Improve error message.
33606 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
33608 * loader/i386/multiboot_elfxx.c
33609 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
33612 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33614 Relocator framework
33616 * loader/i386/xnu_helper.S: Removed. All users updated.
33617 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
33618 (relocator_mod_SOURCES): New variable.
33619 (relocator_mod_CFLAGS): Likewise.
33620 (relocator_mod_LDFLAGS): Likewise.
33621 (relocator_mod_ASFLAGS): Likewise.
33622 * conf/x86_64.rmk: Likewise.
33623 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
33624 (grub_multiboot_payload_entry_offset): Likewise.
33625 (grub_multiboot_forward_relocator): Likewise.
33626 (grub_multiboot_forward_relocator_end): Likewise.
33627 (grub_multiboot_backward_relocator): Likewise.
33628 (grub_multiboot_backward_relocator_end): Likewise.
33629 (grub_multiboot_payload_eip): New variable.
33630 (grub_multiboot_payload_orig): Likewise.
33631 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
33632 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
33633 * include/grub/i386/memory.h
33634 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
33635 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
33636 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
33637 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
33638 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
33639 * include/grub/i386/relocator.h: New file.
33640 * include/grub/x86_64/relocator.h: Likewise.
33641 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
33642 (XNU_RELOCATOR): New macro.
33643 (grub_xnu_launcher_start): Remove.
33644 (grub_xnu_launcher_end): Likewise.
33645 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
33646 (grub_xnu_heap_real_start): Remove.
33647 (grub_xnu_heap_start): Change to void *. All users updated.
33648 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
33649 * lib/i386/relocator.c: New file.
33650 * lib/i386/relocator_asm.S: Likewise.
33651 * lib/i386/relocator_backward.S: Likewise.
33652 * lib/mips/relocator.c: Likewise.
33653 * lib/mips/relocator_asm.S: Likewise.
33654 * lib/relocator.c: Likewise.
33655 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
33657 (playground): Likewise.
33658 (grub_multiboot_payload_orig): New variable.
33659 (grub_multiboot_payload_dest): Likewise.
33660 (grub_multiboot_payload_size): Likewise.
33661 (grub_multiboot_payload_eip): Likewise.
33662 (grub_multiboot_payload_esp): Likewise.
33663 (grub_multiboot_boot): Use grub_relocator32_boot.
33664 (grub_multiboot_unload): Free relocators.
33665 (grub_multiboot): Setup stack. Use relocators.
33666 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
33667 (grub_multiboot_load_elfXX): Use relocators.
33668 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
33669 (grub_multiboot_payload_size): Likewise.
33670 (grub_multiboot_payload_dest): Likewise.
33671 (grub_multiboot_payload_entry_offset): Likewise.
33672 (grub_multiboot_forward_relocator): Likewise.
33673 (grub_multiboot_backward_relocator): Likewise.
33674 (grub_multiboot_real_boot): Likewise.
33675 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
33676 (grub_xnu_entry_point): Likewise.
33677 (grub_xnu_arg1): Likewise.
33678 (grub_xnu_stack): Likewise.
33679 (grub_xnu_launch): Removed.
33680 (grub_xnu_boot_resume): New function.
33681 (grub_xnu_boot): Use relocators.
33682 * loader/i386/xnu_helper.S: Removed.
33683 * loader/xnu.c (grub_xnu_heap_start): New variable.
33684 (grub_xnu_heap_size): Likewise.
33685 (grub_xnu_heap_malloc): Use relocators.
33686 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
33688 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
33690 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
33693 2009-12-13 Carles Pina i Estany <carles@pina.cat>
33695 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
33696 GRUB_ERR_NONE before calling grub_env_set.
33698 2009-12-12 Robert Millan <rmh@aybabtu.com>
33700 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
33701 * genmk.rb (video): New variable.
33702 (CLEANFILES, VIDEOFILES): Add #{video}.
33703 (#{video}): New target rule.
33704 * genvideolist.sh: New file.
33705 * Makefile.in (pkglib_DATA): Add video.lst.
33706 (video.lst): New target rule.
33707 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
33709 * util/grub.d/30_os-prober.in: Replace `vbe' with
33710 ${GRUB_VIDEO_BACKEND}.
33712 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
33714 * THANKS: Add David Miller.
33716 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
33718 libpciaccess support.
33720 * Makefile.in (LIBPCIACCESS): New variable.
33721 (enable_grub_emu_pci): Likewise.
33722 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
33723 util/pci.c and commands/lspci.c.
33724 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
33725 * configure.ac (grub-emu-pci): New option.
33726 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
33727 (grub_pci_device_unmap_range): Likewise.
33728 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
33729 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
33730 (grub_pci_address_t) [!GRUB_UTIL]: New type.
33731 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
33732 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
33733 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
33734 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
33735 * include/grub/pciutils.h: New file.
33736 * util/pci.c: Likewise.
33738 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
33740 * util/misc.c: Don't include <errno.h> twice.
33742 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
33744 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
33745 name in an error message.
33746 (grub_biosdisk_rw): Likewise.
33748 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33750 Eliminate NTFS 4Gib barrier.
33752 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
33753 (read_run_data): Likewise.
33754 (grub_ntfs_read_run_list): Likewise.
33755 (grub_ntfs_read_block): Likewise.
33756 (grub_ntfs_iterate_dir): Likewise.
33757 (read_mft): Likewise.
33758 (read_data): Likewise.
33760 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
33761 to avoid 64-bit division
33762 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
33763 (grub_ntfs_rlst): Use grub_disk_addr_t.
33765 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33767 Eliminate grub-fstest 4Gib barrier.
33769 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
33770 (read_file): Fix error reporting.
33772 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33774 Eliminate hexdump 4Gib barrier.
33776 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
33777 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
33779 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
33781 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
33784 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
33786 Remove miscellaneous files in distclean target.
33788 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
33790 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
33792 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
33793 if they're already set. This resolves the conflict between my
33794 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
33795 fixing the --grub-probe option again.
33796 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
33797 change on 2009-10-06, so that we now once again source
33798 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
33800 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
33802 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
33803 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
33804 `util/devicemap.c'.
33806 2009-12-08 Carles Pina i Estany <carles@pina.cat>
33808 * include/grub/misc.h (grub_printf_): New declaration.
33809 * kern/misc.c (grub_printf_): New definition.
33810 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
33811 instead of `grub_printf' and `_'.
33812 * normal/menu_entry.c (store_completion): Likewise.
33814 (grub_menu_entry_run): Likewise.
33815 * normal/menu_text.c (grub_wait_after_message): Likewise.
33816 (notify_booting): Likewise.
33817 (notify_fallback): Likewise.
33818 (notify_execution_failure): Likewise.
33820 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
33822 * configure.ac: Check for vasprintf.
33823 * util/misc.c (asprintf): Move allocation from here ...
33824 (vasprintf): ... to here. New function.
33825 (xasprintf): New function.
33826 * include/grub/util/misc.h (vasprintf, xasprintf): Add
33828 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
33829 * util/grub-mkfont.c (write_font): Likewise.
33830 * util/grub-probe.c (probe): Likewise.
33831 * util/hostdisk.c (make_device_name): Likewise.
33833 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
33835 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
33836 anything even prefixed with 'cdrom' as a cdrom.
33838 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
33840 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
33843 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33845 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
33846 grub_gettext_msg_list.
33847 (grub_gettext_gettranslation_from_position): Return const char *
33849 (grub_gettext_translate): Add the translated strings into a list,
33850 returns from the list if existing there.
33851 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
33852 (grub_gettext_delete_list): Delete the list.
33853 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
33854 lang environment variable is changed.
33855 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
33857 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33859 Rename kernel.mod to kernel.img.
33861 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
33862 (kernel_mod_EXPORTS): Rename to ...
33863 (kernel_img_EXPORTS): ... this.
33864 (kernel_mod_SOURCES): Rename to ...
33865 (kernel_img_SOURCES): ... this.
33866 (kernel_mod_HEADERS): Rename to ...
33867 (kernel_img_HEADERS): ... this. All users updated.
33868 (kernel_mod_CFLAGS): Rename to ...
33869 (kernel_img_CFLAGS): ... this.
33870 (kernel_mod_ASFLAGS): Rename to ...
33871 (kernel_img_ASFLAGS): ... this.
33872 (kernel_mod_LDFLAGS): Rename to ...
33873 (kernel_img_LDFLAGS): ... this.
33874 * conf/x86_64-efi.rmk: Likewise.
33875 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
33876 (read_kernel_image): ... this. All users updated.
33877 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
33879 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33881 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
33882 (print_spaces): New function.
33883 (grub_print_ucs4): New function.
33884 (getstringwidth): New function.
33885 (print_message_indented): New function.
33886 (print_message): Gettexttize strings using print_message_indented.
33887 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
33889 (get_entry_number): Gettextize and uses dynamic terminal width.
33890 (notify_booting, notify_fallback, notify_execution_failure):
33892 * normal/menu_entry.c (store_completion): Cleanup the gettextized
33895 (grub_menu_entry_run): Likewise.
33896 * PO/POTFILES: Add normal/menu_entry.c.
33898 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
33900 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
33902 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33904 * util/grub-install.in: Install gettext .mo files.
33905 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
33907 2009-12-05 Carles Pina i Estany <carles@pina.cat>
33909 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
33912 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
33914 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
33915 non-firmware-dependant one in realmode.S takes precedence.
33917 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
33919 * commands/halt.c: Replace misc arch-specific headers with
33921 * commands/reboot.c: Likewise.
33922 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
33924 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
33925 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
33926 (kernel_img_SOURCES): ... to here.
33928 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
33929 * include/grub/i386/pc/init.h: Likewise.
33930 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33931 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33933 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
33935 * include/grub/i386/halt.h: Remove.
33936 * include/grub/i386/reboot.h: Likewise.
33938 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
33940 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
33942 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
33943 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
33944 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
33946 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
33947 * util/sparc64/ieee1275/grub-setup.c: Likewise.
33948 (usage): Add missing comma in printf.
33950 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
33952 Use the same reboot approach on i386 coreboot and qemu as we do on
33955 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
33956 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
33957 * kern/i386/reboot.c: Remove.
33958 * include/grub/i386/reboot.h (grub_reboot): Export function.
33959 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
33960 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
33961 0xf000:0xfff0 instead of 0xffff:0x0000.
33962 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
33963 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
33965 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
33967 Fix $srcdir != $objdir build.
33969 * Makefile.in (po/%.po): Rewrite as ...
33970 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
33972 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
33974 Fix GNU/Hurd grub-install crash.
33975 * util/grub-probe.c (probe): Try to access `path' only when it is not
33978 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
33980 Correct module naming.
33982 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33983 (GRUB_MOD_INIT(efi_uga)): ... to this
33984 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33985 (GRUB_MOD_FINI(efi_uga)): ... to this
33986 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
33987 (GRUB_MOD_INIT(efi_gop)): ... to this
33988 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
33989 (GRUB_MOD_FINI(efi_gop)): ... to this
33991 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
33993 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
33995 (usage): Translate `arg' strings using gettext().
33996 Thanks to Jordi Mallach for the suggestion.
33998 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34000 GOP support. Based on patch from Bean
34001 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34003 * video/efi_gop.c: New file.
34004 * include/grub/efi/graphics_output.h: Likewise.
34005 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
34006 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34008 * conf/x86_64-efi.rmk: Likewise.
34010 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
34012 Rename efi_fb to efi_uga.
34014 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34016 (efi_fb_mod_SOURCES): Rename this ...
34017 (efi_uga_mod_SOURCES): ... to this.
34018 (efi_fb_mod_CFLAGS): Rename this ...
34019 (efi_uga_mod_CFLAGS): ... to this.
34020 (efi_fb_mod_LDFLAGS): Rename this ...
34021 (efi_uga_mod_LDFLAGS): ... to this.
34022 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
34024 (efi_fb_mod_SOURCES): Rename this ...
34025 (efi_uga_mod_SOURCES): ... to this.
34026 (efi_fb_mod_CFLAGS): Rename this ...
34027 (efi_uga_mod_CFLAGS): ... to this.
34028 (efi_fb_mod_LDFLAGS): Rename this ...
34029 (efi_uga_mod_LDFLAGS): ... to this.
34030 * video/efi_fb.c: Move this ...
34031 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
34033 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34035 * po/README: New file. Explain our PO file workflow.
34037 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34039 * po/ChangeLog: Remove. Move relevant entries back to ...
34040 * ChangeLog: ... here.
34041 * po/ca.po: Remove (now handled by TLP).
34042 * po/id.po: Likewise.
34043 * po/zh_CN.po: Likewise.
34044 * Makefile.in (LINGUAS): Initialize in a way that supports
34047 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
34049 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
34050 reliing on po/LINGUAS.
34051 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
34052 (po/%.po): ... this.
34054 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34056 * util/i386/efi/grub-mkimage.c: Include "progname.h".
34057 (main): Use `program_name' instead of nonexistent `progname'.
34059 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34061 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34062 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
34064 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34066 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
34068 * conf/i386-efi.rmk: Likewise.
34069 * conf/i386-ieee1275.rmk: Likewise.
34070 * conf/powerpc-ieee1275.rmk: Likewise.
34071 * conf/sparc64-ieee1275.rmk: Likewise.
34072 * conf/x86_64-efi.rmk: Likewise.
34074 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34076 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
34078 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
34080 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
34082 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
34084 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
34085 (grub_mkdevicemap_SOURCES): New variable.
34086 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
34087 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
34088 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
34089 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
34090 (grub_mkdevicemap_SOURCES): Remove.
34091 * conf/i386-efi.rmk: Likewise.
34092 * conf/i386-ieee1275.rmk: Likewise.
34093 * conf/i386-pc.rmk: Likewise.
34094 * conf/powerpc-ieee1275.rmk: Likewise.
34095 * conf/sparc64-ieee1275.rmk: Likewise.
34096 * conf/x86_64-efi.rmk: Likewise.
34097 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
34098 (usage): Fix strings to use `program_name'.
34099 (main): Initialize gettext.
34100 * util/grub-editenv.c: Likewise.
34101 * util/grub-emu.c: Likewise.
34102 * util/grub-fstest.c: Likewise.
34103 * util/grub-mkdevicemap.c: Likewise.
34104 * util/grub-mkfont.c: Likewise.
34105 * util/grub-mkrelpath.c: Likewise.
34106 * util/grub-pe2elf.c: Likewise.
34107 * util/grub-probe.c: Likewise.
34108 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
34109 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
34110 * util/sparc64/ieee1275/grub-setup.c: Likewise.
34112 * util/misc.c: Include `"progname.h"'.
34113 (progname): Remove variable.
34114 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
34116 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34118 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
34119 printf and print a newline after the menuentry header line.
34120 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
34122 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
34124 autoconf >= 2.60 support $(localedir).
34126 * INSTALL: Note that autoconf 2.60 is required.
34127 * configure.ac (AC_PREREQ): Bump to 2.60.
34128 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
34129 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
34131 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
34133 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
34136 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34138 * normal/main.c (grub_normal_read_line): Fix off-by-one
34141 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
34143 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
34144 "parser.grub" in grub_command_execute() call.
34146 2009-11-24 Carles Pina i Estany <carles@pina.cat>
34148 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
34149 * conf/i386-efi.rmk: Likewise.
34150 * conf/i386-ieee1275.rmk: Likewise.
34151 * conf/i386-pc.rmk: Likewise.
34152 * conf/powerpc-ieee1275.rmk: Likewise.
34153 * conf/sparc64-ieee1275.rmk: Likewise.
34154 * conf/x86_64-efi.rmk: Likewise.
34155 * gettext/gettex.c: Include <grub/i18n.h>.
34156 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
34158 * include/grub/i18n.h: ... to here
34159 * include/grub/i18n.h: ... to here.
34160 * kern/misc.c: Include <grub/i18n.h>
34161 (grub_gettext_dummy): Move above user.
34163 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34165 * util/Makefile.in (install-local): Convert a `for' into a normal
34168 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
34170 * autogen.sh: Add automake call.
34171 * config.guess: Remove.
34172 * config.sub: Likewise.
34173 * install-sh: Likewise.
34175 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34177 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
34179 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34181 * util/Makefile.in (install-local): Convert a make `$(foreach)'
34182 function to a normal shell `for'.
34184 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34186 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34188 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34190 * util/grub-mkrelpath.c: New file.
34191 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
34192 (grub_mkrelpath_SOURCES): New variable.
34193 * include/grub/util/misc.h: New function prototype.
34194 * util/misc.c (make_system_path_relative_to_its_root): New function.
34196 * util/grub-mkconfig_lib.in (bindir): New variable.
34197 (grub_mkrelpath): Likewise.
34198 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
34200 * util/probe.c (probe): Make the file path relative to its root.
34201 Change a info message to use the GRUB path. Enable again the
34202 check if we can read the file with GRUB facilities.
34204 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
34207 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34209 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
34212 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34214 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
34217 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
34219 * util/getroot.c (grub_util_is_dmraid): New function.
34220 (grub_util_get_dev_abstraction): Treat dmraid and multipath
34221 devices as normal ones, not as LVM.
34223 2009-11-23 Carles Pina i Estany <carles@pina.cat>
34225 * conf/common.rmk: Add grub-gettext_lib target and updates
34226 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
34228 * gettext/gettext.c: New file. (Reads mo files).
34229 * include/grub/file.h (grub_file_pread): New prototype.
34230 * include/grub/i18n.h (_): New prototype.
34231 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
34233 * kern/misc.c (grub_gettext_dummy): New function.
34234 * normal/menu_text.c: Include <grub/i18n.h>.
34235 * normal/menu_text.c (print_timeout): Gettexttize string.
34236 * normal/menu_text.c (print_message): Gettexttize string.
34237 * po/POTFILES: Add `normal/menu_text.c'.
34238 * po/ca.po: Add new translations.
34239 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
34240 gettext module and defines locale_dir and lang in grub.cfg.
34241 * NEWS: Add gettext support.
34243 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34245 * util/hostdisk.c: Include `<grub/i18n.h>'.
34246 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
34247 (make_device_name): Rewrite using asprintf.
34248 (convert_system_partition_to_system_disk): Replace 0 with NULL.
34249 (find_system_device): If a device is not found, generate one just
34250 by reusing the OS path name.
34251 (read_device_map): Make it permissible for device.map not to exist.
34253 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34255 * script/sh/execute.c: Move from here ...
34256 * script/execute.c: ... to here. Update all users.
34257 * script/sh/function.c: Move from here ...
34258 * script/function.c: ... to here. Update all users.
34259 * script/sh/lexer.c: Move from here ...
34260 * script/lexer.c: ... to here. Update all users.
34261 * script/sh/main.c: Move from here ...
34262 * script/main.c: ... to here. Update all users.
34263 * script/sh/parser.y: Move from here ...
34264 * script/parser.y: ... to here. Update all users.
34265 * script/sh/script.c: Move from here ...
34266 * script/script.c: ... to here. Update all users.
34268 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34270 * configure.ac: Detect all `emu' platforms. Define
34271 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
34272 --enable-grub-emu logic. Disable include/grub/machine
34273 symlink on `emu' platforms.
34275 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
34276 * gensymlist.sh.in: Likewise.
34278 * include/grub/i386/coreboot/machine.h: Remove file.
34279 * include/grub/i386/efi/machine.h: Likewise.
34280 * include/grub/i386/ieee1275/machine.h: Likewise.
34281 * include/grub/i386/pc/machine.h: Likewise.
34282 * include/grub/i386/qemu/machine.h: Likewise.
34283 * include/grub/powerpc/ieee1275/machine.h: Likewise.
34284 * include/grub/sparc64/ieee1275/machine.h: Likewise.
34285 * include/grub/x86_64/efi/machine.h: Likewise.
34287 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
34288 * commands/halt.c: Likewise.
34289 * commands/reboot.c: Likewise.
34290 * include/grub/autoefi.h: Likewise.
34291 * include/grub/i386/at_keyboard.h: Likewise.
34292 * include/grub/i386/kernel.h: Likewise.
34293 * include/grub/i386/loader.h: Likewise.
34294 * include/grub/i386/pc/memory.h: Likewise.
34295 * kern/dl.c: Likewise.
34296 * kern/i386/coreboot/init.c: Likewise.
34297 * loader/i386/bsd.c: Likewise.
34298 * loader/i386/linux.c: Likewise.
34299 * loader/multiboot_loader.c: Likewise.
34300 * term/i386/pc/serial.c: Likewise.
34301 * term/usb_keyboard.c: Likewise.
34303 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
34304 `<grub/machine/machine.h>'
34305 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
34306 * util/misc.c: Remove `<grub/machine/machine.h>' and
34307 `<grub/machine/time.h>'.
34309 * Makefile.in (enable_grub_emu): Remove variable.
34310 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
34312 * conf/any-emu.rmk: New file.
34313 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
34314 (grub_emu_init.c): Move from here ...
34315 * conf/any-emu.rmk: ... to here.
34317 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
34318 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
34319 * conf/any-emu.rmk: ... to here.
34321 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34323 * include/grub/parser.h (grub_parser_register): Document need
34324 of `name' parameter.
34325 * normal/main.c (grub_normal_read_line): Simplify prompt string.
34326 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
34329 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34331 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
34333 * include/grub/i18n.h (N_): New macro.
34334 * util/mkisofs/mkisofs.h: Likewise.
34335 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
34337 (usage): Use gettext() to translate help strings when printing them.
34339 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
34341 Based on patch from Bean
34342 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
34344 * video/efi_fb.c: New file.
34345 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
34346 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
34348 * conf/x86_64-efi.rmk: Likewise.
34350 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
34352 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
34353 * util/i386/pc/grub-setup.c: Likewise.
34355 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
34357 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
34359 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
34360 file_get_storage_info to implement grub_guess_root_device.
34362 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34364 * Makefile.in (target): Use make's builtin $(shell) function
34365 instead of calling directly $(SHELL) to create the locale directories,
34366 inside the $(foreach) function.
34368 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34370 * util/grub-mkrescue.in: Print an error and usage if output option
34371 has not been given.
34373 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
34375 Patch from Loïc Minier <loic.minier@ubuntu.com>.
34376 * util/grub.d/30_os-prober.in: Cope with Linux entries where
34377 root and /boot are on different devices.
34379 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34381 Fix build for srcdir != objdir.
34383 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
34384 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
34386 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
34387 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
34388 reference for input.
34390 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34392 * util/grub-mkrescue.in: Use source directory direcly (without copiing
34393 or hardlinking it). Remove -J option, Joliet is not compatible with
34394 multiple source directories.
34396 2009-11-21 Carles Pina i Estany <carles@pina.cat>
34397 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
34399 * util/grub-mkrescue.in: Recognize `--override-directory' option.
34400 (process_input_dir): New function. Process an arbitrary input
34402 Misc adjustments to support both "override mode" and system-wide mode.
34404 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34406 * configure.ac (UNIFONT_BDF): Rename to ...
34407 (FONT_SOURCE): ... this. Update all users.
34409 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
34411 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
34412 to the list of unifont files to look for.
34414 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34416 Patch from Joe Auricchio <jauricchio@gmail.com>
34417 * commands/minicmd.c (grub_mini_cmd_clear): New function.
34418 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
34419 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
34421 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34423 * Makefile.in (install-local): Add a missing backslash.
34425 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
34427 * include/grub/x86_64/io.h: New file.
34429 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34431 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
34432 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
34433 Include `"progname.h"'.
34434 (main): Initialize gettext.
34435 * util/i386/pc/grub-setup.c: Gettexttize.
34436 * util/i386/pc/grub-mkimage.c: Likewise.
34438 * Makefile.in (po/*.po): Redefine as ...
34439 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
34441 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
34443 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
34445 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
34446 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
34447 (program_name): Remove.
34448 (main): Initialize gettext support.
34449 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
34450 Include `<libintl.h>'.
34453 * util/mkisofs/eltorito.c: Gettexttize.
34454 * util/mkisofs/joliet.c: Likewise.
34455 * util/mkisofs/mkisofs.c: Likewise.
34456 * util/mkisofs/multi.c: Likewise.
34457 * util/mkisofs/rock.c: Likewise.
34458 * util/mkisofs/tree.c: Likewise.
34459 * util/mkisofs/write.c: Likewise.
34461 * po/POTFILES: Update with new files.
34463 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34465 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
34466 * util/mkisofs/iso9660.h: Likewise.
34467 * util/mkisofs/joliet.c: Likewise.
34468 * util/mkisofs/mkisofs.c: Likewise.
34469 * util/mkisofs/mkisofs.h: Likewise.
34470 * util/mkisofs/rock.c: Likewise.
34471 * util/mkisofs/tree.c: Likewise.
34472 * util/mkisofs/write.c: Likewise.
34474 * util/mkisofs/eltorito.c (rcsid): Remove.
34475 * util/mkisofs/hash.c: Likewise.
34476 * util/mkisofs/joliet.c: Likewise.
34477 * util/mkisofs/name.c: Likewise.
34478 * util/mkisofs/rock.c: Likewise.
34479 * util/mkisofs/tree.c: Likewise.
34480 * util/mkisofs/write.c: Likewise.
34482 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34484 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
34485 instead of static allocation.
34486 * util/mkisofs/match.h: Likewise.
34488 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34490 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
34491 and `util/grub.d/10_linux.in'.
34492 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
34493 translatable Shell files.
34495 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
34497 * Makefile.in ($(srcdir)/aclocal.m4): New target.
34499 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34501 * INSTALL: Document Automake is needed for bootstrap.
34502 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
34503 * util/grub.d/10_kfreebsd.in (bindir): New variable.
34504 Add gettext initialization.
34505 (kfreebsd_entry): Make menuentry output translatable.
34507 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34509 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
34510 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
34511 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
34512 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
34513 (LINGUAS): Auto-generate using `po/LINGUAS'.
34514 * po/LINGUAS: New file.
34516 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34518 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
34520 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
34521 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
34522 bindtextdomain() calls for gettext initialization.
34524 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34526 * gnulib/progname.c: New file (imported from Gnulib).
34527 * gnulib/progname.h: Likewise.
34528 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
34529 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
34530 (usage): Replace `progname' with `program_name'.
34531 (main): Use set_program_name() for program name initialization.
34533 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34535 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
34537 * Makefile.in (CPPFLAGS): ... to here.
34539 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34541 * aclocal.m4: Move from here ...
34542 * acinclude.m4: ... to here.
34543 * autogen.sh: Add call to `aclocal'.
34544 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
34546 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34548 * Makefile.in (CLEANFILES): Add `po/*.mo'.
34549 (LINGUAS): New variable.
34550 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
34551 (install-local): Install MO files.
34552 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
34553 * include/grub/i18n.h: New file.
34554 * po/POTFILES: New file.
34555 * po/ca.po: New file.
34556 * util/grub.d/10_linux.in (bindir): New variable.
34557 Add gettext initialization.
34558 (linux_entry): Make menuentry output translatable.
34559 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
34560 (usage): Make --help output translatable.
34561 (main): Initialize gettext.
34563 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34565 * import_gcry.py: New file (written by Vladimir with minor
34567 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
34569 * INSTALL: Document that Python is required for bootstrap.
34571 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
34573 Import ciphers from libgcrypt 1.4.4.
34575 * lib/libgcrypt/cipher/ChangeLog
34576 * lib/libgcrypt/cipher/ac.c
34577 * lib/libgcrypt/cipher/arcfour.c
34578 * lib/libgcrypt/cipher/bithelp.h
34579 * lib/libgcrypt/cipher/blowfish.c
34580 * lib/libgcrypt/cipher/camellia-glue.c
34581 * lib/libgcrypt/cipher/camellia.c
34582 * lib/libgcrypt/cipher/camellia.h
34583 * lib/libgcrypt/cipher/cast5.c
34584 * lib/libgcrypt/cipher/cipher.c
34585 * lib/libgcrypt/cipher/crc.c
34586 * lib/libgcrypt/cipher/des.c
34587 * lib/libgcrypt/cipher/dsa.c
34588 * lib/libgcrypt/cipher/ecc.c
34589 * lib/libgcrypt/cipher/elgamal.c
34590 * lib/libgcrypt/cipher/hash-common.c
34591 * lib/libgcrypt/cipher/hash-common.h
34592 * lib/libgcrypt/cipher/hmac-tests.c
34593 * lib/libgcrypt/cipher/md.c
34594 * lib/libgcrypt/cipher/md4.c
34595 * lib/libgcrypt/cipher/md5.c
34596 * lib/libgcrypt/cipher/primegen.c
34597 * lib/libgcrypt/cipher/pubkey.c
34598 * lib/libgcrypt/cipher/rfc2268.c
34599 * lib/libgcrypt/cipher/rijndael-tables.h
34600 * lib/libgcrypt/cipher/rijndael.c
34601 * lib/libgcrypt/cipher/rmd.h
34602 * lib/libgcrypt/cipher/rmd160.c
34603 * lib/libgcrypt/cipher/rsa.c
34604 * lib/libgcrypt/cipher/seed.c
34605 * lib/libgcrypt/cipher/serpent.c
34606 * lib/libgcrypt/cipher/sha1.c
34607 * lib/libgcrypt/cipher/sha256.c
34608 * lib/libgcrypt/cipher/sha512.c
34609 * lib/libgcrypt/cipher/tiger.c
34610 * lib/libgcrypt/cipher/twofish.c
34611 * lib/libgcrypt/cipher/whirlpool.c
34613 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34615 Fix build for systems without error().
34617 * gnulib/error.c: New file (imported from Gnulib).
34618 * gnulib/error.h: Likewise.
34619 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
34620 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
34621 (this variable is now used by error()).
34623 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34625 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
34626 instead of relying that char is signed.
34628 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
34630 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
34631 blocksize different from specified.
34632 (grub_pxefs_read): Likewise.
34634 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
34636 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
34638 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
34639 (grub_ata_readwrite): Likewise. Update 2 format strings.
34640 (grub_atapi_read): Likewise.
34642 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
34643 * conf/i386.rmk (pkglib_MODULES): ... to here ...
34644 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
34645 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
34646 (ata_mod_LDFLAGS): Move from here ...
34647 * conf/i386.rmk: ... to here ...
34648 * conf/x86_64-efi.rmk: ... and here.
34649 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
34650 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
34652 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
34654 Relicense multiboot.h, with RMS' blessing.
34656 * include/multiboot.h: Change to X11 license.
34658 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
34660 Support --version in grub-mkisofs.
34662 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
34663 (OPTION_VERSION): New macro.
34664 (ld_options): Recognize --version.
34665 (usage): Move `program_name' from here ...
34666 (program_name): ... to here. Add `static' qualifier.
34667 (main): Recognize `OPTION_VERSION'.
34669 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
34671 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
34672 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
34674 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34676 Fix help2man generation for mkisofs.
34678 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
34679 (usage): Send output to stdout (rather than stderr).
34681 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
34683 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
34684 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34685 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
34686 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
34687 (bin_SCRIPTS): Add `grub-mkfloppy'.
34688 (grub_mkfloppy_SOURCES): New variable.
34690 * util/grub-mkrescue.in: New file.
34691 * util/i386/pc/grub-mkfloppy.in: New file.
34693 * util/i386/coreboot/grub-mkrescue.in: Remove.
34694 * util/i386/pc/grub-mkrescue.in: Remove.
34696 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34698 * include/grub/multiboot.h (struct grub_multiboot_header): Move
34700 * include/multiboot.h (struct multiboot_header): ... to here. Update
34702 * include/grub/multiboot.h (struct grub_multiboot_info): Move
34704 * include/multiboot.h (struct multiboot_info): ... to here. Update
34706 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
34708 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
34710 * include/grub/multiboot.h (struct grub_mod_list): Move
34712 * include/multiboot.h (struct multiboot_mod_list): ... to here.
34715 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34717 * include/multiboot2.h (multiboot_word): Rename from this ...
34718 (multiboot2_word): ... to this. Update all users.
34719 (multiboot_header): Rename from this ...
34720 (multiboot2_header): ... to this. Update all users.
34721 (multiboot_tag_header): Rename from this ...
34722 (multiboot2_tag_header): ... to this. Update all users.
34723 (multiboot_tag_start): Rename from this ...
34724 (multiboot2_tag_start): ... to this. Update all users.
34725 (multiboot_tag_name): Rename from this ...
34726 (multiboot2_tag_name): ... to this. Update all users.
34727 (multiboot_tag_module): Rename from this ...
34728 (multiboot2_tag_module): ... to this. Update all users.
34729 (multiboot_tag_memory): Rename from this ...
34730 (multiboot2_tag_memory): ... to this. Update all users.
34731 (multiboot_tag_unused): Rename from this ...
34732 (multiboot2_tag_unused): ... to this. Update all users.
34733 (multiboot_tag_end): Rename from this ...
34734 (multiboot2_tag_end): ... to this. Update all users.
34736 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
34738 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
34739 this platform we should support Multiboot1 first.
34741 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
34742 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
34743 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
34745 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34747 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
34748 of write calls (converting them to fwrite() if they aren't already).
34749 (get_torito_desc): Likewise.
34750 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
34752 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
34754 * util/i386/pc/grub-install.in: Move from here ...
34755 * util/grub-install.in: ... to here. Update all users.
34757 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
34759 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
34761 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34763 Support for El Torito without floppy emulation.
34765 * util/mkisofs/eltorito.c: Include `<errno.h>'.
34766 (init_boot_catalog): Improve error handling.
34767 (get_torito_desc): Don't use floppy emulation unless requested by
34768 user. Patch boot information table when requested via
34769 `-boot-info-table'.
34770 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
34771 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
34772 (use_boot_info_table): New variables.
34773 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
34774 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
34775 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
34776 `--eltorito-emul-floppy'.
34777 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
34778 and `OPTION_ELTORITO_EMUL_FLOPPY'.
34779 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
34780 (use_boot_info_table, get_731): New prototypes.
34781 * util/mkisofs/write.c (get_731): New function.
34783 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
34785 Fix the generation of the man page.
34787 * util/pc/i386/grub-install.in: Source
34788 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
34790 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
34792 Large file support for grub-mkisofs.
34794 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
34795 * util/mkisofs/mkisofs.c (next_extent, last_extent)
34796 (session_start): Upgrade type to `uint64_t'. Update all users.
34797 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
34798 (struct directory_entry): Upgrade type of `starting_block' and
34799 `size' to `uint64_t'. Update all users.
34800 (struct deferred): Remove unused structure.
34801 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
34803 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
34804 file is larger than `UINT32_MAX'.
34805 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
34806 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
34808 (struct deferred_write): Upgrade type of `extent' and `size' to
34809 `uint64_t'. Update all users.
34810 (last_extent_written): Upgrade type to `uint64_t'. Update all
34812 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
34813 Update all users. Upgrade type of `remain' to `int64_t' and
34814 `use' to `size_t'. Use error() to handle fread() errors.
34815 (write_files): Rely on write_one_file() rather than calling
34816 xfwrite() directly.
34818 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
34820 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
34822 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34824 * util/mkisofs/fnmatch.c: Remove.
34825 * util/mkisofs/getopt1.c: Likewise.
34826 * util/mkisofs/getopt.c: Likewise.
34827 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
34828 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
34829 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
34830 `gnulib/getopt1.c' and `gnulib/getopt.c'.
34831 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
34833 * configure.ac: Detect `mingw32msvc' host_os.
34834 Check for lstat(), getuid() and getgid().
34836 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
34837 instances of `u_char' with `uint8_t'.
34839 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
34840 [!HAVE_GETUID] (getuid): New function (stub).
34841 [!HAVE_GETGID] (getgid): Likewise.
34842 [!HAVE_LSTAT] (lstat): Likewise.
34843 [!S_IROTH] (S_IROTH): New macro (dummy).
34844 [!S_IRGRP] (S_IRGRP): Likewise.
34846 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34848 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
34849 conditional expression).
34851 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34853 Import from Gnulib.
34855 * gnulib/fnmatch.c: New file.
34856 * gnulib/fnmatch.h: Likewise.
34857 * gnulib/fnmatch_loop.c: Likewise.
34858 * gnulib/getopt.c: Likewise.
34859 * gnulib/getopt.h: Likewise.
34860 * gnulib/getopt1.c: Likewise.
34861 * gnulib/getopt_int.h: Likewise.
34862 * gnulib/gettext.h: Likewise.
34864 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34866 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
34867 * normal/handler.c (read_handler_list): Likewise.
34869 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34873 * kern/command.c (grub_register_command_prio): Use
34874 grub_zalloc() instead of explicitly zeroing data.
34875 * kern/list.c: Include `<grub/mm.h>'.
34876 (grub_named_list_find): Replace `0' with `NULL'.
34877 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
34878 (fs_module_list): Change type to `grub_named_list_t'. Update all
34880 * normal/dyncmd.c (read_command_list): Add space between function
34881 call and parenthesis.
34882 * normal/handler.c (read_handler_list): Likewise.
34884 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34886 * normal/auth.c (punishment_delay): Moved from here ...
34887 (grub_auth_strcmp): ... to here (inside function).
34889 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34891 * include/grub/list.h (struct grub_named_list): Remove `const'
34892 qualifier from `name'.
34893 (struct grub_prio_list): Likewise.
34895 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34897 * normal/auth.c: Include `<grub/time.h>'.
34898 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
34900 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34902 * normal/auth.c (punishment_delay): New variable.
34903 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
34904 (grub_auth_check_authentication): Punish failed login attempts with
34905 an incremental (2^N) delay.
34907 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34909 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
34910 path with $(srcdir).
34912 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34914 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
34916 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
34918 * util/i386/coreboot/grub-mkrescue.in: New file.
34919 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
34922 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
34923 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
34924 * configure.ac: Add header and function checks to satisfy grub-mkisofs
34926 * util/mkisofs/defaults.h: New file.
34927 * util/mkisofs/eltorito.c: Likewise.
34928 * util/mkisofs/exclude.h: Likewise.
34929 * util/mkisofs/fnmatch.c: Likewise.
34930 * util/mkisofs/getopt.c: Likewise.
34931 * util/mkisofs/getopt1.c: Likewise.
34932 * util/mkisofs/hash.c: Likewise.
34933 * util/mkisofs/include/fctldefs.h: Likewise.
34934 * util/mkisofs/include/mconfig.h: Likewise.
34935 * util/mkisofs/include/prototyp.h: Likewise.
34936 * util/mkisofs/include/statdefs.h: Likewise.
34937 * util/mkisofs/iso9660.h: Likewise.
34938 * util/mkisofs/joliet.c: Likewise.
34939 * util/mkisofs/match.c: Likewise.
34940 * util/mkisofs/match.h: Likewise.
34941 * util/mkisofs/mkisofs.c: Likewise.
34942 * util/mkisofs/mkisofs.h: Likewise.
34943 * util/mkisofs/multi.c: Likewise.
34944 * util/mkisofs/name.c: Likewise.
34945 * util/mkisofs/rock.c: Likewise.
34946 * util/mkisofs/tree.c: Likewise.
34947 * util/mkisofs/write.c: Likewise.
34949 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
34951 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
34954 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34956 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
34957 `grub-mkimage' (and use $0 when possible).
34959 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34961 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
34962 error message for excessively large memory map.
34964 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34966 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
34969 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
34971 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
34972 message for coreboot users.
34974 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
34976 Fix build with GNU gold.
34978 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
34979 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
34980 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
34982 * aclocal.m4: Likewise.
34984 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
34986 * configure.ac (AC_PREREQ): Bump to 2.59d.
34987 * INSTALL: Make it more clear when Autoconf and Ruby are
34988 needed and when to run `./autogen.sh'.
34990 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
34992 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
34995 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
34997 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
34999 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35001 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
35002 giving it to GNU Mach.
35004 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35006 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
35007 GNU partition number to get internal GRUB partition number.
35009 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
35011 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
35012 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
35014 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
35016 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
35017 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
35020 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
35022 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
35024 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35028 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
35029 `-isystem=$(srcdir)/include'.
35031 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
35033 * util/i386/pc/grub-install.in: Remove hint that device.map should be
35034 checked (grub-install doesn't currently rely on it).
35036 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
35040 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
35041 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35042 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
35043 * conf/i386-ieee1275.rmk: Likewise.
35044 * conf/i386-pc.rmk: Likewise.
35045 * conf/powerpc-ieee1275.rmk: Likewise.
35046 * conf/sparc64-ieee1275.rmk: Likewise.
35047 * conf/x86_64-efi.rmk: Likewise.
35049 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35051 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
35053 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35055 * include/grub/misc.h: Stop checking for APPLE_CC.
35057 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
35059 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
35060 doesn't cause an infinite call loop.
35062 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
35064 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
35067 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35069 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
35071 * Makefile.in: Likewise.
35073 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35075 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
35077 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35079 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
35081 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35083 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
35085 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35087 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
35089 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
35091 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35093 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
35094 in $(MAKEINFO) invocation. This makes it clear in output that
35095 errors are being ignored.
35097 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35099 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
35101 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
35102 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
35103 * conf/i386-ieee1275.rmk: Likewise.
35104 * conf/i386-pc.rmk: Likewise.
35105 * conf/powerpc-ieee1275.rmk: Likewise.
35106 * conf/sparc64-ieee1275.rmk: Likewise.
35107 * conf/x86_64-efi.rmk: Likewise.
35109 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35111 * util/grub-editenv.c (main): If only a command is given, use
35112 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
35113 (usage): FILENAME is now optional and has a default.
35115 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
35117 Improve grub-mkconfig performance when there are several menu
35118 entries on a single filesystem.
35120 * util/grub.d/10_linux.in (linux_entry): Cache the output of
35121 prepare_grub_to_access_device.
35122 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
35123 * util/grub.d/30_os-prober.in: Likewise.
35125 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35127 * util/grub.d/10_freebsd.in: Remove.
35128 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
35129 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
35131 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
35133 * docs/grub.cfg: Fix example usage of *BSD loaders.
35135 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35137 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
35138 grub_util_error() call.
35140 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35142 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
35143 `reserved_first_sector' member.
35144 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
35145 `reserved_first_sector' to 1.
35146 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
35147 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
35148 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
35149 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
35150 filesystems which begin at first sector.
35151 (options): New option --skip-fs-probe.
35152 (main): Handle --skip-fs-probe and pass it to setup().
35154 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35156 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
35157 (memset): Fix function prototype.
35159 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35160 2009-10-25 Vasily Averin <vvs@parallels.com>
35162 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
35163 `dirent.direntlen == 0'.
35165 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35167 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
35169 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
35171 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35173 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
35174 `__trampoline_setup' and `__ucmpdi2'.
35175 * include/grub/powerpc/libgcc.h: Only export symbols for functions
35176 that libgcc provides.
35178 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35180 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
35181 * include/grub/sparc64/libgcc.h (memset): Likewise.
35182 * include/grub/misc.h (memset, memcmp): New function prototypes.
35184 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35186 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
35188 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
35190 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
35192 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
35193 * docs/grub.cfg: Compensate for recent change in multiboot
35194 loader (since 2009-08-14 it won't pass filename to payload).
35195 * util/grub.d/10_hurd.in: Likewise.
35197 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
35199 * config.guess: Update to latest version from config git
35201 * config.sub: Likewise.
35203 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
35205 Fix build on sparc64.
35207 * configure.ac: Perform checks for libgcc symbols before
35208 adding `-nostdlib' to LDFLAGS.
35210 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35212 Let user specify OpenBSD root device.
35214 * loader/i386/bsd.c (openbsd_root): New variable.
35215 (openbsd_opts): New option 'root'.
35216 (OPENBSD_ROOT_ARG): New macro.
35217 (grub_openbsd_boot): Use 'openbsd_root'.
35218 (grub_cmd_openbsd): Fill 'openbsd_root'.
35220 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35222 * NEWS: Misc adjustments.
35224 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
35226 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
35228 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
35230 * configure.ac: Bump version to 1.97.
35232 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
35234 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
35235 -mno-3dnow on x86 architectures. Some toolchains enable these
35236 features by default, but they rely on registers that aren't enabled
35237 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
35239 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
35241 Make entry text a bit more readable.
35243 * util/grub.d/10_linux.in: Add `with' before `Linux'.
35245 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35247 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
35249 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35251 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
35254 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35256 * configure.ac: Add missing dollar.
35258 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
35260 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
35262 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
35263 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
35265 * include/grub/sparc64/libgcc.h: Likewise. Use
35266 preprocessor conditionals.
35268 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35270 * conf/common.rmk (grub-dumpbios): Remove rule.
35271 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
35272 * util/grub-dumpbios.in: Remove file.
35274 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
35276 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
35277 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
35279 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
35280 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
35283 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
35284 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
35285 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
35286 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
35289 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
35291 * term/tparm.c: Switch to GPLv3.
35293 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35295 * include/grub/i386/cpuid.h: Add header protection.
35297 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
35299 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
35301 * include/grub/i386/cpuid.h: New file.
35302 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
35303 (has_longmode): Rename to ...
35304 (grub_cpuid_has_longmode): ... this. Update all users. Remove
35305 `static' attribute.
35306 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
35307 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
35308 on a CPU that doesn't implement AMD64 instruction set.
35310 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35312 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
35313 that version.texi is rebuilt on version number changes.
35315 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35317 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
35320 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
35322 * util/i386/pc/grub-install.in: Source
35323 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
35324 that the --grub-probe option will work.
35325 * util/sparc64/ieee1275/grub-install.in: Likewise.
35327 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
35329 * configure.ac: Bump version to 1.97~beta4.
35331 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
35333 Resync grub-mkdevicemap in x86_64-efi.
35335 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
35336 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
35337 `util/devicemap.c'.
35339 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
35341 * util/grub-editenv.c (create_envblk_file): Write new block with a
35342 .new suffix and then rename it into place, to ensure atomic
35345 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
35347 Do not automatically install headers.
35349 * Makefile.in (include_DATA): Remove. Update all users.
35351 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
35353 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
35354 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
35356 * util/osdetect.lua: Remove.
35357 * script/lua/lauxlib.c: Likewise.
35358 * script/lua/ldebug.c: Likewise.
35359 * script/lua/grub_main.c: Likewise.
35360 * script/lua/lauxlib.h: Likewise.
35361 * script/lua/ldebug.h: Likewise.
35362 * script/lua/ltablib.c: Likewise.
35363 * script/lua/liolib.c: Likewise.
35364 * script/lua/lstrlib.c: Likewise.
35365 * script/lua/lualib.h: Likewise.
35366 * script/lua/ldo.c: Likewise.
35367 * script/lua/ldump.c: Likewise.
35368 * script/lua/ldo.h: Likewise.
35369 * script/lua/loslib.c: Likewise.
35370 * script/lua/lundump.c: Likewise.
35371 * script/lua/grub_lib.c: Likewise.
35372 * script/lua/ldblib.c: Likewise.
35373 * script/lua/lundump.h: Likewise.
35374 * script/lua/lmem.c: Likewise.
35375 * script/lua/grub_lib.h: Likewise.
35376 * script/lua/lmathlib.c: Likewise.
35377 * script/lua/lstate.c: Likewise.
35378 * script/lua/ltm.c: Likewise.
35379 * script/lua/lvm.c: Likewise.
35380 * script/lua/lmem.h: Likewise.
35381 * script/lua/lstate.h: Likewise.
35382 * script/lua/ltm.h: Likewise.
35383 * script/lua/ltable.c: Likewise.
35384 * script/lua/lvm.h: Likewise.
35385 * script/lua/llex.c: Likewise.
35386 * script/lua/lgc.c: Likewise.
35387 * script/lua/grub_lua.h: Likewise.
35388 * script/lua/loadlib.c: Likewise.
35389 * script/lua/lfunc.c: Likewise.
35390 * script/lua/lopcodes.c: Likewise.
35391 * script/lua/lparser.c: Likewise.
35392 * script/lua/ltable.h: Likewise.
35393 * script/lua/llex.h: Likewise.
35394 * script/lua/lgc.h: Likewise.
35395 * script/lua/lfunc.h: Likewise.
35396 * script/lua/lbaselib.c: Likewise.
35397 * script/lua/lopcodes.h: Likewise.
35398 * script/lua/lparser.h: Likewise.
35399 * script/lua/lzio.c: Likewise.
35400 * script/lua/linit.c: Likewise.
35401 * script/lua/lobject.c: Likewise.
35402 * script/lua/llimits.h: Likewise.
35403 * script/lua/lstring.c: Likewise.
35404 * script/lua/lzio.h: Likewise.
35405 * script/lua/lapi.c: Likewise.
35406 * script/lua/lcode.c: Likewise.
35407 * script/lua/lua.h: Likewise.
35408 * script/lua/lobject.h: Likewise.
35409 * script/lua/lstring.h: Likewise.
35410 * script/lua/lapi.h: Likewise.
35411 * script/lua/lcode.h: Likewise.
35412 * script/lua/luaconf.h: Likewise.
35414 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
35416 * docs/grub.texi (Command-line and menu entry commands): Document
35417 date and echo commands.
35419 2009-09-24 Pavel Roskin <proski@gnu.org>
35421 * include/grub/kernel.h (struct grub_module_header): Remove
35422 `grub_module_header_types'. Make `type' unsigned. Make `size'
35423 32-bit on all platforms.
35424 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
35425 8-bit field. Use grub_host_to_target32() for `size'.
35426 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
35427 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
35428 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
35430 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35432 Fix "lost keypress" bug in at_keyboard.
35434 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
35435 Checks for readyness of input buffer (without flushing it).
35436 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
35437 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
35439 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35441 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
35442 size check within GRUB_MACHINE_PCBIOS section.
35444 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
35446 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
35448 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
35449 KEYBOARD_ISREADY check.
35450 (grub_at_keyboard_checkkey): Rename to ...
35451 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
35452 Remove gratuitous cast.
35454 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
35456 * configure.ac: Call AC_PROG_MKDIR_P.
35457 * Makefile.in (docs/stamp-vti): Create docs directory. Create
35458 version.texi in $(builddir) rather than $(srcdir).
35459 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
35460 to makeinfo's @include search path.
35462 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35464 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
35466 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
35468 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
35471 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
35473 Build info documentation. Some code borrowed from Automake.
35475 * configure.ac: Check for makeinfo.
35476 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
35477 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
35479 (MOSTLYCLEANFILES): Add vti.tmp.
35480 (docs/version.texi, docs/stamp-vti): Update automatically.
35481 (docs/grub.info): Build info documentation. Use --force and ignore
35483 (all-local): Add $(INFOS).
35484 (install-local): Install info files.
35485 (uninstall): Uninstall info files.
35486 * docs/version.texi: Remove from revision control. This file is
35487 automatically generated on build now.
35488 * gendistlist.sh: Add `*.info'.
35490 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35492 * kern/term.c: Fix indentation.
35494 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
35496 * util/hostdisk.c: Fix a comment.
35498 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
35500 Fix regression introduced in r2539.
35502 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
35505 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
35507 * util/grub.d/30_os-prober.in: Don't throw away stderr from
35508 os-prober. Under normal operation, it does not print anything to
35509 stderr; if it does, we need to debug it, and throwing away stderr
35510 makes that excessively difficult.
35512 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
35514 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
35516 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35518 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
35519 AC_LANG_PROGRAM from autoconf.
35520 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
35521 prototypes (fixes warning).
35523 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
35524 `--disable-werror' was used.
35526 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
35528 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
35529 uninitialized `lastaddr'.
35531 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
35533 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
35535 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35537 * commands/test.c (get_fileinfo): Return immediately if
35538 grub_fs_probe fails.
35540 2009-09-14 José Martínez <xosemp@gmail.com>
35542 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
35544 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
35546 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
35549 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
35551 * configure.ac: Remove --enable-grub-pe2elf. Only build
35552 grub-pe2elf when needed by the build system itself.
35553 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
35555 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35557 * configure.ac: Bump version to 1.97~beta3.
35558 * docs/version.texi: Likewise.
35560 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35562 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
35563 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
35565 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
35566 (grub_linux_setup_video): ... to here (with some adjustments).
35568 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
35570 Fix memory corruption issue (spotted by Colin Watson).
35572 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
35573 causing returned size to be stored in an incorrect memory location.
35574 Fix use of uninitialized value when storing the returned size.
35576 2009-09-12 Yves Blusseau <blusseau@zetam.org>
35578 Change clean rules to properly remove files
35580 * genmk.rb: add new clean rules
35581 * Makefile.in (clean): add the new targets
35582 (mostlyclean): likewise
35584 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35586 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
35588 * fs/ntfs.c (init_file): Understand 64-bit sizes for
35589 non-resident files.
35591 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
35593 * configure.ac: Don't look for help2man when cross-compiling. Fixes
35594 part of bug #27349.
35596 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35598 * util/grub-mkconfig.in: Make the created config mode 400 and
35599 print a warning if it fails.
35601 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
35603 * util/grub.d/40_custom.in: Ask user to type custom entries below
35604 comment, rather than below 'exec tail' line.
35606 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35608 * util/grub.d/40_custom.in: Make sure that the explanatory text is
35609 visible in grub.cfg.
35611 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
35613 * util/grub.d/40_custom.in: Make it a little clearer how to use this
35616 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
35618 * docs/grub.cfg: Add an example menu entry for memtest86+.
35620 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
35622 * config.guess: Update to latest version from config git.
35623 * config.sub: Likewise.
35625 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
35627 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
35628 unknown-command case. Fixes bug #27320.
35630 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
35632 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
35633 `help' if the command exists.
35635 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
35637 * INSTALL: Require GCC 4.1.3 or later.
35639 2009-09-06 Yves Blusseau <blusseau@zetam.org>
35641 * Makefile.in (RMKFILES): add i386-qemu.rmk
35642 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
35643 $(srcdir)/stamp-h.in
35645 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
35647 * util/grub-probe.c (probe): Comment out buggy codepath, which
35648 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
35649 should be re-enabled after 1.97.
35651 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
35653 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
35656 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
35658 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
35659 unnecessary calls to grub_error.
35661 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
35663 * NEWS: Mention `keystatus' and Unicode fonts.
35665 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
35667 * configure.ac: Bump version to 1.97~beta2.
35668 * docs/version.texi: Likewise.
35670 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35672 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
35673 containing unwind information in some cases where it previously did
35674 not. Use -fno-dwarf2-cfi-asm if available to restore the old
35675 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
35678 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
35680 Embedding loadenv module into grub-emu
35682 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
35684 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
35685 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
35686 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
35687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
35688 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
35689 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
35691 2009-09-03 Magnus Granberg <zorry@ume.nu>
35693 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
35694 include -fPIE in the default specs.
35695 * configure.ac: Check if pie_possible is yes and add -fno-PIE
35698 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
35700 * INSTALL: Note that GNU Bison 2.3 or later is required.
35702 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
35704 * kern/i386/pc/startup.S: Fix typo.
35706 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
35708 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
35711 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35713 * docs/grub.texi (Naming convention): Describe one-based partition
35715 (Device syntax): Likewise.
35716 (File name syntax): Likewise.
35717 (Block list syntax): Likewise.
35718 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
35720 (File name syntax): Likewise.
35721 (Command-line and menu entry commands): Document acpi, blocklist,
35722 crc, export, insmod, keystatus, ls, set, and unset commands.
35724 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35726 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
35727 to avoid implying that only one of --shift, --ctrl, or --alt may be
35730 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
35732 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
35733 rather than comparing against S_IFREG, which will almost never work.
35735 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
35737 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
35738 (write_blocklists): Likewise.
35740 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
35742 * script/lua/grub_lua.h (fputs): Supply a format string as the first
35743 argument to grub_printf.
35745 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
35747 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
35750 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35752 * kern/file.c (grub_file_read): Spelling fix
35754 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
35756 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
35757 loading of headers in some cases.
35759 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
35761 * configure.ac: Bump version to 1.97~beta1.
35762 * docs/version.texi: Likewise.
35764 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
35766 * include/grub/i386/xnu.h: Add license header.
35767 include grub/err.h explicitly.
35769 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35771 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
35772 to `ufs' in the vfs.root.mountfrom kernel parameter.
35774 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
35776 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
35778 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
35779 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
35781 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
35782 `ARRAY_SIZE' macro.
35784 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35786 * kern/file.c (grub_file_read): Check offset.
35787 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
35788 * fs/jfs.c (grub_jfs_read_file): Likewise.
35789 * fs/ntfs.c (grub_ntfs_read): Likewise.
35790 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
35791 * fs/minix.c (grub_minix_read_file): Correct offset check.
35792 * fs/ufs.c (grub_ufs_read_file): Likewise.
35794 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35796 * term/i386/pc/console.c (bios_data_area): Cast
35797 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
35799 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35801 1-bit optimised blitters.
35803 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
35805 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35806 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35807 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35808 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35809 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35810 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35811 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
35813 (grub_video_fbblit_replace_24bit_1bit): Likewise.
35814 (grub_video_fbblit_replace_16bit_1bit): Likewise.
35815 (grub_video_fbblit_replace_8bit_1bit): Likewise.
35816 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
35817 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
35818 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
35819 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
35821 * video/video.c (grub_video_get_blit_format): Return
35822 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
35824 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35826 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
35827 the first argument to grub_printf.
35829 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
35830 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
35832 Add `getkeystatus' terminal method. Add a new `keystatus' command
35835 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
35836 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
35837 modifier key bitmasks.
35838 (struct grub_term_input): Add `getkeystatus' member.
35839 (grub_getkeystatus): Add prototype.
35840 * kern/term.c (grub_getkeystatus): New function.
35842 * include/grub/i386/pc/memory.h
35843 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
35844 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
35846 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
35847 (grub_console_term_input): Set `getkeystatus' member.
35848 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
35850 (grub_usb_keyboard_getreport): Likewise.
35851 (grub_usb_keyboard_checkkey): Likewise.
35852 (grub_usb_keyboard_getkeystatus): New function.
35853 (grub_usb_keyboard_term): Set `getkeystatus' member.
35855 * commands/keystatus.c: New file.
35856 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
35857 (keystatus_mod_SOURCES): New variable.
35858 (keystatus_mod_CFLAGS): Likewise.
35859 (keystatus_mod_LDFLAGS): Likewise.
35860 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
35861 commands/keystatus.c.
35862 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35863 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35864 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35865 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35867 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35869 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
35871 Split befs.mod and afs.mod into *_be.mod and *.mod
35873 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
35874 (grub_fstest_SOURCES): Likewise.
35875 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
35876 (afs_be_mod_SOURCES): New variable.
35877 (afs_be_mod_CFLAGS): Likewise.
35878 (afs_be_mod_LDFLAGS): Likewise.
35879 (befs_be_mod_SOURCES): Likewise.
35880 (befs_be_mod_CFLAGS): Likewise.
35881 (befs_be_mod_LDFLAGS): Likewise.
35882 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
35883 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35884 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35885 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
35886 (grub_emu_SOURCES): Likewise.
35887 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35888 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35889 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35890 * fs/afs_be.c: New file.
35891 * fs/befs_be.c: New file.
35892 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
35893 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
35894 (U16): Replaced with ...
35895 (grub_afs_to_cpu16): ...this. All users updated.
35896 (U32): Replaced with ...
35897 (grub_afs_to_cpu32): ...this. All users updated.
35898 (U64): Replaced with ...
35899 (grub_afs_to_cpu64): ...this. All users updated.
35900 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
35901 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
35902 (grub_afs_validate_sblock): Check only one endianness.
35903 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35904 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35905 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35906 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35907 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
35908 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
35909 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
35910 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
35912 2009-08-26 Bean <bean123ch@gmail.com>
35914 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
35916 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
35917 (grub_xfs_inode_block): Change return type to grub_uint64_t.
35918 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
35920 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35922 NetBSD memory map support.
35924 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
35925 (grub_netbsd_btinfo_mmap_header): New structure.
35926 (grub_netbsd_btinfo_mmap_entry): Likewise.
35927 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
35929 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35931 Enable bsd.mod on coreboot.
35933 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
35934 (bsd_mod_SOURCES): New variable.
35935 (bsd_mod_CFLAGS): Likewise.
35936 (bsd_mod_LDFLAGS): Likewise.
35937 (bsd_mod_ASFLAGS): Likewise.
35938 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
35939 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
35941 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35943 Cleanup NetBSD root support.
35945 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
35946 grub_bsd_get_device.
35949 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
35951 * util/grub.d/00_header.in: Move check for the video backend of
35952 gfxterm from here ...
35953 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
35954 a suitable video backend.
35956 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35958 Fix breakage in grub-setup.
35960 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
35961 "msdos_partition_map".
35963 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35965 Fix breakage in normal/auth.c.
35967 * normal/auth.c (grub_iswordseparator): New function.
35969 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
35971 Authentication support.
35973 * commands/password.c: New file.
35974 * conf/common.rmk (pkglib_MODULES): Add password.mod.
35975 (password_mod_SOURCES): New variable.
35976 (password_mod_CFLAGS): Likewise.
35977 (password_mod_LDFLAGS): Likewise.
35978 (normal_mod_SOURCES): Add normal/auth.c.
35979 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
35981 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35982 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35983 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
35984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35985 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35986 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35987 * include/grub/auth.h: New file.
35988 * include/grub/err.h (grub_err_t): New enum value
35989 GRUB_ERR_ACCESS_DENIED.
35990 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
35992 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
35993 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
35995 * normal/auth.c: New file.
35996 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
35997 (grub_cmdline_run): Don't allow to go to command line without
35999 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
36000 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
36001 menuentry without superuser rights.
36002 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
36003 user isn't a superuser.
36005 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36007 Save space by inlining misc.c functions.
36009 * kern/misc.c (grub_iswordseparator): Made static.
36010 * kern/misc.c (grub_strcat): Moved from here ...
36011 * include/grub/misc.h (grub_strcat): ... here. Inlined.
36012 * kern/misc.c (grub_strncat): Moved from here ...
36013 * include/grub/misc.h (grub_strncat): ... here. Inlined.
36014 * kern/misc.c (grub_strcasecmp): Moved from here ...
36015 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
36016 * kern/misc.c (grub_strncasecmp): Moved from here ...
36017 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
36018 * kern/misc.c (grub_isalpha): Moved from here ...
36019 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
36020 * kern/misc.c (grub_isdigit): Moved from here ...
36021 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
36022 * kern/misc.c (grub_isgraph): Moved from here ...
36023 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
36024 * kern/misc.c (grub_tolower): Moved from here ...
36025 * include/grub/misc.h (grub_tolower): ... here. Inlined.
36027 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36029 * script/sh/function.c (grub_script_function_find): Cut error message
36030 not to flood terminal.
36031 * script/sh/lexer.c (grub_script_yylex): Remove command line length
36033 * script/sh/script.c (grub_script_arg_add): Duplicate string.
36035 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
36037 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
36038 `report' grub_uint8_t *.
36039 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
36040 Use a 50-millisecond timeout rather than just repeating
36041 grub_usb_keyboard_getreport 50 times.
36042 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
36044 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36046 Rename *_partition_map to part_*
36048 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
36049 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
36050 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
36051 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
36053 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
36055 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
36056 * util/grub-probe.c (probe_partmap): Don't transform partition name
36057 to get module name.
36059 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36061 Fix OpenBSD and NetBSD support.
36063 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
36064 memory address conflict.
36065 (OPENBSD_MMAP_ACPI): New definition.
36066 (OPENBSD_MMAP_NVS): Likewise.
36067 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
36068 and OPENBSD_MMAP_NVS.
36069 Add memory map terminator
36070 Explicit cast when calling grub_unix_real_boot.
36071 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
36073 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36075 Let user specify NetBSD root device.
36077 * loader/i386/bsd.c (netbsd_root): New variable.
36078 (netbsd_opts): New option 'root'.
36079 (NETBSD_ROOT_ARG): New macro.
36080 (grub_netbsd_boot): Use 'netbsd_root'.
36081 (grub_bsd_unload): Free 'netbsd_root'.
36082 (grub_cmd_netbsd): Fill 'netbsd_root'.
36084 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36086 Support for 64-bit NetBSD.
36088 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
36089 point when booting non-FreeBSD.
36091 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
36093 Support --no-smp and --no-acpi for NetBSD.
36095 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
36096 (NETBSD_AB_NOACPI): Likewise.
36097 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
36098 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
36100 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36102 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
36104 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
36105 errors. Call grub_error when needed.
36107 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36109 * commands/search.c (search_fs): Try searching without autoload first.
36110 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
36111 filesystem module explicitly for faster booting.
36113 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36115 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
36117 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
36119 * util/grub.d/30_os-prober.in: Disable os-prober if
36120 `GRUB_DISABLE_OS_PROBER' was set to true.
36122 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
36124 * partmap/pc.c: Rename to ...
36125 * partmap/msdos.c: ... this. Update all users.
36126 (grub_pc_partition_map): Rename to ...
36127 (grub_msdos_partition_map): ... this. Update all users.
36129 * parttool/pcpart.c: Rename to ...
36130 * parttool/msdospart.c: ... this. Update all users.
36132 * include/grub/pc_partition.h: Rename to ...
36133 * include/grub/msdos_partition.h: ... this. Update all users.
36134 (grub_pc_partition_bsd_entry): Rename to ...
36135 (grub_msdos_partition_bsd_entry): ... this. Update all users.
36136 (grub_pc_partition_disk_label): Rename to ...
36137 (grub_msdos_partition_disk_label): ... this. Update all users.
36138 (grub_pc_partition_entry): Rename to ...
36139 (grub_msdos_partition_entry): ... this. Update all users.
36140 (grub_pc_partition_mbr): Rename to ...
36141 (grub_msdos_partition_mbr): ... this. Update all users.
36142 (grub_pc_partition): Rename to ...
36143 (grub_msdos_partition): ... this. Update all users.
36144 (grub_pc_partition_is_empty): Rename to ...
36145 (grub_msdos_partition_is_empty): ... this. Update all users.
36146 (grub_pc_partition_is_extended): Rename to ...
36147 (grub_msdos_partition_is_extended): ... this. Update all users.
36148 (grub_pc_partition_is_bsd): Rename to ...
36149 (grub_msdos_partition_is_bsd): ... this. Update all users.
36151 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
36152 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
36153 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
36154 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
36155 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
36156 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
36157 (gpt_mod_LDFLAGS): Rename to ...
36158 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
36159 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
36160 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
36161 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
36162 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
36163 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
36164 (part_gpt_mod_LDFLAGS): ... this.
36165 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
36166 `pcpart.mod' to `msdospart.mod'.
36167 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
36169 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
36170 (msdospart_mod_LDFLAGS): ... this.
36172 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
36174 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
36175 (openbsd_opts): Likewise.
36176 (netbsd_opts): Likewise.
36177 (freebsd_flags): Added 0 terminator.
36178 (openbsd_flags): Likewise.
36179 (netbsd_flags): Likewise.
36180 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
36181 (grub_cmd_freebsd): Transformed into extended command.
36182 (grub_cmd_openbsd): Likewise.
36183 (grub_cmd_netbsd): Likewise.
36184 (cmd_freebsd): Changed type to grub_extcmd_t.
36185 (cmd_openbsd): Likewise.
36186 (cmd_netbsd): Likewise.
36187 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
36188 grub_cmd_openbsd as extended commands.
36189 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
36190 cmd_netbsd and cmd_openbsd
36192 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
36194 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
36196 2009-08-21 Pavel Roskin <proski@gnu.org>
36198 * Makefile.in (install-local): When checking if a file is in the
36199 build directory, use "test -e" to detect symlinks.
36201 * Makefile.in (install-local): Remove all files in
36202 $(DESTDIR)$(pkglibdir) before installing new files there.
36204 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36206 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
36209 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
36211 * util/grub-mkconfig.in: Don't use gfxterm by default if not
36212 explicitly specified by the user.
36214 2009-08-18 Pavel Roskin <proski@gnu.org>
36216 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
36217 grub_uint8_t pointer for data.
36218 * include/grub/fbutil.h (struct grub_video_fbblit_info):
36220 * video/fb/fbutil.c: Remove unnecessary casts.
36222 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36226 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
36227 (grub_vbe_set_video_mode): Save active mode info
36228 only after setting the mode.
36229 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
36232 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36234 Rename variables for clarity.
36236 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
36237 (active_vbe_mode_info): ... this. All users updated.
36238 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
36240 (initial_mode): Rename to ...
36241 (initial_vbe_mode): ... this. All users updated.
36242 (mode_in_use): Rename to ..
36243 (vbe_mode_in_use): ... this. All users updated.
36244 (mode_list): Rename to ..
36245 (vbe_mode_list): ... this. All users updated.
36246 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
36247 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
36248 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
36249 'mode_list_size' to 'vbe_mode_list_size'.
36250 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
36251 'best_mode_info' to 'best_vbe_mode_info' and
36252 'best_mode' to 'best_vbe_mode'
36254 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
36256 Remove duplicate grub_video_fb_get_video_ptr.
36258 * include/grub/fbutil.h (get_data_ptr): Rename to ...
36259 (grub_video_fb_get_video_ptr): ... this.
36260 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
36261 * video/fb/fbutil.c: Add comment about addressing.
36262 (get_data_ptr): Rename to ...
36263 (grub_video_fb_get_video_ptr): ... this. All users updated.
36264 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
36266 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36268 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
36269 grub_dprintf() that was just added.
36271 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
36273 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
36274 (DEFAULT_VIDEO_MODE): Remove macros.
36275 (grub_linux_boot): Remove assumption that Linux has FB support,
36276 and use "text" as default video mode.
36278 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
36280 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
36282 * fs/fat.c (grub_fat_read_data): Likewise.
36284 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36286 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
36288 (grub_module): Likewise.
36290 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36292 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
36293 mbi->cmdline but free playground.
36295 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36297 Handle group offset on UFS1.
36299 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
36300 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
36302 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36304 Split ufs.mod into ufs1.mod and ufs2.mod.
36306 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
36307 (grub_fstest_SOURCES): Likewise.
36308 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
36309 (ufs_mod_SOURCES): Remove.
36310 (ufs_mod_CFLAGS): Likewise.
36311 (ufs_mod_LDFLAGS): Likewise.
36312 (ufs1_mod_SOURCES): New variable.
36313 (ufs1_mod_CFLAGS): Likewise.
36314 (ufs1_mod_LDFLAGS): Likewise.
36315 (ufs2_mod_SOURCES): New variable.
36316 (ufs2_mod_CFLAGS): Likewise.
36317 (ufs2_mod_LDFLAGS): Likewise.
36318 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
36319 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36321 (grub_emu_SOURCES): Likewise.
36322 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36323 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36324 (grub_setup_SOURCES): Likewise.
36325 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36326 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
36327 (grub_setup_SOURCES): Likewise.
36328 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
36330 * fs/ufs2.c: New file.
36331 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
36333 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
36337 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
36338 subsystem at the end.
36339 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
36340 (video_fb_mod_SOURCES): New variable.
36341 (video_fb_mod_CFLAGS): Likewise.
36342 (video_fb_mod_LDFLAGS): Likewise.
36343 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
36344 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
36345 * video/i386/pc/vbeblit.c: Moved from here ...
36346 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
36347 * video/i386/pc/vbefill.c: Moved from here ...
36348 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
36349 * video/i386/pc/vbeutil.c: Moved from here ...
36350 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
36351 * include/grub/i386/pc/vbeblit.h: Moved from here ...
36352 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
36353 * include/grub/i386/pc/vbefill.h: Moved from here ...
36354 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
36355 * include/grub/i386/pc/vbeutil.h: Moved from here ...
36356 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
36357 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
36358 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
36359 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
36360 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
36361 (grub_video_adapter): Added 'get_info_and_fini'.
36362 (grub_video_get_info_and_fini): New prototype.
36363 (grub_video_set_mode): make modestring const char *.
36364 * loader/i386/linux.c (grub_linux_setup_video): Use
36365 grub_video_get_info_and_fini.
36366 (grub_linux_boot): Move modesetting just before booting.
36367 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
36368 grub_video_get_info_and_fini.
36369 * video/i386/pc/vbe.c: Moved framebuffer part ...
36370 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
36371 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
36372 grub_video_fbstd_colors and grub_video_fb_set_palette.
36373 (grub_video_vbe_init): Clear 'framebuffer' variable and use
36374 grub_video_fb_init.
36375 (grub_video_vbe_fini): Use grub_video_fb_fini.
36376 (grub_video_vbe_setup): Use framebuffer.render_target instead of
36377 render_target and use grub_video_fb_set_active_render_target and
36378 grub_video_fb_set_palette.
36379 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
36380 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
36381 (grub_video_vbe_adapter): Use framebuffer.
36382 * video/video.c (grub_video_get_info_and_fini): New function.
36383 (grub_video_set_mode): Make modestring const char *.
36384 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
36385 values are already initialised.
36387 2009-08-14 Pavel Roskin <proski@gnu.org>
36389 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
36391 * boot/i386/pc/diskboot.S: Likewise.
36392 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
36393 sectors allow compilation on MacOSX.
36394 * conf/i386-pc.rmk: Enable unconditional compilation of
36397 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
36399 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
36400 * util/grub.d/00_header.in: Enter interruptible sleep if
36401 GRUB_HIDDEN_TIMEOUT is set.
36403 2009-08-13 Yves Blusseau <blusseau@zetam.org>
36405 * include/grub/symbol.h: Add the LOCAL macro.
36406 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
36407 starting with "L_".
36409 2009-08-13 Pavel Roskin <proski@gnu.org>
36411 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
36412 any modern compilers we support.
36414 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
36415 Use local labels starting with "L_" so that Apple assembler
36416 knows they are local.
36418 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
36420 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
36421 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
36422 (bsd_kernel_types): ... this enum.
36424 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
36425 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
36426 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
36428 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
36429 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
36430 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
36433 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36435 * util/grub-dumpdevtree: Moved from here ...
36436 * util/i386/efi/grub-dumpdevtree: ... to here.
36437 (hexify): New function. Converts a string to its hex version.
36438 Generate hex versions of "efi" and "device-properties" by calling
36439 hexify() on the ASCII strings rather than by hardcoding numbers.
36441 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
36443 * fs/jfs.c: Update copyright year.
36445 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36447 * util/grub.d/00_header.in: Fix a comment.
36448 * util/grub.d/10_linux.in: Likewise.
36449 * util/grub.d/10_windows.in: Likewise.
36450 * util/grub.d/10_hurd.in: Likewise.
36452 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
36454 * util/grub-mkconfig.in: Allow the user to specify the used font
36457 2009-08-08 Pavel Roskin <proski@gnu.org>
36459 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
36460 available, xfs.mod needs it now.
36462 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
36463 the "g" modifier in sed when the intention is to strip something
36464 once. This fixes comparison of kernels with multiple dashes.
36466 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
36467 on it. Add missing space before closing bracket. Fix
36468 misleading formatting.
36470 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36472 * docs/grub.texi: Major overhaul. Remove all sections that are
36473 specific to GRUB Legacy, or mostly composed of Legacy-specific
36476 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36478 * docs/version.texi: New file. Provides version information for
36481 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36483 * docs/grub.texi: Update CVS information to SVN.
36484 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
36486 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36488 * util/grub-mkconfig.in: Remove a wrong `fi'.
36490 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36492 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
36493 (grub_jfs_uuid): New function.
36494 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
36496 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
36498 * util/grub-mkconfig_lib.in (font_path): Move the functionality
36500 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
36501 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
36503 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36505 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
36506 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
36509 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
36510 not just "vmlinu[zx]".
36511 Moved from here ...
36512 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
36515 * util/grub.d/10_linux.in (find_latest): Moved from here ...
36516 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
36519 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
36521 * util/grub.d/10_freebsd.in: Use an absolute device path for
36522 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
36524 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
36526 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
36527 handling of multiple abstraction modules.
36529 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
36531 Fix a bug resulting in black screen when loading Linux using a
36534 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
36537 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
36538 (grub_vbe_bios_getset_dac_palette_width): New function.
36539 (grub_vbe_bios_get_dac_palette_width)
36540 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
36541 grub_vbe_bios_getset_dac_palette_width()).
36543 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
36544 check for return status.
36545 (grub_vbe_get_video_mode_info): When getting information for a packed
36546 mode (<= 8 bpp), obtain DAC palette width using
36547 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
36548 {red,green,blue}_mark_size.
36550 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
36552 * commands/search.c (options): Fix help output to match actual code.
36554 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
36556 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
36559 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36561 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
36562 on XFS or ReiserFS.
36564 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36566 Support Apple partition map with sector size different from 512 bytes.
36568 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
36569 (apple_partition_map_iterate): Respect 'aheader.blocksize'
36570 and 'apart.partmap_size'.
36572 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
36573 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
36577 * commands/i386/cpuid.c (options): New variable.
36578 (grub_cmd_cpuid): Return real error.
36579 (GRUB_MOD_INIT(cpuid)): Declare options.
36581 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
36583 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
36586 2009-07-31 Bean <bean123ch@gmail.com>
36588 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
36590 (grub_fshelp_node): Move inode field to the end.
36591 (grub_xfs_data): Remove inode field.
36592 (grub_xfs_inode_block): Calculate inode size using sblock.
36593 (grub_xfs_inode_offset): Likewise.
36594 (grub_xfs_read_inode): Calculate inode size using sblock.
36595 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
36596 (grub_xfs_iterate_dir): Calculate inode size using sblock.
36597 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
36598 to match inode size.
36599 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
36600 not accessible when data is null.
36601 (grub_xfs_open): Likewise.
36603 2009-07-31 Bean <bean123ch@gmail.com>
36605 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
36606 Don't change pv->disk if it's already set.
36608 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
36609 (grub_raid_register): ... here.
36610 (grub_raid_rescan): Removed.
36612 * include/grub/raid.h (grub_raid_rescan): Removed.
36614 * util/grub-fstest.c: Remove include file <grub/raid.h>.
36615 (fstest): Replace grub_raid_rescan with module fini function followed
36618 * util/grub-probe.c: Add include file <grub/raid.h>.
36619 (probe_raid_level): New function.
36620 (probe): Detect abstraction by walking the disk device, support two
36621 level of abstraction (LVM on RAID) when detecting partition map.
36623 2009-07-31 Pavel Roskin <proski@gnu.org>
36625 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
36626 to grub_zalloc(), it was erroneous.
36627 Reported by Bean <bean123ch@gmail.com>
36629 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
36631 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
36632 embedding zone, not only the first one.
36634 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
36636 * term/gfxterm.c (clear_char): New function.
36637 (grub_virtual_screen_setup): Use clear_char.
36638 (scroll_up): Likewise.
36639 (grub_virtual_screen_cls): Likewise.
36641 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
36643 * util/deviceiter.c (get_acceleraid_disk_name): New static
36645 (grub_util_iterate_devices): Handle Accelraid devices.
36646 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
36648 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
36650 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
36651 separator for the suggested gfxpayload string (';' collides with the
36652 parser and needs escaping).
36654 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
36656 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
36657 Clear direction flag before jumping to OS.
36658 (grub_multiboot2_real_boot): Likewise.
36660 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36662 * util/i386/pc/grub-install: Fix parsing of --disk-module
36665 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
36667 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
36670 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
36672 * util/grub-mkconfig.in (package_version): New variable.
36673 Use it do display the version.
36675 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36677 * kern/file.c (grub_file_open): Revert to previous check with
36680 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36682 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
36683 from help line. It's out of sync with code.
36685 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
36687 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
36688 entries on failed boot.
36690 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
36692 * kern/file.c (grub_file_open): Fix an error check.
36694 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
36696 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
36697 partition map couldn't be identified.
36699 2009-07-23 Pavel Roskin <proski@gnu.org>
36701 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
36702 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
36703 case of little endian words becomes just an optimization.
36704 Respect const modifier.
36705 (md5_final): Use code that doesn't depend on endianness.
36707 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
36708 to avoid loss of upper bits if align is unsigned and shorter
36711 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36713 UUID support for UFS
36715 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
36716 (grub_ufs_uuid): New function.
36717 (grub_ufs_fs): add .uuid
36719 2009-07-21 Pavel Roskin <proski@gnu.org>
36721 * kern/dl.c (grub_dl_check_header): Make static.
36723 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
36725 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
36726 add drivemap for Vista. It breaks Windows 7.
36728 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
36730 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
36733 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36737 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
36738 (grub_fstest_SOURCES): Likewise.
36739 (pkglib_MODULES): Add befs.mod.
36740 (befs_mod_SOURCES): New variable.
36741 (befs_mod_CFLAGS): Likewise.
36742 (befs_mod_LDFLAGS): Likewise.
36743 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
36744 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36745 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36746 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36747 (grub_setup_SOURCES): Likewise.
36748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36749 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36750 (grub_setup_SOURCES): Likewise.
36751 * fs/befs.c: New file.
36752 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
36753 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
36754 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
36755 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
36756 (B_KEY_INDEX_ALIGN): New declaration.
36757 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
36758 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
36759 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
36760 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
36761 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
36762 (grub_afs_mount) [MODE_BFS]: Likewise.
36763 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
36764 (grub_afs_fs): Use GRUB_AFS_FSNAME
36765 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
36766 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
36767 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
36768 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
36770 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
36772 * util/getroot.c (find_root_device): Add support for MacOSX.
36773 * util/hostdisk.c: Likewise.
36775 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36777 * font/font.c (find_glyph): Check whether a font is present to avoid
36778 segmentation fault.
36780 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
36782 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
36784 2009-07-20 Pavel Roskin <proski@gnu.org>
36786 * configure.ac: Trim excessively wordy excuses.
36788 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36790 Add symlink, mtime and label support to AtheFS.
36792 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
36793 (grub_afs_iterate_dir): Handle symlinks.
36794 (grub_afs_open): Use grub_afs_read_symlink.
36795 (grub_afs_dir): Likewise.
36797 (grub_afs_label): New function.
36798 (grub_afs_fs): Add grub_afs_label.
36799 (grub_afs_read_symlink): New function.
36801 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
36803 Fix AtheFS support.
36805 * fs/afs.c: Fix comments style.
36806 (grub_afs_blockrun): Declare as packed.
36807 (grub_afs_datastream): Likewise.
36808 (grub_afs_bnode): Likewise.
36809 (grub_afs_btree): Likewise.
36810 (grub_afs_sblock): Likewise.
36811 Declare `name' as char.
36812 (grub_afs_inode): Declare as packed.
36813 Change void *vnode to grub_uint32_t unused.
36814 (grub_afs_iterate_dir): Check that key_size is positive.
36815 (grub_afs_mount): Don't read superblock twice.
36816 (grub_afs_dir): Don't free node in case of error,
36817 grub_fshelp_find_file already handles this.
36818 (grub_afs_open): Likewise.
36820 2009-07-19 Pavel Roskin <proski@gnu.org>
36822 * Makefile.in: Remove LIBLZO and enable_lzo.
36823 * conf/i386-pc.rmk: Remove lzo support.
36824 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
36825 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
36827 * kern/i386/pc/lzo1x.S: Remove.
36828 * kern/i386/pc/startup.S: Remove lzo support.
36829 * util/i386/pc/grub-mkimage.c: Likewise.
36831 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
36833 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
36834 * fs/xfs.c (grub_xfs_dir): Likewise.
36835 * fs/afs.c (grub_afs_dir): Likewise.
36836 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
36837 (grub_iso9660_open): Likewise.
36838 * fs/jfs.c (grub_jfs_open): Likewise.
36839 * fs/ext2.c (grub_ext2_dir): Likewise.
36840 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
36841 * script/sh/lexer.c (grub_script_yylex): Likewise.
36843 2009-07-16 Pavel Roskin <proski@gnu.org>
36845 * configure.ac: Never add "-c" to CFLAGS.
36847 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
36849 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
36850 grub_cv_cc_efiemu should be used.
36852 * configure.ac: Typo fixes.
36854 * kern/mm.c (grub_zalloc): New function.
36855 (grub_debug_zalloc): Likewise.
36856 * include/grub/mm.h: Declare grub_zalloc() and
36857 grub_debug_zalloc().
36858 * util/misc.c (grub_zalloc): New function.
36859 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
36860 instead of grub_malloc(), remove unneeded initializations.
36861 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
36862 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
36863 * commands/parttool.c (grub_cmd_parttool): Likewise.
36864 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
36865 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
36866 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
36867 * disk/usbms.c (grub_usbms_finddevs): Likewise.
36868 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
36869 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
36870 (grub_cmd_efiemu_pnvram): Likewise.
36871 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
36872 * fs/iso9660.c (grub_iso9660_mount): Likewise.
36873 (grub_iso9660_iterate_dir): Likewise.
36874 * fs/jfs.c (grub_jfs_opendir): Likewise.
36875 * fs/ntfs.c (list_file): Likewise.
36876 (grub_ntfs_mount): Likewise.
36877 * kern/disk.c (grub_disk_open): Likewise.
36878 * kern/dl.c (grub_dl_load_core): Likewise.
36879 * kern/elf.c (grub_elf_file): Likewise.
36880 * kern/env.c (grub_env_context_open): Likewise.
36881 (grub_env_set): Likewise.
36882 (grub_env_set_data_slot): Likewise.
36883 * kern/file.c (grub_file_open): Likewise.
36884 * kern/fs.c (grub_fs_blocklist_open): Likewise.
36885 * loader/i386/multiboot.c (grub_module): Likewise.
36886 * loader/xnu.c (grub_xnu_create_key): Likewise.
36887 (grub_xnu_create_value): Likewise.
36888 * normal/main.c (grub_normal_add_menu_entry): Likewise.
36889 (read_config_file): Likewise.
36890 * normal/menu_entry.c (make_screen): Likewise.
36891 * partmap/sun.c (sun_partition_map_iterate): Likewise.
36892 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
36893 * script/sh/script.c (grub_script_parse): Likewise.
36894 * video/bitmap.c (grub_video_bitmap_create): Likewise.
36895 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
36896 * video/readers/png.c (grub_png_output_byte): Likewise.
36897 (grub_video_reader_png): Likewise.
36899 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36901 Enable all targets that can be built by default
36903 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
36904 grub-mkfont and grub-fstest if they can be built
36906 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36908 Fix hang and segmentation fault in grub-emu-usb
36910 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
36911 * util/usb.c (grub_libusb_devices): likewise
36912 (grub_libusb_init): rename to ...
36913 (GRUB_MOD_INIT (libusb)):...this
36914 (grub_libusb_fini): rename to ..
36915 (GRUB_MOD_FINI (libusb)):...this
36916 * disk/usbms.c (grub_usbms_transfer): fix retry logic
36917 * include/grub/disk.h (grub_raid_init): removed, it's useless
36918 (grub_raid_fini): likewise
36919 (grub_lvm_init): likewise
36920 (grub_lvm_fini): likewise
36921 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
36924 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36928 * Makefile.in (LIBUSB): new macro
36929 * genmk.rb (Utility/print_tail): new method
36930 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
36931 (top level): call util.print_tail at the end.
36933 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36935 Make FreeBSD accept zpool.cache
36937 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
36938 type is /boot/zfs/zpool.cache
36940 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
36944 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
36945 correct wrong typedef
36946 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
36948 2009-07-15 Pavel Roskin <proski@gnu.org>
36950 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
36951 * kern/disk.c (struct grub_disk_cache): Likewise.
36953 * commands/probe.c (options): Typo fix.
36955 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
36956 Increase to 0x5a to accommodate FAT32. Adjust other offsets
36958 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
36960 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
36961 the end of "Error" to make the message more readable.
36963 * boot/i386/pc/boot.S (kernel_segment): Remove.
36964 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
36967 * boot/i386/pc/boot.S (boot_version): Remove.
36968 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
36971 * include/grub/i386/pc/boot.h: Sort all offsets.
36972 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
36973 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
36974 * boot/i386/pc/boot.S: Assert location of every offset listed in
36975 include/grub/i386/pc/boot.h.
36977 2009-07-13 Pavel Roskin <proski@gnu.org>
36979 * include/grub/i386/coreboot/machine.h: Rename
36980 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
36981 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
36982 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
36984 * kern/dl.c: Force native word size to suppress warnings when
36985 compiling grub-emu.
36987 * kern/device.c (grub_device_iterate): Change struct part_ent to
36988 hold the name, not a pointer to it. Use one grub_malloc() per
36989 partition, not two. Free partition_name if grub_malloc() fails.
36990 Set ents to NULL only before grub_partition_iterate() is called.
36992 2009-07-11 Bean <bean123ch@gmail.com>
36994 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
36997 2009-07-10 Bean <bean123ch@gmail.com>
36998 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
37000 * kern/ieee1275/openfw.c (grub_children_iterate)
37001 (grub_devalias_iterate): Fix size evaluation for property or path
37002 strings, which was broken since r2132.
37004 2009-07-07 Pavel Roskin <proski@gnu.org>
37006 * commands/search.c (search_file): Merge into ...
37007 (search_fs): ... this. Accept search type as argument.
37008 (grub_cmd_search): Pass search type to search_fs().
37010 * include/grub/util/console.h: New file.
37011 * util/console.c: Use it instead of grub/machine/console.h.
37012 * util/grub-emu.c: Likewise.
37014 * lib/arg.c (find_long_option): Remove.
37015 (find_long): Add `len' argument, make `s' const char *.
37016 (grub_arg_parse): Parse long options in place, not in a
37019 2009-07-06 Pavel Roskin <proski@gnu.org>
37021 * commands/search.c (search_fs): Fix potential NULL pointer
37024 * commands/search.c (search_fs): Replace QUID macro with quid_fn
37027 2009-07-06 Daniel Mierswa <impulze@impulze.org>
37029 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
37032 2009-07-05 Pavel Roskin <proski@gnu.org>
37034 * include/grub/i386/linux.h (struct linux_kernel_params):
37035 Restore padding3, it's still needed.
37037 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
37039 * util/osdetect.lua: Likewise.
37041 2009-07-05 Bean <bean123ch@gmail.com>
37043 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
37045 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
37046 (grub_lua_getenv): Likewise.
37047 (grub_lua_setenv): Likewise.
37048 (save_errno): New function.
37049 (push_result): Likewise.
37050 (grub_lua_enum_device): Likewise.
37051 (grub_lua_enum_file): Likewise.
37052 (grub_lua_file_open): Likewise.
37053 (grub_lua_file_close): Likewise.
37054 (grub_lua_file_seek): Likewise.
37055 (grub_lua_file_read): Likewise.
37056 (grub_lua_file_getline): Likewise.
37057 (grub_lua_file_getsize): Likewise.
37058 (grub_lua_file_getpos): Likewise.
37059 (grub_lua_file_eof): Likewise.
37060 (grub_lua_file_exist): Likewise.
37061 (grub_lua_add_menu): Likewise.
37063 * script/lua/grub_lua.h (isupper): New inline function.
37064 (islower): Likewise.
37065 (ispunct): Likewise.
37066 (isxdigit): Likewise.
37067 (strcspn): Change to normal function.
37068 (strpbkr): New function declaration.
37069 (memchr): Likewise.
37071 * script/lua/grub_main.c (scan_str): New function.
37072 (strcspn): Likewise.
37073 (strpbrk): Likewise.
37074 (memchr): Likewise.
37076 * script/lua/linit.c (lualibs): Enable the string library.
37078 * util/osdetect.lua: New file.
37080 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
37082 * include/grub/i386/linux.h (struct linux_kernel_params): Add
37083 `capabilities' member.
37085 2009-07-02 Pavel Roskin <proski@gnu.org>
37087 * genparttoollist.sh: Add missing newline at the end.
37089 2009-07-01 Pavel Roskin <proski@gnu.org>
37091 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
37093 * util/hostdisk.c (open_device): Remove `const' from
37094 `sysctl_size', as sysctlbyname() can change it (in this case it
37095 doesn't actually happen).
37097 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
37098 using signed long int constants.
37100 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
37101 constant to avoid a warning on FreeBSD.
37103 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
37106 * Makefile.in: Install include/grub/machine symlink.
37108 * Makefile.in: When installing symlinks, use "cp -fR", which
37109 works on FreeBSD and MacOSX.
37110 From Yves Blusseau <cl7m42e02@sneakemail.com>
37112 * kern/dl.c (grub_dl_resolve_symbol): Make static.
37113 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
37115 * util/misc.c: Move grub_reboot() and grub_halt() ...
37116 * util/grub-emu.c: ... here. Make main_env static.
37117 * include/grub/util/misc.h: Remove main_env.
37119 * kern/mm.c: Use correct format to print size_t.
37121 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
37122 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
37123 * kern/powerpc/dl.c: Likewise.
37124 * kern/sparc64/dl.c: Likewise.
37125 * kern/x86_64/dl.c: Likewise.
37127 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37129 Fix grub-emu build on sparc64-ieee1275.
37131 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
37132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
37134 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37136 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
37137 (grub_reboot, grub_halt): New functions.
37139 * util/i386/pc/misc.c: Delete. Update all users.
37140 * util/sparc64/ieee1275/misc.c: Likewise.
37141 * util/powerpc/ieee1275/misc.c: Likewise.
37143 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37145 * conf/i386.rmk (setjmp_mod_SOURCES)
37146 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
37147 * conf/common.rmk (setjmp_mod_SOURCES)
37148 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
37149 to use $(target_cpu).
37150 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
37151 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
37152 * conf/powerpc-ieee1275.rmk: Likewise.
37153 * conf/sparc64-ieee1275.rmk: Likewise.
37155 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
37156 $(target_cpu) for kern/$(target_cpu)/dl.c.
37157 * conf/i386-efi.rmk: Likewise.
37158 * conf/i386-ieee1275.rmk: Likewise.
37159 * conf/x86_64-efi.rmk: Likewise.
37160 * conf/i386-coreboot.rmk: Likewise.
37161 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
37162 $(target_cpu) for kern/$(target_cpu)/dl.c and for
37163 kern/$(target_cpu)/cache.S.
37164 * conf/sparc64-ieee1275.rmk: Likewise.
37166 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
37168 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
37169 type to `grub_uint8_t', and adjust `padding9' accordingly.
37171 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37173 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
37175 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
37176 assembly in final jump, using register constraints.
37178 (grub_linux_boot): For text mode, initialize `have_vga' using
37179 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
37181 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
37182 right before the final jump.
37184 Set `video_mode' to 0x3.
37186 Document initialization of `video_page', `video_mode' and
37189 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37191 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
37192 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
37193 and set GRUB_LINUX_FLAG_QUIET appropriately.
37195 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
37197 Fix build on Debian / sparc.
37199 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
37201 2009-06-28 Pavel Roskin <proski@gnu.org>
37203 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
37206 * util/grub.d/10_linux.in: Match SUSE style initrd names.
37208 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37210 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
37213 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37217 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
37218 file can't be opened. grub_file_open() is already supposed to set
37219 grub_errno / grub_errmsg appropriately.
37220 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37222 2009-06-27 Pavel Roskin <proski@gnu.org>
37223 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
37225 * include/grub/dl.h: Include grub/elf.h.
37226 (struct grub_dl): Add symtab field.
37227 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
37228 GRUB_MODULES_MACHINE_READONLY.
37229 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
37230 of the header for read-only modules.
37231 (grub_dl_unload): Free mod->symtab for read-only modules.
37232 * kern/i386/dl.c: Use mod->symtab.
37233 * kern/powerpc/dl.c: Likewise.
37234 * kern/sparc64/dl.c: Likewise.
37235 * kern/x86_64/dl.c: Likewise.
37237 * conf/i386-qemu.rmk: New file.
37238 * kern/i386/qemu/startup.S: Likewise.
37239 * kern/i386/qemu/mmap.c: Likewise.
37240 * boot/i386/qemu/boot.S: Likewise.
37241 * include/grub/i386/qemu/time.h: Likewise.
37242 * include/grub/i386/qemu/serial.h: Likewise.
37243 * include/grub/i386/qemu/kernel.h: Likewise.
37244 * include/grub/i386/qemu/console.h: Likewise.
37245 * include/grub/i386/qemu/boot.h: Likewise.
37246 * include/grub/i386/qemu/init.h: Likewise.
37247 * include/grub/i386/qemu/machine.h: Likewise.
37248 * include/grub/i386/qemu/loader.h: Likewise.
37249 * include/grub/i386/qemu/memory.h: Likewise.
37251 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
37252 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
37253 [qemu] (pkglib_IMAGES): Add `boot.img'.
37254 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
37255 [qemu] (boot_img_FORMAT): New variables.
37256 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
37257 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
37258 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
37259 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
37260 [qemu] (kernel_img_FORMAT): New variables.
37262 * configure.ac: Recognise `i386-qemu'.
37264 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
37265 (for no compression).
37266 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
37267 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
37268 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
37269 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
37272 2009-06-27 Pavel Roskin <proski@gnu.org>
37274 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
37276 * efiemu/prepare32.c: Likewise.
37277 * efiemu/prepare64.c: Likewise.
37279 2009-06-26 Pavel Roskin <proski@gnu.org>
37281 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
37282 * include/grub/elf.h: Define symbols without "32" or "64" based
37283 on GRUB_TARGET_WORDSIZE.
37284 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
37285 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
37287 * efiemu/loadcore64.c: Likewise.
37288 * loader/i386/bsd32.c: Likewise.
37289 * loader/i386/bsd64.c: Likewise.
37290 * kern/dl.c: Remove own ELF definitions.
37291 * util/i386/efi/grub-mkimage.c: Likewise.
37293 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
37295 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
37296 segment 0x0 unconditionally, because the reference generated by
37297 GAS is an absolute address.
37299 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37301 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
37302 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
37304 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37306 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
37307 indexes. Check for -f explicitly.
37308 (search_file): Improve error message.
37309 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
37311 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37313 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
37314 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
37316 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37318 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
37319 * conf/i386-ieee1275.rmk: Likewise.
37320 * conf/i386-coreboot.rmk: Likewise.
37322 * kern/i386/pc/startup.S (grub_stop): Remove function.
37323 * kern/i386/ieee1275/startup.S: Likewise.
37324 * kern/i386/coreboot/startup.S: Likewise.
37325 * kern/i386/misc.S (grub_stop): New function.
37327 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37329 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
37330 * kern/i386/realmode.S (real_to_prot): ... to here.
37332 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
37334 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
37336 (kernel_elf_SOURCES): Rename to ...
37337 (kernel_img_SOURCES): ... this.
37338 (kernel_elf_HEADERS): Rename to ...
37339 (kernel_img_HEADERS): ... this. Update all users.
37340 (kernel_elf_ASFLAGS): Rename to ...
37341 (kernel_img_ASFLAGS): ... this.
37342 (kernel_elf_CFLAGS): Rename to ...
37343 (kernel_img_CFLAGS): ... this.
37344 (kernel_elf_LDFLAGS): Rename to ...
37345 (kernel_img_LDFLAGS): ... this.
37346 * conf/i386-coreboot.rmk: Likewise.
37347 * conf/powerpc-ieee1275.rmk: Likewise.
37349 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
37352 2009-06-21 Pavel Roskin <proski@gnu.org>
37354 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
37355 to match nested functions.
37356 * loader/sparc64/ieee1275/linux.c: Likewise.
37358 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
37360 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37362 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
37363 all i386 platforms.
37365 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
37367 Fix asm file handling on ELF, and remove workarounds.
37369 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
37370 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
37371 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
37372 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
37374 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
37376 Load BSD ELF modules
37378 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
37379 and loader/i386/bsd64.c
37380 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
37381 (FREEBSD_MODTYPE_ELF_MODULE): New definition
37382 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
37383 (grub_freebsd_load_elfmodule32): New declaration
37384 (grub_freebsd_load_elfmoduleobj64): Likewise
37385 (grub_freebsd_load_elf_meta32): Likewise
37386 (grub_freebsd_load_elf_meta64): Likewise
37387 (grub_freebsd_add_meta): Likewise
37388 (grub_freebsd_add_meta_module): Likewise
37389 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
37390 (grub_freebsd_add_meta_module): Likewise and move module-specific
37391 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
37392 (grub_cmd_freebsd): Add elf-kernel specific parts
37393 based on grub_freebsd_add_meta_module
37394 (grub_cmd_freebsd_module): Add type parsing moved from
37395 grub_freebsd_add_meta_module
37396 (grub_cmd_freebsd_module_elf): New function
37397 (cmd_freebsd_module_elf): New variable
37398 (GRUB_MOD_INIT): Register freebsd_module_elf
37399 * loader/i386/bsd32.c: New file
37400 * loader/i386/bsd64.c: Likewise
37401 * loader/i386/bsdXX.c: Likewise
37402 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
37403 (grub_elf64_load): Likewise
37404 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
37406 (grub_elf64_load_hook_t): Likewise
37408 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
37410 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
37412 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
37413 don't write a menu entry for recovery mode.
37415 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37417 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
37418 after it's no longer needed.
37420 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
37422 * include/grub/i386/loader.h (grub_linux_prot_size)
37423 (grub_linux_tmp_addr, grub_linux_real_addr)
37424 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
37425 GRUB_MACHINE_PCBIOS.
37426 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
37427 common grub_util_info() call to ...
37428 (generate_image): ... here.
37429 Fix use of uninitialized memory, comparison of signed with
37430 unsigned integers and memory leak.
37431 Remove bogus module address message.
37433 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
37435 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
37437 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
37439 2009-06-19 Pavel Roskin <proski@gnu.org>
37441 * configure.ac: Remove stray AC_MSG_CHECKING.
37443 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
37445 * disk/scsi.c (grub_scsi_open): use continue instead of big if
37447 2009-06-18 Pavel Roskin <proski@gnu.org>
37449 * conf/common.rmk: Add fs_file.mod.
37450 * disk/fs_file.c: New file.
37451 * include/grub/disk.h (enum grub_disk_dev_id): Add
37452 GRUB_DISK_DEVICE_FILE_ID.
37454 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37456 Fix build with Apple's toolchain. Part 2
37458 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
37461 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37463 Fix build with Apple's toolchain. Part 1
37465 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
37467 * configure.ac: remove a leftover AC_MSG_RESULT
37468 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
37471 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
37475 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
37476 (decomp_block): initialize ch
37477 use grub_memcpy instead of memcpy
37479 2009-06-17 Pavel Roskin <proski@gnu.org>
37481 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
37482 version, use declarations needed to use vga_text as the startup
37485 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
37486 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
37488 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
37489 and grub_at_keyboard_fini(), it's done on module load and
37492 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
37494 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
37495 file can't be found.
37496 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
37498 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37500 Fix newline handling
37502 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
37503 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
37504 (grub_script_yylex): don't segfault on unterminated script
37505 newline terminates command and variable
37507 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
37509 avoid double grub_adjust_range call. Bug reported by David Simner
37511 * kern/disk.c (grub_disk_write): change to raw disk access before
37514 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
37516 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
37517 spaces, for the benefit of help2man.
37518 * util/i386/efi/grub-mkimage.c (usage): Likewise.
37520 2009-06-16 Pavel Roskin <proski@gnu.org>
37522 * kern/i386/halt.c: Include grub/machine/init.h.
37523 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
37525 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
37527 * util/grub.d/30_os-prober.in: Use ${root} in the generated
37528 drivemap menuentry.
37530 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
37532 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
37535 2009-06-16 Pavel Roskin <proski@gnu.org>
37537 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
37538 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
37539 save %dx, we only need %dl and we never change it.
37540 * boot/i386/pc/cdboot.S: Don't set the root drive.
37541 * boot/i386/pc/pxeboot.S: Likewise.
37542 * include/grub/i386/pc/boot.h: Remove
37543 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
37544 GRUB_BOOT_MACHINE_DRIVE_CHECK.
37545 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
37546 * kern/i386/pc/init.c (make_install_device): Remove references
37547 to grub_root_drive.
37548 * kern/i386/pc/startup.S: Likewise.
37549 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
37551 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37555 * commands/xnu_uuid.c: new file
37556 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
37557 (xnu_uuid_mod_SOURCES): new variable
37558 (xnu_uuid_mod_CFLAGS): likewise
37559 (xnu_uuid_mod_LDFLAGS): likewise
37560 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37561 * conf/i386-ieee1275.rmk: likewise
37562 * conf/i386-pc.rmk: likewise
37563 * conf/powerpc-ieee1275.rmk: likewise
37564 * conf/sparc64-ieee1275.rmk: likewise
37565 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
37567 2009-06-16 Pavel Roskin <proski@gnu.org>
37569 * configure.ac: Avoid '==' in test command, it's not portable.
37571 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
37575 * commands/probe.c: new file
37576 * conf/common.rmk (pkglib_MODULES): add probe.mod
37577 (probe_mod_SOURCES): new variable
37578 (probe_mod_CFLAGS): likewise
37579 (probe_mod_LDFLAGS): likewise
37580 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
37581 * conf/i386-ieee1275.rmk: likewise
37582 * conf/i386-pc.rmk: likewise
37583 * conf/powerpc-ieee1275.rmk: likewise
37584 * conf/sparc64-ieee1275.rmk: likewise
37586 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
37588 Fix handling of string like \"hello\" and "a
37591 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
37592 (grub_script_yylex): fix parsing of quoting, escaping and newline
37594 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
37596 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
37599 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
37601 * util/grub-mkconfig.in: Fix parsing of --output option.
37603 2009-06-12 Pavel Roskin <proski@gnu.org>
37605 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
37606 genmk.rb don't need to be generated or installed.
37608 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
37610 * commands/i386/pc/drivemap_int13h.S: add more comments
37612 2009-06-11 Pavel Roskin <proski@gnu.org>
37614 * Makefile.in (uninstall): Uninstall manuals.
37616 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
37617 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
37618 and update-grub_lib in two places.
37619 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
37621 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
37622 a compiler warning.
37624 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
37625 `entry_lo' to fix variable shadowing.
37627 2009-06-11 Christian Franke <franke@computer.org>
37629 * kern/misc.c (__enable_execute_stack): Add missing return type
37630 to prevent gcc warning.
37632 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37634 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
37636 2009-06-11 Pavel Roskin <proski@gnu.org>
37638 * Makefile.in: Don't rely on any scripts being executable.
37639 Always use $(SHELL) to run shell scripts.
37641 * configure.ac: Always define ___main if using -nostdlib. This
37642 fixes tests on Cygwin.
37644 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
37648 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
37649 is in bytes and not in blocks
37651 2009-06-11 Pavel Roskin <proski@gnu.org>
37653 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
37656 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
37658 * util/grub.d/30_os-prober.in: Fix a comment. Source
37659 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
37660 to set the root device. Place drivemap command in the generated
37663 2009-06-11 Pavel Roskin <proski@gnu.org>
37665 * configure.ac: Remove host_m32. Issues with 64-bit utilities
37666 have long been resolved.
37668 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
37670 * util/grub.d/10_linux.in: Capitalise "Linux".
37672 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
37674 2009-06-11 Pavel Roskin <proski@gnu.org>
37676 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
37677 fix a gcc warning and ensure that the function won't ever exit.
37679 * kern/i386/ieee1275/init.c: Add missing prototype for
37680 grub_stop_floppy().
37682 * loader/ieee1275/multiboot2.c [__i386__]: Include
37683 grub/cpu/multiboot.h.
37685 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
37686 casts to short - they are not portable and cause warnings. Fix
37687 use of uninitialized values in input_buf. Use ARRAY_SIZE.
37689 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
37693 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
37695 (grub_get_root_biosnumber_saved): new variable
37696 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
37697 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
37698 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
37699 %dx after the call if necessary
37700 * conf/common.rmk (pkglib_MODULES): remove boot.mod
37701 (boot_mod_SOURCES): remove
37702 (boot_mod_CFLAGS): remove
37703 (boot_mod_LDFLAGS): remove
37704 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
37705 (boot_mod_SOURCES): new variable
37706 (boot_mod_CFLAGS): likewise
37707 (boot_mod_LDFLAGS): likewise
37708 * conf/i386-efi.rmk: likewise
37709 * conf/i386-ieee1275.rmk: likewise
37710 * conf/i386-pc.rmk: likewise
37711 * conf/powerpc-ieee1275.rmk: likewise
37712 * conf/sparc64-ieee1275.rmk: likewise
37713 * conf/x86_64-efi.rmk: likewise
37714 * include/grub/i386/pc/biosnum.h: new file
37715 * lib/i386/pc/biosnum.c: likewise
37716 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
37717 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
37718 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
37720 2009-06-10 Pavel Roskin <proski@gnu.org>
37722 * io/gzio.c (test_header): Don't reuse one buffer for all data.
37723 Use separate variables. Read only the file size at the end, but
37724 not the checksum that we don't use.
37726 * kern/file.c (grub_file_read): Use void pointer for the buffer.
37727 Adjust all callers.
37729 * kern/ieee1275/openfw.c: Remove libc includes.
37730 * kern/ieee1275/cmain.c: Likewise.
37731 * include/grub/ieee1275/ieee1275.h: Likewise.
37733 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
37736 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37738 * Makefile.in: Remove all trailing whitespace.
37739 * conf/i386-pc.rmk: Likewise.
37740 * conf/powerpc-ieee1275.rmk: Likewise.
37741 * conf/sparc64-ieee1275.rmk: Likewise.
37742 * docs/grub.texi: Likewise.
37743 * docs/texinfo.tex: Likewise.
37744 * disk/fs_uuid.c: Likewise.
37745 * disk/lvm.c: Likewise.
37746 * disk/scsi.c: Likewise.
37747 * disk/ata.c: Likewise.
37748 * disk/ieee1275/ofdisk.c: Likewise.
37749 * disk/i386/pc/biosdisk.c: Likewise.
37750 * disk/host.c: Likewise.
37751 * disk/raid.c: Likewise.
37752 * disk/efi/efidisk.c: Likewise.
37753 * disk/usbms.c: Likewise.
37754 * disk/memdisk.c: Likewise.
37755 * disk/loopback.c: Likewise.
37756 * kern/powerpc/dl.c: Likewise.
37757 * kern/device.c: Likewise.
37758 * kern/dl.c: Likewise.
37759 * kern/sparc64/dl.c: Likewise.
37760 * kern/ieee1275/ieee1275.c: Likewise.
37761 * kern/term.c: Likewise.
37762 * kern/fs.c: Likewise.
37763 * kern/i386/dl.c: Likewise.
37764 * kern/i386/pc/startup.S: Likewise.
37765 * kern/i386/pc/init.c: Likewise.
37766 * kern/i386/pc/mmap.c: Likewise.
37767 * kern/i386/pc/lzo1x.S: Likewise.
37768 * kern/i386/ieee1275/init.c: Likewise.
37769 * kern/i386/realmode.S: Likewise.
37770 * kern/i386/tsc.c: Likewise.
37771 * kern/partition.c: Likewise.
37772 * kern/corecmd.c: Likewise.
37773 * kern/file.c: Likewise.
37774 * kern/efi/efi.c: Likewise.
37775 * kern/efi/init.c: Likewise.
37776 * kern/efi/mm.c: Likewise.
37777 * kern/main.c: Likewise.
37778 * kern/err.c: Likewise.
37779 * kern/env.c: Likewise.
37780 * kern/disk.c: Likewise.
37781 * kern/generic/millisleep.c: Likewise.
37782 * kern/generic/rtc_get_time_ms.c: Likewise.
37783 * kern/misc.c: Likewise.
37784 * kern/parser.c: Likewise.
37785 * genmk.rb: Likewise.
37786 * configure.ac: Likewise.
37787 * boot/i386/pc/diskboot.S: Likewise.
37788 * boot/i386/pc/pxeboot.S: Likewise.
37789 * boot/i386/pc/boot.S: Likewise.
37790 * boot/i386/pc/lnxboot.S: Likewise.
37791 * boot/i386/pc/cdboot.S: Likewise.
37792 * parttool/pcpart.c: Likewise.
37793 * video/readers/tga.c: Likewise.
37794 * video/video.c: Likewise.
37795 * video/bitmap.c: Likewise.
37796 * lib/envblk.c: Likewise.
37797 * lib/i386/setjmp.S: Likewise.
37798 * fs/xfs.c: Likewise.
37799 * fs/afs.c: Likewise.
37800 * fs/fat.c: Likewise.
37801 * fs/ntfs.c: Likewise.
37802 * fs/udf.c: Likewise.
37803 * fs/affs.c: Likewise.
37804 * fs/iso9660.c: Likewise.
37805 * fs/hfs.c: Likewise.
37806 * fs/fshelp.c: Likewise.
37807 * fs/ext2.c: Likewise.
37808 * fs/jfs.c: Likewise.
37809 * fs/reiserfs.c: Likewise.
37810 * fs/hfsplus.c: Likewise.
37811 * fs/minix.c: Likewise.
37812 * fs/cpio.c: Likewise.
37813 * fs/sfs.c: Likewise.
37814 * fs/ufs.c: Likewise.
37815 * efiemu/prepare.c: Likewise.
37816 * efiemu/loadcore_common.c: Likewise.
37817 * efiemu/runtime/efiemu.sh: Likewise.
37818 * efiemu/runtime/efiemu.S: Likewise.
37819 * efiemu/runtime/efiemu.c: Likewise.
37820 * efiemu/pnvram.c: Likewise.
37821 * efiemu/main.c: Likewise.
37822 * efiemu/i386/pc/cfgtables.c: Likewise.
37823 * efiemu/i386/loadcore64.c: Likewise.
37824 * efiemu/i386/loadcore32.c: Likewise.
37825 * efiemu/loadcore.c: Likewise.
37826 * efiemu/symbols.c: Likewise.
37827 * efiemu/mm.c: Likewise.
37828 * include/grub/autoefi.h: Likewise.
37829 * include/grub/datetime.h: Likewise.
37830 * include/grub/term.h: Likewise.
37831 * include/grub/hfs.h: Likewise.
37832 * include/grub/lvm.h: Likewise.
37833 * include/grub/i386/tsc.h: Likewise.
37834 * include/grub/i386/linux.h: Likewise.
37835 * include/grub/i386/xnu.h: Likewise.
37836 * include/grub/i386/efiemu.h: Likewise.
37837 * include/grub/i386/pc/biosdisk.h: Likewise.
37838 * include/grub/i386/pc/memory.h: Likewise.
37839 * include/grub/i386/pc/vbe.h: Likewise.
37840 * include/grub/parttool.h: Likewise.
37841 * include/grub/video.h: Likewise.
37842 * include/grub/memory.h: Likewise.
37843 * include/grub/fs.h: Likewise.
37844 * include/grub/partition.h: Likewise.
37845 * include/grub/xnu.h: Likewise.
37846 * include/grub/efi/api.h: Likewise.
37847 * include/grub/efi/pe32.h: Likewise.
37848 * include/grub/efi/memory.h: Likewise.
37849 * include/grub/multiboot.h: Likewise.
37850 * include/grub/usbdesc.h: Likewise.
37851 * include/grub/multiboot2.h: Likewise.
37852 * include/grub/acpi.h: Likewise.
37853 * include/grub/efiemu/efiemu.h: Likewise.
37854 * include/grub/disk.h: Likewise.
37855 * include/grub/ieee1275/ieee1275.h: Likewise.
37856 * include/grub/net.h: Likewise.
37857 * include/grub/machoload.h: Likewise.
37858 * include/grub/macho.h: Likewise.
37859 * include/multiboot.h: Likewise.
37860 * genmoddep.awk: Likewise.
37861 * normal/main.c: Likewise.
37862 * normal/menu_entry.c: Likewise.
37863 * normal/menu_viewer.c: Likewise.
37864 * normal/completion.c: Likewise.
37865 * normal/cmdline.c: Likewise.
37866 * normal/misc.c: Likewise.
37867 * normal/datetime.c: Likewise.
37868 * bus/usb/usbtrans.c: Likewise.
37869 * bus/usb/ohci.c: Likewise.
37870 * bus/usb/uhci.c: Likewise.
37871 * bus/usb/usb.c: Likewise.
37872 * mmap/efi/mmap.c: Likewise.
37873 * mmap/i386/pc/mmap_helper.S: Likewise.
37874 * mmap/i386/pc/mmap.c: Likewise.
37875 * mmap/i386/mmap.c: Likewise.
37876 * mmap/i386/uppermem.c: Likewise.
37877 * mmap/mmap.c: Likewise.
37878 * commands/acpi.c: Likewise.
37879 * commands/echo.c: Likewise.
37880 * commands/blocklist.c: Likewise.
37881 * commands/loadenv.c: Likewise.
37882 * commands/usbtest.c: Likewise.
37883 * commands/boot.c: Likewise.
37884 * commands/parttool.c: Likewise.
37885 * commands/search.c: Likewise.
37886 * commands/cat.c: Likewise.
37887 * commands/i386/pc/play.c: Likewise.
37888 * commands/i386/pc/drivemap.c: Likewise.
37889 * commands/i386/pc/vbeinfo.c: Likewise.
37890 * commands/i386/pc/acpi.c: Likewise.
37891 * commands/i386/pc/vbetest.c: Likewise.
37892 * commands/ls.c: Likewise.
37893 * commands/cmp.c: Likewise.
37894 * commands/test.c: Likewise.
37895 * commands/efi/acpi.c: Likewise.
37896 * commands/gptsync.c: Likewise.
37897 * commands/help.c: Likewise.
37898 * partmap/amiga.c: Likewise.
37899 * partmap/apple.c: Likewise.
37900 * partmap/acorn.c: Likewise.
37901 * partmap/pc.c: Likewise.
37902 * partmap/sun.c: Likewise.
37903 * partmap/gpt.c: Likewise.
37904 * script/sh/lexer.c: Likewise.
37905 * script/sh/function.c: Likewise.
37906 * font/font.c: Likewise.
37907 * font/font_cmd.c: Likewise.
37908 * loader/powerpc/ieee1275/linux.c: Likewise.
37909 * loader/efi/chainloader.c: Likewise.
37910 * loader/multiboot_loader.c: Likewise.
37911 * loader/macho.c: Likewise.
37912 * loader/i386/multiboot.c: Likewise.
37913 * loader/i386/linux.c: Likewise.
37914 * loader/i386/pc/linux.c: Likewise.
37915 * loader/i386/pc/multiboot2.c: Likewise.
37916 * loader/i386/pc/chainloader.c: Likewise.
37917 * loader/i386/pc/xnu.c: Likewise.
37918 * loader/i386/bsd_trampoline.S: Likewise.
37919 * loader/i386/efi/linux.c: Likewise.
37920 * loader/i386/multiboot_elfxx.c: Likewise.
37921 * loader/i386/bsd_helper.S: Likewise.
37922 * loader/i386/bsd.c: Likewise.
37923 * loader/i386/linux_trampoline.S: Likewise.
37924 * loader/i386/xnu_helper.S: Likewise.
37925 * loader/i386/xnu.c: Likewise.
37926 * loader/i386/bsd_pagetable.c: Likewise.
37927 * loader/i386/multiboot_helper.S: Likewise.
37928 * loader/xnu.c: Likewise.
37929 * loader/xnu_resume.c: Likewise.
37930 * io/gzio.c: Likewise.
37931 * term/efi/console.c: Likewise.
37932 * term/terminfo.c: Likewise.
37933 * term/ieee1275/ofconsole.c: Likewise.
37934 * term/i386/pc/serial.c: Likewise.
37935 * term/i386/pc/vesafb.c: Likewise.
37936 * term/i386/pc/vga.c: Likewise.
37937 * term/usb_keyboard.c: Likewise.
37938 * term/gfxterm.c: Likewise.
37939 * aclocal.m4: Likewise.
37940 * util/lvm.c: Likewise.
37941 * util/grub.d/30_os-prober.in: Likewise.
37942 * util/grub.d/10_hurd.in: Likewise.
37943 * util/console.c: Likewise.
37944 * util/grub-macho2img.c: Likewise.
37945 * util/grub-probe.c: Likewise.
37946 * util/hostfs.c: Likewise.
37947 * util/i386/pc/grub-mkimage.c: Likewise.
37948 * util/i386/pc/grub-setup.c: Likewise.
37949 * util/i386/efi/grub-mkimage.c: Likewise.
37950 * util/grub-mkconfig.in: Likewise.
37951 * util/raid.c: Likewise.
37952 * util/resolve.c: Likewise.
37953 * util/grub-mkdevicemap.c: Likewise.
37954 * util/grub-emu.c: Likewise.
37955 * util/getroot.c: Likewise.
37956 * util/hostdisk.c: Likewise.
37957 * util/usb.c: Likewise.
37958 * util/grub-editenv.c: Likewise.
37959 * util/misc.c: Likewise.
37961 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
37963 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
37964 `genparttoollist.sh'.
37965 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
37966 Add `*.sh' to the list find searches for and change `mdate.sh'
37969 2009-06-10 Pavel Roskin <proski@gnu.org>
37971 * include/grub/multiboot2.h: Provide compatibility defines for
37973 * include/multiboot2.h: Include stdint.h only if needed, using
37975 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
37977 * loader/ieee1275/multiboot2.c: Likewise.
37978 * loader/multiboot2.c: Likewise.
37979 * loader/multiboot_loader.c: Likewise.
37981 * configure.ac: Use -nostdlib when probing for the target. It
37982 should not be required to have libc for the target.
37984 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
37985 they fail without libc headers for the target.
37986 * include/grub/powerpc/libgcc.h: Use weak attribute for all
37988 * include/grub/sparc64/libgcc.h: Likewise. Don't use
37989 preprocessor conditionals.
37991 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
37992 build system doesn't need to be aware of the tar.c internals.
37994 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
37996 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
37998 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
38000 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
38001 disk limit to 26 for IDE, Virtio, Xen and SCSI.
38003 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
38005 * util/i386/pc/grub-install.in: Change the error message if UUIDs
38006 aren't available if ata.mod gets used.
38008 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
38010 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
38011 initialising controller.
38012 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38014 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38016 * util/i386/pc/grub-install.in: Add a parameter --disk-module
38017 to choose between ata and biosdisk module on i386-pc.
38019 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
38021 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
38022 Subclass and Programming Interface fields in terms of the 3 byte
38023 Class Code register.
38024 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
38026 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
38027 interface is OHCI. Add grub_dprintf for symmetry with
38029 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
38030 interface is UHCI. Add interf variable for programming
38031 interface. Print interface with class/subclass.
38033 * bus/usb/ohci.c: Set interf with correct field.
38035 * bus/usb/uhci.c: Remove unneeded doubled lines.
38036 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
38037 Remove whitespace inside comment.
38039 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
38041 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
38042 as fallback an equivalent option without depth.
38044 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38046 Not fail if unable to retrieve C/H/S on LBA disks
38048 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
38049 if unable to retrieve C/H/S on LBA disks
38051 2009-06-08 Pavel Roskin <proski@gnu.org>
38053 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
38056 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38058 * Makefile.in (uninstall): Remove all $lib_DATA files.
38060 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
38062 Bugfix: install on partitionless device
38064 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
38067 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38069 * Makefile.in (uninstall): Remove all $include_DATA files.
38071 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
38073 * commands/true.c: New file. Implement the true and false commands.
38074 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
38075 (true_mod_SOURCES): New variable.
38076 (true_mod_CFLAGS): Likewise.
38077 (true_mod_LDFLAGS): Likewise.
38079 2009-06-05 Colin D Bennett <colin@gibibit.com>
38081 Optimized font character lookup using binary search instead of linear
38082 search. Fonts now are required to have the character index ordered by
38085 * font/font.c (load_font_index): Verify that fonts have ordered
38087 (find_glyph): Use binary search instead of linear search to find a
38088 character in a font.
38090 2009-06-05 Michael Scherer <misc@mandriva.org>
38092 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
38093 uses case sensitive btree.
38094 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
38095 only for case insensitive filesystems.
38097 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
38099 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
38100 * conf/common.rmk (search_mod_CFLAGS): likewise
38102 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38104 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
38105 compensate a compiler bug
38107 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38109 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
38112 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38114 Definitions for creating asm symbols with Apple's CC
38116 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
38117 [APPLE_CC] (VARIABLE): likewise
38119 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38121 Disable lnxboot.img when compiled
38124 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
38125 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
38126 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
38127 [! APPLE_CC] (CODE_LENG): skip
38128 [! APPLE_CC] (setup_sects): likewise
38129 [! APPLE_CC]: skip filling
38131 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38133 Address in trampolines based on 32-bit registers when compiled
38136 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
38138 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
38140 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38142 Avoid aliases when compiling with Apple's CC for PCBIOS machine
38144 * kern/misc.c [APPLE_CC] (memcpy): new function
38145 [APPLE_CC] (memmove): likewise
38146 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
38147 (memcpy): define alias conditionally on !APPLE_CC
38150 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
38151 APPLE_CC are defined
38152 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
38153 (grub_assert_fail): make prototype conditional
38155 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38157 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
38159 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
38161 (CLEANFILES): add grub-macho2img
38162 (grub_macho2img_SOURCES): new variable
38163 * kern/i386/pc/startup.S (bss_start): new variable
38164 (bss_end): likewise
38165 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
38166 * util/grub-macho2img.c: new file
38168 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38170 Use objconv when compiling with Apple's CC
38172 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
38173 (efiemu64.o): likewise
38174 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
38175 when compiling with Apple's CC
38176 (efiemu64_s.o): likewise
38177 * configure.ac: check for objconv when compiling with Apple's CC
38178 * genmk.rb: use objconv for modules when compiled with Apple's CC
38180 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38182 Define segment as well as section when compiling with
38185 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
38186 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
38187 (efiemu_convert_pointer): likewise
38188 (efiemu_set_virtual_address_map): likewise
38189 (efiemu_convert_pointer): likewise
38190 (efiemu_getcrc32): likewise
38191 (init_crc32_table): likewise
38192 (reflect): likewise
38193 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
38194 (GRUB_MOD_DEP): likewise
38196 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38198 Allow a compilation without -mcmodel=large
38200 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
38201 when compiled without -mcmodel=large
38202 (filter_memory_map): remove memory post 4 GiB when compiled
38203 without -mcmodel=large
38204 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
38205 TARGET_CFLAGS when -mcmodel=large isn't supported
38207 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38209 Remove nested functions in efiemu core
38211 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
38213 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38215 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
38217 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
38219 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
38221 (grub_cpu_is_tsc_supported): likewise
38222 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
38224 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38226 Absolute addressing through constant with Apple's cc
38228 * kern/i386/pc/startup.S: Define necessary constants
38229 and address through it when using ABS with Apple's CC
38230 * boot/i386/pc/diskboot.S: likewise
38231 * boot/i386/pc/boot.S: likewise
38232 * boot/i386/pc/lnxboot.S: likewise
38233 * boot/i386/pc/cdboot.S: likewise
38234 * mmap/i386/pc/mmap_helper.S: likewise
38235 * commands/i386/pc/drivemap_int13h.S: likewise
38237 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38239 Check if compiler is apple cc
38241 * Makefile.in (ASFLAGS): new variable
38242 (TARGET_ASFLAGS): likewise
38243 (TARGET_MODULE_FORMAT): likewise
38244 (TARGET_APPLE_CC): likewise
38245 (OBJCONV): likewise
38246 (TARGET_IMG_CFLAGS): likewise
38247 (TARGET_CPPFLAGS): add includedir
38248 * configure.ac: call grub_apple_cc and grub_apple_target_cc
38249 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
38250 Check for linker script only if compiler isn't Apple's CC
38251 (TARGET_MODULE_FORMAT): set
38252 (TARGET_APPLE_CC): likewise
38253 (TARGET_ASFLAGS): likewise
38254 (ASFLAGS): likewise
38255 Check for objcopy only if compiler isn't Apple's CC
38256 Check for BSS symbol only if compiler isn't Apple's CC
38257 * genmk.rb: adapt nm options if we use Apple's utils
38258 * aclocal.m4 (grub_apple_cc): new test
38259 (grub_apple_target_cc): likewise
38261 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38263 Simplify sed expressions and improve awk
38265 * Makefile.in (install-local): simplify sed expression
38266 * gencmdlist.sh: likewise
38267 * genmoddep.awk: avoid adding module as a dependency of itself
38269 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38271 Add missing start symbols
38273 * boot/i386/pc/boot.S: add start
38274 * boot/i386/pc/pxeboot.S: likewise
38276 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38278 Fix wrong assumptions with grub-mkimage on EFI
38280 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
38281 (relocate_addresses): consider both r_addend and value at offset
38282 (make_mods_section): zerofill modinfo and header
38283 (convert_elf): write prefix here
38285 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38287 Use .asciz instead of .string
38289 * i386/pc/diskboot.S: use .asciz instead of .string
38290 * i386/pc/boot.S: likewise
38291 * include/grub/dl.h (GRUB_MOD_DEP): likewise
38292 (GRUB_MOD_NAME): likewise
38294 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38298 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
38299 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
38300 (grub_video_setup): remove
38301 (grub_video_set_mode): new prototype
38302 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
38304 (linux_vesafb_res): compile only on PCBIOS
38305 (grub_linux_boot): support gfxpayload
38306 * loader/i386/pc/xnu.c (video_hook): new function
38307 (grub_xnu_set_video): support gfxpayload
38308 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
38309 (DEFAULT_VIDEO_HEIGHT): likewise
38310 (DEFAULT_VIDEO_FLAGS): likewise
38311 (DEFAULT_VIDEO_MODE): new definition
38312 (video_hook): new function
38313 (grub_gfxterm_init): use grub_video_set_mode
38314 * util/grub.d/30_os-prober.in: remove explicit modesetting before
38316 * video/video.c (grub_video_setup): removed
38317 (grub_video_set_mode): new function based on grub_gfxterm_init and
38320 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38322 Avoid calling biosdisk in drivemap
38324 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
38325 (revparse_biosdisk): likewise
38326 (list_mappings): derive name from id directly
38327 (grub_cmd_drivemap): use tryparse_diskstring
38329 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
38333 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
38334 (grub_lexer_param): add tokenonhold
38335 (grub_script_create_cmdline): remove cmdline. All callers updated
38336 (grub_script_function_create): make functionname
38337 grub_script_arg. All callers updated
38338 (grub_script_execute_argument_to_string): new prototype
38339 * kern/parser.c (state_transitions): reorder
38340 (grub_parser_cmdline_state): fix a bug and make more compact
38341 * script/sh/execute.c (grub_script_execute_argument_to_string):
38343 (grub_script_execute_cmdline): use new format
38344 * script/sh/function.c (grub_script_function_create): make functionname
38345 grub_script_arg. All callers updated
38346 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
38347 (grub_script_yylex): remove
38348 (grub_script_yylex2): renamed to ...
38349 (grub_script_yylex): ...renamed
38350 parse the expressions like a${b}c
38351 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
38352 (GRUB_PARSER_TOKEN_VAR): remove
38353 (GRUB_PARSER_TOKEN_NAME): likewise
38354 ("if"): declare as typeless
38355 ("while"): likewise
38356 ("function"): likewise
38361 (argument): likewise
38362 (script): accept empty scripts and make exit on error
38363 (arguments): use GRUB_PARSER_TOKEN_ARG
38364 (function): likewise
38365 (command): move error handling to script
38366 (menuentry): move grub_script_lexer_ref before
38367 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
38368 argument. All callers updated
38370 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38372 Prevent GRUB from probing floppies during boot.
38374 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
38375 * commands/search.c (options): Add --no-floppy.
38376 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
38377 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
38378 --no-floppy when searching for UUIDs.
38380 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
38382 Simplify the code duplication in commands/search.c.
38384 * commands/search.c (search_label, search_fs_uuid): Merge into ...
38385 (search_fs): ... this. Update all users.
38387 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
38389 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
38391 2009-05-28 Pavel Roskin <proski@gnu.org>
38393 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
38394 Remove the original symlink explicitly.
38396 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
38397 just one slash. That's how grub_fshelp_find_file() does it.
38399 2009-05-26 Pavel Roskin <proski@gnu.org>
38401 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
38404 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
38407 2009-05-25 Christian Franke <franke@computer.org>
38409 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
38411 (grub_atapi_identify): Add wait after drive select.
38412 (grub_ata_identify): Do more strict status register check before
38413 calling grub_atapi_identify (). Suppress error message if status
38414 register is 0x00 after command failure. Add status register
38415 check after PIO read to avoid bogus identify due to stuck DRQ.
38416 Thanks to Pavel Roskin for testing.
38417 (grub_device_initialize): Remove unsafe status register check.
38418 Thanks to 'phcoder' for problem report and patch.
38419 Prevent sign extension in debug message.
38421 2009-05-23 Colin D Bennett <colin@gibibit.com>
38423 Cleaned up `include/grub/normal.h'. Grouped prototypes by
38424 definition file, and functions defined in `normal/menu.c' have had
38425 their prototypes moved to `include/grub/menu.h' for consistency.
38427 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
38429 (grub_menu_get_entry): Likewise.
38430 (grub_menu_get_timeout): Likewise.
38431 (grub_menu_set_timeout): Likewise.
38432 (grub_menu_execute_entry): Likewise.
38433 (grub_menu_execute_with_fallback): Likewise.
38434 (grub_menu_entry_run): Likewise.
38436 * include/grub/normal.h: Re-ordered and grouped function
38437 prototypes by file that the function is defined in.
38438 (grub_menu_execute_callback): Removed; moved to menu.h.
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.
38445 (grub_menu_addentry): Renamed from this ...
38446 (grub_normal_add_menu_entry): ... to this.
38448 * normal/main.c (grub_menu_addentry): Renamed from this ...
38449 (grub_normal_add_menu_entry): ... to this.
38451 * script/sh/execute.c (grub_script_execute_menuentry): Update
38452 reference to renamed grub_menu_addentry function.
38454 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
38456 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
38458 2009-05-22 Pavel Roskin <proski@gnu.org>
38460 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
38461 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
38462 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
38463 compiling for the i386 targets, but not for the utilities.
38465 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
38467 (grub_root_drive): Likewise.
38468 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
38470 (grub_root_drive): Change size to byte.
38471 (grub_start_addr): Remove.
38472 (grub_end_addr): Likewise.
38473 (grub_apm_bios_info): Likewise.
38475 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
38477 * normal/i386: Remove.
38478 * normal/powerpc: Likewise.
38479 * normal/sparc64: Likewise.
38480 * normal/x86_64: Likewise.
38482 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
38484 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
38485 * loader/i386/linux_trampoline.S: Fix indentation
38486 * loader/i386/xnu_helper.S: Likewise
38488 2009-05-18 Colin D Bennett <colin@gibibit.com>
38490 Display error messages when parsing a Lua statement fails.
38491 Previously, executing a syntactically invalid statement like
38492 ")foo" or "bar;" would silently fail.
38494 * script/lua/grub_main.c (handle_lua_error): New function.
38495 (grub_lua_parse_line): Improved reporting of Lua parser and
38498 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38500 Remove -Werror which causes build to fail on some systems
38502 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
38503 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
38504 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
38506 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
38508 trampoline for linux on 64-bit platform
38510 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
38511 loader/i386/efi/linux_trampoline.S
38512 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
38514 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
38516 * loader/i386/linux_trampoline.S: moved here
38517 * loader/i386/efi/linux.c (allocate_pages): reserve space for
38519 (jumpvector): removed
38520 (grub_linux_trampoline_start): new declaration
38521 (grub_linux_trampoline_end): likewise
38522 (grub_linux_boot): use trampoline when on 64-bit platform
38523 * loader/i386/linux.c: likewise
38525 2009-05-16 Pavel Roskin <proski@gnu.org>
38527 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
38528 const to avoid a warning.
38529 (grub_lua_setenv): Likewise.
38530 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
38531 lmsg to fix a warning.
38533 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38535 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
38536 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38537 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
38538 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38539 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38540 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38541 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
38542 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
38544 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
38546 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
38548 2009-05-16 Bean <bean123ch@gmail.com>
38550 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
38551 (lua_mod_SOURCES): New variable.
38552 (lua_mod_CFLAGS): Likewise.
38553 (lua_mod_LDFLAGS): Likewise.
38555 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
38556 (setjmp_mod_SOURCES): New variable.
38557 (setjmp_mod_CFLAGS): Likewise.
38558 (setjmp_LDFLAGS): Likewise.
38560 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
38561 (setjmp_mod_SOURCES): New variable.
38562 (setjmp_mod_CFLAGS): Likewise.
38563 (setjmp_LDFLAGS): Likewise.
38565 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38566 (setjmp_mod_SOURCES): New variable.
38567 (setjmp_mod_CFLAGS): Likewise.
38568 (setjmp_LDFLAGS): Likewise.
38570 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
38571 (setjmp_mod_SOURCES): New variable.
38572 (setjmp_mod_CFLAGS): Likewise.
38573 (setjmp_LDFLAGS): Likewise.
38575 * normal/i386/setjmp.S: Moved from here ...
38576 * lib/i386/setjmp.S: ... Moved here
38577 * normal/x86_64/setjmp.S: Moved from here ...
38578 * lib/x86_64/setjmp.S: ... Moved here
38579 * normal/powerpc/setjmp.S: Moved from here ...
38580 * lib/powerpc/setjmp.S: ... Moved here
38581 * normal/sparc64/setjmp.S: Moved from here ...
38582 * lib/sparc64/setjmp.S: ... Moved here
38584 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
38585 returns_twice in mingw.
38587 * script/lua/grub_lib.c: New file.
38588 * script/lua/grub_lib.h: Likewise.
38589 * script/lua/grub_lua.h: Likewise.
38590 * script/lua/grub_main.c: Likewise.
38591 * script/lua/lapi.c: Likewise.
38592 * script/lua/lapi.h: Likewise.
38593 * script/lua/lauxlib.c: Likewise.
38594 * script/lua/lauxlib.h: Likewise.
38595 * script/lua/lbaselib.c: Likewise.
38596 * script/lua/lcode.c: Likewise.
38597 * script/lua/lcode.h: Likewise.
38598 * script/lua/ldblib.c: Likewise.
38599 * script/lua/ldebug.c: Likewise.
38600 * script/lua/ldebug.h: Likewise.
38601 * script/lua/ldo.c: Likewise.
38602 * script/lua/ldo.h: Likewise.
38603 * script/lua/ldump.c: Likewise.
38604 * script/lua/lfunc.c: Likewise.
38605 * script/lua/lfunc.h: Likewise.
38606 * script/lua/lgc.c: Likewise.
38607 * script/lua/lgc.h: Likewise.
38608 * script/lua/linit.c: Likewise.
38609 * script/lua/liolib.c: Likewise.
38610 * script/lua/llex.c: Likewise.
38611 * script/lua/llex.h: Likewise.
38612 * script/lua/llimits.h: Likewise.
38613 * script/lua/lmathlib.c: Likewise.
38614 * script/lua/lmem.c: Likewise.
38615 * script/lua/lmem.h: Likewise.
38616 * script/lua/loadlib.c: Likewise.
38617 * script/lua/lobject.c: Likewise.
38618 * script/lua/lobject.h: Likewise.
38619 * script/lua/lopcodes.c: Likewise.
38620 * script/lua/lopcodes.h: Likewise.
38621 * script/lua/loslib.c: Likewise.
38622 * script/lua/lparser.c: Likewise.
38623 * script/lua/lparser.h: Likewise.
38624 * script/lua/lstate.c: Likewise.
38625 * script/lua/lstate.h: Likewise.
38626 * script/lua/lstring.c: Likewise.
38627 * script/lua/lstring.h: Likewise.
38628 * script/lua/lstrlib.c: Likewise.
38629 * script/lua/ltable.c: Likewise.
38630 * script/lua/ltable.h: Likewise.
38631 * script/lua/ltablib.c: Likewise.
38632 * script/lua/ltm.c: Likewise.
38633 * script/lua/ltm.h: Likewise.
38634 * script/lua/lua.h: Likewise.
38635 * script/lua/luaconf.h: Likewise.
38636 * script/lua/lualib.h: Likewise.
38637 * script/lua/lundump.c: Likewise.
38638 * script/lua/lundump.h: Likewise.
38639 * script/lua/lvm.c: Likewise.
38640 * script/lua/lvm.h: Likewise.
38641 * script/lua/lzio.c: Likewise.
38642 * script/lua/lzio.h: Likewise.
38644 2009-05-16 Bean <bean123ch@gmail.com>
38646 * include/grub/kernel.h (grub_module_header_types): Add type
38649 * kern/main.c (grub_load_config): New function.
38650 (grub_main): Call grub_load_config to read boot config.
38652 * grub-mkimage (generate_image): New parameter config_path.
38653 (options): New option --config.
38654 (main): Parse --config option, and pass it to generate_image.
38656 2009-05-14 Christian Franke <franke@computer.org>
38658 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
38659 This fixes build on Cygwin.
38661 2009-05-14 Pavel Roskin <proski@gnu.org>
38663 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
38664 jump. This saves two bytes, so the typical case of 2 swapped
38665 drives would fit 32 bytes.
38667 2009-05-13 Pavel Roskin <proski@gnu.org>
38669 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
38670 grub_uint32_t to avoid a warning.
38672 * loader/i386/linux.c (allocate_pages): When assigning
38673 real_mode_mem, cast through grub_size_t to fix a warning. The
38674 code already makes sure that the value would fit a pointer.
38675 (grub_linux_setup_video): Cast render_target->data to
38676 grub_size_t to fix a warning.
38678 2009-05-13 Javier Martín <lordhabbit@gmail.com>
38680 * commands/i386/pc/drivemap.c: New file - implement drivemap
38682 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
38683 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
38685 2009-05-13 Pavel Roskin <proski@gnu.org>
38687 * util/i386/pc/grub-setup.c (setup): Remove unused variable
38688 embedding_area_exists.
38690 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
38692 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
38693 it easier to understand / work with.
38694 Improve warning messages for cases where there's no embedding area,
38695 or when it is too small (or core.img too large).
38697 2009-05-13 Pavel Roskin <proski@gnu.org>
38699 * loader/i386/pc/multiboot2.c: Add necessary includes for
38700 grub_multiboot2_real_boot().
38702 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
38703 PX record is always little-endian. We only need the lower 2
38706 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
38707 facilitate code reuse.
38708 (grub_cpio_mount): Use "struct head", not a char buffer. This
38709 fixes a warning reported by gcc 4.4.
38711 * kernel/disk.c (grub_disk_read): Use void pointer for the
38713 (grub_disk_write): Use const void pointer for the buffer.
38714 Adjust all callers. Remove unnecessary casts.
38716 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
38718 * util/i386/pc/grub-install.in: Update copyright year.
38720 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38724 * commands/gptsync.c: new file
38725 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
38726 (gptsync_mod_SOURCES): new variable
38727 (gptsync_mod_CFLAGS): likewise
38728 (gptsync_mod_LDFLAGS): likewise
38729 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
38731 (GRUB_PC_PARTITION_TYPE_HFS): likewise
38732 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
38733 * conf/i386-ieee1275.rmk: likewise
38734 * conf/i386-pc.rmk: likewise
38735 * conf/powerpc-ieee1275.rmk: likewise
38737 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
38741 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
38742 (grub_dl_ref): likewise
38744 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
38746 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
38747 split in two functions (one for msdos and one for gpt).
38749 2009-05-08 Pavel Roskin <proski@gnu.org>
38751 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
38754 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
38755 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
38756 Initialize them with -1. Add sanity check for bad1. Eliminate
38759 2009-05-08 David S. Miller <davem@davemloft.net>
38761 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
38763 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
38765 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
38768 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
38770 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38771 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
38773 2009-05-05 David S. Miller <davem@davemloft.net>
38775 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
38777 2009-05-05 Pavel Roskin <proski@gnu.org>
38779 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
38780 of grub_dl_ref() and grub_dl_unref().
38781 * commands/parttool.c: Remove preprocessor conditionals around
38782 grub_dl_ref() and grub_dl_unref().
38783 * fs/affs.c: Likewise.
38784 * fs/afs.c: Likewise.
38785 * fs/cpio.c: Likewise.
38786 * fs/ext2.c: Likewise.
38787 * fs/fat.c: Likewise.
38788 * fs/hfs.c: Likewise.
38789 * fs/hfsplus.c: Likewise.
38790 * fs/iso9660.c: Likewise.
38791 * fs/jfs.c: Likewise.
38792 * fs/minix.c: Likewise.
38793 * fs/ntfs.c: Likewise.
38794 * fs/reiserfs.c: Likewise.
38795 * fs/sfs.c: Likewise.
38796 * fs/udf.c: Likewise.
38797 * fs/ufs.c: Likewise.
38798 * fs/xfs.c: Likewise.
38799 * include/grub/dl.h: Likewise.
38800 * loader/xnu.c: Likewise.
38802 2009-05-04 Pavel Roskin <proski@gnu.org>
38804 * commands/acpi.c: Remove unused variable my_mod.
38805 * partmap/amiga.c: Likewise.
38806 * partmap/apple.c: Likewise.
38807 * partmap/gpt.c: Likewise.
38808 * partmap/pc.c: Likewise.
38809 * partmap/sun.c: Likewise.
38810 * term/gfxterm.c: Likewise.
38811 * term/i386/pc/vesafb.c: Likewise.
38812 * term/i386/pc/vga.c: Likewise.
38814 2009-05-04 David S. Miller <davem@davemloft.net>
38816 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
38817 pointer args to grub_ieee1275_get_property().
38819 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
38821 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
38822 devices, and do not traverse down under controller nodes.
38824 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
38825 (grub_ofdisk_open): Use it to un-escape "," characters.
38826 * kern/disk.c (find_part_sep): New.
38827 (grub_disk_open): Use it to find the first non-escaped ','
38828 character in the disk name.
38829 * util/ieee1275/devicemap.c (escape_of_path): New.
38830 (grub_util_emit_devicemap_entry): Use it.
38831 * util/sparc64/ieee1275/grub-install.in: Update script to
38832 strip partition specifiers properly by not triggering on
38833 '\' escaped ',' characters.
38835 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38837 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
38839 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
38841 (linux_vesafb_modes): Add a lot of additional modes to the list (based
38842 on documentation from Wikipedia).
38844 2009-05-04 Pavel Roskin <proski@gnu.org>
38846 * disk/ata.c: Spelling fixes.
38847 * disk/raid.c: Likewise.
38848 * disk/usbms.c: Likewise.
38849 * disk/dmraid_nvidia.c: Likewise.
38850 * kern/ieee1275/openfw.c: Likewise.
38851 * kern/ieee1275/init.c: Likewise.
38852 * kern/ieee1275/cmain.c: Likewise.
38853 * boot/i386/pc/cdboot.S: Likewise.
38854 * video/readers/png.c: Likewise.
38855 * video/i386/pc/vbe.c: Likewise.
38856 * fs/udf.c: Likewise.
38857 * fs/hfs.c: Likewise.
38858 * fs/reiserfs.c: Likewise.
38859 * efiemu/runtime/efiemu.c: Likewise.
38860 * efiemu/main.c: Likewise.
38861 * efiemu/mm.c: Likewise.
38862 * include/grub/elf.h: Likewise.
38863 * include/grub/xnu.h: Likewise.
38864 * include/grub/usbdesc.h: Likewise.
38865 * include/grub/usb.h: Likewise.
38866 * include/grub/script_sh.h: Likewise.
38867 * include/grub/lib/LzmaEnc.h: Likewise.
38868 * include/grub/efiemu/efiemu.h: Likewise.
38869 * include/grub/command.h: Likewise.
38870 * normal/menu.c: Likewise.
38871 * normal/main.c: Likewise.
38872 * normal/datetime.c: Likewise.
38873 * bus/usb/uhci.c: Likewise.
38874 * mmap/i386/uppermem.c: Likewise.
38875 * mmap/mmap.c: Likewise.
38876 * commands/acpi.c: Likewise.
38877 * commands/test.c: Likewise.
38878 * partmap/apple.c: Likewise.
38879 * font/font.c: Likewise.
38880 * loader/sparc64/ieee1275/linux.c: Likewise.
38881 * loader/macho.c: Likewise.
38882 * loader/i386/bsd_trampoline.S: Likewise.
38883 * loader/i386/bsd.c: Likewise.
38884 * loader/xnu.c: Likewise.
38885 * term/i386/pc/vesafb.c: Likewise.
38886 * term/usb_keyboard.c: Likewise.
38887 * util/resolve.c: Likewise.
38888 * util/getroot.c: Likewise.
38890 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38892 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
38894 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38896 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
38899 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38901 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
38902 parameter only available on BIOS.
38904 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38906 Removed wrong semicolon in declaration
38908 * grub/misc.h (grub_dprintf): remove semicolon
38910 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38912 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
38913 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
38914 is done by grub_cmd_linux() now).
38915 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
38916 restore video to text mode.
38917 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
38918 indicates lack of "vga=" parameter. "vga=0" is mapped to
38919 `GRUB_LINUX_VID_MODE_NORMAL'.
38921 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
38923 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
38924 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
38925 and `normal/script.c'. Add `kern/rescue_reader.c',
38926 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
38927 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
38928 `grub_script.tab.c'.
38930 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38931 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38932 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38933 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38934 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38936 * Makefile.in: Remove duplicated 2008 in Copyright line.
38938 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
38940 * util/misc.c (grub_util_warn): New function. Emits a warning
38942 * include/grub/util/misc.h (grub_util_warn): New declaration.
38944 * util/i386/pc/grub-install.in: Understand --force and pass it down
38947 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
38949 (setup): Improve error messages and add warnings when requested to
38950 install in odd layouts. Refuse to install using blocklists unless
38953 2009-05-04 martin f. krafft <madduck@madduck.net>
38955 * disk/raid.c (grub_raid_scan_device): Improve debug message.
38957 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38959 Updated copyright year
38961 * fs/hfsplus.c: updated copyright year
38963 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
38967 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
38968 in the space previously used by unused3
38969 (grub_hfsplus_uuid): new function
38970 (grub_hfsplus_fs): added uuid field
38972 2009-05-03 Pavel Roskin <proski@gnu.org>
38974 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
38975 suppress warnings. It's no longer needed.
38976 * disk/host.c: Likewise.
38977 * disk/ata_pthru.c: Likewise.
38978 * disk/loopback.c: Likewise.
38979 * hook/datehook.c: Likewise.
38980 * parttool/pcpart.c: Likewise.
38981 * fs/i386/pc/pxe.c: Likewise.
38982 * fs/ntfscomp.c: Likewise.
38983 * efiemu/main.c: Likewise.
38984 * mmap/mmap.c: Likewise.
38985 * commands/crc.c: Likewise.
38986 * commands/hexdump.c: Likewise.
38987 * commands/hdparm.c: Likewise.
38988 * commands/acpi.c: Likewise.
38989 * commands/echo.c: Likewise.
38990 * commands/minicmd.c: Likewise.
38991 * commands/blocklist.c: Likewise.
38992 * commands/memrw.c: Likewise.
38993 * commands/loadenv.c: Likewise.
38994 * commands/usbtest.c: Likewise.
38995 * commands/lsmmap.c: Likewise.
38996 * commands/boot.c: Likewise.
38997 * commands/parttool.c: Likewise.
38998 * commands/configfile.c: Likewise.
38999 * commands/search.c: Likewise.
39000 * commands/ieee1275/suspend.c: Likewise.
39001 * commands/cat.c: Likewise.
39002 * commands/i386/pc/pxecmd.c: Likewise.
39003 * commands/i386/pc/play.c: Likewise.
39004 * commands/i386/pc/halt.c: Likewise.
39005 * commands/i386/pc/vbeinfo.c: Likewise.
39006 * commands/i386/pc/vbetest.c: Likewise.
39007 * commands/lspci.c: Likewise.
39008 * commands/date.c: Likewise.
39009 * commands/handler.c: Likewise.
39010 * commands/ls.c: Likewise.
39011 * commands/test.c: Likewise.
39012 * commands/cmp.c: Likewise.
39013 * commands/efi/loadbios.c: Likewise.
39014 * commands/efi/fixvideo.c: Likewise.
39015 * commands/halt.c: Likewise.
39016 * commands/help.c: Likewise.
39017 * commands/reboot.c: Likewise.
39018 * hello/hello.c: Likewise.
39019 * script/sh/main.c: Likewise.
39020 * loader/xnu.c: Likewise.
39021 * term/terminfo.c: Likewise.
39022 * term/i386/pc/serial.c: Likewise.
39023 * term/usb_keyboard.c: Likewise.
39025 2009-05-03 David S. Miller <davem@davemloft.net>
39027 * normal/menu.c: Include grub/parser.h
39029 2009-05-03 Pavel Roskin <proski@gnu.org>
39031 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
39033 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
39034 Suggested by Javier Martín <lordhabbit@gmail.com>
39036 * util/i386/pc/grub-mkrescue.in: Allow for the case when
39037 efiemu??.o doesn't exist.
39038 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
39041 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
39043 FreeBSD 64-bit support
39045 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
39046 and loader/i386/bsd_trampoline.S
39047 (bsd_mod_ASFLAGS): new variable
39048 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
39049 (FREEBSD_MODTYPE_KERNEL64): likewise
39050 (grub_bsd64_trampoline_start): likewise
39051 (grub_bsd64_trampoline_end): likewise
39052 (grub_bsd64_trampoline_selfjump): likewise
39053 (grub_bsd64_trampoline_gdt): likewise
39054 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
39055 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
39056 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
39057 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
39058 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39060 * loader/i386/bsd_pagetable.c: new file
39061 * loader/i386/bsd_trampoline.S: likewise
39062 * loader/i386/bsd.c (ALIGN_QWORD): new macro
39063 (ALIGN_VAR): likewise
39064 (entry_hi): new variable
39065 (kern_end_mdofs): likewise
39066 (is_64bit): likewise
39067 (grub_freebsd_add_meta): use ALIGN_VAR
39068 (grub_e820_mmap): new declaration
39069 (grub_freebsd_add_mmap): new function
39070 (grub_freebsd_add_meta_module): support 64 bit kernels
39071 (grub_freebsd_list_modules): use ALIGN_VAR
39072 (gdt_descriptor): new declaration
39073 (grub_freebsd_boot): support 64 bit kernels
39074 (grub_bsd_elf64_hook): new function
39075 (grub_bsd_load_elf): support elf64
39077 2009-05-03 Bean <bean123ch@gmail.com>
39079 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
39080 after we get the result of if statement.
39082 2009-05-03 Bean <bean123ch@gmail.com>
39084 * Makefile.in (enable_efiemu): New variable.
39086 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
39088 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
39090 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
39091 path, add -mno-red-zone option.
39092 (efiemu64_s.o): Likewise.
39093 (efiemu64.o): Use macro $^ for source file.
39095 * configure.ac (--enable-efiemu): New option.
39097 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
39101 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
39102 (pkglib_MODULES): add xnu.mod
39103 (xnu_mod_SOURCES): new variable
39104 (xnu_mod_CFLAGS): likewise
39105 (xnu_mod_LDFLAGS): likewise
39106 (xnu_mod_ASFLAGS): likewise
39107 * conf/i386-pc.rmk: likewise
39108 * conf/x86_64-efi.rmk: likewise
39109 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
39111 * include/grub/i386/macho.h: new file
39112 * include/grub/i386/xnu.h: likewise
39113 * include/grub/macho.h: likewise
39114 * include/grub/machoload.h: likewise
39115 * include/grub/x86_64/macho.h: likewise
39116 * include/grub/x86_64/xnu.h: likewise
39117 * include/grub/xnu.h: likewise
39118 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
39119 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
39120 * loader/i386/efi/xnu.c: new file
39121 * loader/i386/pc/xnu.c: likewise
39122 * loader/i386/xnu.c: likewise
39123 * loader/i386/xnu_helper.S: likewise
39124 * loader/macho.c: likewise
39125 * loader/xnu.c: likewise
39126 * loader/xnu_resume.c: likewise
39127 * util/grub-dumpdevtree: likewise
39128 * include/grub/i386/pit.h: include grub/err.h
39129 (grub_pit_wait): export
39130 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
39132 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39136 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
39137 _linux_efi, linux_efi.
39138 new files in grub-emu
39139 new targets efiemu32.o and efiemu64.o
39140 * loader/linux_normal_efiemu.c: likewise
39141 * loader/i386/efi/linux.c: added preliminary efiemu support
39142 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
39144 * include/grub/autoefi.h: new file
39145 * include/grub/i386/efiemu.h: likewise
39146 * include/grub/i386/pc/efiemu.h: likewise
39147 * include/grub/efi/api.h: add LL suffix when necessary
39148 new definitions relating to tables
39149 * include/grub/efiemu/efiemu.h: new file
39150 * include/grub/efiemu/runtime.h: likewise
39151 * efiemu/prepare.c: likewise
39152 * efiemu/loadcore_common.c: likewise
39153 * efiemu/loadcore64.c: likewise
39154 * efiemu/runtime/efiemu.sh: likewise
39155 * efiemu/runtime/efiemu.S: likewise
39156 * efiemu/runtime/efiemu.c: likewise
39157 * efiemu/runtime/config.h: likewise
39158 * efiemu/prepare32.c: likewise
39159 * efiemu/main.c: likewise
39160 * efiemu/modules/pnvram.c: likewise
39161 * efiemu/modules/i386: likewise
39162 * efiemu/modules/i386/pc: likewise
39163 * efiemu/modules/acpi.c: likewise
39164 * efiemu/i386/pc/cfgtables.c: likewise
39165 * efiemu/i386/loadcore64.c: likewise
39166 * efiemu/i386/loadcore32.c: likewise
39167 * efiemu/prepare64.c: likewise
39168 * efiemu/loadcore.c: likewise
39169 * efiemu/symbols.c: likewise
39170 * efiemu/mm.c: likewise
39171 * efiemu/loadcore32.c: likewise
39173 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39177 * commands/acpi.c: new file
39178 * commands/i386/pc/acpi.c: likewise
39179 * commands/efi/acpi.c: likewise
39180 * include/grub/acpi.h: likewise
39181 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
39182 (acpi_mod_SOURCES): new variable
39183 (acpi_mod_CFLAGS): likewise
39184 (acpi_mod_LDFLAGS): likewise
39185 * conf/i386-efi.rmk: likewise
39186 * conf/x86_64-efi.rmk: likewise
39188 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39190 Missing part from mmap patch
39192 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
39193 (grub_mmap_unregister)
39194 (grub_mmap_free_and_unregister): use grub_mmap_register
39196 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39200 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
39201 * loader/i386/linux.c (find_mmap_size): likewise
39202 (allocate_pages): likewise
39203 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
39204 (grub_fill_multiboot_mmap): likewise
39205 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
39206 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
39207 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
39208 (OPENBSD_MMAP_RESERVED): likewise
39209 * include/grub/i386/pc/memory.h: include grub/memory.h
39210 (grub_lower_mem): removed
39211 (grub_upper_mem): likewise
39212 (GRUB_MACHINE_MEMORY_ACPI): new definition
39213 (GRUB_MACHINE_MEMORY_NVS): likewise
39214 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
39215 (GRUB_MACHINE_MEMORY_HOLE): likewise
39216 (grub_machine_mmap_register): likewise
39217 (grub_machine_mmap_unregister): likewise
39218 (grub_machine_get_upper): likewise
39219 (grub_machine_get_lower): likewise
39220 (grub_machine_get_post64): likewise
39221 * include/grub/i386/efi/memory.h: new file
39222 * include/grub/x86_64/efi/memory.h: likewise
39223 * include/grub/efi/memory.h: likewise
39224 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
39225 (mmap_mod_SOURCES): new variable
39226 (mmap_mod_LDFLAGS): likewise
39227 (mmap_mod_ASFLAGS): likewise
39228 * conf/i386-coreboot.rmk: likewise
39229 * conf/i386-ieee1275.rmk: likewise
39230 * conf/i386-efi.rmk: likewise
39231 * conf/x86_64-efi.rmk: likewise
39232 * include/grub/types.h (UINT_TO_PTR): new macro
39233 (PTR_TO_UINT32): likewise
39234 (PTR_TO_UINT64): likewise
39235 * include/grub/memory.h: new file
39236 * mmap/i386/pc/mmap.c: likewise
39237 * mmap/i386/pc/mmap_helper.S: likewise
39238 * mmap/i386/uppermem.c: likewise
39239 * mmap/mmap.c: likewise
39240 * mmap/efi/mmap.c: likewise
39241 * kern/i386/coreboot/init.c (grub_machine_init): don't use
39243 * kern/i386/pc/init.c (grub_lower_mem): removed variable
39244 (grub_upper_mem): likewise
39245 (grub_machine_init): don't use grub_upper_mem,
39246 make grub_lower_mem local
39247 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
39248 grub_mmap_iterate and grub_mmap_get_upper
39249 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
39251 2009-05-02 Bean <bean123ch@gmail.com>
39253 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
39254 script/sh/parser.y.
39255 (pkglib_MODULES): Add normal.mod and sh.mod.
39256 (normal_SOURCES): New variable.
39257 (normal_mod_CFLAGS): Likewise.
39258 (normal_mod_LDFLAGS): Likewise.
39259 (sh_mod_SOURCES): Likewise.
39260 (sh_mod_CFLAGS): Likewise.
39261 (sh_mod_LDFLAGS): Likewise.
39263 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
39264 script/sh/lexer.c_DEPENDENCIES.
39265 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
39266 kern/rescue_reader.c and kern/rescue_parser.c.
39267 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
39268 (grub_emu_SOURCES): Change source files.
39269 (pkglib_MODULES): Remove normal.mod.
39270 (normal_SOURCES): Removed.
39271 (normal_mod_CFLAGS): Likewise.
39272 (normal_mod_LDFLAGS): Likewise.
39273 * conf/i386-coreboot.rmk: Likewise.
39274 * conf/i386-efi.rmk: Likewise.
39275 * conf/i386-ieee1276.rmk: Likewise.
39276 * conf/powerpc-ieee1275.rmk: Likewise.
39277 * conf/sparc64-ieee1275.rmk: Likewise.
39278 * conf/x86_64-efi.rmk: Likewise.
39280 * include/grub/command.h (grub_command_execute): New inline function.
39282 * include/grub/menu.h (grub_menu_entry): Removed commands field.
39284 * include/grub/normal.h: Remove <grub/setjmp.h>.
39285 (grub_fs_module_list): Moved to normal/autofs.c.
39286 (grub_exit_env): Removed.
39287 (grub_command_execute): Likewise.
39288 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
39290 (read_command_list): New function declaration.
39291 (read_fs_list): Likewise.
39293 * include/parser.h: Include <grub/reader.h>.
39294 (grub_parser_split_cmdline): Change type of getline parameter.
39295 (grub_parser): New structure.
39296 (grub_parser_class): New variable.
39297 (grub_parser_execute): New function declaration.
39298 (grub_register_rescue_parser): Likewise.
39299 (grub_parser_register): New inline function.
39300 (grub_parser_unregister): Likewise.
39301 (grub_parser_get_current): Likewise.
39302 (grub_parser_set_current): Likewise.
39304 * include/grub/reader.h: New file.
39305 * kern/reader.c: Likewise.
39306 * kern/rescue_parser.c: Likewise.
39307 * kern/rescue_reader.c: Likewise.
39308 * normal/autofs.c: Likewise.
39309 * normal/dyncmd.c: Likewise.
39311 * include/grub/rescue.h: Removed.
39312 * normal/command.h: Likewise.
39314 * include/grub/script.h: Moved to ...
39315 * include/grub/script_sh.h: ... Moved here.
39316 * normal/execute.c: Moved to ...
39317 * script/sh/execute.c: ... Moved here.
39318 * normal/function.c: Moved to ...
39319 * script/sh/function.c: ... Moved here.
39320 * normal/lexer.c: Moved to ...
39321 * script/sh/lexer.c: ... Moved here.
39322 * normal/parser.y: Moved to ...
39323 * script/sh/parser.y: ... Moved here.
39324 * normal/script.c: Moved to ...
39325 * script/sh/script.c: ... Moved here.
39327 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
39329 (grub_exit_env): Removed.
39330 (fs_module_list): Moved to normal/autofs.c.
39331 (grub_file_getline): Don't handle comment here.
39332 (free_menu): Skip removed field entry->commands.
39333 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
39335 (read_config_file): Removed nested parameter, change getline function.
39336 (grub_enter_normal_mode): Removed.
39337 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
39338 (read_command_list): Likewise.
39339 (autoload_fs_module): Moved to normal/autofs.c.
39340 (read_fs_list): Likewise.
39341 (reader_nested): New variable.
39342 (grub_normal_execute): Run parser.sh to switch to sh parser.
39343 (grub_cmd_rescue): Removed.
39344 (cmd_normal): Removed.
39345 (grub_cmd_normal): Unregister itself at the beginning. Don't register
39347 (grub_cmdline_run): New function.
39348 (grub_normal_reader_init): Likewise.
39349 (grub_normal_read_line): Likewise.
39350 (grub_env_write_pager): Likewise.
39351 (cmdline): New variable.
39352 (grub_normal_reader): Likewise.
39353 (GRUB_MOD_INIT): Register normal reader and set as current, register
39354 pager hook, register normal command with grub_register_command_prio,
39355 so that it won't show up in command.lst.
39356 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
39357 grub_fs_autoload_hook.
39359 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
39360 (grub_menu_execute_entry): Replace grub_script_execute with
39361 grub_parser_execute, change parameter to grub_command_execute.
39363 * normal/menu_text.c: Remove <grub/script.h>.
39365 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
39366 and <grub/parser.h>.
39367 (run): Change editor_getline to use new parser interface. Change
39368 parameter to grub_command_execute.
39370 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
39371 <grub/reader.h> and <grub/parser.h>.
39372 (grub_load_normal_mode): Execute normal command.
39373 (grub_main): Call grub_register_core_commands,
39374 grub_register_rescue_parser and grub_register_rescue_reader, use
39375 grub_reader_loop to enter input loop.
39377 * kern/parser.c (grub_parser_split_cmdline): Change type of
39379 (grub_parser_class): New variable.
39380 (grub_parser_execute): New function.
39382 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
39383 * loader/multiboot2.c: Likewise.
39384 * loader/sparc64/ieee1275/linux.c: Likewise.
39386 * util/grub-emu.c (read_command_list): New dummy function.
39388 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39390 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
39391 count to 16 for CCISS and IDA.
39393 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
39395 * normal/menu_text.c (grub_wait_after_message): Print a newline
39396 after waiting for user input.
39398 * loader/i386/linux.c: Include `<grub/normal.h>'.
39399 (grub_cmd_linux): Improve the error message about `ask' mode, by
39400 waiting for user input so it's not missed (we can do this, since
39401 user requested interaction).
39403 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
39405 Added missing lst to grub-mkrescue
39407 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
39408 and ${input_dir}/parttool.lst
39410 2009-04-30 David S. Miller <davem@davemloft.net>
39412 * util/hostdisk.c (device_is_wholedisk): New function.
39413 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
39414 zero only if device_is_wholedisk() returns true.
39416 * util/hostdisk.c (convert_system_partition_to_system_disk):
39417 Handle virtual disk devices named /dev/vdiskX as found on sparc
39420 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
39421 lettered partition specifier is found, convert to numbered.
39423 2009-04-29 David S. Miller <davem@davemloft.net>
39425 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
39426 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39428 * normal/command.c: Add missing newline at end of file.
39430 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
39432 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
39433 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
39434 grub_ofdisk_read): Likewise, and deal similarly with the fact that
39435 ihandles have a 32-bit type but need to be stored in a "void *".
39437 2009-04-28 Pavel Roskin <proski@gnu.org>
39439 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
39440 not disk. Adjust all dependencies.
39441 (grub_fs_uuid_close): Use grub_device_close(), not
39444 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
39445 parent's partition, don't copy it by reference, as it gets freed
39448 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39450 Preboot hooks support
39452 * commands/boot.c (struct grub_preboot_t): new declaration
39453 (preboots_head): new variable
39454 (preboots_tail): likewise
39455 (grub_loader_register_preboot_hook): new function
39456 (grub_loader_unregister_preboot_hook): likewise
39457 (grub_loader_set): launch preboot hooks
39458 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
39459 (grub_loader_register_preboot_hook): new declaration
39460 (grub_loader_unregister_preboot_hook): likewise
39462 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
39466 * disk/scsi.c (grub_scsi_open): added missing cast when
39467 calling grub_dprintf
39469 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
39471 Bug and warning fixes
39473 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
39475 * commands/test.c (test_parse): fixed bug with file tests and corrected
39476 declaration of find_file
39478 2009-04-26 Pavel Roskin <proski@gnu.org>
39480 * Makefile.in: Don't install empty manual pages if help2man is
39481 missing. Use help2man option for output, not shell redirection.
39483 2009-04-26 David S. Miller <davem@davemloft.net>
39485 * util/grub-mkdevicemap.c (make_device_map): Add missing
39486 NESTED_FUNC_ATTR to process_device().
39488 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39492 * commands/test.c: rewritten to use bash-like test
39494 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
39496 Parttool autoloading and improvements
39498 * Makefile.in (pkglib_DATA): add parttool.lst
39499 (parttool.lst): new target
39500 * genmk.rb: generate parttool-*
39501 (CLEANFILES): add #{parttool}
39502 (PARTTOOLFILES): new variable
39503 * genparttoollist.sh: new file
39504 * parttool/pcpart.c (grub_pcpart_boot): more feedback
39505 (grub_pcpart_type): likewise
39506 * commands/parttool.c (helpmsg): new variable
39507 (grub_cmd_parttool): output help if not enough arguments are supplied
39509 (GRUB_MOD_INIT(parttool)): use helpmsg
39511 2009-04-24 David S. Miller <davem@davemloft.net>
39513 Avoiding opening same device multiple times in device iterator.
39515 * kern/device.c: (grub_device_iterate): Define struct part_ent,
39516 and use it to build a list of partitions in iterate_disk() and
39517 iterate_partition().
39519 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
39522 * disk/ieee1275/nand.c (grub_nand_iterate): Return
39523 grub_devalias_iterate() result instead of unconditional 0.
39524 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
39525 Also, capture hook return value, either directly or via
39526 grub_children_iterate(), and propagate to caller.
39527 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
39528 grub_children_iterate): Return value is now 'int' instead of
39530 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
39531 like a proper iterator, stopping when hooks return non-zero.
39532 (grub_devalias_iterate): Likewise.
39534 2009-04-23 David S. Miller <davem@davemloft.net>
39536 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
39538 2009-04-22 David S. Miller <davem@davemloft.net>
39540 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
39541 is larger than address_cells, use that value for address_cells too.
39543 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
39544 IEEE1275_MAX_PATH_LEN): Define.
39545 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
39546 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
39547 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
39548 'devtype'. Explicitly NULL terminate devalias expansion.
39550 * util/sparc64/ieee1275/misc.c: New file.
39551 * util/sparc64/ieee1275/grub-setup.c: New file.
39552 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
39553 * util/sparc64/ieee1275/grub-mkimage.c: New file.
39554 * util/sparc64/ieee1275/grub-install.in: New file.
39555 * util/ieee1275/ofpath.c: New file.
39556 * util/ieee1275/devicemap.c: New file.
39557 * util/devicemap.c: New file.
39558 * util/deviceiter.c: New file.
39559 * kern/sparc64/ieee1275/init.c: New file.
39560 * include/grub/util/ofpath.h: New file.
39561 * include/grub/util/deviceiter.h: New file.
39562 * util/grub-mkdevicemap.c: Include deviceiter.h.
39563 Implement using grub_util_emit_devicemap_entry and
39564 grub_util_iterate_devices.
39565 * conf/i386-corebook.rmk: Build util/deviceiter.c and
39566 util/devicemap.c into grub-mkdevicemap
39567 * conf/i386-efi.rmk: Likewise.
39568 * conf/i386-ieee1275.rmk: Likewise.
39569 * conf/i386-pc.rmk: Likewise.
39570 * conf/powerpc-ieee1275.rmk: Likewise.
39571 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
39572 images and installation utilities. Build kernel as image
39573 instead of as elf binary. Use common rules as much as possible.
39575 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
39577 Correct GPT definition
39579 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
39582 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
39584 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
39586 2009-04-19 David S. Miller <davem@davemloft.net>
39588 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
39589 (grub_rescue_cmd_linux): Rename to...
39590 (grub_cmd_linux): and fix prototype.
39591 (grub_rescue_cmd_initrd): Rename to...
39592 (grub_cmd_initrd): and fix prototype.
39593 (cmd_linux, cmd_initrd): New.
39594 (GRUB_MOD_INIT(linux)): Use grub_register_command().
39595 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
39597 2009-04-17 Pavel Roskin <proski@gnu.org>
39599 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
39601 (grub_ohci_transfer): Likewise.
39603 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
39605 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
39606 return without a value. Fix inconsistent indentation.
39608 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
39609 match struct grub_fs.
39611 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
39612 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
39613 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
39614 * commands/lspci.c (grub_lspci_iter): Likewise.
39616 2009-04-16 Bean <bean123ch@gmail.com>
39618 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
39621 2009-04-15 Pavel Roskin <proski@gnu.org>
39623 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
39624 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
39625 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
39628 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39630 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
39631 that no multiple data or metadata areas are supported and `Unknown
39634 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39636 Move loader out of the kernel
39638 * kern/loader.c: moved to ...
39639 * commands/boot.c: ... moved here
39640 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
39641 * commands/boot.c (grub_cmd_boot): moved here. All users updated
39642 * include/grub/kernel.h (grub_machine_fini): export
39643 * include/grub/loader.h (grub_loader_is_loaded): update declaration
39644 (grub_loader_set): likewise
39645 (grub_loader_unset): likewise
39646 (grub_loader_boot): likewise
39647 * conf/common.rmk: new module boot.mod
39648 (pkglib_MODULES): add boot.mod
39649 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
39650 (grub_emu_SOURCES): likewise
39651 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
39652 (grub_emu_SOURCES): likewise
39653 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
39654 (grub_emu_SOURCES): likewise
39655 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
39656 (grub_emu_SOURCES): likewise
39657 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
39658 (grub_emu_SOURCES): likewise
39659 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
39660 (grub_emu_SOURCES): likewise
39661 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
39662 (grub_emu_SOURCES): likewise
39664 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39666 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
39668 * kern/misc.c (grub_itoa): Removed function
39669 (grub_ltoa): likewise
39670 (grub_vsprintf): use grub_lltoa
39672 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39676 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
39677 * conf/i386-coreboot.rmk: likewise
39678 * conf/i386-ieee1275.rmk: likewise
39679 * conf/powerpc-ieee1275.rmk: likewise
39681 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
39683 * INSTALL: Add that `./autogen.sh' needs to be run before
39686 2009-04-14 Bean <bean123ch@gmail.com>
39688 * Makefile.in (pkglib_DATA): Add handler.lst.
39689 (handler.lst): New rule.
39691 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
39692 * conf/i386-coreboot.rmk: Likewise.
39693 * conf/i386-ieee1275.rmk: Likewise.
39694 * conf/i386-efi.rmk: Likewise.
39695 * conf/x86_64-efi.rmk: Likewise.
39696 * conf/powerpc-ieee1275.rmk: Likewise.
39697 * conf/sparc64-ieee1275.rmk: Likewise.
39699 * genhandlerlist.sh: New file.
39701 * genmk.rb: Add rules to generate handler.lst.
39703 * include/grub/normal.h (grub_file_getline): New function definition.
39704 (read_handler_list): Likewise.
39705 (free_handler_list): Likewise.
39707 * include/grub/term.h (grub_term_register_input): Add name parameter
39708 for auto generation of handler.lst.
39709 (grub_term_register_output): Likewise.
39711 * normal/handler.c: New file.
39713 * normal/main.c (get_line): Renamed to grub_file_getline.
39714 (read_config_file): Use the newly renamed grub_file_getline.
39715 (read_command_list): Likewise.
39716 (read_fs_list): Likewise.
39717 (grub_normal_execute): Call read_handler_list to parse handler.lst.
39718 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
39720 * term/efi/console.c (grub_console_init): Add name parameter for auto
39721 generation of handler.lst.
39722 * term/gfxterm.c: Likewise.
39723 * term/i386/pc/at_keyboard.c: Likewise.
39724 * term/i386/pc/console.c: Likewise.
39725 * term/i386/pc/serial.c: Likewise.
39726 * term/i386/pc/vesafb.c: Likewise.
39727 * term/i386/pc/vga.c: Likewise.
39728 * term/i386/pc/vga_text.c: Likewise.
39729 * term/ieee1275/ofconsole.c: Likewise.
39730 * term/usb_keyboard.c: Likewise.
39732 2009-04-14 Bean <bean123ch@gmail.com>
39734 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
39735 properly with null character.
39737 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39739 * configure: Remove.
39740 * config.h.in: Likewise.
39741 * stamp-h.in: Likewise.
39742 * DISTLIST: Likewise.
39743 * conf/common.mk: Likewise.
39744 * conf/i386-coreboot.mk: Likewise.
39745 * conf/i386-efi.mk: Likewise.
39746 * conf/i386-ieee1275.mk: Likewise.
39747 * conf/i386.mk: Likewise.
39748 * conf/i386-pc.mk: Likewise.
39749 * conf/powerpc-ieee1275.mk: Likewise.
39750 * conf/sparc64-ieee1275.mk: Likewise.
39751 * conf/x86_64-efi.mk: Likewise.
39753 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
39756 2009-04-14 John Stanley <jpsinthemix@verizon.net>
39757 David S. Miller <davem@davemloft.net>
39759 * util/hostdisk.c (make_device_name): Fix buffer length
39762 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
39764 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
39765 <sys/param.h> and <sys/sysctl.h>.
39766 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
39767 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
39768 opening the device and reset them afterwards.
39770 2009-04-13 Pavel Roskin <proski@gnu.org>
39772 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
39773 Reported by John Stanley <jpsinthemix@verizon.net>
39775 2009-04-13 Robert Millan <rmh@aybabtu.com>
39777 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
39778 that name for menuentries when appropriate.
39780 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39782 * util/grub.d/10_freebsd.in: Add a missing `fi'.
39784 2009-04-13 Robert Millan <rmh@aybabtu.com>
39786 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
39787 to Linux, simply abort telling the user it's no longer supported.
39789 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39791 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
39792 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
39793 `freebsd_loadenv' only when devices.hints exist.
39795 2009-04-13 Pavel Roskin <proski@gnu.org>
39797 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
39799 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
39801 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
39803 (grub_drive): Likewise.
39805 2009-04-13 David S. Miller <davem@davemloft.net>
39807 * kern/sparc64/ieee1275/ieee1275.c: New file.
39808 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
39809 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
39810 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
39811 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
39812 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
39813 grub_ieee1275_alloc_physmem): Declare new exported functions.
39815 * include/grub/sparc64/ieee1275/loader.h: New file.
39816 * include/grub/sparc64/ieee1275/memory.h: Likewise.
39817 * include/grub/sparc64/kernel.h: Likewise.
39818 * loader/sparc64/ieee1275/linux.c: Likewise.
39820 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
39821 (grub_fstest_SOURCES): Likewise.
39823 * util/hostdisk.c (make_device_name): Do not make any assumptions
39824 about the length of drive names.
39826 * kern/dl.c (grub_dl_load_file): Close file immediately when
39827 we are done using it.
39829 2009-04-12 David S. Miller <davem@davemloft.net>
39831 * kern/misc.c (grub_ltoa): Fix cast when handling negative
39832 values. Noticed by Pavel Roskin.
39834 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
39837 * genmk.rb: Add more flexible image type specification, also
39838 pass --strip-unneeded to objcopy.
39839 * conf/i386-pc.rmk: Use *_FORMAT.
39840 * conf/i386-pc.mk: Rebuilt.
39842 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
39843 (OFDISK_HASH_SZ): Define.
39844 (ofdisk_hash): New hash table.
39845 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
39846 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
39847 instead of device phandle which is not unique.
39849 * kern/sparc64/ieee1275/init.c: Delete, replace with...
39850 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
39851 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
39852 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
39853 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
39854 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
39855 GRUB_KERNEL_MACHINE_DATA_END): Define.
39856 (grub_kernel_image_size, grub_total_module_size): Declare.
39858 2009-04-12 Pavel Roskin <proski@gnu.org>
39860 * configure.ac: Change the logic when we check for target tools.
39861 Do it when the target is specified and it's different from the
39862 specified value of the host.
39864 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
39866 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
39867 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
39868 GNU/kFreeBSD. Check if a device is a character device. Use
39869 DIOCGMEDIASIZE to get the size.
39870 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
39871 support for GNU/kFreeBSD.
39872 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
39873 is a character device instead of a block device. Add support for
39874 FreeBSD device names.
39876 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
39877 is a character device instead of a block device.
39879 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
39880 is a character device instead of a block device.
39882 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
39884 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
39885 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
39886 FreeBSD. Check if a device is a character device. Use
39887 DIOCGMEDIASIZE to get the size.
39888 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
39889 support for FreeBSD.
39890 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
39891 is a character device instead of a block device. Add support for
39892 FreeBSD device names.
39894 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
39895 a character device instead of a block device.
39896 (grub_util_check_char_device): New function.
39898 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
39899 a character device instead of a block device.
39901 * include/grub/util/getroot.h (grub_util_check_char_device): New
39904 2009-04-11 David S. Miller <davem@davemloft.net>
39906 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
39908 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
39909 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
39910 function, if present.
39911 (__bswapdi2): Likewise.
39913 * include/grub/sparc64/ieee1275/boot.h: New file.
39914 * boot/sparc64/ieee1275/boot.S: Likewise.
39915 * boot/sparc64/ieee1275/diskboot.S: Likewise.
39917 * kern/misc.c (grub_ltoa): New function.
39918 (grub_vsprintf): Use it to format 'long' integers.
39920 2009-04-10 David S. Miller <davem@davemloft.net>
39922 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
39923 slots are of type grub_ieee1275_cell_t.
39924 (grub_nand_read): Likewise.
39925 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
39926 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
39927 macros are used to compare values in arg/ret block of the call.
39928 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
39929 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
39930 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
39931 grub_ieee1275_instance_to_path, grub_ieee1275_write,
39932 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
39933 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
39934 grub_ieee1275_close, grub_ieee1275_set_property,
39935 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
39936 grub_ieee1275_cell_t.
39937 * kern/ieee1275/openfw.c (grub_map): Likewise.
39938 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
39939 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
39941 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
39942 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
39943 (grub_devalias_iterate): Likewise.
39945 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
39949 * fs/ufs.c (INODE_NBLOCKS): new definition
39950 (struct grub_ufs_dirent): added fields for non-BSD dirents
39951 (grub_ufs_get_file_block): fixed double indirect handling
39952 (grub_ufs_lookup_symlink): use more robust way to determine whether
39954 (grub_ufs_find_file): support for non-BSD dirents
39955 (grub_ufs_dir): support for non-BSD dirents
39957 2009-04-10 Bean <bean123ch@gnail.com>
39959 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
39960 attribute, otherwise the size would be wrong for i386 platform.
39962 * include/grub/pci.h (grub_pci_read_word): New inline function.
39963 (grub_pci_read_byte): Likewise.
39964 (grub_pci_write): Likewise.
39965 (grub_pci_write_word): Likewise.
39966 (grub_pci_write_byte): Likewise.
39968 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
39970 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
39971 (find_framebuf): Scan pci to locate the frame buffer address.
39973 * commands/efi/fixvideo.c: New file.
39975 * commands/efi/loadbios.c: Likewise.
39977 * commands/memrw.c: Likewise.
39979 * util/grub-dumpbios.in: Likewise.
39981 * conf/common.rmk (grub-dumpbios): New utility.
39982 (pkglib_MODULES): New module memrw.mod.
39983 (memrw_mod_SOURCE): New macro.
39984 (memrw_mod_CFLAGS): Likewise.
39985 (memrw_mod_LDFLAGS): Likewise.
39987 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
39989 (loadbios_mod_SOURCE): New macro.
39990 (loadbios_mod_CFLAGS): Likewise.
39991 (loadbios_mod_LDFLAGS): Likewise.
39992 (fixvideo_mod_SOURCE): Likewise.
39993 (fixvideo_mod_CFLAGS): Likewise.
39994 (fixvideo_mod_LDFLAGS): Likewise.
39996 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
39998 (loadbios_mod_SOURCE): New macro.
39999 (loadbios_mod_CFLAGS): Likewise.
40000 (loadbios_mod_LDFLAGS): Likewise.
40001 (fixvideo_mod_SOURCE): Likewise.
40002 (fixvideo_mod_CFLAGS): Likewise.
40003 (fixvideo_mod_LDFLAGS): Likewise.
40005 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
40007 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
40009 2009-04-07 David S. Miller <davem@davemloft.net>
40011 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
40012 support for R_SPARC_OLO10 relocations. Fix compile warning for
40013 R_SPARC_WDISP30 case.
40014 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
40016 2009-04-06 Pavel Roskin <proski@gnu.org>
40018 * include/grub/misc.h (ARRAY_SIZE): New macro.
40019 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
40021 * loader/i386/linux.c (allocate_pages): Use free_pages().
40022 (grub_linux_unload): Don't use free_pages().
40023 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
40024 wrong index. Treat all other modes as text modes.
40025 (grub_cmd_linux): Initialize vid_mode unconditionally to
40026 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
40028 * commands/help.c (print_command_help): Use cmd->prio, not
40029 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
40031 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
40035 * parttool/pcpart.c: new file
40036 * commands/parttool.c: likewise
40037 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
40038 (parttool_mod_SOURCES): new variable
40039 (parttool_mod_CFLAGS): likewise
40040 (parttool_mod_LDFLAGS): likewise
40041 (pcpart_mod_SOURCES): likewise
40042 (pcpart_mod_CFLAGS): likewise
40043 (pcpart_mod_LDFLAGS): likewise
40044 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
40045 and parttool/pcpart.c
40046 * conf/i386-efi.rmk: likewise
40047 * conf/i386-ieee1275.rmk: likewise
40048 * conf/i386-pc.rmk: likewise
40049 * conf/powerpc-ieee1275.rmk: likewise
40050 * conf/sparc64-ieee1275.rmk: likewise
40051 * conf/x86_64-ieee1275.rmk: likewise
40053 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40055 Support for mtime and further expandability of dir command
40057 * include/grub/lib/datetime.h: moved to ...
40058 * include/grub/datetime.h: ... moved here and added
40059 declaration of grub_unixtime2datetime. All users updated
40060 * include/grub/fs.h: new syntax for dir and mtime functions in
40062 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
40063 and GRUB_FSHELP_FLAGS_MASK
40064 * commands/ls.c (grub_ls_list_files): Write mtime in long format
40065 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
40066 (grub_ext2_mtime): new function
40067 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
40068 (grub_hfsplus_mtime): new function
40069 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
40070 (GRUB_UFS_ATTR_FILE): likewise
40071 (GRUB_UFS_ATTR_LNK): likewise
40072 (struct grub_ufs_sblock): new fields mtime
40073 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
40075 (grub_ufs_dir): mtime support
40076 (grub_ufs_mtime): new function
40077 * fs/affs.c (grub_affs_dir): use new dir syntax
40078 * fs/afs.c (grub_afs_dir): likewise
40079 * fs/cpio.c (grub_cpio_dir): likewise
40080 * fs/fat.c (grub_fat_find_dir): likewise
40081 * fs/hfs.c (grub_hfs_dir): likewise
40082 * fs/iso9660.c (grub_iso9660_dir): likewise
40083 * fs/jfs.c (grub_jfs_dir): likewise
40084 * fs/minix.c (grub_minix_dir): likewise
40085 * fs/ntfs.c (grub_ntfs_dir): likewise
40086 * fs/reiserfs.c (grub_reiserfs_dir): likewise
40087 * fs/sfs.c (grub_sfs_dir): likewise
40088 * fs/xfs.c (grub_xfs_dir): likewise
40089 * util/hostfs.c (grub_hostfs_dir): likewise
40090 * lib/datetime.c: moved to ...
40091 * normal/datetime.c: ... moved here
40092 (grub_unixtime2datetime): new function
40093 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
40094 * normal/completion.c (iterate_dir): use new dir syntax
40095 * normal/misc.c (grub_normal_print_device_info): tell the
40096 last modification time of a volume
40097 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
40098 * conf/common.rmk: added lib/datetime.c to ls.mod
40099 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
40100 (normal_mod_SOURCES): likewise
40101 (datetime_mod_SOURCES): Removed lib/datetime.c
40102 * conf/i386-efi.rmk: likewise
40103 * conf/i386-ieee1275.rmk: likewise
40104 * conf/i386-pc.rmk: likewise
40105 * conf/powerpc-ieee1275.rmk: likewise
40106 * conf/sparc64-ieee1275.rmk: likewise
40107 * conf/x86_64-efi.rmk: likewise
40109 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
40111 Trim trailing spaces in FAT label and support mtools-like labels
40113 * fs/fat.c (grub_fat_iterate_dir): New function based
40114 on grub_fat_find_dir
40115 (grub_fat_find_dir): use grub_fat_iterate_dir
40116 (grub_fat_label): likewise
40118 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
40120 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
40122 remove extraneous kernel_elf_HEADERS
40124 2009-04-04 Bean <bean123ch@gnail.com>
40126 * include/grub/util/misc.h: Add dummy function fsync for mingw.
40128 * util/misc.c: Likewise.
40130 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40132 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
40133 instead of grub_printf.
40135 2009-04-03 Robert Millan <rmh@aybabtu.com>
40137 * loader/i386/linux.c (grub_linux_setup_video): Fill
40138 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
40139 values from `mode info' structure instead of hardcoded
40142 2009-04-01 Pavel Roskin <proski@gnu.org>
40144 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
40146 * genmk.rb: Likewise.
40147 * configure.ac: Likewise.
40149 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
40151 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
40152 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
40154 2009-04-01 David S. Miller <davem@davemloft.net>
40156 * normal/sparc64/setjmp.S: Fix setjmp implementation.
40157 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
40158 (grub_setjmp): Mark with 'returns_twice' attribute.
40159 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
40160 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
40161 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
40163 2009-04-01 Robert Millan <rmh@aybabtu.com>
40165 Reapply fix from 2008-07-28 which was accidentally reverted; also
40166 perform the same fix to a similar check in same function.
40168 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40169 with the same number are found, just use issue a warning with
40170 grub_dprintf(), as this error has been reported to be non-fatal.
40172 2009-03-31 Pavel Roskin <proski@gnu.org>
40174 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
40175 for cross-compilation.
40177 2009-03-30 Robert Millan <rmh@aybabtu.com>
40179 Fix i386-ieee1275 build.
40181 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
40182 Remove declaration.
40184 2009-03-30 Pavel Roskin <proski@gnu.org>
40186 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
40187 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
40188 zero-terminated, rely only on the strlen value. Fix comparison
40189 of strings differing in length.
40191 2009-03-30 Robert Millan <rmh@aybabtu.com>
40193 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
40194 checking for abi version. Improve error messages on BIOS to notify
40195 user about `linux16' command.
40197 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
40201 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
40202 in case of collision
40203 * disk/scsi.c (grub_scsi_open): free scsi in case of error
40205 2009-03-29 Robert Millan <rmh@aybabtu.com>
40207 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
40208 set `vid_mode' accordingly.
40209 (grub_linux_boot): Process `vid_mode' and set video mode.
40211 2009-03-29 Robert Millan <rmh@aybabtu.com>
40213 * util/grub.d/10_linux.in (linux_entry): New function.
40214 Factorize generation of Linux boot entries.
40216 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
40218 Make the format of Environment Block plain text. The boot loader
40219 part is not tested well yet.
40221 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
40223 (envblk): Likewise.
40224 (usage): Remove "info" and "clear". Add "unset". Update the
40225 description of "set", as this does not delete variables any
40227 (create_envblk_file): Complete rewrite.
40228 (open_envblk_file): Likewise.
40229 (cmd_info): Removed.
40230 (cmd_list): Likewise.
40231 (cmd_set): Likewise.
40232 (cmd_clear): Likewise.
40233 (list_variables): New function.
40234 (write_envblk): Likewise.
40235 (set_variables): Likewise.
40236 (unset_variables): Likewise.
40237 (main): Complete rewrite.
40239 * commands/loadenv.c (buffer): Removed.
40240 (envblk): Likewise.
40241 (open_envblk_file): New function.
40242 (read_envblk_file): Complete rewrite.
40243 (grub_cmd_load_env): Likewise.
40244 (grub_cmd_list_env): Likewise.
40245 (struct blocklist): New struct.
40246 (free_blocklists): New function.
40247 (check_blocklists): Likewise.
40248 (write_blocklists): Likewise.
40249 (grub_cmd_save_env): Complete rewrite.
40251 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
40252 a plain text signature.
40253 (GRUB_ENVBLK_MAXLEN): Removed.
40254 (struct grub_envblk): Complete rewrite.
40255 (grub_envblk_find): Removed.
40256 (grub_envblk_insert): Likewise.
40257 (grub_envblk_open): New prototype.
40258 (grub_envblk_set): Likewise.
40259 (grub_envblk_delete): Put const to VALUE.
40260 (grub_envblk_iterate): Put const to NAME and VALUE.
40261 (grub_envblk_close): New prototype.
40262 (grub_envblk_buffer): New inline function.
40263 (grub_envblk_size): Likewise.
40265 * lib/envblk.c: Include grub/mm.h.
40266 (grub_env_find): Removed.
40267 (grub_envblk_open): New function.
40268 (grub_envblk_close): Likewise.
40269 (escaped_value_len): Likewise.
40270 (find_next_line): Likewise.
40271 (grub_envblk_insert): Removed.
40272 (grub_envblk_set): New function.
40273 (grub_envblk_delete): Complete rewrite.
40274 (grub_envblk_iterate): Likewise.
40276 2009-03-28 Robert Millan <rmh@aybabtu.com>
40278 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
40279 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
40280 variables. Use 16-bit loader.
40281 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
40283 * kern/i386/loader.S (grub_linux_boot): Rename to ...
40284 (grub_linux16_boot): ... this. Update all users.
40285 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
40286 (grub_linux_boot): ... this. Update all users.
40288 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
40289 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
40290 commands to `linux16' and `initrd16'.
40291 (GRUB_MOD_FINI(linux)): Rename to ...
40292 (GRUB_MOD_FINI(linux16)): ... this.
40294 2009-03-24 Pavel Roskin <proski@gnu.org>
40296 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
40297 not just for compilation.
40299 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
40301 Move multiboot helper out of kernel
40303 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
40304 `loader/i386/multiboot_helper.S'.
40305 * conf/i386-coreboot.rmk: Likewise
40306 * conf/i386-ieee1275.rmk: Likewise
40308 * kern/i386/loader.S: Move multiboot helpers from here...
40309 * loader/i386/multiboot_helper.S: ...moved here
40310 * include/grub/i386/loader.h: Move declarations of multiboot
40311 helpers from here...
40312 * include/grub/i386/multiboot.h: ...moved here
40313 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
40315 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40317 * kern/env.c (grub_env_context_open): Added an argument to specify
40318 whether a new context inherits exported variables from current
40319 one. This is useful when making a sandbox to interpret a config
40321 All callers updated.
40323 * include/grub/env.h (grub_env_context_open): Updated the prototype.
40325 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40327 * kern/env.c (grub_env_context_close): Fix memory leaks.
40329 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
40331 * normal/main.c (grub_normal_execute): Added an argument
40332 BATCH to specify if an interactive interface should be provided
40333 after reading a config file.
40334 All callers updated.
40335 (read_command_list): Prevent being executed twice.
40336 (read_fs_list): Likewise.
40338 * include/grub/normal.h (grub_normal_execute): Updated the
40341 2009-03-22 Pavel Roskin <proski@gno.org>
40343 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
40345 * kern/i386/pc/startup.S: Likewise.
40346 * kern/i386/efi/startup.S: Likewise.
40347 * kern/i386/ieee1275/startup.S: Likewise.
40348 * kern/i386/coreboot/startup.S: Likewise.
40349 * kern/x86_64/efi/startup.S: Likewise.
40351 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
40352 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
40353 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
40355 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
40357 Bugfixes in multiboot for bugs uncovered by solaris kernel.
40359 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
40361 Use vaddr of correct segment for entry_point.
40363 2009-03-21 Bean <bean123ch@gmail.com>
40365 * commands/blocklist.c: Add include file <grub/command.h>, remove
40366 <grub/normal.h> and <grub/arg.h>.
40367 (grub_cmd_blocklist): Use the new command interface.
40368 (GRUB_MOD_INIT): Likewise.
40369 (GRUB_MOD_FINI): Likewise.
40370 * commands/boot.c: Likewise.
40371 * commands/cat.c: Likewise.
40372 * commands/cmp.c: Likewise.
40373 * commands/configfile.c: Likewise.
40374 * commands/crc.c: Likewise.
40375 * commands/echo.c: Likewise.
40376 * commands/halt.c: Likewise.
40377 * commands/handler.c: Likewise.
40378 * commands/hdparm.c: Likewise.
40379 * commands/help.c: Likewise.
40380 * commands/hexdump.c: Likewise.
40381 * commands/loadenv.c: Likewise.
40382 * commands/ls.c: Likewise.
40383 * commands/lsmmap.c: Likewise.
40384 * commands/lspci.c: Likewise.
40385 * commands/loadenv.c: Likewise.
40386 * commands/read.c: Likewise.
40387 * commands/reboot.c: Likewise.
40388 * commands/search.c: Likewise.
40389 * commands/sleep.c: Likewise.
40390 * commands/test.c: Likewise.
40391 * commands/usbtest.c: Likewise.
40392 * commands/videotest.c: Likewise.
40393 * commands/i386/cpuid.c: Likewise.
40394 * commands/i386/pc/halt.c: Likewise.
40395 * commands/i386/pc/play.c: Likewise.
40396 * commands/i386/pc/pxecmd.c: Likewise.
40397 * commands/i386/pc/vbeinfo.c: Likewise.
40398 * commands/i386/pc/vbetest.c: Likewise.
40399 * commands/ieee1275/suspend.c: Likewise.
40400 * disk/loopback.c: Likewise.
40401 * font/font_cmd.c: Likewise.
40402 * hello/hello.c: Likewise.
40403 * loader/efi/appleloader.c: Likewise.
40404 * loader/efi/chainloader.c: Likewise.
40405 * loader/i386/bsd.c: Likewise.
40406 * loader/i386/efi/linux.c: Likewise.
40407 * loader/i386/ieee1275/linux.c: Likewise.
40408 * loader/i386/linux.c: Likewise.
40409 * loader/i386/pc/chainloader.c: Likewise.
40410 * loader/i386/pc/linux.c: Likewise.
40411 * loader/powerpc/ieee1275/linux.c: Likewise.
40412 * loader/multiboot_loader.c: Likewise.
40413 * term/gfxterm.c: Likewise.
40414 * term/i386/pc/serial.c: Likewise.
40415 * term/terminfo.c: Likewise.
40417 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
40418 * term/i386/pc/vga.c: Likewise.
40419 * video/readers/jpeg.c: Likewise.
40420 * video/readers/png.c: Likewise.
40421 * video/readers/tga.c: Likewise.
40423 * util/grub-fstest (cmd_loopback): Removed.
40424 (cmd_blocklist): Likewise.
40425 (cmd_ls): Likewise.
40426 (grub_register_command): Likewise.
40427 (grub_unregister_command): Likewise.
40428 (execute_command): Use grub_command_find to locate command and execute
40431 * include/grub/efi/chainloader.h: Removed.
40432 * loader/efi/chainloader_normal.c: Likewise.
40433 * loader/i386/bsd_normal.c: Likewise.
40434 * loader/i386/pc/chainloader_normal.c: Likewise.
40435 * loader/i386/pc/multiboot_normal.c: Likewise.
40436 * loader/linux_normal.c: Likewise.
40437 * loader/multiboot_loader_normal.c: Likewise.
40438 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40440 * gencmdlist.sh: Scan new registration command grub_register_extcmd
40441 and grub_register_command_p1.
40443 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
40444 kern/command.c, lib/arg.c and commands/extcmd.c.
40445 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
40446 (minicmd_mod_SOURCES): New variable.
40447 (minicmd_mod_CFLAGS): Likewise.
40448 (minicmd_mod_LDFLAGS): Likewise.
40449 (extcmd_mod_SOURCES): Likewise.
40450 (extcmd_mod_CFLAGS): Likewise.
40451 (extcmd_mod_LDFLAGS): Likewise.
40452 (boot_mod_SOURCES): Removed.
40453 (boot_mod_CFLAGS): Likewise.
40454 (boot_mod_LDFLAGS): Likewise.
40456 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
40458 (kernel_img_HEADERS): Add command.h.
40459 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
40460 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
40462 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
40463 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
40464 remove the corresponding normal mode command.
40465 (normal_mod_SOURCES): Remove normal/arg.c.
40466 * conf/i386-coreboot.rmk: Likewise.
40467 * conf/i386-efi.rmk: Likewise.
40468 * conf/i386-ieee1275.rmk: Likewise.
40469 * conf/powerpc-ieee1275.rmk: Likewise.
40470 * conf/x86_64-efi.rmk: Likewise.
40472 * include/grub/arg.h: Move from here ...
40473 * include/grub/lib/arg.h: ... to here.
40475 * normal/arg.c: Move from here ...
40476 * lib/arg.c: ... to here.
40478 * commands/extcmd.c: New file.
40479 * commands/minicmd.c: Likewise.
40480 * include/grub/command.h: Likewise.
40481 * include/grub/extcmd.h: Likewise.
40482 * kern/command.c: Likewise.
40483 * kern/corecmd.c: Likewise.
40485 * kern/list.c (grub_list_iterate): Return int instead of void.
40486 (grub_list_insert): New function.
40487 (grub_prio_list_insert): Likewise.
40489 * kern/rescue.c (grub_rescue_command): Removed.
40490 (grub_rescue_command_list): Likewise.
40491 (grub_rescue_register_command): Likewise.
40492 (grub_rescue_unregister_command): Likewise.
40493 (grub_rescue_cmd_boot): Move to minicmd.c
40494 (grub_rescue_cmd_help): Likewise.
40495 (grub_rescue_cmd_info): Likewise.
40496 (grub_rescue_cmd_boot): Likewise.
40497 (grub_rescue_cmd_testload): Likewise.
40498 (grub_rescue_cmd_dump): Likewise.
40499 (grub_rescue_cmd_rmmod): Likewise.
40500 (grub_rescue_cmd_lsmod): Likewise.
40501 (grub_rescue_cmd_exit): Likewise.
40502 (grub_rescue_print_devices): Moved to corecmd.c.
40503 (grub_rescue_print_files): Likewise.
40504 (grub_rescue_cmd_ls): Likewise.
40505 (grub_rescue_cmd_insmod): Likewise.
40506 (grub_rescue_cmd_set): Likewise.
40507 (grub_rescue_cmd_unset): Likewise.
40508 (attempt_normal_mode): Use grub_command_find to get normal module.
40509 (grub_enter_rescue_mode): Use grub_register_core_commands to register
40510 commands, remove grub_rescue_register_command calls.
40512 * normal/command.c (grub_register_command): Removed.
40513 (grub_unregister_command): Likewise.
40514 (grub_command_find): Likewise.
40515 (grub_iterate_commands): Likewise.
40516 (rescue_command): Likewise.
40517 (export_command): Moved to corecmd.c.
40518 (set_command): Removed.
40519 (unset_command): Likewise.
40520 (insmod_command): Likewise.
40521 (rmmod_command): Likewise.
40522 (lsmod_command): Likewise.
40523 (grub_command_init): Likewise.
40525 * normal/completion.c (iterate_command): Use cmd->prio to check for
40527 (complete_arguments): Use grub_extcmd_t structure to find options.
40528 (grub_normal_do_completion): Change function grub_iterate_commands to
40529 grub_command_iterate.
40531 * normal/execute.c (grub_script_execute_cmd): No need to parse
40534 * normal/main.c (grub_dyncmd_dispatcher): New function.
40535 (read_command_list): Register unload commands as dyncmd.
40536 (grub_cmd_normal): Use new command interface, register rescue,
40537 unregister normal at entry, register normal, unregister rescue at exit.
40539 * include/grub/list.h (grub_list_test_t): New type.
40540 (grub_list_iterate): Return int instead of void.
40541 (grub_list_insert): New function.
40542 (GRUB_AS_NAMED_LIST_P): New macro.
40543 (GRUB_AS_PRIO_LIST): Likewise.
40544 (GRUB_AS_PRIO_LIST_P): Likewise.
40545 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
40546 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
40547 (grub_prio_list): New structure.
40548 (grub_prio_list_insert): New function.
40549 (grub_prio_list_remove): New inline function.
40551 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
40552 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
40553 (GRUB_COMMAND_FLAG_MENU): Likewise.
40554 (GRUB_COMMAND_FLAG_BOTH): Likewise.
40555 (GRUB_COMMAND_FLAG_TITLE): Likewise.
40556 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
40557 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
40558 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
40559 (grub_command): Likewise.
40560 (grub_register_command): Likewise.
40561 (grub_command_find): Likewise.
40562 (grub_iterate_commands): Likewise.
40563 (grub_command_init): Likewise.
40564 (grub_arg_parse): Likewise.
40565 (grub_arg_show_help): Likewise.
40567 * include/grub/rescue.h (grub_rescue_register_command): Removed.
40568 (grub_rescue_unregister_command): Likewise.
40570 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
40571 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
40572 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
40574 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
40575 grub_rescue_cmd_initrd.
40576 * include/grub/i386/loader.h: Likewise.
40577 * include/grub/x86_64/loader.h: Likewise.
40579 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
40581 2009-03-21 Bean <bean123ch@gmail.com>
40583 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
40584 instead of stat in mingw environment.
40586 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
40588 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
40590 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
40593 2009-03-21 Bean <bean123ch@gmail.com>
40595 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
40596 out of range error.
40598 2009-03-18 Michel Dänzer <michel@daenzer.net>
40600 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
40601 checking inode flags for EXT4_EXTENTS_FLAG.
40603 2009-03-18 Robert Millan <rmh@aybabtu.com>
40605 * loader/i386/linux.c: Include `<grub/video.h>' and
40606 `<grub/i386/pc/vbe.h>'..
40607 (grub_linux_setup_video): New function. Loosely based on the EFI one.
40608 (grub_linux32_boot): Attempt to configure video settings with
40609 grub_linux_setup_video().
40610 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
40611 to avoid grub_console_fini() which would step out of graphical mode
40614 2009-03-14 Robert Millan <rmh@aybabtu.com>
40616 Fix build on powerpc.
40617 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
40619 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
40621 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
40622 background image command.
40624 2009-03-12 Colin D Bennett <colin@gibibit.com>
40626 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
40627 (grub_gfxterm_putchar): Extract pairs of identical calls to
40628 draw_cursor out of conditional blocks.
40630 2009-03-11 Pavel Roskin <proski@gnu.org>
40632 * fs/hfs.c (grub_hfs_strncasecmp): New function.
40633 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
40635 2009-03-11 Robert Millan <rmh@aybabtu.com>
40637 * loader/i386/multiboot_elfxx.c
40638 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
40640 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
40642 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
40645 2009-03-11 Robert Millan <rmh@aybabtu.com>
40647 * loader/i386/multiboot.c (code_size): New variable.
40648 (grub_multiboot): Define offsets by adding to `code_size' rather
40649 than subtracting from `grub_multiboot_payload_size'. Provide
40650 4-byte alignment to MBI and others by increasing
40651 `boot_loader_name_length' appropriately.
40653 * loader/i386/multiboot_elfxx.c
40654 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
40656 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
40658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
40661 2009-03-08 Robert Millan <rmh@aybabtu.com>
40663 Make loader/i386/linux.c usable on i386-pc again.
40665 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
40667 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
40670 2009-03-07 Bean <bean123ch@gmail.com>
40672 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
40675 2009-03-06 Robert Millan <rmh@aybabtu.com>
40677 Fix display issue on terminals with screen size other than 80x25
40678 (e.g. gfxterm with resolution higher than 640x480).
40680 * normal/main.c (grub_normal_init_page): Display title text in a
40681 position relative to the center of the terminal instead of relying
40682 on a hardcoded offset.
40684 2009-03-04 Robert Millan <rmh@aybabtu.com>
40686 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
40689 * Makefile.in (host_kernel): New variable.
40690 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
40691 scripts instead of just the windows one.
40692 * configure.ac: Initialize and AC_SUBST `host_kernel'.
40694 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40696 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
40698 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40699 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40700 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
40701 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40702 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40703 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40705 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40707 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
40708 or if there's no space for the disk label and print the partition number on a
40711 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
40713 * util/misc.c: Include <time.h>.
40714 (grub_millisleep): New function.
40716 2009-03-04 Bean <bean123ch@gmail.com>
40718 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
40719 another option -mno-red-zone.
40721 * commands/handler.c: Change module description.
40723 * kern/handler.c: Add missing space at the end of description line.
40725 * kern/list.c: Likewise.
40727 2009-03-03 Robert Millan <rmh@aybabtu.com>
40729 Move more components to the relocation area, and fix mbi pointer
40730 handling to use the destination rather than the origin (thanks to
40731 Vladimir Serbinenko for spotting).
40733 * loader/i386/multiboot.c (mbi_dest): New variable.
40734 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
40735 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
40738 2009-03-01 Bean <bean123ch@gmail.com>
40740 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
40741 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
40742 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
40743 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
40745 * loader/i386/efi/linux.c (acpi_guid): New variable.
40746 (acpi_guid): Likewise.
40747 (EBDA_SEG_ADDR): New constant.
40748 (LOW_MEM_ADDR): Likewise.
40749 (FAKE_EBDA_SEG): Likewise.
40750 (fake_bios_data): New function.
40751 (grub_linux_boot): Call fake_bios_data.
40753 2009-03-01 Bean <bean123ch@gmail.com>
40755 * commands/terminal.c: Removed.
40757 * commands/handler.c: New file.
40759 * include/grub/list.h: Likewise.
40761 * include/grub/handler.h: Likewise.
40763 * kern/list.c: Likewise.
40765 * kern/handler.c: Likewise.
40767 * kern/term.h: Include header file <grub/handler.h>.
40768 (grub_term_input): Move next field to the beginning.
40769 (grub_term_output): Likewise.
40770 (grub_term_input_class): New variable.
40771 (grub_term_output_class): Likewise.
40772 (grub_term_register_input): Changed to inline function.
40773 (grub_term_register_output): Likewise.
40774 (grub_term_unregister_input): Likewise.
40775 (grub_term_unregister_output): Likewise.
40776 (grub_term_set_current_input): Likewise.
40777 (grub_term_set_current_output): Likewise.
40778 (grub_term_get_current_input): Likewise.
40779 (grub_term_get_current_output): Likewise.
40780 (grub_term_iterate_input): Removed.
40781 (grub_term_iterate_output): Likewise.
40783 * kern/term.c (grub_term_list_input): Removed.
40784 (grub_term_list_output): Likewise.
40785 (grub_term_input_class): New variable.
40786 (grub_term_output_class): Likewise.
40787 (grub_cur_term_input): Change variable as macro.
40788 (grub_cur_term_output): Likewise.
40789 (grub_term_register_input): Removed.
40790 (grub_term_register_output): Likewise.
40791 (grub_term_unregister_input): Likewise.
40792 (grub_term_unregister_output): Likewise.
40793 (grub_term_set_current_input): Likewise.
40794 (grub_term_set_current_output): Likewise.
40795 (grub_term_iterate_input): Likewise.
40796 (grub_term_iterate_output): Likewise.
40797 (grub_term_get_current_input): Likewise.
40798 (grub_term_get_current_output): Likewise.
40800 * util/grub-editenv.c: Include header file <grub/handler.h>.
40801 (grub_term_get_current_input): Removed.
40802 (grub_term_get_current_output): Likewise.
40803 (grub_term_input_class): New variable.
40804 (grub_term_output_class): Likewise.
40806 * util/grub-fstest.c (grub_term_get_current_input): Removed.
40807 (grub_term_get_current_output): Likewise.
40808 (grub_term_input_class): New variable.
40809 (grub_term_output_class): Likewise.
40811 * util/grub-probe.c (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/i386/pc/grub-setup.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 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
40822 (terminal_mod_SOURCES): Likewise.
40823 (terminal_mod_CFLAGS): Likewise.
40824 (terminal_mod_LDFLAGS): Likewise.
40826 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
40828 (kernel_img_SOURCES): Add list.c and handler.c.
40829 (kernel_img_HEADERS): Add list.h and handler.h.
40831 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40833 (kernel_mod_SOURCES): Add list.c and handler.c.
40834 (kernel_mod_HEADERS): Add list.h and handler.h.
40836 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
40838 (kernel_elf_SOURCES): Add list.c and handler.c.
40839 (kernel_elf_HEADERS): Add list.h and handler.h.
40841 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
40843 (kernel_elf_SOURCES): Add list.c and handler.c.
40844 (kernel_elf_HEADERS): Add list.h and handler.h.
40846 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
40848 (kernel_mod_SOURCES): Add list.c and handler.c.
40849 (kernel_mod_HEADERS): Add list.h and handler.h.
40851 * conf/powerpc-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 2009-02-27 Robert Millan <rmh@aybabtu.com>
40858 Factorize elf32 / elf64 code in Multiboot loader. This will
40859 prevent it from getting out of sync again.
40861 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
40862 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
40863 grub_multiboot_load_elf64): Move from here ...
40864 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
40865 grub_multiboot_load_elf): ... to here (new file).
40867 2009-02-27 Robert Millan <rmh@aybabtu.com>
40869 * util/grub.d/10_linux.in: Rename "single-user mode" to
40872 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
40874 Don't leak in SCSI code.
40875 * disk/scsi.c (grub_scsi_close): free `scsi'.
40877 2009-02-27 Robert Millan <rmh@aybabtu.com>
40879 * loader/i386/pc/multiboot.c: Move from here ...
40880 * loader/i386/multiboot.c: ... to here. Update all users.
40882 2009-02-27 Robert Millan <rmh@aybabtu.com>
40884 Patch from Alexandre Bique <bique.alexandre@gmail.com>
40885 * util/i386/pc/grub-setup.c (setup): Fix directory path.
40887 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
40889 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
40892 2009-02-27 Robert Millan <rmh@aybabtu.com>
40894 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
40895 `0x' qualifier as 0 when base is specified as parameter).
40897 2009-02-24 Bean <bean123ch@gmail.com>
40899 * configure.ac: Check for -mcmodel=large in x86_64 target.
40901 * include/grub/efi/api.h (efi_call_10): New macro.
40902 (efi_wrap_10): New function.
40904 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
40905 (GRUB_PE32_REL_BASED_HIGH): Likewise.
40906 (GRUB_PE32_REL_BASED_LOW): Likewise.
40907 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
40908 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
40909 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
40910 (GRUB_PE32_REL_BASED_SECTION): Likewise.
40911 (GRUB_PE32_REL_BASED_REL): Likewise.
40912 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
40913 (GRUB_PE32_REL_BASED_DIR64): Likewise.
40914 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
40916 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
40919 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
40920 (efi_wrap_10): New function.
40922 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
40924 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
40925 MB/MBP model (NV chipset).
40926 (devdata_devs): Add devpath_5 to the list.
40928 * load/i386/efi/linux.c (video_base): Remove variable.
40929 (RGB_MASK): New macro.
40930 (RGB_MAGIC): Likewise.
40931 (LINE_MIN): Likewise.
40932 (LINE_MAX): Likewise.
40933 (FBTEST_STEP): Likewise.
40934 (FBTEST_COUNT): Likewise.
40935 (fb_list): New variable.
40936 (grub_find_video_card): Remove function.
40937 (find_framebuf): New function.
40938 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
40941 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
40942 problem for x86_64.
40944 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
40946 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
40948 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
40951 2009-02-22 Robert Millan <rmh@aybabtu.com>
40953 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
40954 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
40955 in our relocation, instead of using it directly from heap. Also
40956 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
40958 2009-02-21 Robert Millan <rmh@aybabtu.com>
40960 Implement USB keyboard support (based on patch by Marco Gerards)
40962 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
40963 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
40964 (usb_keyboard_mod_LDFLAGS): New variables.
40966 * term/usb_keyboard.c: New file.
40968 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
40970 Corrected wrong declaration
40972 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
40974 2009-02-14 Christian Franke <franke@computer.org>
40976 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
40977 (grub_lspci_iter): Print class code and programming interface byte.
40979 2009-02-14 Christian Franke <franke@computer.org>
40981 * gendistlist.sh: Ignore `.svn' directories.
40983 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
40985 * fs/fat.c: Add 2009 to Copyright line.
40987 2009-02-14 Christian Franke <franke@computer.org>
40989 * commands/hdparm.c: New file. Provides `hdparm' command
40990 which sends ATA commands via grub_disk_ata_pass_through ().
40992 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
40994 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
40995 and <grub/cpu/io.h> to include/grub/ata.h.
40996 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
40997 (GRUB_CDROM_SECTOR_SIZE): Remove.
40998 (GRUB_ATA_*): Move to include/grub/ata.h.
40999 (GRUB_ATAPI_*): Likewise.
41000 (enum grub_ata_commands): Likewise.
41001 (enum grub_ata_timeout_milliseconds): Likewise.
41002 (struct grub_ata_device): Likewise.
41003 (grub_ata_regset): Likewise.
41004 (grub_ata_regget): Likewise.
41005 (grub_ata_regset2): Likewise.
41006 (grub_ata_regget2): Likewise.
41007 (grub_ata_check_ready): Likewise.
41008 (grub_ata_wait_not_busy): Remove static, exported in
41009 include/grub/ata.h.
41010 (grub_ata_wait_drq): Likewise.
41011 (grub_ata_pio_read): Likewise.
41013 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
41014 function for hdparm.mod.
41016 * include/grub/ata.h: New file, contains declarations from
41018 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
41020 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
41021 (grub_disk_ata_pass_through): New exported variable.
41023 * kern/disk.c (grub_disk_ata_pass_through): New variable.
41025 2009-02-13 Colin D Bennett <colin@gibibit.com>
41027 Support multiple fallback entries, and provide an API to support
41028 executing default+fallback menu entries. Renamed the `terminal' menu
41031 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
41032 variable declaration.
41033 (grub_menu_execute_callback): New structure declaration.
41034 (grub_menu_execute_callback_t): New typedef.
41035 (grub_menu_execute_with_fallback): New function declaration.
41036 (grub_menu_get_entry): Likewise.
41037 (grub_menu_get_timeout): Likewise.
41038 (grub_menu_set_timeout): Likewise.
41040 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
41042 * normal/menu.c (grub_wait_after_message): Moved to
41043 `normal/menu_text.c'.
41044 (draw_border): Likewise.
41045 (print_message): Likewise.
41046 (print_entry): Likewise.
41047 (print_entries): Likewise.
41048 (grub_menu_init_page): Likewise.
41049 (get_entry_number): Likewise.
41050 (print_timeout): Likewise.
41051 (run_menu): Likewise.
41052 (grub_menu_execute_entry): Likewise.
41053 (show_text_menu): Likewise.
41054 (get_and_remove_first_entry_number): New function.
41055 (grub_menu_execute_with_fallback): Likewise.
41056 (get_entry): Renamed to ...
41057 (grub_menu_get_entry): .. this and made it global.
41058 (get_timeout): Renamed to ...
41059 (grub_menu_get_timeout): ... this and made it global.
41060 (set_timeout): Renamed to ...
41061 (grub_menu_set_timeout): ... this and made it global.
41062 (grub_normal_terminal_menu_viewer): Renamed to ...
41063 (grub_normal_text_menu_viewer): ... this.
41065 * normal/menu_text.c: New file. Extracted text-menu-specific code
41066 from normal/menu.c.
41068 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
41069 (normal_mod_SOURCES): Likewise.
41071 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41072 (normal_mod_SOURCES): Likewise.
41074 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41075 (normal_mod_SOURCES): Likewise.
41077 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
41078 (normal_mod_SOURCES): Likewise.
41080 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41081 (normal_mod_SOURCES): Likewise.
41083 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41084 (normal_mod_SOURCES): Likewise.
41086 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41087 (normal_mod_SOURCES): Likewise.
41089 2009-02-11 Robert Millan <rmh@aybabtu.com>
41091 * util/grub.d/00_header.in: Update old reference to `font' command.
41093 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
41095 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
41097 Based on patch from Javier Martín.
41099 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41101 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
41102 to avoid false positives with FAT.
41103 (grub_fstest_SOURCES): Likewise.
41104 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41105 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41107 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41108 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41109 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41111 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
41113 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
41114 bpb.version_specific.fat12_or_fat16.fstype and
41115 bpb.version_specific.fat32.fstype.
41117 2009-02-08 Robert Millan <rmh@aybabtu.com>
41119 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
41121 2009-02-08 Robert Millan <rmh@aybabtu.com>
41123 * Makefile.in (host_os, host_cpu): New variables.
41124 (target_os): Remove. Update all users.
41126 2009-02-08 Marco Gerards <marco@gnu.org>
41128 * Makefile.in (enable_grub_emu_usb): New variable.
41129 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
41130 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
41131 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
41132 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
41133 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
41134 `usbtest.mod' and `usbms.mod'.
41135 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
41136 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
41137 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
41138 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
41139 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
41142 * disk/usbms.c: New file.
41144 * include/grub/usb.h: Likewise.
41146 * include/grub/usbtrans.h: Likewise.
41148 * include/grub/usbdesc.h: Likewise.
41150 * bus/usb/usbtrans.c: Likewise.
41152 * bus/usb/ohci.c: Likewise.
41154 * bus/usb/uhci.c: Likewise.
41156 * bus/usb/usbhub.c: Likewise.
41158 * bus/usb/usb.c: Likewise.
41160 * commands/usbtest.c: Likewise.
41162 * util/usb.c: Likewise.
41164 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
41166 * configure.ac: Test for libusb presence.
41168 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
41170 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
41172 * kern/mm.c: Add more comments.
41174 2009-02-08 Robert Millan <rmh@aybabtu.com>
41176 Patch from Javier Martín.
41177 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
41178 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
41180 2009-02-08 Robert Millan <rmh@aybabtu.com>
41182 * fs/cpio.c: Split tar functionality to ...
41183 * fs/tar.c: ... here (new file). Update all users.
41185 2009-02-07 Robert Millan <rmh@aybabtu.com>
41187 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
41188 backward-incompatible features.
41190 Based on patch from Javier Martín, with some adjustments.
41192 2009-02-07 Michael Scherer <misc@mandriva.org>
41194 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
41196 2009-02-07 Robert Millan <rmh@aybabtu.com>
41198 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
41199 position of `disk/lvm.c' to ensure grub_init_all() always picks it
41200 after the RAID stuff.
41202 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
41204 Fixes problem when running vbetest command as reported by
41205 Vladimir Serbinenko <phcoder@gmail.com>.
41207 * (grub_vbe_set_video_mode): Fixed problem with text modes.
41209 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
41211 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
41212 /dev/md/NpN style mdraid devices.
41214 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41216 * util/unifont2pff.rb: Remove.
41218 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41220 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
41223 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
41225 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
41226 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
41227 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
41228 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
41229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41230 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41231 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41233 2009-02-02 Christian Franke <franke@computer.org>
41235 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
41237 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
41239 * INSTALL: Note that we now require at least autoconf 2.59 and
41240 that LZO is optional.
41242 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41244 Base on patch on bug #24154 created by Tomas Tintera
41245 <trosos@seznam.cz>.
41247 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
41249 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
41251 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
41252 <bero@arklinux.org>.
41254 * normal/parser.y (script_init): Add missing semicolon.
41256 2009-01-31 Colin D Bennett <colin@gibibit.com>
41258 * normal/main.c: Add include to grub/menu_viewer.h.
41259 (free_menu_entry_classes): Added.
41260 (grub_normal_menu_addentry): Added class property handling.
41261 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
41262 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
41264 * normal/menu_viewer.c: New file.
41266 * normal/menu.c (run_menu_entry): Renamed to ...
41267 (grub_menu_execute_entry): ... this and made it as global.
41268 (grub_menu_run): Renamed to ...
41269 (show_text_menu): ... this and made it local.
41270 (show_text_menu): Adapt to new function names.
41271 (grub_normal_terminal_menu_viewer): New global variable.
41273 * include/grub/menu.h: New file.
41275 * include/grub/menu_viewer.h: New file.
41277 * include/grub/normal.h: Added include to grub/menu.h.
41278 (grub_menu_entry): Moved to include/grub/menu.h.
41279 (grub_menu_entry_t): Likewise.
41280 (grub_menu): Likewise.
41281 (grub_menu_t): Likewise.
41282 (grub_normal_terminal_menu_viewer): Added.
41283 (grub_menu_execute_entry): Likewise.
41284 (grub_menu_run): Removed.
41286 * DISTLIST: Added include/grub/menu.h.
41287 Added include/grub/menu_viewer.h.
41288 Added normal/menu_viewer.c.
41290 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
41292 * normal/execute.c (grub_script_execute_menuentry): Changed to use
41293 arglist for menutitle arguments.
41295 * normal/main.c (grub_normal_menu_addentry): Likewise.
41297 * normal/parser.y (menuentry): Likewise.
41299 * normal/script.c (grub_script_create_cmdmenu): Likewise.
41301 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
41302 (grub_script_create_cmdmenu): Likewise.
41304 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
41306 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
41309 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
41311 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
41313 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
41315 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41317 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41319 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
41321 2009-01-30 Christian Franke <franke@computer.org>
41323 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
41324 in option help text.
41326 2009-01-27 Pavel Roskin <proski@gnu.org>
41328 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
41330 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41332 * commands/lsmmap.c: Add include to grub/machine/memory.h.
41334 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
41336 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
41337 unregister function.
41339 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
41341 * disk/scsi.c (grub_scsi_read): Fix sign problem.
41343 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
41345 * util/grub-mkfont.c (usage): Fix typo.
41347 * util/elf/grub-mkimage.c (load_modules): Fix warning.
41349 2009-01-26 Daniel Mierswa <impulze@impulze.org>
41351 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
41353 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
41355 * kern/misc.c (grub_strcasecmp): New function.
41356 (grub_strcasecmp): Use grub_size_t instead of int for length.
41358 * include/grub/misc.h: Update function prototypes.
41360 2009-01-26 Robert Millan <rmh@aybabtu.com>
41362 * configure.ac: Fix cross-compilation check.
41364 2009-01-22 Christian Franke <franke@computer.org>
41366 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
41367 (precision) digit string. Allow `.format2' without `format1' (width).
41368 Limit input chars for `%s' output to `format2' if specified. This is
41369 compatible with standard printf ().
41371 2009-01-22 Christian Franke <franke@computer.org>
41373 * disk/ata.c (grub_ata_wait_status): Replace by ...
41374 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
41375 other status bits may be invalid while BSY is asserted.
41376 (grub_ata_check_ready): New function.
41377 (grub_ata_cmd): Removed.
41378 (grub_ata_wait_drq): New function.
41379 (grub_ata_strncpy): Remove inline.
41380 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
41381 and error check now done by grub_ata_wait_drq ().
41382 (grub_ata_pio_write): Likewise.
41383 (grub_atapi_identify): Set DEV before check for !BSY. Use
41384 grub_ata_wait_drq () to wait for data.
41385 (grub_ata_device_initialize): Add status register check to
41386 detect missing SATA slave devices. Add debug messages.
41387 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
41388 (grub_atapi_packet): Set DEV before check for !BSY. Replace
41389 transfer loop by grub_ata_pio_write ().
41390 (grub_ata_identify): Set DEV before check for !BSY. Use
41391 grub_ata_wait_drq () to wait for data.
41392 (grub_ata_setaddress): Set DEV before check for !BSY.
41393 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
41394 read/write in one loop. Fix invalid command on write. Fix incomplete
41395 command on (size % batch) == 0. Add missing error check after write of
41396 last block. Add debug messages.
41397 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
41399 2009-01-19 Christian Franke <franke@computer.org>
41401 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
41402 (GRUB_ATAPI_IREASON_*): Likewise.
41403 (grub_ata_pio_write): Fix timeout error return.
41404 (grub_atapi_identify): Add grub_ata_wait () after cmd.
41405 (grub_atapi_wait_drq): New function.
41406 (grub_atapi_packet): New parameter `size'.
41407 Use grub_atapi_wait_drq () and direct write instead of
41408 grub_ata_pio_write ().
41409 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
41410 reads the number of bytes requested by the device for each DRQ
41412 (grub_atapi_write): Remove old implementation, return not
41413 implemented instead.
41415 2009-01-19 Christian Franke <franke@computer.org>
41417 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
41418 of 512 to calculate data size.
41419 (grub_scsi_read12): Likewise.
41420 (grub_scsi_write10): Likewise.
41421 (grub_scsi_write12): Likewise.
41422 (grub_scsi_read): Adjust size according to blocksize.
41423 Add checks for invalid blocksize and unaligned transfer.
41425 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
41427 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
41429 * term/gfxterm.c (write_char): Fix background rendering for wide
41432 2009-01-19 Robert Millan <rmh@aybabtu.com>
41434 * config.guess: Update to latest version from config git.
41435 * config.sub: Likewise.
41437 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
41439 * Makefile.in: Change font compilation to use new grub-mkfont instead
41442 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
41443 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41444 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41445 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41446 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41447 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41448 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41449 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41450 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41452 2009-01-16 Christian Franke <franke@computer.org>
41454 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
41455 (enum grub_ata_timeout_milliseconds): New enum.
41456 (grub_ata_wait_status): Add parameter milliseconds.
41457 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
41458 recovery from timed-out commands.
41459 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
41460 return grub_errno instead of REG_ERROR.
41461 (grub_ata_pio_write): Add parameter milliseconds.
41462 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
41463 Pass milliseconds to grub_ata_wait_status () and
41464 grub_ata_pio_read ().
41465 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
41466 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
41467 grub_ata_wait_status (). Fix IDENTIFY timeout check.
41468 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
41469 It is not suitable for device detection, because DEV bit is ignored,
41470 the command may run too long, and not all devices set the signature
41472 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
41473 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
41474 Fix device selection, DEV bit must be set first to address the registers
41475 of the correct device.
41476 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
41477 grub_ata_pio_read/write ().
41478 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
41479 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
41481 2009-01-13 Carles Pina i Estany <carles@pina.cat>
41483 * util/grub-editenv.c (main): Use fseeko(), not fseek().
41485 2009-01-13 Bean <bean123ch@gmail.com>
41487 * util/grub-mkfont.c (write_font): forget to remove some debug code.
41489 2009-01-13 Bean <bean123ch@gmail.com>
41491 * Makefile.in: (enable_grub_mkfont): New variable.
41492 (freetype_cflags): Likewise.
41493 (freetype_libs): Likewise.
41495 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
41496 (grub_mkfont_SOURCES): New variable.
41497 (grub_mkfont_CFLAGS): Likewise.
41498 (grub_mkfont_LDFLAGS): Likewise.
41500 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
41501 library if `--enable-grub-mkfont' is requested.
41502 (enable_grub_mkfont): New variable.
41503 (freetype_cflags): Likewise.
41504 (freetype_libs): Likewise.
41506 * util/grub-mkfont.c: New file.
41508 2009-01-12 Christian Franke <franke@computer.org>
41510 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
41511 mode check. Fix setting of compat_use[].
41513 2009-01-10 Robert Millan <rmh@aybabtu.com>
41515 Update a few copyright years which we forgot to do in 2008 (only for
41516 files whose changes made in 2008 were copyright-significant)
41518 * Makefile.in: Add 2008 to Copyright line.
41519 * disk/ieee1275/ofdisk.c: Likewise.
41520 * disk/efi/efidisk.c: Likewise.
41521 * kern/dl.c: Likewise.
41522 * kern/sparc64/ieee1275/init.c: Likewise.
41523 * kern/mm.c: Likewise.
41524 * kern/efi/mm.c: Likewise.
41525 * boot/i386/pc/boot.S: Likewise.
41526 * genfslist.sh: Likewise.
41527 * fs/iso9660.c: Likewise.
41528 * fs/hfs.c: Likewise.
41529 * fs/jfs.c: Likewise.
41530 * fs/minix.c: Likewise.
41531 * fs/ufs.c: Likewise.
41532 * gensymlist.sh.in: Likewise.
41533 * genkernsyms.sh.in: Likewise.
41534 * include/grub/misc.h: Likewise.
41535 * include/grub/types.h: Likewise.
41536 * include/grub/symbol.h: Likewise.
41537 * include/grub/elf.h: Likewise.
41538 * include/grub/kernel.h: Likewise.
41539 * include/grub/disk.h: Likewise.
41540 * include/grub/dl.h: Likewise.
41541 * include/grub/i386/linux.h: Likewise.
41542 * include/grub/i386/pc/biosdisk.h: Likewise.
41543 * include/grub/efi/api.h: Likewise.
41544 * include/grub/efi/pe32.h: Likewise.
41545 * include/grub/util/misc.h: Likewise.
41546 * normal/execute.c: Likewise.
41547 * normal/arg.c: Likewise.
41548 * normal/completion.c: Likewise.
41549 * normal/lexer.c: Likewise.
41550 * normal/parser.y: Likewise.
41551 * normal/misc.c: Likewise.
41552 * commands/i386/pc/vbeinfo.c: Likewise.
41553 * commands/hexdump.c: Likewise.
41554 * commands/terminal.c: Likewise.
41555 * commands/ls.c: Likewise.
41556 * commands/help.c: Likewise.
41557 * partmap/pc.c: Likewise.
41558 * loader/efi/chainloader.c: Likewise.
41559 * loader/multiboot_loader.c: Likewise.
41560 * loader/i386/pc/multiboot2.c: Likewise.
41561 * term/efi/console.c: Likewise.
41562 * term/i386/pc/serial.c: Likewise.
41563 * util/lvm.c: Likewise.
41564 * util/console.c: Likewise.
41565 * util/i386/efi/grub-mkimage.c: Likewise.
41566 * util/raid.c: Likewise.
41568 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
41570 * commands/videotest.c: Removed include to grub/machine/memory.h.
41572 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
41573 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
41574 (video_mod_SOURCES): Removed.
41575 (video_mod_CFLAGS): Likewise.
41576 (video_mod_LDFLAGS): Likewise.
41577 (gfxterm_mod_SOURCES): Likewise.
41578 (gfxterm_mod_CFLAGS): Likewise.
41579 (gfxterm_mod_LDFLAGS): Likewise.
41580 (videotest_mod_SOURCES): Likewise.
41581 (videotest_mod_CFLAGS): Likewise.
41582 (videotest_mod_LDFLAGS): Likewise.
41583 (bitmap_mod_SOURCES): Likewise.
41584 (bitmap_mod_CFLAGS): Likewise.
41585 (bitmap_mod_LDFLAGS): Likewise.
41586 (tga_mod_SOURCES): Likewise.
41587 (tga_mod_CFLAGS): Likewise.
41588 (tga_mod_LDFLAGS): Likewise.
41589 (jpeg_mod_SOURCES): Likewise.
41590 (jpeg_mod_CFLAGS): Likewise.
41591 (jpeg_mod_LDFLAGS): Likewise.
41592 (png_mod_SOURCES): Likewise.
41593 (png_mod_CFLAGS): Likewise.
41594 (png_mod_LDFLAGS): Likewise.
41596 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
41597 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
41598 (video_mod_SOURCES): Added.
41599 (video_mod_CFLAGS): Likewise.
41600 (video_mod_LDFLAGS): Likewise.
41601 (videotest_mod_SOURCES): Likewise.
41602 (videotest_mod_CFLAGS): Likewise.
41603 (videotest_mod_LDFLAGS): Likewise.
41604 (bitmap_mod_SOURCES): Likewise.
41605 (bitmap_mod_CFLAGS): Likewise.
41606 (bitmap_mod_LDFLAGS): Likewise.
41607 (tga_mod_SOURCES): Likewise.
41608 (tga_mod_CFLAGS): Likewise.
41609 (tga_mod_LDFLAGS): Likewise.
41610 (jpeg_mod_SOURCES): Likewise.
41611 (jpeg_mod_CFLAGS): Likewise.
41612 (jpeg_mod_LDFLAGS): Likewise.
41613 (png_mod_SOURCES): Likewise.
41614 (png_mod_CFLAGS): Likewise.
41615 (png_mod_LDFLAGS): Likewise.
41616 (gfxterm_mod_SOURCES): Likewise.
41617 (gfxterm_mod_CFLAGS): Likewise.
41618 (gfxterm_mod_LDFLAGS): Likewise.
41620 * term/gfxterm.c: Removed include to grub/machine/memory.h,
41621 grub/machine/console.h.
41623 2009-01-04 Jerone Young <jerone@gmail.com>
41625 Make on screen instructions clearer
41627 Based on patch created by Jidanni <jidanni@jidanni.org>
41629 * normal/menu.c: print clearer instructions on the screen
41631 2009-01-02 Colin D Bennett <colin@gibibit.com>
41635 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
41636 build system and fixed gfxterm.c to work with different sized fonts.
41638 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
41640 * configure: Re-generated.
41642 * DISTLIST: Removed font/manager.c.
41644 Added font/font_cmd.c.
41646 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
41649 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
41651 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
41653 * kern/term.c: Changed users of grub_utf8_to_ucs4.
41655 * normal/menu.c: Likewise.
41657 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
41658 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
41660 * include/grub/font.h: Replaced with new file.
41662 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
41663 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
41664 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
41665 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
41666 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
41667 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
41668 fg_red, fg_green, fg_blue, fg_alpha.
41669 (grub_video_adapter): Removed blit_glyph.
41670 (grub_video_blit_glyph): Removed.
41672 * font/manager.c: Removed file.
41674 * font/font.c: New file.
41676 * font/font_cmd.c: Likewise.
41678 * video/video.c (grub_video_blit_glyph): Removed.
41680 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
41681 (grub_video_vbe_map_rgba): Likewise.
41682 (grub_video_vbe_unmap_color_int): Likewise.
41683 (grub_video_vbe_blit_glyph): Removed.
41684 (grub_video_vbe_adapter): Removed blit_glyph.
41686 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
41687 (get_pixel): Likewise.
41688 (set_pixel): Likewise.
41690 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
41692 * term/gfxterm.c: Adapted to new font engine.
41694 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
41696 * term/i386/pc/vga.c: Likewise.
41698 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
41700 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
41702 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41704 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
41706 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
41708 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
41710 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
41712 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
41714 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
41716 * util/grub.d/00_header.in: Changed to use new loadfont command.
41718 * util/grub-mkconfig_lib.in: Changed font extension.
41720 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
41722 * util/getroot.c (grub_util_get_grub_dev): Add support for
41723 /dev/md/dNNpNN style partitionable mdraid devices.
41725 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
41727 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
41728 at a time limit of the PXE TFTP API correctly.
41729 (grub_pxefs_close): Likewise.
41731 2008-11-29 Robert Millan <rmh@aybabtu.com>
41733 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
41734 grub_ata_device_initialize() calls.
41736 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
41738 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
41740 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
41742 2008-11-28 Robert Millan <rmh@aybabtu.com>
41744 Fix build on powerpc-ieee1275. Based on patch created by
41745 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
41746 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
41747 `kern/ieee1275/mmap.c'.
41748 * include/grub/powerpc/ieee1275/memory.h: New file.
41750 Provide grub-install on coreboot.
41751 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
41752 (grub_install_SOURCES): New variable.
41753 * util/i386/pc/grub-install.in: Add a few condition checks to make it
41754 usable on coreboot.
41756 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
41758 * util/grub-fstest.c (grub_term_get_current_input): Change return type
41759 to `grub_term_input_t'.
41760 (grub_term_get_current_output): Change return type to
41761 `grub_term_output_t'.
41763 2008-11-22 Robert Millan <rmh@aybabtu.com>
41765 Fix breakage on coreboot due to declaration mismatch.
41766 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
41767 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
41768 grub_vga_text_cls().
41770 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
41771 comments. Avoid copying one more byte than necessary (just in case).
41773 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
41774 to 0x200000 (avoids trouble with some OFW implementations, and matches
41775 with the one in Yaboot).
41776 Reported by Manoel Abranches
41778 2008-11-20 Robert Millan <rmh@aybabtu.com>
41780 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
41781 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
41783 * util/grub-mkconfig_lib.in (grub_warn): New function.
41784 (convert_system_path_to_grub_path): Use grub_warn() when issuing
41785 warnings, to obtain consistent formatting.
41786 * util/grub.d/00_header.in: Likewise.
41787 * util/update-grub_lib.in: Likewise.
41789 * loader/i386/linux.c (allocate_pages): Fix a warning.
41790 Move comment text to `#error' stanza.
41792 Harmonize ieee1275's grub_available_iterate() with the generic
41793 grub_machine_mmap_iterate() interface (fixes a recently-introduced
41794 build problem on i386-ieee1275):
41795 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
41796 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
41797 parameter `type'. Update all users of this function.
41798 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
41799 `kern/ieee1275/mmap.c'.
41800 * kern/ieee1275/init.c
41801 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
41803 (grub_machine_mmap_iterate): ... this.
41804 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
41805 return type to `grub_err_t'. Update all implementations of this
41806 function prototype.
41807 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
41810 Add `lsmmap' command (lists firmware-provided memory map):
41811 * commands/lsmmap.c: New file.
41812 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
41813 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
41815 * conf/powerpc-ieee1275.rmk: Likewise.
41816 * conf/i386-coreboot.rmk: Likewise.
41817 * conf/i386-ieee1275.rmk: Likewise.
41819 2008-11-19 Robert Millan <rmh@aybabtu.com>
41821 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
41822 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
41823 constraints to initrd allocation (based on code from
41824 loader/i386/pc/linux.c). Without them, initrd was allocated too high
41825 for Linux to find it.
41827 2008-11-14 Robert Millan <rmh@aybabtu.com>
41829 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
41830 order to cope with duplicate slashes.
41832 2008-11-14 Robert Millan <rmh@aybabtu.com>
41834 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
41835 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
41836 don't want to mess with lower memory, because it is used in the Linux
41839 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
41840 an appropriate place in lower memory, between 0x10000 and 0x90000,
41841 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
41842 is in our heap (probably as a result of it being corrupted during
41843 decompression). Add #error instance with comment to explain why this
41844 loader isn't currently usable on PC/BIOS.
41846 2008-11-14 Robert Millan <rmh@aybabtu.com>
41848 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
41849 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
41851 2008-11-12 Robert Millan <rmh@aybabtu.com>
41853 Make loader/i386/linux.c buildable on i386-pc (although disabled).
41855 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
41856 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
41858 * include/grub/i386/pc/memory.h: ... to here.
41860 2008-11-12 Robert Millan <rmh@aybabtu.com>
41862 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
41865 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
41866 (grub_console_cur_color, grub_console_real_putchar)
41867 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41868 (grub_console_setcolorstate, grub_console_setcolor)
41869 (grub_console_getcolor): Move from here ...
41870 * include/grub/i386/vga_common.h: ... to here (new file).
41872 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
41873 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
41874 `<grub/i386/io.h>'.
41875 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
41876 `<grub/i386/vga_common.h>'.
41878 2008-11-12 Robert Millan <rmh@aybabtu.com>
41880 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
41881 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
41882 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
41884 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41885 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
41887 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
41888 grub_console_init() with call to grub_vga_text_init().
41889 (grub_machine_fini): Replace call to
41890 grub_console_fini() with call to grub_vga_text_fini() and
41891 grub_at_keyboard_fini().
41893 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
41894 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
41895 (grub_console_setcolorstate, grub_console_setcolor)
41896 (grub_console_getcolor): New function prototypes.
41898 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
41899 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
41900 (grub_vga_text_setcursor): Static-ize.
41901 (grub_vga_text_term): New structure.
41902 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
41904 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
41905 (grub_console_cur_color, grub_console_standard_color)
41906 (grub_console_normal_color, grub_console_highlight_color)
41907 (map_char, grub_console_putchar, grub_console_getcharwidth)
41908 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
41909 (grub_console_getcolor): Move from here ...
41910 * term/i386/vga_common.c: ... to here (same function names).
41912 2008-11-12 Robert Millan <rmh@aybabtu.com>
41914 Use newly-added Multiboot support in coreboot.
41916 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
41917 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
41919 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
41920 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
41921 (codestart): Store the MBI in `startup_multiboot_info' when we're
41922 being loaded using Multiboot.
41924 * kern/i386/coreboot/init.c (grub_machine_init): Move
41925 grub_at_keyboard_init() call to beginning of function (useful for
41926 debugging). Call grub_machine_mmap_init() before attempting to use
41927 grub_machine_mmap_iterate().
41928 (grub_lower_mem, grub_upper_mem): Move from here ...
41929 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
41932 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
41933 function prototype.
41935 2008-11-12 Robert Millan <rmh@aybabtu.com>
41937 Fix a regression introduced by the at_keyboard.mod split. Because
41938 some terminals are default on some platforms and non-default on
41939 others, the first terminal being registered determines which is
41940 going to be default.
41942 * kern/term.c (grub_term_register_input): If this is the first
41943 terminal being registered, set it as the current one.
41944 (grub_term_register_output): Likewise.
41946 * term/efi/console.c (grub_console_init): Do not call
41947 grub_term_set_current_output() or grub_term_set_current_input().
41948 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
41949 * term/i386/pc/console.c (grub_console_init): Likewise.
41950 (grub_console_fini): Do not call grub_term_set_current_input()
41951 (but leave grub_term_set_current_output() to restore text mode).
41953 2008-11-10 Robert Millan <rmh@aybabtu.com>
41955 * util/grub.d/00_header.in: Add backward compatibility check for
41956 versions of terminal.mod that don't understand `terminal_input' or
41959 2008-11-09 Robert Millan <rmh@aybabtu.com>
41961 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
41962 `terminal_input' / `terminal_output', not `terminal'.
41964 2008-11-08 Robert Millan <rmh@aybabtu.com>
41966 * Makefile.in (include_DATA): Fix srcdir=. assumption.
41967 (DISTCLEANFILES): Add `build_env.mk'.
41969 2008-11-08 Robert Millan <rmh@aybabtu.com>
41971 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
41972 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
41973 members. Update all users.
41974 * util/console.c (grub_ncurses_term): Split in ...
41975 (grub_ncurses_term_input): ... this, and ...
41976 (grub_ncurses_term_output): ... this. Update all users.
41977 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
41979 2008-11-08 Robert Millan <rmh@aybabtu.com>
41981 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
41982 (PKGDATA): Add $(pkgdata_SRCDIR).
41983 (pkglib_BUILDDIR): New variable.
41984 (pkgdata_SRCDIR): New variable.
41985 (build_env.mk): New target.
41986 (include_DATA): New variable.
41987 (install-local): Install $(include_DATA) files in $(includedir).
41989 2008-11-07 Pavel Roskin <proski@gnu.org>
41991 * gendistlist.sh: Use C locale for sorting to ensure consistent
41992 output on all systems.
41994 * util/grub.d/00_header.in: Remove incorrect space before
41997 2008-11-07 Robert Millan <rmh@aybabtu.com>
41999 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
42001 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
42002 * loader/multiboot_loader.c (find_multi_boot2_header): New function
42003 (based on find_multi_boot1_header).
42004 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
42005 using find_multi_boot2_header(), and abort if neither Multiboot or
42006 Multiboot headers were found.
42008 2008-11-07 Robert Millan <rmh@aybabtu.com>
42010 Modularize at_keyboard.mod:
42012 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
42013 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
42014 (at_keyboard_mod_LDFLAGS): New variables.
42016 Actual terminal split:
42018 * include/grub/term.h (struct grub_term): Split in ...
42019 (struct grub_term_input): ... this, and ...
42020 (struct grub_term_output): ... this. Update all users.
42021 (grub_term_set_current): Split in ...
42022 (grub_term_set_current_input): ... this, and ...
42023 (grub_term_set_current_output): ... this.
42024 (grub_term_get_current): Split in ...
42025 (grub_term_get_current_input): ... this, and ...
42026 (grub_term_get_current_output): ... this.
42027 (grub_term_register): Split in ...
42028 (grub_term_register_input): ... this, and ...
42029 (grub_term_register_output): ... this.
42030 (grub_term_unregister): Split in ...
42031 (grub_term_unregister_input): ... this, and ...
42032 (grub_term_unregister_output): ... this.
42033 (grub_term_iterate): Split in ...
42034 (grub_term_iterate_input): ... this, and ...
42035 (grub_term_iterate_output): ... this.
42037 * kern/term.c (grub_term_list): Split in ...
42038 (grub_term_list_input): ... this, and ...
42039 (grub_term_list_output): ... this. Update all users.
42040 (grub_cur_term): Split in ...
42041 (grub_cur_term_input): ... this, and ...
42042 (grub_cur_term_output): ... this. Update all users.
42043 (grub_term_set_current): Split in ...
42044 (grub_term_set_current_input): ... this, and ...
42045 (grub_term_set_current_output): ... this.
42046 (grub_term_get_current): Split in ...
42047 (grub_term_get_current_input): ... this, and ...
42048 (grub_term_get_current_output): ... this.
42049 (grub_term_register): Split in ...
42050 (grub_term_register_input): ... this, and ...
42051 (grub_term_register_output): ... this.
42052 (grub_term_unregister): Split in ...
42053 (grub_term_unregister_input): ... this, and ...
42054 (grub_term_unregister_output): ... this.
42055 (grub_term_iterate): Split in ...
42056 (grub_term_iterate_input): ... this, and ...
42057 (grub_term_iterate_output): ... this.
42059 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
42060 a check for input and one for output (and only attempt to get keys
42061 from user when input works).
42063 * util/grub-probe.c (grub_term_get_current): Split in ...
42064 (grub_term_get_current_input): ... this, and ...
42065 (grub_term_get_current_output): ... this.
42066 * util/grub-fstest.c: Likewise.
42067 * util/i386/pc/grub-setup.c: Likewise.
42068 * util/grub-editenv.c: Likewise.
42070 Portability adjustments:
42072 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
42073 `term/i386/pc/at_keyboard.c'.
42074 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
42075 grub_keyboard_controller_init() (now handled by terminal .init).
42076 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
42077 grub_at_keyboard_init().
42078 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
42079 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
42080 at_keyboard.mod via input terminal interface).
42081 * include/grub/i386/coreboot/console.h: Convert into a stub for
42082 `<grub/i386/pc/console.h>'.
42084 Migrate full terminals to new API:
42086 * term/efi/console.c (grub_console_term): Split into ...
42087 (grub_console_term_input): ... this, and ...
42088 (grub_console_term_output): ... this. Update all users.
42089 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
42090 (grub_ofconsole_init): Split into ...
42091 (grub_ofconsole_init_input): ... this, and ...
42092 (grub_ofconsole_init_output): ... this.
42093 (grub_ofconsole_term): Split into ...
42094 (grub_ofconsole_term_input): ... this, and ...
42095 (grub_ofconsole_term_output): ... this. Update all users.
42096 * term/i386/pc/serial.c (grub_serial_term): Split into ...
42097 (grub_serial_term_input): ... this, and ...
42098 (grub_serial_term_output): ... this. Update all users.
42099 * term/i386/pc/console.c (grub_console_term): Split into ...
42100 (grub_console_term_input): ... this, and ...
42101 (grub_console_term_output): ... this. Update all users.
42102 (grub_console_term_input): Only enable it on PC/BIOS platform.
42103 (grub_console_init): Remove grub_keyboard_controller_init() call.
42105 Migrate input terminals to new API:
42107 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
42108 `i386' and `i386/pc' to enable build on x86_64 (this driver is
42109 i386-specific anyway).
42110 (grub_console_checkkey): Rename to ...
42111 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
42113 (grub_keyboard_controller_orig): New variable.
42114 (grub_console_getkey): Rename to ...
42115 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
42117 (grub_keyboard_controller_init): Static-ize. Save original
42118 controller value so that it can be restored ...
42119 (grub_keyboard_controller_fini): ... here (new function).
42120 (grub_at_keyboard_term): New structure.
42121 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
42124 Migrate output terminals to new API:
42126 * term/i386/pc/vga.c (grub_vga_term): Change type to
42127 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42128 members. Update all users.
42129 * term/gfxterm.c (grub_video_term): Change type to
42130 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
42131 members. Update all users.
42132 * include/grub/i386/pc/console.h (grub_console_checkkey)
42133 (grub_console_getkey): Do not export (no longer needed by gfxterm,
42136 Migrate `terminal' command and userland tools to new API:
42138 * commands/terminal.c (grub_cmd_terminal): Split into ...
42139 (grub_cmd_terminal_input): ... this, and ...
42140 (grub_cmd_terminal_output): ... this.
42141 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
42142 `terminal_input' and `terminal_output'.
42143 * util/grub.d/00_header.in: Adjust `terminal' calls to new
42144 `terminal_input' / `terminal_output' API.
42145 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
42146 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
42147 provided ${GRUB_TERMINAL}, convert it).
42149 2008-11-04 Robert Millan <rmh@aybabtu.com>
42151 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
42153 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
42155 2008-11-03 Bean <bean123ch@gmail.com>
42157 * kern/elf.c (grub_elf32_load): Revert to previous code.
42158 (grub_elf64_load): Likewise.
42160 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
42162 2008-11-01 Robert Millan <rmh@aybabtu.com>
42164 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
42165 (TARGET_CPPFLAGS): Likewise.
42166 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
42168 2008-11-01 Carles Pina i Estany <carles@pina.cat>
42170 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
42172 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42174 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
42175 addition of objects until the code is not going to be able to fail.
42177 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
42179 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
42180 (add a missing NULL check, and correct them by moving the pointer
42181 operations after the actual check).
42183 2008-10-29 Robert Millan <rmh@aybabtu.com>
42185 * util/i386/pc/grub-install.in: Handle empty string as output from
42186 make_system_path_relative_to_its_root().
42188 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
42190 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
42191 circular metadata worst case scenario. If the metadata is circular
42192 then copy the wrap in place.
42193 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
42194 project lib/format_text/layout.h
42195 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
42197 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42199 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
42201 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
42203 * util/update-grub_lib.in: Mention filename in warning message.
42205 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42207 * NEWS: Update for rename of update-grub to grub-mkconfig.
42209 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
42211 * util/update-grub_lib.in: Copy to ...
42212 * util/grub-mkconfig_lib.in: ... this. Update all users.
42213 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
42214 * util/update-grub.in: Rename to ...
42215 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
42216 option. Add `--output' option to allow users to specify the generated
42217 configuration file. Default to stdout.
42218 (update_grub_dir): Rename to ...
42219 (grub_mkconfig_dir): ... this.
42220 (grub_cfg): Default to an empty string.
42221 * conf/common.rmk (update-grub): Rename to ...
42222 (grub-mkconfig): ... this.
42223 (update-grub_lib): Copy to ...
42224 (grub-mkconfig_lib): ... this.
42225 (update-grub_SCRIPTS): Copy to ...
42226 (grub-mkconfig_SCRIPTS): ... this. Update all users.
42227 (update-grub_DATA): Rename to ...
42228 (grub-mkconfig_DATA): ... this.
42230 2008-09-28 Robert Millan <rmh@aybabtu.com>
42232 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
42233 to `modified'. Add the real `created' field.
42234 (grub_iso9660_uuid): Use `modified' rather than `created' for
42235 constructing the UUID.
42237 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
42239 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
42240 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
42242 2008-09-28 Bean <bean123ch@gmail.com>
42244 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
42245 Thanks to Christian Franke for finding this bug.
42247 2008-09-25 Robert Millan <rmh@aybabtu.com>
42249 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
42250 instances of grub_util_get_disk_name() (see previous commit).
42252 2008-09-25 Robert Millan <rmh@aybabtu.com>
42254 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
42255 `util/i386/get_disk_name.c'.
42256 * conf/i386-efi.rmk: Likewise.
42257 * conf/x86_64-efi.rmk: Likewise.
42258 * conf/i386-coreboot.rmk: Likewise.
42259 * conf/i386-ieee1275.rmk: Likewise.
42260 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
42261 `util/ieee1275/get_disk_name.c'.
42262 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
42263 * util/ieee1275/get_disk_name.c: Remove file.
42264 * util/i386/get_disk_name.c: Remove file.
42265 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
42266 "hd%d" for device.map entries, rather than using
42267 grub_util_get_disk_name().
42269 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42271 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
42273 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
42275 2008-09-24 Carles Pina i Estany <carles@pina.cat>
42277 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
42279 (GRUB_TERM_PPAGE): Changed to 0x4900.
42281 2008-09-24 Robert Millan <rmh@aybabtu.com>
42283 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
42284 macros (they were i386-pc specific).
42285 * include/grub/sparc64/ieee1275/console.h: Likewise.
42286 * include/grub/efi/console.h: Likewise.
42288 2008-09-22 Bean <bean123ch@gmail.com>
42290 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
42291 resident and in attribute list.
42293 * include/grub/ntfs.h (BMP_LEN): Removed.
42295 2008-09-22 Bean <bean123ch@gmail.com>
42297 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
42298 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
42300 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
42301 error occurs, as grub_disk_open will call grub_disk_close, which will
42302 call p->close (scsi).
42304 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42306 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
42307 (AC_PREREQ): Bumped to 2.59.
42308 (AC_TRY_COMPILE): Replace obsolete macro with ...
42309 (AC_COMPILE_IFELSE): ... this.
42310 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
42311 (AC_LINK_IFELSE): ... this.
42313 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
42315 * autogen.sh: Add a call to `gendistlist.sh'.
42317 2008-09-19 Christian Franke <franke@computer.org>
42319 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
42320 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
42321 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
42322 Export __enable_execute_stack() to modules.
42323 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
42326 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42328 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
42331 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
42333 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
42334 #include <grub/util/hostdisk.h>.
42336 2008-09-08 Robert Millan <rmh@aybabtu.com>
42338 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
42339 segments when their filesz is zero (grub_file_read() interprets
42340 zero-size as "read until EOF", which results in memory corruption).
42341 Use `lowest_segment' rather than 0 for calculating the current
42342 segment load address.
42344 2008-09-08 Robert Millan <rmh@aybabtu.com>
42346 * util/hostdisk.c (open_device): Replace a grub_util_info() call
42347 with grub_dprintf("hostdisk", ...), as it was so verbose that it
42348 clobbered useful information.
42350 2008-09-08 Robert Millan <rmh@aybabtu.com>
42352 * include/grub/util/biosdisk.h: Move to ...
42353 * include/grub/util/hostdisk.h: ... here. Update all users.
42354 * util/biosdisk.c: Move to ...
42355 * util/hostdisk.c: ... here. Update all users.
42357 2008-09-07 Robert Millan <rmh@aybabtu.com>
42359 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
42361 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
42362 and length can be stored directly in the `mbi->mmap_addr' and
42363 `mbi->mmap_length' struct fields.
42365 2008-09-07 Robert Millan <rmh@aybabtu.com>
42367 * conf/i386.rmk: New file. Provides declaration for building
42369 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
42370 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
42372 Include `conf/i386.mk'.
42373 * conf/i386-efi.rmk: Likewise.
42374 * conf/x86_64-efi.rmk: Likewise.
42375 * conf/i386-coreboot.rmk: Likewise.
42376 * conf/i386-ieee1275.rmk: Likewise.
42378 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
42380 Based on patch created by Colin D Bennett <colin@gibibit.com>.
42381 Adds optimization support for BGR based modes.
42383 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
42384 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42385 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42386 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42387 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42388 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42389 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42390 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42391 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42392 (grub_video_i386_vbeblit_index_index): Likewise.
42393 (grub_video_i386_vbeblit_replace_directN): Added.
42394 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42395 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42396 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42397 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42398 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42399 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42400 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42401 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42402 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42403 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42404 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42405 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42406 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42408 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
42409 (grub_video_i386_vbefill_R8G8B8): Likewise.
42410 (grub_video_i386_vbefill_index): Likewise.
42411 (grub_video_i386_vbefill_direct32): Added.
42412 (grub_video_i386_vbefill_direct24): Likewise.
42413 (grub_video_i386_vbefill_direct16): Likewise.
42414 (grub_video_i386_vbefill_direct8): Likewise.
42416 * include/grub/video.h (grub_video_blit_format): Removed
42417 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
42418 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
42419 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
42420 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
42421 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
42423 * video/video.c (grub_video_get_blit_format): Updated to use new
42424 blit formats. Added handling for 16 bit color modes.
42426 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
42428 (common_blitter): Updated to use new blitters.
42430 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
42432 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
42433 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42434 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42435 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42436 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42437 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42438 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42439 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42440 (grub_video_i386_vbeblit_index_index): Likewise.
42441 (grub_video_i386_vbeblit_replace_directN): Added.
42442 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
42443 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
42444 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
42445 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
42446 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
42447 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
42448 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
42449 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
42450 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
42451 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
42452 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
42453 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
42454 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
42456 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
42457 (grub_video_i386_vbefill_R8G8B8): Likewise.
42458 (grub_video_i386_vbefill_index): Likewise.
42459 (grub_video_i386_vbefill_direct32): Added.
42460 (grub_video_i386_vbefill_direct24): Likewise.
42461 (grub_video_i386_vbefill_direct16): Likewise.
42462 (grub_video_i386_vbefill_direct8): Likewise.
42464 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
42467 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
42470 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
42473 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
42476 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42478 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
42481 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
42483 * fs/iso9660.c (grub_iso9660_date): New structure.
42484 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
42485 (grub_iso9660_uuid): New function.
42487 2008-09-05 Bean <bean123ch@gmail.com>
42489 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
42491 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
42492 insensitive bit for names in Win32 and Win32 & DOS namespace.
42494 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
42496 * include/grub/types.h (LONG_MAX): Likewise.
42498 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42500 * util/getroot.c: Include <config.h>.
42501 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
42502 add support for /dev/md/N devices and handle LVM double dash escaping.
42504 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
42506 * config.guess: Update to latest version from config git.
42507 * config.sub: Likewise.
42509 2008-09-03 Robert Millan <rmh@aybabtu.com>
42511 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
42512 `disk->total_sectors'.
42514 2008-09-01 Colin D Bennett <colin@gibibit.com>
42516 * include/grub/normal.h: Fixed incorrect comment for
42517 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
42519 2008-09-01 Colin D Bennett <colin@gibibit.com>
42521 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
42522 values with defines.
42524 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
42525 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
42526 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
42527 (GRUB_VBE_MODEATTR_COLOR): Likewise.
42528 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
42529 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
42530 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
42531 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
42532 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
42533 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
42534 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
42535 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
42536 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
42537 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
42538 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
42539 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
42540 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
42541 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
42542 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
42544 2008-08-31 Robert Millan <rmh@aybabtu.com>
42546 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
42548 (grub_multiboot): Fix a few warnings.
42550 2008-08-31 Robert Millan <rmh@aybabtu.com>
42552 * loader/i386/pc/multiboot.c: Update comment not to say that
42553 boot_device support is unimplemented.
42555 2008-08-31 Robert Millan <rmh@aybabtu.com>
42557 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
42558 or memory map support are unimplemented.
42560 2008-08-31 Colin D Bennett <colin@gibibit.com>
42562 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
42564 2008-08-31 Colin D Bennett <colin@gibibit.com>
42566 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
42567 total video memory in 'vbeinfo' output; show color format details for
42570 2008-08-30 Pavel Roskin <proski@gnu.org>
42572 * util/genmoddep.c: Remove for real this time.
42573 * DISTLIST: Remove util/genmoddep.c.
42575 2008-08-30 Robert Millan <rmh@aybabtu.com>
42577 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
42578 as required by Multiboot spec (it was already 4-byte aligned, but
42581 2008-08-29 Pavel Roskin <proski@gnu.org>
42583 * kern/powerpc/ieee1275/crt0.S: Rename to ...
42584 * kern/powerpc/ieee1275/startup.S: ... this.
42585 * conf/powerpc-ieee1275.rmk: Adjust for the above.
42586 * DISTLIST: Likewise.
42588 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
42589 grub/cpu/kernel.h. Add start label for consistency with other
42590 platforms. Add grub_prefix immediately after start. Add jump
42591 to the code after grub_prefix.
42592 * include/grub/powerpc/kernel.h: Provide valid values for
42593 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
42595 2008-08-29 Bean <bean123ch@gmail.com>
42597 * configure.ac: Change host_os to cygwin for mingw.
42598 (asprintf): New check for function.
42600 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
42601 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
42603 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
42604 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
42605 sync, sleep and grub_util_get_disk_size for mingw.
42607 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
42608 to get size in mingw.
42609 (open_device): Use flag O_BINARY if it's defined.
42610 (find_root_device): Add dummy code for mingw.
42612 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
42613 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
42614 (get_scsi_disk_name): Return 0 for mingw.
42616 * util/hostfs.c: #include <grub/util/misc.h>.
42617 (grub_hostfs_open): Use "rb" flag to open file, use
42618 grub_util_get_disk_size to get disk size for mingw.
42620 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
42621 (asprintf): New function if HAVE_ASPRINTF is not set.
42622 (sync): New function for mingw.
42624 (grub_util_get_disk_size): Likewise.
42626 2008-08-28 Pavel Roskin <proski@gnu.org>
42628 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
42631 2008-08-28 Robert Millan <rmh@aybabtu.com>
42633 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
42635 2008-08-28 Robert Millan <rmh@aybabtu.com>
42637 Change find_grub_drive() syntax so it doesn't prevent it from
42638 detecting NULL names as errors.
42640 * util/biosdisk.c (find_grub_drive): Move free slot search code
42642 (find_free_slot): ... to here.
42643 (read_device_map): Use find_free_slot() to search for free slots.
42645 2008-08-27 Marco Gerards <marco@gnu.org>
42647 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
42648 (scsi_mod_SOURCES): New variable.
42649 (scsi_mod_CFLAGS): Likewise
42650 (scsi_mod_LDFLAGS): Likewise.
42652 * disk/scsi.c: New file.
42654 * include/grub/scsi.h: Likewise.
42656 * include/grub/scsicmd.h: Likewise.
42658 * disk/ata.c: Include <grub/scsi.h>.
42659 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
42661 (grub_ata_iterate): Skip ATAPI devices.
42662 (grub_ata_open): Only handle ATAPI devices.
42663 (struct grub_atapi_read): Removed.
42664 (grub_atapi_readsector): Likewise.
42665 (grub_ata_read): No longer handle ATAPI devices.
42666 (grub_ata_write): Likewise.
42667 (grub_atapi_iterate): New function.
42668 (grub_atapi_read): Likewise.
42669 (grub_atapi_write): Likewise.
42670 (grub_atapi_open): Likewise.
42671 (grub_atapi_close): Likewise.
42672 (grub_atapi_dev): New variable.
42673 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
42674 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
42676 * include/grub/disk.h (enum grub_disk_dev_id): Add
42677 `GRUB_DISK_DEVICE_SCSI_ID'.
42679 2008-08-26 Robert Millan <rmh@aybabtu.com>
42681 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
42682 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
42685 2008-08-23 Bean <bean123ch@gmail.com>
42687 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
42688 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42689 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
42690 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
42692 (raid5rec_mod_SOURCES): New macro.
42693 (raid5rec_mod_CFLAGS): Likewise.
42694 (raid5rec_mod_LDFLAGS): Likewise.
42695 (raid6rec_mod_SOURCES): Likewise.
42696 (raid6rec_mod_CFLAGS): Likewise.
42697 (raid6rec_mod_LDFLAGS): Likewise.
42698 (mdraid_mod_SOURCES): Likewise.
42699 (mdraid_mod_CFLAGS): Likewise.
42700 (mdraid_mod_LDFLAGS): Likewise.
42701 (dm_nv_mod_SOURCES): Likewise.
42702 (dm_nv_mod_CFLAGS): Likewise.
42703 (dm_nv_mod_LDFLAGS): Likewise.
42705 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
42706 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
42707 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42709 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
42710 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
42712 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42714 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
42716 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42720 * disk/raid5_recover.c: New file.
42722 * disk/raid6_recover.c: Likewise.
42724 * disk/mdraid_linux.c: Likewise.
42726 * disk/dmraid_nvidia.c: Likewise.
42728 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
42731 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
42732 calculate the size of raid device.
42733 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
42734 different layout of raid5.
42735 (grub_raid_scan_device): Remove code specific to mdraid.
42736 (grub_raid_list): New variable.
42737 (free_array): New function.
42738 (grub_raid_register): Likewise.
42739 (grub_raid_unregister): Likewise.
42740 (grub_raid_rescan): Likewise.
42741 (GRUB_MOD_INIT): Don't iterate device here.
42742 (GRUB_MOD_FINI): Use free_array to release resource.
42744 * include/grub/raid.h: Remove macro and structure specific to mdraid.
42745 (grub_raid5_recover_func_t): New function variable type.
42746 (grub_raid6_recover_func_t): Likewise.
42747 (grub_raid5_recover_func): New variable.
42748 (grub_raid6_recover_func): Likewise.
42749 (grub_raid_register): New function.
42750 (grub_raid_unregister): Likewise.
42751 (grub_raid_rescan): Likewise.
42752 (grub_raid_block_xor): Likewise.
42754 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
42755 (CMD_CRC): New macro.
42757 (read_file): Handle device as well as file.
42758 (cmd_crc): New function.
42759 (fstest): Handle multiple disks.
42760 (options): Remove part, raw and long, add root and diskcount.
42761 (usage): Add crc, remove -p, -r, -l, add -r and -c.
42762 (main): Find the first non option entry and ignore subsequent options,
42763 add handling for the new options, support multiple disks.
42765 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
42767 2008-08-23 Bean <bean123ch@gmail.com>
42769 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
42771 * genfslist.sh: Ignore kernel.mod.
42773 * genpartmaplist.sh: Likewise.
42775 2008-08-23 Robert Millan <rmh@aybabtu.com>
42777 * util/getroot.c (find_root_device): Skip anything that starts with
42778 a dot, not just directories. This avoids things like /dev/.tmp.md0.
42780 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
42782 * util/update-grub.in (GRUB_GFXMODE): Export variable.
42783 * util/grub.d/00_header.in: Allow the administrator to change default
42784 gfxmode via ${GRUB_GFXMODE}.
42786 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
42788 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
42790 2008-08-21 Robert Millan <rmh@aybabtu.com>
42792 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
42794 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
42795 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
42797 2008-08-20 Carles Pina i Estany <carles@pina.cat>
42799 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
42800 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
42802 2008-08-19 Robert Millan <rmh@aybabtu.com>
42804 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
42805 (struct grub_virtual_screen): Remove `cursor_color'.
42806 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
42808 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
42810 2008-08-18 Robert Millan <rmh@aybabtu.com>
42812 Unify (identical) linux_normal.c files.
42813 * loader/i386/efi/linux_normal.c: Move from here ...
42814 * loader/linux_normal.c: ... to here. Update all users.
42815 * loader/i386/pc/linux_normal.c: Delete. Update all users.
42816 * loader/i386/ieee1275/linux_normal.c: Likewise.
42818 2008-08-18 Robert Millan <rmh@aybabtu.com>
42820 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
42821 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
42822 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
42823 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
42824 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
42826 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
42827 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
42828 (GRUB_LINUX_CL_END_OFFSET): ... to here.
42829 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
42830 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
42831 (GRUB_EFI_CL_END_OFFSET): Rename to ...
42832 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
42833 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
42834 Initialize `params->video_cursor_x' and `params->video_cursor_y'
42835 portably using grub_getxy().
42836 Replace `-EFI' with `-bzImage' in boot message.
42838 2008-08-17 Robert Millan <rmh@aybabtu.com>
42840 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
42842 2008-08-17 Robert Millan <rmh@aybabtu.com>
42844 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
42846 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
42847 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
42848 (grub_machine_mmap_iterate): New function declaration.
42849 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
42851 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
42854 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
42855 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
42856 Move e820 parsing from here ...
42857 * kern/i386/pc/mmap.c: New file.
42858 (grub_machine_mmap_iterate): ... to here.
42860 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
42861 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
42862 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
42863 (grub_available_iterate): Redeclare to return `void', and redeclare
42864 its hook to use grub_uint64_t as addr and size parameters, and rename
42866 (grub_machine_mmap_iterate): ... this. Update all users.
42868 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
42869 to make it more readable. Rename to ...
42870 (grub_machine_mmap_iterate): ... this.
42872 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
42873 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
42874 (grub_multiboot): Allocate an extra region after the payload, and fill
42875 it with a Multiboot memory map. Adjust a.out loader to calculate size
42876 with the extra space.
42877 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
42878 with the extra space.
42880 2008-08-17 Carles Pina i Estany <carles@pina.cat>
42882 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
42884 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
42886 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
42887 mdate-sh to the list `find' searches for.
42888 * DISTLIST: Regenerated.
42890 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
42892 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
42893 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
42894 genmoddep.awk, gensymlist.sh.in.
42895 (DISTDIRS): Add bus, docs, hook, lib.
42896 * DISTLIST: Regenerated.
42897 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
42899 2008-08-16 Robert Millan <rmh@aybabtu.com>
42901 * disk/raid.c (grub_raid_init): Handle/report errors set by
42902 grub_device_iterate().
42903 * disk/lvm.c (grub_lvm_init): Likewise.
42905 2008-08-15 Bean <bean123ch@gmail.com>
42907 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42909 (datetime_mod_SOURCES): New macro.
42910 (datetime_mod_CFLAGS): Likewise.
42911 (datetime_mod_LDFLAGS): Likewise.
42912 (date_mod_SOURCES): Likewise.
42913 (date_mod_CFLAGS): Likewise.
42914 (date_mod_LDFLAGS): Likewise.
42915 (datehook_mod_SOURCES): Likewise.
42916 (datehook_mod_CFLAGS): Likewise.
42917 (datehook_mod_LDFLAGS): Likewise.
42919 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42921 (datetime_mod_SOURCES): New macro.
42922 (datetime_mod_CFLAGS): Likewise.
42923 (datetime_mod_LDFLAGS): Likewise.
42924 (date_mod_SOURCES): Likewise.
42925 (date_mod_CFLAGS): Likewise.
42926 (date_mod_LDFLAGS): Likewise.
42927 (datehook_mod_SOURCES): Likewise.
42928 (datehook_mod_CFLAGS): Likewise.
42929 (datehook_mod_LDFLAGS): Likewise.
42931 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42933 (datetime_mod_SOURCES): New macro.
42934 (datetime_mod_CFLAGS): Likewise.
42935 (datetime_mod_LDFLAGS): Likewise.
42936 (date_mod_SOURCES): Likewise.
42937 (date_mod_CFLAGS): Likewise.
42938 (date_mod_LDFLAGS): Likewise.
42939 (datehook_mod_SOURCES): Likewise.
42940 (datehook_mod_CFLAGS): Likewise.
42941 (datehook_mod_LDFLAGS): Likewise.
42943 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42945 (datetime_mod_SOURCES): New macro.
42946 (datetime_mod_CFLAGS): Likewise.
42947 (datetime_mod_LDFLAGS): Likewise.
42948 (date_mod_SOURCES): Likewise.
42949 (date_mod_CFLAGS): Likewise.
42950 (date_mod_LDFLAGS): Likewise.
42951 (datehook_mod_SOURCES): Likewise.
42952 (datehook_mod_CFLAGS): Likewise.
42953 (datehook_mod_LDFLAGS): Likewise.
42955 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
42957 (datetime_mod_SOURCES): New macro.
42958 (datetime_mod_CFLAGS): Likewise.
42959 (datetime_mod_LDFLAGS): Likewise.
42960 (date_mod_SOURCES): Likewise.
42961 (date_mod_CFLAGS): Likewise.
42962 (date_mod_LDFLAGS): Likewise.
42963 (datehook_mod_SOURCES): Likewise.
42964 (datehook_mod_CFLAGS): Likewise.
42965 (datehook_mod_LDFLAGS): Likewise.
42967 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
42969 * commands/date.c: New file.
42971 * hook/datehook.c: Likewise.
42973 * include/grub/lib/datetime.h: Likewise.
42975 * include/grub/i386/cmos.h: Likewise.
42977 * lib/datetime.c: Likewise.
42979 * lib/i386/datetime.c: Likewise.
42981 * lib/efi/datetime.c: Likewise.
42983 2008-08-14 Robert Millan <rmh@aybabtu.com>
42985 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
42986 (grub_mkelfimage_SOURCES): New variable.
42987 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
42989 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
42990 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
42991 * conf/powerpc-ieee1275.rmk: Likewise.
42992 * conf/i386-ieee1275.rmk: Likewise.
42994 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
42995 * kern/i386/coreboot/init.c: Likewise.
42997 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
42998 with `<grub/cpu/kernel.h>'.
42999 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
43001 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
43002 * kern/i386/coreboot/startup.S: Likewise.
43004 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
43005 (GRUB_MOD_GAP): Remove.
43006 * include/grub/powerpc/kernel.h: New file.
43007 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
43008 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43009 * include/grub/i386/kernel.h: New file.
43010 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
43011 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
43012 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
43014 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
43016 Use --directory when invoking grub_mkimage.
43018 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
43019 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
43020 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
43021 and GRUB_KERNEL_CPU_PREFIX.
43023 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
43025 * include/grub/err.h (grub_err_printf): New function prototype.
43026 * util/misc.c (grub_err_printf): New function.
43027 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
43029 * kern/err.c (grub_print_error): Use grub_err_printf.
43031 2008-08-13 Robert Millan <rmh@aybabtu.com>
43033 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
43035 2008-08-13 Robert Millan <rmh@aybabtu.com>
43037 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
43040 2008-08-12 Robert Millan <rmh@aybabtu.com>
43042 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
43043 of the relocation code from here ...
43044 (grub_multiboot): ... to here.
43045 (forward_relocator, backward_relocator): Move from here ...
43046 * kern/i386/loader.S (grub_multiboot_forward_relocator)
43047 (grub_multiboot_backward_relocator): ... to here.
43048 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
43049 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
43050 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
43051 (grub_multiboot_forward_relocator_end)
43052 (grub_multiboot_backward_relocator)
43053 (grub_multiboot_backward_relocator_end): New variables.
43055 2008-08-12 Bean <bean123ch@gmail.com>
43057 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
43059 2008-08-11 Robert Millan <rmh@aybabtu.com>
43061 * kern/i386/linuxbios/startup.S: Move from here ...
43062 * kern/i386/coreboot/startup.S: ... to here.
43064 * kern/i386/linuxbios/init.c: Move from here ...
43065 * kern/i386/coreboot/init.c: ... to here.
43067 * kern/i386/linuxbios/table.c: Move from here ...
43068 * kern/i386/coreboot/mmap.c: ... to here.
43070 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
43072 2008-08-11 Robert Millan <rmh@aybabtu.com>
43074 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
43075 errors. Leave it to the upper layer to handle them.
43077 2008-08-09 Christian Franke <franke@computer.org>
43079 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
43080 * conf/common.rmk: Install `grub-pe2elf' only if requested.
43081 Install `grub.d/10_windows' only on Cygwin.
43082 * configure.ac: Add subst of `target_os'.
43083 Check `target_os' also before setting TARGET_OBJ2ELF.
43084 Add `--enable-grub-pe2elf'.
43086 2008-08-08 Robert Millan <rmh@aybabtu.com>
43088 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43089 (grub_last_time): Change type to grub_uint64_t.
43090 (grub_disk_open): Migrate code from to using grub_get_time_ms().
43091 (grub_disk_close): Likewise.
43093 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
43094 (run_menu): Migrate code from to using grub_get_time_ms().
43096 * util/misc.c (grub_get_time_ms): New function.
43098 2008-08-08 Marco Gerards <marco@gnu.org>
43100 * disk/ata.c (grub_ata_regget): Change return type to
43102 (grub_ata_regget2): Likewise.
43103 (grub_ata_wait_status): New function.
43104 (grub_ata_wait_busy): Removed function, updated all users to use
43105 `grub_ata_wait_status'.
43106 (grub_ata_wait_drq): Likewise.
43107 (grub_ata_cmd): New function.
43108 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
43110 (grub_ata_pio_write): Add error handling.
43111 (grub_atapi_identify): Likewise.
43112 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
43114 (grub_ata_identify): Use `grub_ata_cmd' and improve error
43115 handling. Actually use the detected registers. Reorder the
43116 detection logic such that it is easier to read.
43117 (grub_ata_pciinit): Do not assign the same ID to each controller.
43118 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
43120 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
43122 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
43124 2008-08-08 Marco Gerards <marco@gnu.org>
43128 2008-08-07 Bean <bean123ch@gmail.com>
43130 * include/grub/x86_64/pci.h: New file.
43132 2008-08-07 Christian Franke <franke@computer.org>
43134 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
43135 (TIMER2_GATE): Likewise.
43136 (grub_pit_wait): Add enable/disable of the timer2 gate
43137 bit of port 0x61. This fixes a possible infinite loop.
43139 2008-08-07 Bean <bean123ch@gmail.com>
43141 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
43142 kern/i386/tsc.c and kern/i386/pit.c.
43144 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
43147 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
43150 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
43152 2008-08-07 Bean <bean123ch@gmail.com>
43154 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
43156 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
43158 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
43159 multiple inclusion. Add #include <grub/types.h>.
43161 2008-08-06 Christian Franke <franke@computer.org>
43163 * conf/common.rmk: Build and install `10_windows'.
43164 * util/grub.d/10_windows.in: New script.
43166 2008-08-06 Pavel Roskin <proski@gnu.org>
43168 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
43170 2008-08-06 Robert Millan <rmh@aybabtu.com>
43172 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
43173 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
43175 2008-08-06 Bean <bean123ch@gmail.com>
43177 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
43178 (grub_pxefs_fs_int): Remove dummy definition.
43179 (grub_pxefs_open): Use data->block_size to store the current block
43181 (grub_pxefs_read): Use block size stored in data->block_size. As the
43182 value of grub_pxe_blksize can be changed after the file is opened.
43184 2008-08-06 Bean <bean123ch@gmail.com>
43186 * fs/i386/pc/pxe.c (curr_file): new variable.
43187 (grub_pxefs_open): Simply the handling of pxe file system. Don't
43188 require the dummy internal file system anymore.
43189 (grub_pxefs_read): Removed.
43190 (grub_pxefs_close): Likewise.
43191 (grub_pxefs_fs_int): Likewise.
43192 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
43193 connection when we switch file.
43194 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
43196 2008-08-06 Robert Millan <rmh@aybabtu.com>
43198 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
43200 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
43201 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
43203 * kern/i386/halt.c: New file.
43204 * kern/i386/reboot.c: Likewise.
43205 * include/grub/i386/reboot.h: Likewise.
43206 * include/grub/i386/halt.h: Likewise.
43208 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
43209 Include `<grub/cpu/halt.h>'.
43210 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
43211 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
43213 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
43214 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
43215 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
43216 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
43217 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
43218 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
43220 * include/grub/i386/at_keyboard.h: ... to here.
43222 2008-08-05 Robert Millan <rmh@aybabtu.com>
43224 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
43225 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
43226 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
43227 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43228 `kern/generic/millisleep.c'.
43230 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
43231 instead of grub_get_rtc().
43232 (grub_tsc_init): Initialize `tsc_boot_time'.
43234 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
43235 (grub_machine_init): Use grub_tsc_init() rather than
43236 installing an RTC-based handler via grub_install_get_time_ms().
43238 * kern/i386/pit.c: New file.
43239 * include/grub/i386/pit.h: Likewise.
43241 2008-08-05 Bean <bean123ch@gmail.com>
43243 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
43245 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
43246 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
43247 (pxe_mod_SOURCES): New macro.
43248 (pxe_mod_CFLAGS): Likewise.
43249 (pxe_mod_LDFLAGS): Likewise.
43250 (pxecmd_mod_SOURCES): Likewise.
43251 (pxecmd_mod_CFLAGS): Likewise.
43252 (pxecmd_mod_LDFLAGS): Likewise.
43254 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
43255 (grub_pxe_call): Likewise.
43257 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
43259 * commands/i386/pc/pxecmd.c: New file.
43261 * fs/i386/pc/pxe.c: Likewise.
43263 * include/grub/i386/pc/pxe.h: Likewise.
43265 2008-08-05 Bean <bean123ch@gmail.com>
43267 * util/console.c (grub_console_cur_color): New variable.
43268 (grub_console_standard_color): Likewise.
43269 (grub_console_normal_color): Likewise.
43270 (grub_console_highlight_color): Likewise.
43271 (color_map): Likewise.
43272 (use_color): Likewise.
43273 (NUM_COLORS): New macro.
43274 (grub_ncurses_setcolorstate): Handle color properly.
43275 (grub_ncurses_setcolor): Don't change color here, just remember the
43276 settings, color will be set in grub_ncurses_setcolorstate.
43277 (grub_ncurses_getcolor): New function.
43278 (grub_ncurses_init): Initialize color pairs.
43279 (grub_ncurses_term): New member grub_ncurses_getcolor.
43281 2008-08-05 Colin D Bennett <colin@gibibit.com>
43283 High resolution timer support. Implemented for x86 CPUs using TSC.
43284 Extracted generic grub_millisleep() so it's linked in only as needed.
43285 This requires a Pentium compatible CPU; if the RDTSC instruction is
43286 not supported, then it falls back on the generic grub_get_time_ms()
43287 implementation that uses the machine's RTC.
43289 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
43290 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
43291 `kern/generic/millisleep.c'.
43293 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
43294 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
43296 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
43297 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
43299 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43301 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
43302 `kern/generic/millisleep.c'.
43304 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
43306 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
43308 * kern/generic/rtc_get_time_ms.c: New file.
43310 * kern/generic/millisleep.c: New file.
43312 * kern/misc.c: Don't include
43313 <kern/time.h> anymore.
43314 (grub_millisleep_generic): Removed.
43316 * commands/sleep.c (grub_interruptible_millisleep): Uses
43317 grub_get_time_ms() instead of grub_get_rtc().
43319 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
43321 (grub_cpu_is_cpuid_supported): New inline function.
43322 (grub_cpu_is_tsc_supported): New inline function.
43323 (grub_tsc_init): New function prototype.
43324 (grub_tsc_get_time_ms): New function prototype.
43326 * kern/i386/tsc.c (grub_get_time_ms): New file.
43328 * include/grub/time.h: Include <grub/types.h.
43329 (grub_millisleep_generic): Removed.
43330 (grub_get_time_ms): New prototype.
43331 (grub_install_get_time_ms): New prototype.
43332 (grub_rtc_get_time_ms): New prototype.
43334 * kern/time.c (grub_get_time_ms): New function.
43335 (grub_install_get_time_ms): New function.
43337 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
43338 <grub/time.h> anymore.
43339 (grub_millisleep): Removed.
43340 (grub_machine_init): Call grub_tsc_init.
43342 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
43343 get_time_ms() implementation.
43345 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
43346 (ieee1275_get_time_ms): New function.
43347 (grub_machine_init): Install get_time_ms() implementation.
43349 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
43350 (grub_machine_init): Call grub_tsc_init().
43351 (grub_millisleep): Removed.
43353 * kern/ieee1275/init.c (grub_millisleep): Removed.
43354 (grub_machine_init): Install ieee1275_get_time_ms()
43356 (ieee1275_get_time_ms): New function.
43357 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
43360 2008-08-05 Marco Gerards <marco@gnu.org>
43362 * disk/ata.c: Include <grub/pci.h>.
43363 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
43364 (grub_ata_initialize): Rewritten.
43365 (grub_ata_device_initialize): New function.
43367 2008-08-04 Pavel Roskin <proski@gnu.org>
43369 * kern/main.c: Include grub/mm.h.
43371 2008-08-04 Robert Millan <rmh@aybabtu.com>
43373 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
43374 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
43375 corruption problem).
43377 2008-08-04 Robert Millan <rmh@aybabtu.com>
43379 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
43380 warnings introduced in my last commit.
43382 2008-08-03 Robert Millan <rmh@aybabtu.com>
43384 Make PCI available on all i386 architectures.
43386 * include/grub/i386/pc/pci.h: Move from here ...
43387 * include/grub/i386/pci.h: ... to here.
43389 * include/grub/i386/pc/pci.h: Remove.
43390 * include/grub/i386/efi/pci.h: Remove.
43391 * include/grub/x86_64/efi/pci.h: Remove.
43393 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
43394 `<grub/cpu/pci.h>'.
43396 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
43397 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
43398 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
43400 * conf/i386-ieee1275.rmk: Likewise.
43402 2008-08-03 Robert Millan <rmh@aybabtu.com>
43404 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
43405 (grub_console_setcursor): Make it possible to set cursor off.
43407 2008-08-03 Robert Millan <rmh@aybabtu.com>
43409 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
43410 of modules instead of assuming which platform provides what.
43411 * util/update-grub.in: Likewise.
43413 2008-08-03 Robert Millan <rmh@aybabtu.com>
43415 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
43416 instead of `grub_install_dos_part' to determine whether a drive needs
43417 to be prepended to prefix (`grub_install_dos_part' is not reliable,
43418 because it can be overridden when loading GRUB via Multiboot).
43420 2008-08-02 Robert Millan <rmh@aybabtu.com>
43422 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
43424 2008-08-02 Robert Millan <rmh@aybabtu.com>
43426 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
43427 of informational grub_dprintf() calls.
43429 2008-08-02 Robert Millan <rmh@aybabtu.com>
43431 * disk/memdisk.c (memdisk_size): Don't initialize.
43432 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
43434 * include/grub/i386/pc/kernel.h
43435 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
43436 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
43437 (grub_memdisk_image_size, grub_arch_memdisk_addr)
43438 (grub_arch_memdisk_size): Remove.
43440 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
43441 field (was only used to transfer a constant). Add `type' field to
43442 support multiple module types.
43443 (grub_module_iterate): New function.
43445 * kern/device.c (grub_device_open): Do not hide error messages
43446 when grub_disk_open() fails. Use grub_print_error() instead.
43448 * kern/i386/pc/init.c (grub_arch_modules_addr)
43449 (grub_arch_memdisk_size): Remove functions.
43450 (grub_arch_modules_addr): Return the module address in high memory
43451 (now that it isn't copied anymore).
43453 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
43454 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
43455 decompression routine (grub_total_module_size already includes that
43456 now). Don't copy modules back to low memory.
43458 * kern/main.c: Include `<grub/mm.h>'.
43459 (grub_load_modules): Split out (and use) ...
43460 (grub_module_iterate): ... this function, which iterates through
43461 module objects and runs a hook.
43462 Comment out grub_mm_init_region() call, as it would cause non-ELF
43463 modules to be overwritten.
43465 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
43466 the memdisk image in its own region, make it part of the module list.
43467 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
43468 (main): Parse --memdisk|-m option, and pass user-provided path as
43469 parameter to generate_image().
43470 (add_segments): Pass `memdisk_path' down to load_modules().
43471 (load_modules): Embed memdisk image in module section when requested.
43472 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
43473 `header.type' instead of `header.offset'.
43475 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
43476 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
43477 (memdisk_mod_LDFLAGS): New variables.
43478 * conf/i386-coreboot.rmk: Likewise.
43479 * conf/i386-ieee1275.rmk: Likewise.
43481 2008-08-02 Robert Millan <rmh@aybabtu.com>
43483 * loader/i386/pc/multiboot.c (playground, forward_relocator)
43484 (backward_relocator): New variables. Used to allocate and relocate
43485 the payload, respectively.
43486 (grub_multiboot_load_elf32): Load into heap instead of requested
43487 address, install the appropriate relocator code in each bound of
43488 the payload, and set the entry point such that
43489 grub_multiboot_real_boot() will jump to one of them.
43491 * kern/i386/loader.S (grub_multiboot_payload_size)
43492 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43493 (grub_multiboot_payload_entry_offset): New variables.
43494 (grub_multiboot_real_boot): Set cpu context to what the relocator
43495 expects, and jump to the relocator instead of the payload.
43497 * include/grub/i386/loader.h (grub_multiboot_payload_size)
43498 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
43499 (grub_multiboot_payload_entry_offset): Export.
43501 2008-08-01 Bean <bean123ch@gmail.com>
43503 * normal/menu_entry.c (editor_getline): Don't return the original
43504 string as result, as it will be released by lexer once it has done
43507 2008-08-01 Robert Millan <rmh@aybabtu.com>
43509 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
43510 within menuentries, not before them.
43511 util/grub.d/10_hurd.in: Likewise.
43513 2008-08-01 Bean <bean123ch@gmail.com>
43515 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
43516 (bufio_mod_SOURCES): New macro.
43517 (bufio_mod_CFLAGS): Likewise.
43518 (bufio_mod_LDFLAGS): Likewise.
43520 * include/grub/bufio.h: New file.
43522 * io/bufio.c: Likewise.
43524 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
43525 (grub_video_reader_png): Use grub_buffile_open to open file.
43527 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
43528 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
43530 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
43531 (grub_video_reader_tga): Use grub_buffile_open to open file.
43533 * font/manager.c: Include <grub/bufio.h>.
43534 (add_font): Use grub_buffile_open to open file.
43536 2008-07-31 Robert Millan <rmh@aybabtu.com>
43538 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
43539 ELF segments, use a macro for arbitrarily accessing any of them instead
43540 of preparing a pointer that allows access to one at a time.
43541 (grub_multiboot_load_elf64): Likewise.
43543 2008-07-31 Bean <bean123ch@gmail.com>
43545 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
43546 GRUB_KERNEL_MACHINE_DATA_END.
43548 2008-07-30 Robert Millan <rmh@aybabtu.com>
43550 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
43551 Increase from 0x50 to 0x60.
43552 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
43553 use UUIDs to identify the root drive for them. If that's not
43555 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
43556 check, for cross-disk installs.
43558 2008-07-30 Robert Millan <rmh@aybabtu.com>
43560 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
43561 is non-empty, use it to set the `prefix' environment variable instead
43562 of the usual approach.
43563 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
43564 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
43565 environment variable instead of dummy make_install_device().
43567 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
43568 (start): Insert a data section, with `grub_prefix' variable.
43569 * kern/i386/linuxbios/startup.S: Likewise.
43571 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
43572 New variable reference.
43573 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
43574 New macro. Defines offset of `grub_prefix' within startup.S (relative
43576 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
43577 section within startup.S (relative to `start').
43578 * include/grub/i386/coreboot/kernel.h: Likewise.
43580 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
43581 Overwrite grub_prefix with its contents, at the beginning of the
43583 (main): Understand -p|--prefix.
43585 2008-07-30 Robert Millan <rmh@aybabtu.com>
43587 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
43589 2008-07-30 Robert Millan <rmh@aybabtu.com>
43591 * term/i386/pc/vga_text.c (grub_console_cls): Use
43592 grub_console_gotoxy() to go back to beginning of the screen.
43593 Found by Patrick Georgi <patrick.georgi@coresystems.de>
43595 2008-07-29 Christian Franke <franke@computer.org>
43597 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
43598 Add conversion of emulated mount points on Cygwin.
43600 2008-07-29 Christian Franke <franke@computer.org>
43602 * util/update-grub.in: Add a check for admin
43604 Remove old `grub.cfg.new' before creation.
43605 Add `-f' to `mv' to handle the different filesystem
43606 semantics of Windows.
43608 2008-07-29 Bean <bean123ch@gmail.com>
43610 * normal/main.c (get_line): Fix buffer overflow bug.
43612 2008-07-28 Robert Millan <rmh@aybabtu.com>
43614 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
43615 (struct grub_apple_header): New struct. Describes the layout of
43616 the partmap header.
43617 (apple_partition_map_iterate): Check the header magic as well as the
43618 partition magic (which was already being checked).
43620 2008-07-28 Pavel Roskin <proski@gnu.org>
43622 * genmk.rb: Add a warning to the beginning of the output that
43623 it's a generated file and should not be edited.
43625 2008-07-28 Robert Millan <rmh@aybabtu.com>
43627 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
43628 with the same number are found, just use issue a warning with
43629 grub_dprintf(), as this error has been reported to be non-fatal.
43631 2008-07-27 Robert Millan <rmh@aybabtu.com>
43633 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
43636 2008-07-27 Bean <bean123ch@gmail.com>
43638 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
43639 (grub_fat_find_dir): Ignore case when comparing filename.
43641 2008-07-27 Bean <bean123ch@gmail.com>
43643 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
43644 smallino, as it's more descriptive, and i8count can be confused with
43645 the other field count.
43646 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
43649 2008-07-27 Bean <bean123ch@gmail.com>
43651 * commands/crc.c: New file.
43653 * lib/crc.c: Likewise.
43655 * include/grub/lib/crc.h: Likewise.
43657 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
43659 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
43660 (hexdump): Move this function to ...
43662 * lib/hexdump.c: ... here.
43664 * include/grub/hexdump.h: Renamed to ...
43666 * include/grub/lib/hexdump.h: ... this.
43668 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
43670 * util/grub-editenv.c: Likewise.
43672 * include/envblk.h: Renamed to ...
43674 * include/lib/envblk.h: ... this.
43676 * util/envblk.c: Renamed to ...
43678 * lib/envblk.c: ... this.
43680 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
43682 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
43683 (pkglib_MODULES): Add crc.mod.
43684 (hexdump_mod_SOURCES): Add lib/hexdump.c.
43685 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
43686 (crc_mod_SOURCES): New macro.
43687 (crc_mod_CFLAGS): Likewise.
43688 (crc_mod_LDFLAGS): Likewise.
43690 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
43692 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43694 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
43696 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43698 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
43700 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
43702 * commands/help.c: Include <grub/term.h>.
43703 (TERM_WIDTH): Removed. Updated all users.
43705 2008-07-27 Pavel Roskin <proski@gnu.org>
43707 * util/getroot.c (find_root_device): Rephrase a comment to avoid
43708 spurious warnings about a comment within a comment.
43710 2008-07-25 Robert Millan <rmh@aybabtu.com>
43712 * util/getroot.c (find_root_device): Skip devices that match
43713 /dev/dm-[0-9]. This lets the real device be found for any type of
43714 abstraction (LVM, EVMS, RAID..).
43715 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
43716 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
43717 device is found first, find_root_device() will now skip it.
43719 2008-07-24 Pavel Roskin <proski@gnu.org>
43721 * include/grub/types.h: Use __builtin_bswap32() and
43722 __builtin_bswap64() with gcc 4.3 and newer.
43724 2008-07-24 Christian Franke <franke@computer.org>
43726 * util/i386/pc/grub-install.in: If `--debug' is specified,
43727 pass `--verbose' to grub-setup.
43728 Abort script if make_system_path_relative_to_its_root() fails.
43730 2008-07-24 Bean <bean123ch@gmail.com>
43732 * configure.ac: Fixed a bug caused by the previous cygwin patch,
43733 variable `target_platform' should be `platform'.
43735 2008-07-24 Bean <bean123ch@gmail.com>
43737 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
43738 (grub_png_init_fixed_block): New function.
43739 (grub_png_decode_image_data): Handle fixed huffman code compression.
43741 2008-07-24 Bean <bean123ch@gmail.com>
43743 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
43744 (grub_pe2elf_SOURCES): New macro.
43745 (CLEANFILES): Add grub-pe2elf.
43747 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
43748 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
43749 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
43750 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
43751 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
43752 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
43753 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
43754 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
43755 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
43756 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
43757 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
43758 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
43759 (GRUB_PE32_DT_FUNCTION): Likewise.
43760 (GRUB_PE32_REL_I386_DIR32): Likewise.
43761 (GRUB_PE32_REL_I386_REL32): Likewise.
43762 (grub_pe32_symbol): New structure.
43763 (grub_pe32_reloc): Likewise.
43765 * util/grub-pe2elf.c: New file.
43767 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
43768 start symbol in non pc platform.
43770 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
43772 The following patches are from Christian Franke.
43774 * include/grub/dl.h: Remove .previous, gas supports this only
43777 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
43778 Remove .type, gas supports this only for ELF format.
43780 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
43781 nullbytes in symbol table. This fixes an infinite loop if table is
43784 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
43785 TARGET_IMG_LDFLAGS and EXEEXT.
43787 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
43788 TARGET_IMG_LDFLAGS_AC.
43789 (grub_CHECK_STACK_ARG_PROBE): New function.
43791 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
43793 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
43795 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
43796 to set TARGET_IMG_LD* accordingly.
43797 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
43798 Add call to grub_CHECK_STACK_ARG_PROBE.
43799 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
43801 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
43803 * genmk.rb: Add EXEEXT to CLEANFILES.
43805 2008-07-23 Robert Millan <rmh@aybabtu.com>
43807 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
43808 define the codes for arrows and lines used for the menu).
43809 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
43812 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
43813 fonts, because the latter are too slow.
43815 2008-07-21 Bean <bean123ch@gmail.com>
43817 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
43818 a20. Run keyboard test last, as it will cause macbook to halt.
43820 2008-07-18 Pavel Roskin <proski@gnu.org>
43822 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
43823 load foreign architecture modules correctly anyway. Keep
43824 support for loading host architecture modules, whether we
43825 compile them or not.
43827 2008-07-17 Pavel Roskin <proski@gnu.org>
43829 * configure.ac: Use -m32 or -m64 regardless of whether we had to
43830 change target_cpu. The compiler default can mismatch target_cpu
43833 * disk/efi/efidisk.c: Fix format warnings on x86_64.
43834 * kern/efi/efi.c: Likewise.
43836 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
43837 target compiler is functional.
43838 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
43841 * configure.ac: Default to efi platform for x86_64-apple. Allow
43842 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
43843 adjustments from the rest, only do them if target is not
43844 explicitly given. Merge other adjustments with the final sanity
43845 check. Remove an extraneous check for supported CPU. Be
43846 specific which CPU and which platform is not supported.
43848 * configure.ac: Default to pc platform for x86_64.
43850 2008-07-17 Robert Millan <rmh@aybabtu.com>
43852 Partial LinuxBIOS -> Coreboot rename.
43854 * conf/i386-linuxbios.rmk: Renamed to ...
43855 * conf/i386-coreboot.rmk: ... this.
43856 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
43857 * configure.ac: Accept "coreboot" as input platform (but maintain
43858 compatibility with "linuxbios").
43859 * include/grub/i386/linuxbios: Renamed to ...
43860 * include/grub/i386/coreboot: ... this.
43862 2008-07-17 Bean <bean123ch@gmail.com>
43864 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
43865 (appleldr_mod_SOURCE): New variable.
43866 (appleldr_mod_CFLAGS): Likewise.
43867 (appleldr_mod_LDFLAGS): Likewise.
43868 (pci_mod_SOURCES): Likewise.
43869 (pci_mod_CFLAGS): Likewise.
43870 (pci_mod_LDFLAGS): Likewise.
43871 (lspci_mod_SOURCES): Likewise.
43872 (lspci_mod_CFLAGS): Likewise.
43873 (lspci_mod_LDFLAGS): Likewise.
43875 * conf/x86_64-efi.rmk: New file.
43877 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
43879 (grub_efidisk_write): Likewise.
43881 * include/efi/api.h (efi_call_0): New macro.
43882 (efi_call_1): Likewise.
43883 (efi_call_2): Likewise.
43884 (efi_call_3): Likewise.
43885 (efi_call_4): Likewise.
43886 (efi_call_5): Likewise.
43887 (efi_call_6): Likewise.
43889 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
43890 grub_rescue_cmd_chainloader.
43892 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
43893 (grub_pe32_optional_header): Change some fields based on i386 or
43895 (GRUB_PE32_PE32_MAGIC): Likewise.
43897 * include/grub/efi/uga_draw.h: New file.
43899 * include/grub/elf.h (STN_ABS): New constant.
43900 (R_X86_64_NONE): Relocation constant for x86_64.
43901 (R_X86_64_64): Likewise.
43902 (R_X86_64_PC32): Likewise.
43903 (R_X86_64_GOT32): Likewise.
43904 (R_X86_64_PLT32): Likewise.
43905 (R_X86_64_COPY): Likewise.
43906 (R_X86_64_GLOB_DAT): Likewise.
43907 (R_X86_64_JUMP_SLOT): Likewise.
43908 (R_X86_64_RELATIVE): Likewise.
43909 (R_X86_64_GOTPCREL): Likewise.
43910 (R_X86_64_32): Likewise.
43911 (R_X86_64_32S): Likewise.
43912 (R_X86_64_16): Likewise.
43913 (R_X86_64_PC16): Likewise.
43914 (R_X86_64_8): Likewise.
43915 (R_X86_64_PC8): Likewise.
43917 * include/grub/i386/efi/pci.h: New file.
43919 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
43920 Change it value based on platform.
43921 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
43922 (GRUB_E820_RAM): Likewise.
43923 (GRUB_E820_RESERVED): Likewise.
43924 (GRUB_E820_ACPI): Likewise.
43925 (GRUB_E820_NVS): Likewise.
43926 (GRUB_E820_EXEC_CODE): Likewise.
43927 (GRUB_E820_MAX_ENTRY): Likewise.
43928 (grub_e820_mmap): New structure.
43929 (linux_kernel_header): Change the efi field according to different
43930 kernel version, also field from linux_kernel_header.
43932 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
43934 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
43935 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
43936 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
43937 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
43938 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
43939 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
43940 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
43941 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
43942 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
43943 (GRUB_PCI_ADDR_IO_MASK): Likewise.
43945 * include/grub/x86_64/efi/kernel.h: New file.
43947 * include/grub/x86_64/efi/loader.h: Likewise.
43949 * include/grub/x86_64/efi/machine.h: Likewise.
43951 * include/grub/x86_64/efi/pci.h: Likewise.
43953 * include/grub/x86_64/efi/time.h: Likewise.
43955 * include/grub/x86_64/linux.h: Likewise.
43957 * include/grub/x86_64/setjmp.h: Likewise.
43959 * include/grub/x86_64/time.h: Likewise.
43961 * include/grub/x86_64/types.h: Likewise.
43963 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
43964 GRUB_TARGET_SIZEOF_VOID_P.
43966 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
43967 (grub_efi_locate_handle): Likewise.
43968 (grub_efi_open_protocol): Likewise.
43969 (grub_efi_set_text_mode): Likewise.
43970 (grub_efi_stall): Likewise.
43971 (grub_exit): Likewise.
43972 (grub_reboot): Likewise.
43973 (grub_halt): Likewise.
43974 (grub_efi_exit_boot_services): Likewise.
43975 (grub_get_rtc): Likewise.
43977 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
43978 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
43979 (grub_efi_allocate_pages): Wrap efi calls.
43980 (grub_efi_free_pages): Wrap efi calls.
43981 (grub_efi_get_memory_map): Wrap efi calls.
43983 * kern/x86_64/dl.c: New file.
43985 * kern/x86_64/efi/callwrap.S: Likewise.
43987 * kern/x86_64/efi/startup.S: Likewise.
43989 * loader/efi/appleloader.c: Likewise.
43991 * loader/efi/chainloader.c (cmdline): New variable.
43992 (grub_chainloader_unload): Wrap efi calls.
43993 (grub_chainloader_boot): Likewise.
43994 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
43997 * loader/efi/chainloader_normal.c (chainloader_command):
43998 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
44001 * loader/i386/efi/linux.c (allocate_pages): Change allocation
44003 (grub_e820_add_region): New function.
44004 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
44006 (grub_find_video_card): New function.
44007 (grub_linux_setup_video): New function.
44008 (grub_rescue_cmd_linux): Probe for video information.
44010 * normal/x86_64/setjmp.S: New file.
44012 * term/efi/console.c (map_char): New function.
44013 (grub_console_putchar): Map unicode char.
44014 (grub_console_checkkey): Wrap efi calls.
44015 (grub_console_getkey): Likewise.
44016 (grub_console_getwh): Likewise.
44017 (grub_console_gotoxy): Likewise.
44018 (grub_console_cls): Likewise.
44019 (grub_console_setcolorstate): Likewise.
44020 (grub_console_setcursor): Likewise.
44022 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
44024 2008-07-16 Pavel Roskin <proski@gnu.org>
44026 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
44029 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
44030 pointer, not an integer. This fixes a warning and prevents
44031 precision loss on 64-bit systems.
44032 (relocate_addresses): Remove unneeded cast.
44034 2008-07-15 Pavel Roskin <proski@gnu.org>
44036 * kern/i386/ieee1275/init.c: Include grub/cache.h.
44038 * term/ieee1275/ofconsole.c: Disable code unused on i386.
44040 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
44041 Fix comparison between signed and unsigned.
44043 * include/grub/i386/ieee1275/console.h: Declare
44044 grub_console_init() and grub_console_fini().
44046 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
44047 It's empty and unused.
44049 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
44050 beginning to avoid warnings with some compilers.
44052 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
44053 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
44055 2008-07-14 Pavel Roskin <proski@gnu.org>
44057 * kern/env.c (grub_register_variable_hook): Don't copy empty
44058 string, it leaks memory. Pass "" to grub_env_set(), it should
44059 handle constant strings.
44061 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
44062 * commands/cmp.c (grub_cmd_cmp): Likewise.
44063 * kern/dl.c (grub_dl_flush_cache): Likewise.
44064 (grub_dl_load_core): Likewise.
44065 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
44066 (grub_elf64_load_phdrs): Likewise.
44068 2008-07-13 Pavel Roskin <proski@gnu.org>
44070 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
44071 between signed and unsigned.
44072 (LzmaEnc_Finish): Fix warning about an unused parameter.
44074 2008-07-13 Bean <bean123ch@gmail.com>
44076 * Makefile.in (enable_lzo): New rule.
44078 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
44080 * configure.ac (ENABLE_LZO): New option --enable-lzo.
44082 * boot/i386/pc/lnxboot.S: #include <config.h>.
44084 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
44085 its value according to the compression algorithm used, lzo or lzma.
44087 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
44088 compression algorithm according to configure macro.
44090 * kern/i386/pc/startup.S (codestart): Likewise.
44092 * kern/i386/pc/lzma_decode.S: New file.
44094 * include/grub/lib/LzFind.h: Likewise.
44096 * include/grub/lib/LzHash.h: Likewise.
44098 * include/grub/lib/LzmaDec.h: Likewise.
44100 * include/grub/lib/LzmaEnc.h: Likewise.
44102 * include/grub/lib/LzmaTypes.h: Likewise.
44104 * lib/LzFind.c: Likewise.
44106 * lib/LzmaDec.c: Likewise.
44108 * lib/LzmaEnc.c: Likewise.
44110 2008-07-13 Bean <bean123ch@gmail.com>
44112 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
44113 (grub_ext4_extent_header): New structure.
44114 (grub_ext4_extent): Likewise.
44115 (grub_ext4_extent_idx): Likewise.
44116 (grub_ext4_find_leaf): New function.
44117 (grub_ext2_read_block): Handle extents.
44119 2008-07-12 Robert Millan <rmh@aybabtu.com>
44121 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
44123 2008-07-11 Robert Millan <rmh@aybabtu.com>
44125 * util/grub.d/40_custom.in: New file. Example on how to add custom
44126 entries to /etc/grub.d.
44127 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
44128 40_custom (implicitly, by merging all the grub.d rules).
44130 2008-07-11 Pavel Roskin <proski@gnu.org>
44132 * commands/read.c (grub_getline): Fix invalid memory access.
44133 Don't add newline to the variable value.
44135 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
44136 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
44137 (serial_hw_get_port): Check validity of the port number.
44138 (grub_cmd_serial): Check return value of serial_hw_get_port().
44140 2008-07-07 Pavel Roskin <proski@gnu.org>
44142 * boot/i386/pc/diskboot.S (notification_string): Replace
44143 "Loading kernel" with just "loading". This is shorter, less
44144 confusing and saves a few bytes for possible future changes.
44146 2008-07-05 Pavel Roskin <proski@gnu.org>
44148 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
44149 size for ATAPI devices, they are undefined. Output sector
44150 number in decimal form.
44152 * disk/ata.c: Use named constants for status bits.
44154 2008-07-04 Pavel Roskin <proski@gnu.org>
44156 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
44157 grub_addr_t before casting it to the void pointer to fix a
44158 warning. Non-addressable regions are discarded earlier.
44159 (grub_arch_modules_addr): Cast _end to grub_addr_t.
44160 * kern/i386/linuxbios/table.c: Include grub/misc.h.
44161 (check_signature): Don't shadow table_header.
44162 (grub_linuxbios_table_iterate): Cast numeric constants to
44163 grub_linuxbios_table_header_t.
44164 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
44167 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
44170 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
44171 pointer, which can cause warnings. Support 64-bit addresses.
44173 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
44174 of sizeof(long). This fixes PowerPC image generation on x86_64.
44176 2008-07-04 Robert Millan <rmh@aybabtu.com>
44178 This fixes a performance issue when pc & gpt partmap iterators
44179 didn't abort iteration even after our hook found what it was
44180 looking for (often causing expensive probes of non-existent drives).
44182 Some callers relied on previous buggy behaviour, since they would
44183 raise an error when their own hooks caused early abortion of its
44186 * kern/device.c (grub_device_open): Improve error message.
44187 * disk/lvm.c (grub_lvm_open): Likewise.
44188 * disk/raid.c (grub_raid_open): Likewise.
44190 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
44191 when hook requests it, independently of grub_errno.
44192 (pc_partition_map_probe): Do not fail when find_func() caused
44193 early abortion of pc_partition_map_iterate().
44195 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
44196 when hook requests it, independently of grub_errno.
44197 (gpt_partition_map_probe): Do not fail when find_func() caused
44198 early abortion of gpt_partition_map_iterate().
44200 * kern/partition.c (grub_partition_iterate): Abort parent iteration
44201 when hook requests it, independently of grub_errno. Do not fail when
44202 part_map_iterate_hook() caused early abortion of p->iterate().
44204 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
44205 when grub_partition_iterate() returned with non-zero.
44207 2008-07-03 Pavel Roskin <proski@gnu.org>
44209 * disk/ata.c (grub_ata_pio_write): Check status before writing,
44210 like we do in grub_ata_pio_read().
44211 (grub_ata_readwrite): Always write individual sectors. Fix the
44212 sector count for the remainder.
44213 (grub_ata_write): Enable writing to ATA devices. Correctly
44214 report error for ATAPI devices.
44216 2008-07-02 Pavel Roskin <proski@gnu.org>
44218 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
44221 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
44222 for every read sector, we already increment it for the whole
44223 batch. This fixes reading more than 256 sectors at once.
44225 * util/grub-editenv.c (cmd_info): Cast argument to long
44226 explicitly. ptrdiff_t reduces to int on i386.
44228 * util/grub-editenv.c (main): Be specific which parameter is
44231 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
44232 (memdisk): Make memdisk_orig_addr a pointer.
44234 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
44235 for file offsets, use grub_off_t instead. Fix printf format
44238 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
44239 there. Real unexpected warnings should not drown in the noise
44240 about known problems.
44242 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
44243 grub_disk_addr_t for memory addresses.
44245 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
44246 explicitly to fix a warning.
44248 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
44250 * Makefile.in (MODULE_LDFLAGS): New variable.
44251 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
44252 the linker accepts --build-id=none.
44253 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
44255 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
44257 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
44258 those in Linux XFS code. Provide a way to access 64-bit parent
44260 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
44261 the end of struct grub_xfs_dir_header.
44263 2008-07-02 Bean <bean123ch@gmail.com>
44265 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
44266 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44267 and GRUB_IEEE1275_FLAG_NO_ANSI.
44269 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
44270 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
44271 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
44273 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
44274 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
44276 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
44277 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
44279 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
44280 esc sequence on non ANSI terminal.
44281 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
44283 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
44286 2008-07-02 Bean <bean123ch@gmail.com>
44288 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
44289 (grub_editenv_SOURCES): New variable.
44290 (pkglib_MODULES): Add loadenv.mod.
44291 (loadenv_mod_SOURCES): New variable.
44292 (loadenv_mod_CFLAGS): Likewise.
44293 (loadenv_mod_LDFLAGS): Likewise.
44295 * include/grub/envblk.h: New file.
44297 * util/envblk.c: New file.
44299 * util/grub-editenv.c: New file.
44301 * commands/loadenv.c: New file.
44303 2008-07-01 Pavel Roskin <proski@gnu.org>
44305 * include/multiboot2.h (struct multiboot_tag_module): Use char,
44306 not unsigned char. This fixes warnings and is consistent with
44309 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
44311 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
44313 * term/tparm.c (analyze): Always set *popcount.
44315 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
44316 cast to fix a warning.
44318 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
44319 cast to suppress a warning.
44321 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
44322 grub_fshelp_read_file() expects.
44324 * fs/fat.c: Fix UUID calculation on big-endian systems. We
44325 write uuid as a 32-bit value in CPU byte order, so declare and
44328 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
44329 long if the format specifier expects it.
44330 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
44331 * partmap/pc.c (pc_partition_map_iterate): Likewise.
44332 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
44333 long to fix a warning.
44334 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
44335 grub_dprintf() arguments to fix warnings.
44337 2008-06-30 Pavel Roskin <proski@gnu.org>
44339 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
44340 install_bsd_part immediately before core.img is embedded or
44341 modified on disk. This fixes core.img verification if core.img
44342 cannot be embedded.
44344 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
44345 core_path to calculate the blocklist.
44346 Patch from Javier Martín <lordhabbit@gmail.com>
44348 2008-06-29 Robert Millan <rmh@aybabtu.com>
44350 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
44351 block to disk block.
44352 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
44353 Patch from Niels Böhm <bitbucket@arcor.de>
44355 2008-06-29 Robert Millan <rmh@aybabtu.com>
44357 * util/update-grub_lib.in (font_path): Search for fonts in
44358 /boot/grub first, which is more likely to be readable (we aren't
44359 deciding where fonts live, just looking for them).
44361 2008-06-26 Pavel Roskin <proski@gnu.org>
44363 * util/biosdisk.c (read_device_map): Don't leave dead map
44364 entries for devices failing stat() check.
44366 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
44367 core_path_dev for the core.img path on the target device.
44369 2008-06-26 Robert Millan <rmh@aybabtu.com>
44371 * disk/fs_uuid.c: New file.
44372 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
44373 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
44374 (fs_uuid_mod_LDFLAGS): New variables.
44375 * include/grub/disk.h (grub_disk_dev_id): Add
44376 `GRUB_DISK_DEVICE_UUID_ID'.
44377 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
44378 implement iterate().
44380 2008-06-26 Robert Millan <rmh@aybabtu.com>
44382 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
44383 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
44384 Linux image includes no initrd.
44386 2008-06-21 Javier Martín <lordhabbit@gmail.com>
44388 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
44389 call to resolve the core image location that effectively appended the
44392 2008-06-21 Robert Millan <rmh@aybabtu.com>
44394 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
44397 * util/grub.d/10_hurd.in: ... to here ...
44398 * util/grub.d/10_linux.in: ... and here.
44400 2008-06-19 Robert Millan <rmh@aybabtu.com>
44402 * kern/main.c (grub_main): Export `prefix' variable immediately
44403 after it has been set by grub_machine_set_prefix().
44405 2008-06-19 Robert Millan <rmh@aybabtu.com>
44407 * commands/search.c (search_label, search_fs_uuid, search_file): Print
44408 search result when not saving to variable, not the other way around.
44409 When saving to variable, abort iteration as soon as a match is found.
44411 2008-06-19 Robert Millan <rmh@aybabtu.com>
44413 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
44414 check for partition that provides /boot/grub. Its logic is flawed,
44415 as it prevents prepare_grub_to_access_device() from being called
44418 2008-06-19 Robert Millan <rmh@aybabtu.com>
44420 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
44421 "insmod" command directly when abstraction modules are needed,
44422 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
44423 since it had already been processed).
44425 2008-06-19 Pavel Roskin <proski@gnu.org>
44427 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
44428 changed. This is needed in case GRUB_LIBDIR changes.
44429 * conf/i386-ieee1275.rmk: Likewise.
44430 * conf/i386-linuxbios.rmk: Likewise.
44431 * conf/i386-pc.rmk: Likewise.
44432 * conf/powerpc-ieee1275.rmk: Likewise.
44434 2008-06-18 Pavel Roskin <proski@gnu.org>
44436 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
44437 kernel_elf_symlist.c to symlist.c for consistency with other
44438 architectures. Update all users.
44439 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
44441 2008-06-18 Robert Millan <rmh@aybabtu.com>
44443 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
44446 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
44447 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
44448 a RAID device, run setup() for all members independently on whether
44449 LVM abstraction is being used.
44450 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
44451 If grub-mkimage has set `*install_dos_part == -2', don't override this
44453 Perform *install_dos_part adjustments independently on whether
44454 we're embedding or not.
44455 Clarify error message when image is too big for embedding.
44456 Remove duplicate *install_dos_part stanza.
44458 2008-06-17 Robert Millan <rmh@aybabtu.com>
44460 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
44461 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
44463 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
44464 values in grub_ofconsole_normal_color and
44465 grub_ofconsole_highlight_color (they're not directly related to
44466 background and foreground).
44467 (grub_ofconsole_setcolorstate): Extract background and foreground
44468 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
44470 2008-06-17 Robert Millan <rmh@aybabtu.com>
44472 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
44473 /boot/grub for the check in last commit, not /boot (they could be
44474 different partitions).
44476 2008-06-16 Robert Millan <rmh@aybabtu.com>
44478 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
44479 asked to setup access for the same partition that provides /boot,
44480 don't bother using UUIDs since our root already has the value we
44483 2008-06-16 Robert Millan <rmh@aybabtu.com>
44485 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
44487 Patch from Sven Mueller <sven@debian.org>.
44489 2008-06-16 Robert Millan <rmh@aybabtu.com>
44491 * util/update-grub.in: Check for $EUID instead of $UID.
44492 Reported by Vincent Zweije.
44494 2008-06-16 Bean <bean123ch@gmail.com>
44496 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
44497 (grub_ext2_read_block): Likewise.
44498 (grub_ext2_read_inode): Likewise.
44499 (grub_ext2_mount): Likewise.
44500 (grub_ext2_close): Likewise.
44501 (grub_ext3_get_journal): Removed.
44503 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
44504 (grub_reiserfs_read_symlink): Likewise.
44505 (grub_reiserfs_mount): Likewise.
44506 (grub_reiserfs_open): Likewise.
44507 (grub_reiserfs_read): Likewise.
44508 (grub_reiserfs_close): Likewise.
44509 (grub_reiserfs_get_journal): Removed.
44511 * fs/fshelp.c (grub_fshelp_read): Removed.
44512 (grub_fshelp_map_block): Likewise.
44514 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
44515 (grub_fshelp_journal): Likewise.
44516 (grub_fshelp_read): Likewise.
44517 (grub_fshelp_map_block): Likewise.
44519 2008-06-16 Pavel Roskin <proski@gnu.org>
44521 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
44522 floating point anymore.
44523 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
44525 2008-06-15 Pavel Roskin <proski@gnu.org>
44527 * commands/ls.c (grub_ls_list_files): Use integer calculations
44528 for human readable format, avoid floating point use.
44529 * kern/misc.c (grub_ftoa): Remove.
44530 (grub_vsprintf): Remove floating point support.
44532 2008-06-15 Robert Millan <rmh@aybabtu.com>
44534 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
44536 Reported by Max Vozeler.
44538 2008-06-15 Robert Millan <rmh@aybabtu.com>
44540 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
44541 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
44543 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
44544 the beginning of the prefix.
44546 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
44547 It is assumed that if we have a memdisk, grub-mkimage has set
44548 grub_prefix to include the "(memdisk)" drive in it.
44550 2008-06-15 Robert Millan <rmh@aybabtu.com>
44552 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
44553 Initialize keyboard controller after registering the terminal, so that
44554 grub_printf() can be called from grub_keyboard_controller_init().
44556 2008-06-15 Robert Millan <rmh@aybabtu.com>
44558 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
44559 extent-btree which is written as big endian on disk.
44560 Reported by Alain Greppin <al@chilibi.org>.
44562 2008-06-14 Robert Millan <rmh@aybabtu.com>
44564 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
44565 * util/i386/pc/grub-install.in (modules): Likewise.
44567 2008-06-13 Pavel Roskin <proski@gnu.org>
44569 * commands/ls.c (grub_ls_list_files): Fix format warnings.
44571 2008-06-13 Bean <bean123ch@gmail.com>
44573 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
44575 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
44577 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
44578 to indicate sparse block.
44580 2008-06-12 Pavel Roskin <proski@gnu.org>
44582 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
44583 number, grub_fshelp_read() does it for us.
44585 * fs/fshelp.c (grub_fshelp_read): New function. Implement
44586 linear disk read with journal translation.
44587 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
44588 * include/grub/fshelp.h: Declare grub_fshelp_read().
44590 2008-06-09 Pavel Roskin <proski@gnu.org>
44592 * fs/minix.c (grub_minix_mount): Handle error reading
44595 2008-06-08 Robert Millan <rmh@aybabtu.com>
44597 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
44598 don't append the RAID prefix afterwards.
44599 Reported by Clint Adams.
44601 2008-06-08 Robert Millan <rmh@aybabtu.com>
44603 Based on description from Pavel:
44604 * kern/disk.c (grub_disk_check_range): Rename to ...
44605 (grub_disk_adjust_range): ... this. Add a comment explaining the
44606 tasks performed by this function.
44608 2008-06-08 Robert Millan <rmh@aybabtu.com>
44610 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
44611 `num_serial' (for consistency with other variables).
44612 (struct grub_ntfs_data): Add `uuid' member.
44613 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
44614 (grub_ntfs_uuid): New function.
44615 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
44617 2008-06-07 Pavel Roskin <proski@gnu.org>
44619 * util/biosdisk.c (open_device): Revert last change to the
44620 function, it broke installation. The sector needs to be
44621 different dependent on which device is opened.
44623 2008-06-06 Robert Millan <rmh@aybabtu.com>
44625 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
44626 rest of GRUB, and breakage doesn't happen if its value were modified.
44628 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44629 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
44630 a constant (same value).
44631 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
44632 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
44634 2008-06-06 Robert Millan <rmh@aybabtu.com>
44636 * util/biosdisk.c (open_device): Do not modify sector offset when
44637 accessing a partition. kern/disk.c already handles this for us.
44639 2008-06-06 Robert Millan <rmh@aybabtu.com>
44641 * util/grub-emu.c (grub_machine_init): Move code in this function from
44643 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
44644 segfault in case grub_printf() is called).
44646 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
44647 grub_probe. Update all users not to explicitly add it again.
44648 (grub_device): New variable; contains corresponding device for grubdir.
44649 (fs_module, partmap_module, devabstraction_module): Pass
44650 `--device ${grub_device}' to grub_probe to avoid traversing /dev
44653 2008-06-05 Robert Millan <rmh@aybabtu.com>
44655 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
44656 is found, print it (same layout as with labels).
44658 2008-06-04 Robert Millan <rmh@aybabtu.com>
44660 * util/biosdisk.c (get_drive): Rename to ...
44661 (find_grub_drive): ... this. Update all users.
44663 (get_os_disk): Rename to ...
44664 (convert_system_partition_to_system_disk): ... this. Update all users.
44666 (find_drive): Rename to ...
44667 (find_system_device): ... this. Update all users.
44669 2008-06-04 Robert Millan <rmh@aybabtu.com>
44671 * util/biosdisk.c (get_os_disk): Handle IDA devices.
44672 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44673 (make_device_map): Likewise.
44675 2008-06-01 Robert Millan <rmh@aybabtu.com>
44677 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
44678 before dereferencing it.
44680 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
44681 union with fat12/fat16-specific ones. Add some new fields, including
44682 `num_serial' for both versions.
44683 (struct grub_fat_data): Add `uuid' member.
44684 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
44685 names. Initialize `data->uuid' using `num_serial'.
44686 (grub_fat_uuid): New function.
44687 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
44689 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
44690 (grub_reiserfs_uuid): New function.
44691 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
44694 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
44695 (grub_xfs_uuid): New function.
44696 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
44698 2008-06-01 Robert Millan <rmh@aybabtu.com>
44700 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
44701 code that is backward compatible with pre-uuid search command.
44703 2008-05-31 Robert Millan <rmh@aybabtu.com>
44705 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
44706 floppies after everything else, to ensure floppy drive isn't accessed
44707 unnecessarily (patch from Bean).
44709 2008-05-31 Robert Millan <rmh@aybabtu.com>
44711 * commands/search.c (search_label, search_fs_uuid, search_file): Do
44712 not print device names when we were asked to set a variable.
44714 2008-05-31 Robert Millan <rmh@aybabtu.com>
44716 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
44717 using "cursor-on" and "cursor-off" commands (understood at least by
44718 the Open Firmware flavour on OLPC).
44720 2008-05-31 Michael Gorven <michael@gorven.za.net>
44722 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
44723 on and off sequences.
44725 2008-05-31 Robert Millan <rmh@aybabtu.com>
44727 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
44728 * util/update-grub.in: Likewise.
44730 2008-05-30 Pavel Roskin <proski@gnu.org>
44732 * util/biosdisk.c (linux_find_partition): Simplify logic and
44733 make the code more universal. Keep special processing for
44734 devfs, but use a simple rule for all other devices. If the
44735 device ends with a number, append 'p' and the partition number.
44736 Otherwise, append only the partition number.
44738 2008-05-30 Robert Millan <rmh@aybabtu.com>
44740 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
44741 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
44742 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
44743 the `root' parameter to Linux.
44745 2008-05-30 Robert Millan <rmh@aybabtu.com>
44747 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
44748 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
44749 --fs_uuid with --fs-uuid.
44750 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
44751 all filesystems support them).
44753 2008-05-30 Robert Millan <rmh@aybabtu.com>
44755 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
44756 grub_printf() flags, since we're printing in units of 2 bytes.
44758 2008-05-30 Robert Millan <rmh@aybabtu.com>
44760 * util/grub.d/00_header.in: Remove obsolete comment referencing
44761 convert_system_path_to_grub_path().
44762 * util/update-grub.in: Likewise.
44763 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
44764 (convert_system_path_to_grub_path): Add a warning message explaining
44765 that this function is deprecated. Rely on is_path_readable_by_grub()
44766 for the readability checks.
44767 (font_path): Use is_path_readable_by_grub() for the readability
44768 check rather than convert_system_path_to_grub_path().
44770 2008-05-30 Robert Millan <rmh@aybabtu.com>
44772 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
44773 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
44774 converting it first.
44775 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
44776 grub.cfg for access to font file, and afterwards call it again to set
44779 2008-05-30 Robert Millan <rmh@aybabtu.com>
44781 * commands/search.c (options): Add --fs_uuid option.
44782 (search_fs_uuid): New function.
44783 (grub_cmd_search): Fix --set argument passing.
44784 Use search_fs_uuid() when requested via --fs_uuid.
44785 (grub_search_init): Update help message.
44786 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
44787 and redeclare it as an array of 16-bit words.
44788 (grub_ext2_uuid): New function.
44789 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
44790 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
44791 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
44792 (GRUB_DEVICE_BOOT_UUID): New variables.
44793 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
44794 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
44796 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
44797 just assume `root' variable has the right value.
44798 * util/grub.d/10_linux.in: Likewise.
44799 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
44801 (main): Recognise `-t fs_uuid' argument.
44803 2008-05-30 Robert Millan <rmh@aybabtu.com>
44805 * util/biosdisk.c (map): Redefine structure to hold information
44806 about GRUB drive name.
44807 (get_drive): Reimplement without assuming (and verifying) BIOS-like
44809 (call_hook): Remove.
44810 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
44811 member. Assume drive has partitions.
44812 (grub_util_biosdisk_open): Access device names via `.device' struct
44814 (open_device): Likewise.
44815 (find_drive): Likewise.
44816 (read_device_map): Adjust map[] usage to match the new struct
44817 definition. Don't check for duplicates (still possible, but not cheap
44819 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
44820 (make_device_name): Remove assumption of BIOS-like drive names.
44822 2008-05-30 Pavel Roskin <proski@gnu.org>
44824 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
44825 compiling execute.c doesn't need grub_script.tab.h anymore.
44826 (normal/command.c_DEPENDENCIES): Likewise.
44827 (normal/function.c_DEPENDENCIES): Likewise.
44828 * conf/i386-ieee1275.rmk: Likewise.
44829 * conf/i386-linuxbios.rmk: Likewise.
44830 * conf/i386-pc.rmk: Likewise.
44831 * conf/powerpc-ieee1275.rmk: Likewise.
44832 * conf/sparc64-ieee1275.rmk: Likewise.
44834 2008-05-29 Pavel Roskin <proski@gnu.org>
44836 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
44837 when scanning metadata for volume group name.
44839 * include/grub/script.h: Don't include grub_script.tab.h. It's
44840 a generated file, which may only be included from the files with
44841 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
44842 use union YYSTYPE, as the later allows forward declaration.
44843 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
44845 2008-05-29 Robert Millan <rmh@aybabtu.com>
44847 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
44848 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
44849 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
44850 (grub_console_checkkey): Add grub_dprintf() call to report unknown
44853 2008-05-29 Robert Millan <rmh@aybabtu.com>
44855 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
44856 control key combinations.
44858 2008-05-29 Robert Millan <rmh@aybabtu.com>
44860 * util/powerpc/ieee1275/grub-install.in: Move from here ...
44861 * util/ieee1275/grub-install.in: ... to here.
44862 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
44863 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
44864 (grub_install_SOURCES): Likewise.
44866 2008-05-29 Robert Millan <rmh@aybabtu.com>
44868 * fs/affs.c: Update copyright year.
44869 * fs/ext2.c: Likewise.
44870 * fs/fshelp.c: Likewise.
44871 * fs/hfsplus.c: Likewise.
44872 * fs/ntfs.c: Likewise.
44873 * fs/xfs.c: Likewise.
44874 * include/grub/fshelp.h: Likewise.
44875 * util/grub-mkdevicemap.c: Likewise.
44877 2008-05-28 Robert Millan <rmh@aybabtu.com>
44879 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
44880 might need to be fatfs to support some firmware implementations
44883 2008-05-28 Robert Millan <rmh@aybabtu.com>
44885 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
44887 * util/grub-mkdevicemap.c (get_mmc_disk_name)
44888 (make_device_map): Likewise.
44890 2008-05-20 Bean <bean123ch@gmail.com>
44892 * fs/fshelp.c (grub_fshelp_map_block): New function.
44893 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
44894 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
44896 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
44897 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
44898 (grub_fshelp_journal): New structure.
44899 (grub_fshelp_map_block): New function prototype.
44900 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
44901 (grub_fshelp_map_block): Likewise.
44903 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
44904 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
44905 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
44906 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
44907 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
44908 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
44909 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
44910 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
44911 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
44912 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
44913 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
44914 (grub_ext2_sblock): New members for journal support.
44915 (grub_ext3_journal_header): New structure.
44916 (grub_ext3_journal_revoke_header): Likewise.
44917 (grub_ext3_journal_block_tag): Likewise.
44918 (grub_ext3_journal_sblock): Likewise.
44919 (grub_fshelp_node): New members logfile and journal.
44920 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
44921 grub_fshelp_map_block to get real block number.
44922 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
44924 (grub_ext2_read_inode): Likewise.
44925 (grub_ext3_get_journal): New function.
44926 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
44927 (grub_ext2_close): Release memory used by journal.
44929 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
44930 (REISERFS_MAGIC_DESC_BLOCK): New macro.
44931 (grub_reiserfs_transaction_header): Renamed to
44932 grub_reiserfs_description_block, replace field data with real_blocks.
44933 (grub_reiserfs_commit_block): New structure.
44934 (grub_reiserfs_data): New member journal.
44935 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
44937 (grub_reiserfs_read_symlink): Likewise.
44938 (grub_reiserfs_iterate_dir): Likewise.
44939 (grub_reiserfs_open): Likewise.
44940 (grub_reiserfs_read): Likewise.
44941 (grub_reiserfs_get_journal): New function.
44942 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
44943 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
44944 using grub_reiserfs_get_journal.
44945 (grub_reiserfs_close): Release memory used by journal.
44947 * fs/affs.c (grub_affs_read_block): Change block type to
44948 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
44950 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
44952 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
44954 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
44956 * fs/udf.c (grub_udf_read_block): Change block type to
44957 grub_disk_addr_t. Use type cast to avoid warning.
44959 * fs/xfs.c (grub_xfs_read_block): Likewise.
44961 2008-05-16 Christian Franke <franke@computer.org>
44963 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
44964 to ensure that break with ESC will always work.
44965 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
44966 Remove ESC from keyboard queue.
44968 2008-05-16 Christian Franke <franke@computer.org>
44970 * util/biosdisk.c: [__CYGWIN__] Add includes.
44971 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
44972 (get_os_disk): Move variable declarations to OS specific
44973 parts to avoid warning.
44974 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
44975 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
44976 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
44978 * util/getroot.c: [__CYGWIN__] Add includes.
44979 (strip_extra_slashes): Fix "/" case.
44980 [__CYGWIN__] (get_win32_path): New function.
44981 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
44982 [__CYGWIN__] (find_root_device): Disable.
44983 [__CYGWIN__] (get_bootsec_serial): New function.
44984 [__CYGWIN__] (find_cygwin_root_device): Likewise.
44985 [__linux__] (grub_guess_root_device): Add early returns to simplify
44987 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
44988 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
44989 check for Linux only.
44991 2008-05-15 Bean <bean123ch@gmail.com>
44993 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
44994 keyboard hang problem in apple's intel mac.
44996 2008-05-09 Robert Millan <rmh@aybabtu.com>
44998 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
45000 * util/grub-mkdevicemap.c (get_virtio_disk_name)
45001 (make_device_map): Likewise.
45002 Reported by Aurelien Jarno <aurel32@debian.org>
45004 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
45006 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
45007 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
45008 (make_device_map): Output entries for xvd type disks.
45010 2008-05-07 Robert Millan <rmh@aybabtu.com>
45012 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
45014 * util/grub-mkdevicemap.c (get_cciss_disk_name)
45015 (make_device_map): Likewise.
45016 Reported by Roland Dreier <rdreier@cisco.com>
45018 2008-05-07 Robert Millan <rmh@aybabtu.com>
45020 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
45021 grub_strstr() call. Correct a few mistakes in failure path handling.
45023 2008-05-06 Robert Millan <rmh@aybabtu.com>
45025 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
45026 Do not print a trailing slash (therefore, the root directory is an
45028 (convert_system_path_to_grub_path): Do not remove trailing slash
45029 from make_system_path_relative_to_its_root() output.
45031 * util/i386/pc/grub-install.in: Add trailing slash to output from
45032 make_system_path_relative_to_its_root().
45034 2008-05-06 Robert Millan <rmh@aybabtu.com>
45036 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
45037 ensures that output lines aren't intermangled with those sent to
45038 stderr (via grub_util_info()).
45039 * util/grub-probe.c (grub_refresh): Likewise.
45040 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
45042 2008-05-05 Christian Franke <franke@computer.org>
45044 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
45045 Add Cygwin device names.
45046 (get_ide_disk_name) [__CYGWIN__]: Likewise.
45047 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
45048 (check_device): Return error instead of success on empty name.
45049 (make_device_map): Move label inside linux specific code to
45050 prevent compiler warning.
45052 2008-04-30 Robert Millan <rmh@aybabtu.com>
45054 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
45055 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
45057 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
45059 2008-04-29 Robert Millan <rmh@aybabtu.com>
45061 * docs/grub.cfg: New file (example GRUB configuration).
45063 2008-04-26 Robert Millan <rmh@aybabtu.com>
45065 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
45066 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
45067 and `disk/ieee1275/nand.c'.
45069 2008-04-25 Bean <bean123ch@gmail.com>
45071 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
45074 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
45075 change the buffer size to 4096 for cdrom device.
45077 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
45079 (_linux_mod_SOURCES): New variable.
45080 (_linux_mod_CFLAGS): Likewise.
45081 (_linux_mod_LDFLAGS): Likewise.
45082 (linux_mod_SOURCES): Likewise.
45083 (linux_mod_CFLAGS): Likewise.
45084 (linux_mod_LDFLAGS): Likewise.
45085 (nand_mod_SOURCES): Likewise.
45086 (nand_mod_CFLAGS): Likewise.
45087 (nand_mod_LDFLAGS): Likewise.
45089 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
45090 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
45091 type property. (nand device in olpc don't have this property)
45093 * include/grub/disk.h (grub_disk_dev_id): New macro
45094 GRUB_DISK_DEVICE_NAND_ID.
45096 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
45097 function prototype.
45098 (grub_rescue_cmd_initrd): Likewise.
45100 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
45101 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
45102 ofw_cif_handler and ofw_idt, adjust padding number.
45104 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
45105 GRUB_MACHINE_IEEE1275 is defined.
45107 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
45108 Use NESTED_FUNC_ATTR attribute on the hook parameter.
45110 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
45111 on nested function heap_init.
45112 (grub_upper_mem): New variable for i386-ieee1275.
45113 (grub_get_extended_memory): New function for i386-ieee1275.
45114 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
45116 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
45117 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
45120 * loader/i386/ieee1275/linux.c: New file.
45122 * loader/i386/ieee1275/linux_normal.c: New file.
45124 * disk/ieee1275/nand.c: New file.
45126 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
45128 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
45130 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
45132 2008-04-18 Robert Millan <rmh@aybabtu.com>
45134 Restructures early code path on ieee1275 to unify grub_main() as
45135 the first C function that is executed in every platform.
45137 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
45138 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
45140 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
45141 * kern/ieee1275/cmain.c (cmain): Rename to ...
45142 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
45143 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
45146 2008-04-18 Robert Millan <rmh@aybabtu.com>
45148 * util/update-grub.in: Fix syntax error when setting
45149 `GRUB_PRELOAD_MODULES'.
45150 Reported by Stephane Chazelas <stephane@artesyncp.com>
45152 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
45154 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
45155 section into account, newer toolchains generate unique build ids
45156 * configure.ac: remove the test for --build-id=none acceptance,
45157 we want build ids to be preserved
45158 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
45159 far from other sections don't cause the raw binary images grow
45162 2008-04-15 Robert Millan <rmh@aybabtu.com>
45164 * disk/lvm.c: Update copyright year.
45165 * kern/misc.c: Likewise.
45167 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45169 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
45170 there is no memory left for physical volume name.
45172 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
45174 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
45175 volume name mapping to support bigger than 9 character names properly.
45177 2008-04-13 Robert Millan <rmh@aybabtu.com>
45179 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
45180 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
45182 2008-04-13 Christian Franke <franke@computer.org>
45184 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
45185 to create a floppy emulation boot CD when non emulation mode
45187 Enable Joliet CD filesystem extension.
45189 2008-04-13 Robert Millan <rmh@aybabtu.com>
45191 * kern/misc.c (grub_strncat): Fix off-by-one error.
45192 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
45194 * kern/env.c (grub_env_context_close): Clear current context, not
45196 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
45198 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
45200 2008-04-13 Robert Millan <rmh@aybabtu.com>
45202 Improve robustness when handling LVM.
45204 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
45205 (and leave `*p' unmodified).
45206 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
45208 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
45209 iterating through it.
45210 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
45212 (grub_lvm_scan_device): Check the return value (and fail gracefully
45213 when due) on each grub_lvm_getvalue() or grub_strstr() call.
45214 Don't assume `vg->pvs != NULL' when iterating through it.
45216 2008-04-13 Robert Millan <rmh@aybabtu.com>
45218 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
45219 * genmk.rb (partmap): New variable.
45220 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
45221 (#{partmap}): New target rule.
45222 * genpartmaplist.sh: New file.
45223 * Makefile.in (pkglib_DATA): Add partmap.lst.
45224 (partmap.lst): New target rule.
45225 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
45226 modules (including all partition maps), instead of preloading them.
45228 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
45230 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
45231 `linux-boot-prober' (if installed) to detect other operating
45232 systems which are installed on the computer and add them to
45234 * conf/common.rmk: Build and install 30_os-prober.
45236 2008-04-12 Robert Millan <rmh@aybabtu.com>
45238 * kern/powerpc/ieee1275/init.c: Move from here ...
45239 * kern/ieee1275/init.c: ... to here. Update all users.
45241 * kern/powerpc/ieee1275/cmain.c: Move from here ...
45242 * kern/ieee1275/cmain.c: ... to here. Update all users.
45244 * kern/powerpc/ieee1275/openfw.c: Move from here ...
45245 * kern/ieee1275/openfw.c: ... to here. Update all users.
45247 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
45248 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
45250 2008-04-10 Pavel Roskin <proski@gnu.org>
45252 * configure.ac: Always use "_cv_" in cache variables for
45253 compatibility with Autoconf 2.62.
45255 2008-04-07 Robert Millan <rmh@aybabtu.com>
45257 Revert grub/machine/init.h addition by Pavel (since it breaks on
45258 i386-ieee1275 and others):
45259 * util/i386/pc/misc.c: Remove grub/machine/init.h.
45260 * util/powerpc/ieee1275/misc.c: Likewise.
45262 2008-04-07 Robert Millan <rmh@aybabtu.com>
45264 * util/grub-probe.c (probe): Improve error message.
45266 2008-04-07 Robert Millan <rmh@aybabtu.com>
45268 * util/biosdisk.c (read_device_map): Skip devices that don't exist
45269 (this prevents the presence of a bogus entry from ruining the whole
45272 2008-04-06 Pavel Roskin <proski@gnu.org>
45274 * util/biosdisk.c: Include grub/util/biosdisk.h.
45275 * util/grub-fstest.c (execute_command): Make static.
45276 * util/grub-mkdevicemap.c (check_device): Likewise.
45277 * util/i386/pc/misc.c: Include grub/machine/init.h.
45278 * util/powerpc/ieee1275/misc.c: Likewise.
45279 * util/lvm.c: Include grub/util/lvm.h.
45280 * util/misc.c: Include grub/kernel.h, grub/misc.h and
45282 * util/raid.c: Include grub/util/raid.h.
45283 (grub_util_getdiskname): Make static.
45285 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
45286 grub_hostfs_fini(), as they are called from grub_init_all() and
45287 grub_fini_all() respectively. This fixes an infinite loop in
45288 grub-fstest due to double registration of hostfs.
45289 Reported by Christian Franke <Christian.Franke@t-online.de>
45291 2008-04-05 Pavel Roskin <proski@gnu.org>
45293 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
45294 all 8 functions. Otherwise, probe function 0 only.
45296 2008-04-04 Pavel Roskin <proski@gnu.org>
45298 * commands/lspci.c (grub_lspci_iter): Print the bus number
45301 * commands/lspci.c (grub_pci_classes): Fix typos.
45302 (grub_lspci_iter): Don't print func twice. Print vendor ID
45303 before device ID, as it's normally done.
45305 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45306 Fix signedness warnings.
45307 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
45309 * util/ieee1275/get_disk_name.c: Include config.h so that
45310 _GNU_SOURCE is defined and getline() is declared. Mark an
45311 unused argument as such. Fix a signedness warning.
45313 2008-04-02 Pavel Roskin <proski@gnu.org>
45315 * genkernsyms.sh.in: Use more robust assignments for CC and
45316 srcdir. Quote srcdir.
45317 * gensymlist.sh.in: Likewise. Assert at the compile time that
45318 the symbol table is not empty.
45320 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
45321 * fs/cpio.c (grub_cpio_read): Likewise.
45323 2008-04-01 Pavel Roskin <proski@gnu.org>
45325 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
45326 * disk/host.c (grub_host_open): Likewise.
45327 * disk/loopback.c (grub_loopback_open): Likewise.
45328 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
45329 disk->id as in disk/host.c, not a multi-character constant.
45331 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
45332 later is obsolete, potentially dangerous and sets a bad example.
45333 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
45334 * util/misc.c (grub_util_get_image_size): Likewise.
45336 * disk/loopback.c (options): Improve help for "--partitions".
45338 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
45339 options to align them with the short options, e.g. "echo -e".
45341 2008-03-31 Bean <bean123ch@gmail.com>
45343 * video/reader/png.c (grub_png_data): New member is_16bit and
45345 (grub_png_decode_image_header): Detect 16 bit png image.
45346 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
45347 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
45348 (grub_video_reader_png): Release memory occupied by image_data.
45350 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
45352 (grub_nfs_mount): Skip the test for sector per cluster.
45354 * include/grub/ntfs.h (MAX_SPC): Removed.
45356 2008-03-31 Bean <bean123ch@gmail.com>
45358 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
45359 (grub_probe_SOURCES): Add fs/afs.c.
45360 (grub_fstest_SOURCES): Likewise.
45361 (afs_mod_SOURCES): New variable.
45362 (afs_mod_CFLAGS): Likewise.
45363 (afs_mod_LDFLAGS): Likewise.
45365 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
45366 (grub_emu_SOURCES): Likewise.
45368 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45370 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45372 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45374 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45376 * fs/afs.c: New file.
45378 2008-03-30 Pavel Roskin <proski@gnu.org>
45380 * disk/host.c: Include grub/misc.h to fix a warning.
45381 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
45382 warnings about implicit declarations.
45384 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
45386 * include/grub/i386/loader.h: Change declaration of
45387 grub_linux_boot() to match what grub_loader_set() expects.
45388 * util/getroot.c (grub_guess_root_device): Return const char* to
45390 * util/grub-probe.c (probe): Fix a warning about uninitialized
45391 abstraction_name variable.
45392 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
45393 second argument as unused to fix a warning.
45395 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
45396 missing grub_error() call.
45398 * util/update-grub_lib.in: Define datarootdir, since Autoconf
45399 2.60 and newer uses it to define datadir.
45401 * commands/sleep.c: Fix warning about implicit declaration.
45402 * disk/memdisk.c: Likewise.
45403 * loader/aout.c: Likewise.
45404 * loader/i386/bsd_normal.c: Likewise.
45405 * util/grub-probe.c: Likewise.
45407 * commands/i386/cpuid.c (has_longmode): Make static.
45408 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
45409 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
45411 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
45412 GDT. This is more robust, as %ds can change.
45413 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
45414 calling real_to_prot().
45415 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
45417 2008-03-28 Pavel Roskin <proski@gnu.org>
45419 * kern/i386/pc/startup.S: Assert that uncompressed functions
45420 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
45421 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
45422 code, as they push parts of the code (error handlers) beyond
45423 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
45424 code as correctness and size.
45426 2008-03-28 Pavel Roskin <proski@gnu.org>
45428 * kern/i386/pc/startup.S
45429 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
45430 data block address to the real mode, keep offset minimal. This
45431 works around a bug in AWARD BIOS on old Athlon systems, which
45432 makes CD detection hang.
45434 2008-03-26 Pavel Roskin <proski@gnu.org>
45436 * normal/color.c (grub_parse_color_name_pair): Make `name' a
45438 * include/grub/normal.h: Add grub_parse_color_name_pair()
45441 2008-03-24 Bean <bean123ch@gmail.com>
45443 * disk/i386/pc/biosdisk.c (cd_start): Removed.
45444 (cd_count): Removed.
45445 (cd_drive): New variable.
45446 (grub_biosdisk_get_drive): Don't check for (cdN) device.
45447 (grub_biosdisk_call_hook): Likewise.
45448 (grub_biosdisk_iterate): Change cdrom detection method.
45449 (grub_biosdisk_open): Replace cd_start with cd_drive.
45450 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
45451 detect cdrom device.
45453 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
45455 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
45456 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
45457 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
45458 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
45459 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
45460 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
45461 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
45462 (grub_biosdisk_cdrp): New structure.
45463 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
45465 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
45467 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
45470 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
45473 2008-03-20 Robert Millan <rmh@aybabtu.com>
45475 Remove 2 TiB limit in ata.mod.
45476 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
45477 (grub_ata_dumpinfo): Print sector count with 0x%llx.
45478 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
45479 grub_uint64_t instead of grub_uint32_t.
45481 2008-03-05 Bean <bean123ch@gmail.com>
45483 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
45484 (grub_multiboot): Set boot device.
45486 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
45488 2008-03-02 Bean <bean123ch@gmail.com>
45490 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
45493 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
45495 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
45498 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
45501 * docs/fdl.texi: New file.
45503 * docs/mdate-sh: New file. Copied from gnulib.
45504 * docs/texinfo.tex: Likewise.
45506 * config.guess: Updated from gnulib.
45507 * install-sh: Likewise.
45509 2008-02-28 Robert Millan <rmh@aybabtu.com>
45511 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
45512 (aout_mod_SOURCES): New variable.
45513 (aout_mod_CFLAGS): Likewise.
45514 (aout_mod_LDFLAGS): Likewise.
45516 * conf/i386-ieee1275.rmk: Likewise.
45518 2008-02-28 Robert Millan <rmh@aybabtu.com>
45520 * util/update-grub.in: Reorganise terminal validity check. Accept
45521 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
45522 Based on suggestion by Franklin PIAT.
45524 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
45526 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
45528 * util/getroot.c (grub_util_check_block_device): New function that
45529 returns the given argument if it is a block device and returns NULL else.
45530 * util/grub-probe.c (argument_is_device): New variable.
45531 (probe): Promote device_name from a variable to an argument. Receive
45532 device_name from grub_util_check_block_device() if path is NULL and from
45533 grub_guess_root_device() else. Do not free() device_name anymore.
45534 (options): Introduce new parameter '-d, --device'.
45535 (main): Add description of the new parameter to the help screen.
45536 Rename path variable to argument. Set argument_is_device if the '-d'
45537 option is given. Pass argument to probe() depending on
45538 argument_is_device.
45540 2008-02-24 Bean <bean123ch@gmail.com>
45542 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
45543 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
45544 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
45545 (GRUB_ISO9660_VOLDESC_PART): Likewise.
45546 (GRUB_ISO9660_VOLDESC_END): Likewise.
45547 (grub_iso9660_primary_voldesc): New member escape.
45548 (grub_iso9660_data): New member joliet.
45549 (grub_iso9660_convert_string): New function.
45550 (grub_iso9660_mount): Detect joliet extension.
45551 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
45552 (grub_iso9660_iso9660_label): Likewise.
45554 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
45555 (grub_setup_SOURCES): Add fs/udf.c.
45556 (grub_fstest_SOURCES): Likewise.
45557 (udf_mod_SOURCES): New variable.
45558 (udf_mod_CFLAGS): Likewise.
45559 (udf_mod_LDFLAGS): Likewise.
45561 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
45562 (grub_emu_SOURCES): Likewise.
45564 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
45566 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45568 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45570 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45572 * fs/udf.c: New file.
45574 2008-02-24 Robert Millan <rmh@aybabtu.com>
45576 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
45577 (normal/lexer.c_DEPENDENCIES): New variables.
45578 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45579 (normal/lexer.c_DEPENDENCIES): Likewise.
45580 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
45581 (normal/lexer.c_DEPENDENCIES): Likewise.
45582 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
45583 (normal/lexer.c_DEPENDENCIES): Likewise.
45584 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45585 (normal/lexer.c_DEPENDENCIES): Likewise.
45586 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
45587 (normal/lexer.c_DEPENDENCIES): Likewise.
45589 2008-02-23 Robert Millan <rmh@aybabtu.com>
45591 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
45592 since they were intended to be in hex. This didn't break previously
45593 because of a bug in gpt_partition_map_iterate() (see below).
45595 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
45596 when checking the validity of GPT header.
45597 Remove `partno', since it always provides the same information as `i'.
45599 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
45601 * include/grub/efi/time.h: Fix a wrong comment.
45603 2008-02-19 Pavel Roskin <proski@gnu.org>
45605 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
45608 2008-02-19 Bean <bean123ch@gmail.com>
45610 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
45611 (aout_mod_SOURCES): New variable.
45612 (aout_mod_CFLAGS): Likewise.
45613 (aout_mod_LDFLAGS): Likewise.
45614 (_bsd_mod_SOURCES): New variable.
45615 (_bsd_mod_CFLAGS): Likewise.
45616 (_bsd_mod_LDFLAGS): Likewise.
45617 (bsd_mod_SOURCES): New variable.
45618 (bsd_mod_CFLAGS): Likewise.
45619 (bsd_mod_LDFLAGS): Likewise.
45621 * include/grub/aout.h: New file.
45623 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
45625 * include/grub/i386/bsd.h: New file.
45627 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
45630 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
45631 function is called, so that it's possible to change it inside the hook.
45632 (grub_elf64_load): Likewise.
45633 (grub_elf_file): Don't close the file if elf header is not found.
45634 (grub_elf_close): Close the file if grub_elf_file fails (The new
45635 grub_elf_file won't close it).
45636 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
45637 (grub_elf64_size): Likewise.
45639 * kern/i386/loader.S (grub_unix_real_boot): New function.
45641 * loader/aout.c: New file.
45643 * loader/i386/bsd.c: New file.
45645 * loader/i386/bsd_normal.c: New file.
45647 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
45649 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
45650 can test other formats.
45652 2008-02-19 Robert Millan <rmh@aybabtu.com>
45654 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
45655 (grub_gpt_partition_type_empty): Redefine with macro from
45656 `<grub/gpt_partition.h>'.
45657 (gpt_partition_map_iterate): Adjust partition type comparison.
45659 Export `entry' as partmap-specific `part.data' struct.
45660 (grub_gpt_header, grub_gpt_partentry): Move from here ...
45662 * include/grub/gpt_partition.h (grub_gpt_header)
45663 (grub_gpt_partentry): ... to here (new file).
45665 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
45667 (grub_gpt_partition_type_bios_boot): New const variable, defined
45668 with macro from `<grub/gpt_partition.h>'.
45670 (setup): Replace `first_start' with `embed_region', which keeps
45671 track of the embed region (and is partmap-agnostic).
45673 Replace find_first_partition_start() with find_usable_region(),
45674 which finds a usable region for embedding using partmap-specific
45675 knowledge (supports PC/MSDOS and GPT).
45677 Fix all assumptions that the embed region start at sector 1, using
45678 `embed_region.start' from now on. Similarly, use `embed_region.end'
45679 rather than `first_start' to calculate available size.
45681 In grub_util_info() message, replace "into after the MBR" with an
45682 indication of the specific sector our embed region starts at.
45684 2008-02-19 Robert Millan <rmh@aybabtu.com>
45686 * DISTLIST: Replace `commands/ieee1275/halt.c' and
45687 `commands/ieee1275/reboot.c' with `commands/halt.c' and
45688 `commands/reboot.c'.
45689 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45690 (halt_mod_SOURCES): Likewise.
45691 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
45692 (halt_mod_SOURCES): Likewise.
45694 2008-02-17 Christian Franke <franke@computer.org>
45696 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
45698 2008-02-17 Robert Millan <rmh@aybabtu.com>
45700 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45701 set `first_start' to 0 for non-PC/MSDOS partition maps.
45703 2008-02-16 Robert Millan <rmh@aybabtu.com>
45705 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
45706 do not assume partition map is PC/MSDOS before performing checks that
45707 are specific to that layout.
45709 2008-02-13 Robert Millan <rmh@aybabtu.com>
45711 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
45712 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
45713 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
45715 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
45717 * configure.ac: Only a cosmetic change on the handling of
45718 -fno-stack-protector.
45720 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
45722 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
45723 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
45725 (grub_install_SOURCES): Add halt.mod and reboot.mod.
45726 (halt_mod_SOURCES): New variable.
45727 (halt_mod_CFLAGS): Likewise.
45728 (halt_mod_LDFLAGS): Likewise.
45729 (reboot_mod_SOURCES): Likewise.
45730 (reboot_mod_CFLAGS): Likewise.
45731 (reboot_mod_LDFLAGS): Likewise.
45733 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
45734 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
45736 (halt_mod_SOURCES): Likewise.
45737 (reboot_mod_SOURCES): Likewise.
45739 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
45740 commands/i386/pc/reboot.c by commands/reboot.c.
45741 (reboot_mod_SOURCES): Likewise.
45743 * commands/i386/pc/reboot.c: merge this file ...
45745 * commands/ieee1275/reboot.c: ... and this file ...
45747 * commands/reboot.c: ... to this file.
45748 Add some precompiler directive to include the correct header for
45751 * commands/ieee1275/halt.c: move this file ...
45753 * commands/halt.c: ... to here.
45754 Add some precompiler directive to include the correct header for
45757 * include/grub/efi/efi.h (grub_reboot): New function declaration.
45758 (grub_halt): Likewise.
45760 * kern/efi/efi.c (grub_reboot): New function.
45761 (grub_halt): Likewise.
45763 2008-02-12 Robert Millan <rmh@aybabtu.com>
45765 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
45766 /dev (like it is done for /dev/mapper). This doesn't provide support
45767 for EVMS, but at least it is now easy to identify the problem when it
45770 2008-02-11 Robert Millan <rmh@aybabtu.com>
45772 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
45773 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
45774 comparing it with -1, not 0.
45776 2008-02-10 Robert Millan <rmh@aybabtu.com>
45778 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
45780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45781 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
45783 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
45784 `disk/lvm.c' to the end of the list.
45785 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
45786 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45788 2008-02-10 Robert Millan <rmh@aybabtu.com>
45790 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
45791 grub_print_error() instead. This will let user know why we're entering
45793 Based on suggestions from Sam Morris.
45795 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
45797 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
45798 on remaining N args, instead of "--" arg N times.
45800 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
45802 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
45803 (fill_with_default_glyph): Changed to use unknown_glyph for fill
45804 pattern for unknown glyphs.
45806 2008-02-09 Robert Millan <rmh@aybabtu.com>
45808 * configure.ac: Probe for `help2man'.
45809 * Makefile.in (builddir): New variable.
45810 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
45811 or otherwise add a few flags/options to it.
45812 (install-local): For every executable utility or script that is
45813 installed, invoke $(HELP2MAN) to install a manpage based on --help
45816 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
45817 that it doesn't prevent --help from working in build tree.
45819 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
45820 with `bug-grub@gnu.org'.
45821 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
45822 * util/update-grub.in (usage): New function.
45823 Implement proper argument check, with support for --help and --version
45824 (as well as existing -y).
45826 2008-02-09 Christian Franke <franke@computer.org>
45828 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
45829 avoid overwriting previous output.
45830 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
45832 2008-02-09 Robert Millan <rmh@aybabtu.com>
45834 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
45837 2008-02-09 Robert Millan <rmh@aybabtu.com>
45839 * commands/sleep.c: New file.
45840 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
45841 (sleep_mod_SOURCES): New variable.
45842 (sleep_mod_CFLAGS): Likewise.
45843 (sleep_mod_LDFLAGS): Likewise.
45845 2008-02-09 Robert Millan <rmh@aybabtu.com>
45847 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
45848 situations in which we can deduce the RAID size and the superblock
45851 2008-02-09 Robert Millan <rmh@aybabtu.com>
45853 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
45854 and return a grub_diskmemberlist_t composed of LVM physical volumes.
45855 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
45857 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
45858 and return a grub_diskmemberlist_t composed of physical array members.
45859 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
45861 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
45863 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
45864 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
45865 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
45867 * util/grub-probe.c (probe): Move partmap probing code from here ...
45868 (probe_partmap): ... to here.
45869 (probe): Use probe_partmap() once for the disk we're probing, and
45870 additionally, when such disk contains a memberlist() struct member,
45871 once for each disk that is contained in the structure returned by
45874 2008-02-09 Robert Millan <rmh@aybabtu.com>
45876 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
45877 environment variable to 'all' in order to obtain debug output from
45879 * util/i386/pc/grub-setup.c (main): Likewise.
45881 2008-02-08 Robert Millan <rmh@aybabtu.com>
45883 * disk/raid.c (grub_raid_scan_device): Check for
45884 `array->device[sb.this_disk.number]' rather than for
45885 `array->device[sb.this_disk.number]->name', since the latter is not
45886 guaranteed to be accessible.
45888 2008-02-08 Robert Millan <rmh@aybabtu.com>
45890 * disk/raid.c: Update copyright.
45891 * fs/cpio.c: Likewise.
45892 * include/grub/raid.h: Likewise.
45893 * loader/i386/pc/multiboot.c: Likewise.
45894 * util/hostfs.c: Likewise.
45896 2008-02-08 Robert Millan <rmh@aybabtu.com>
45898 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
45899 to a grub_disk_t array.
45900 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
45902 (grub_raid_scan_device): Replace `device[x].name' accesses with
45903 `device[x]->name'. Simplify initialization of `array->device[x]'.
45905 2008-02-08 Robert Millan <rmh@aybabtu.com>
45907 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
45908 grub_dprintf() calls.
45909 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
45912 2008-02-07 Christian Franke <franke@computer.org>
45914 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
45915 instead of fseek and ftell to support large files.
45916 (grub_hostfs_read): Likewise.
45918 2008-02-07 Robert Millan <rmh@aybabtu.com>
45920 Patch from Jeroen Dekkers.
45921 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
45922 failure, since successfully reading all array members might not be
45925 2008-02-06 Robert Millan <rmh@aybabtu.com>
45927 * util/grub-probe.c (probe): Simplify partmap probing (with the
45928 assumption that the first word up to the underscore equals to
45931 2008-02-06 Christian Franke <franke@computer.org>
45933 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
45934 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
45935 last block of a cpio or tar stream.
45936 Check for "TRAILER!!!" instead of any empty data
45937 block to detect last block of a cpio stream.
45938 (grub_cpio_dir): Fix constness of variable np.
45939 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
45940 cpio or tar trailer is detected. This fixes a crash
45941 on open of a non existing file.
45943 2008-02-05 Bean <bean123ch@gmail.com>
45945 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
45947 (grub_multiboot_load_elf64): Likewise.
45948 (grub_multiboot): Initialize mbi structure.
45950 * util/grub-fstest.c: Don't include unused header file script.h.
45952 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
45954 (grub_fstest_SOURCES): Likewise.
45956 2008-02-05 Robert Millan <rmh@aybabtu.com>
45958 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
45959 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
45960 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
45961 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
45963 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
45964 (translation_table): Replace hardcoded values with macros
45965 provided by `<grub/term.h>'.
45967 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
45968 (keyboard_map): Correct/add a few values, with macros provided
45969 by `<grub/term.h>'.
45970 (keyboard_map_shift): Zero values that don't differ from their
45971 `keyboard_map' equivalents.
45972 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
45973 Discard the second scan code that is always sent by Caps lock.
45974 Only use `keyboard_map_shift' when it provides a non-zero value,
45975 otherwise fallback to `keyboard_map'.
45977 2008-02-04 Bean <bean123ch@gmail.com>
45979 * Makefile.in (enable_grub_fstest): New variable.
45981 * conf/common.rmk (grub_fstest_init.lst): New rule.
45982 (grub_fstest_init.h): Likewise.
45983 (grub_fstest_init.c): Likewise.
45984 (util/grub-fstest.c_DEPENDENCIES): New variable.
45985 (grub_fstest_SOURCES): Likewise.
45987 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
45989 * util/grub-fstest.c: New file.
45991 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
45993 Make grub-setup handle a separate root device.
45995 * util/i386/pc/grub-setup.c (setup): Always open the root device,
45996 so that the root device can be compared with the destination
45998 When embedding the core image, if the root and destination devices
45999 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
46001 When not embedding, set ROOT_DRIVE to 0xFF.
46003 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46005 Add support for having a grub directory in a different drive. This
46006 is still only the data handling part.
46008 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
46009 (codestart): Save %dh in GRUB_ROOT_DRIVE.
46010 (grub_root_drive): New variable.
46012 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
46013 instead of GRUB_BOOT_DRIVE to construct a device name. Set
46014 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
46017 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
46019 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
46021 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
46023 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
46024 is bogus, because PXE booting does not specify any drive
46027 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
46028 am not sure if this is really correct.
46030 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
46031 is always identical to the boot drive when booting from a CD.
46033 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
46035 (root_drive): New variable.
46036 (real_start): Unconditionally set %dh to ROOT_DRIVE.
46037 (setup_sectors): Push %dx right after popping it, because %dh will
46039 (copy_buffer): Restore %dx.
46041 2008-02-03 Robert Millan <rmh@aybabtu.com>
46043 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
46044 use `cdboot.img' for cdrom images.
46046 2008-02-03 Robert Millan <rmh@aybabtu.com>
46048 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
46049 only setup gfxterm when `font' command has succeeded.
46051 2008-02-03 Robert Millan <rmh@aybabtu.com>
46053 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
46054 (grub_rescue_cmd_multiboot_loader)
46055 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
46057 2008-02-03 Pavel Roskin <proski@gnu.org>
46059 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
46060 %edx and %esi from stack only after grub_gate_a20() is called.
46061 grub_gate_a20() clobbers %edx.
46063 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
46065 * configure.ac (AC_INIT): Bumped to 1.96.
46067 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
46068 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
46069 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
46070 video/readers/png.c.
46072 2008-02-03 Bean <bean123ch@gmail.com>
46074 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
46075 (cdboot_img_SOURCES): New variable.
46076 (cdboot_img_ASFLAGS): New variable.
46077 (cdboot_img_LDFLAGS): New variable.
46079 * boot/i386/pc/cdboot.S: New file.
46081 * disk/i386/pc/biosdisk.c (cd_start): New variable.
46082 (cd_count): Likewise.
46083 (grub_biosdisk_get_drive): Add support for cd device.
46084 (grub_biosdisk_call_hook): Likewise.
46085 (grub_biosdisk_iterate): Likewise.
46086 (grub_biosdisk_open): Likewise.
46087 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
46088 (grub_biosdisk_rw): Support reading from cd device.
46089 (GRUB_MOD_INIT): Iterate cd devices.
46091 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
46092 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
46093 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
46095 * kern/i386/pc/init.c (make_install_device): Check for cd device.
46097 2008-02-02 Robert Millan <rmh@aybabtu.com>
46099 * commands/read.c: New file.
46100 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
46101 (read_mod_SOURCES): New variable.
46102 (read_mod_CFLAGS): Likewise.
46103 (read_mod_LDFLAGS): Likewise.
46105 2008-02-02 Robert Millan <rmh@aybabtu.com>
46107 * normal/main.c (grub_normal_execute): Check for `menu->size' when
46108 determining whether menu has to be displayed.
46110 2008-02-02 Marco Gerards <marco@gnu.org>
46112 * bus/pci.c: New file.
46114 * include/grub/pci.h: Likewise.
46116 * include/grub/i386/pc/pci.h: Likewise.
46118 * commands/lspci.c: Likewise.
46120 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
46122 (pci_mod_SOURCES): New variable.
46123 (pci_mod_CFLAGS): Likewise.
46124 (pci_mod_LDFLAGS): Likewise.
46125 (lspci_mod_SOURCES): Likewise.
46126 (lspci_mod_CFLAGS): Likewise.
46127 (lspci_mod_LDFLAGS): Likewise.
46129 2008-02-02 Bean <bean123ch@gmail.com>
46131 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
46132 (grub_ufs_get_file_block): Fix indirect block calculation problem.
46134 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
46135 (grub_xfs_btree_node): New structure.
46136 (grub_xfs_btree_root): New structure.
46137 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
46138 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
46139 (GRUB_XFS_EXTENT_BLOCK): Likewise.
46140 (GRUB_XFS_EXTENT_SIZE): Likewise.
46141 (grub_xfs_read_block): Support btree format type.
46142 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
46143 Use directory block as basic unit.
46145 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
46147 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
46148 __attribute__ ((__regparm__ (1))).
46150 2008-02-01 Robert Millan <rmh@aybabtu.com>
46152 Correct a mistake in previous commit.
46154 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
46156 (normal/command.c_DEPENDENCIES): New variable.
46158 2008-02-01 Robert Millan <rmh@aybabtu.com>
46160 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
46162 (normal/command.c_DEPENDENCIES): New variable.
46163 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
46164 * conf/i386-ieee1275.rmk: Likewise.
46165 * conf/i386-linuxbios.rmk: Likewise.
46166 * conf/i386-pc.rmk: Likewise.
46167 * conf/sparc64-ieee1275.rmk: Likewise.
46168 * conf/powerpc-ieee1275.rmk: Likewise.
46169 (grub_emu_SOURCES): Add `fs/fshelp.c'.
46171 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
46173 2008-02-01 Robert Millan <rmh@aybabtu.com>
46175 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
46176 call at beginning of function.
46178 2008-01-31 Pavel Roskin <proski@gnu.org>
46180 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
46181 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
46182 (grub_mkrescue_SOURCES): Likewise.
46183 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
46185 2008-01-30 Robert Millan <rmh@aybabtu.com>
46187 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
46188 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
46189 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
46190 (grub_probe_SOURCES): ... to here.
46192 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
46193 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
46194 * conf/i386-ieee1275.rmk: Likewise.
46195 * conf/i386-linuxbios.rmk: Likewise.
46196 * conf/powerpc-ieee1275.rmk: Likewise.
46198 2008-01-30 Tristan Gingold <gingold@free.fr>
46200 * kern/rescue.c: Silently accept empty lines.
46202 2008-01-29 Bean <bean123ch@gmail.com>
46204 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
46205 (real_code_2): Code cleanup and change comment style.
46206 (move_memory): Avoid using 32-bit address mode.
46208 2008-01-29 Bean <bean123ch@gmail.com>
46210 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
46211 (png_mod_SOURCES): New variable.
46212 (png_mod_CFLAGS): Likewise.
46213 (png_mod_LDFLAGS): Likewise.
46215 * video/readers/png.c: New file.
46217 2008-01-28 Robert Millan <rmh@aybabtu.com>
46219 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
46220 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
46221 `ifndef GRUB_MOD_GAP' hack.
46222 * util/elf/grub-mkimage.c (add_segments): Likewise.
46224 2008-01-27 Robert Millan <rmh@aybabtu.com>
46226 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
46227 `GRUB_MOD_GAP' for platforms in which it's not defined.
46228 * util/elf/grub-mkimage.c (add_segments): Likewise.
46230 2008-01-27 Robert Millan <rmh@aybabtu.com>
46232 Get grub-emu to build again (including parallel builds).
46234 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
46236 (util/grub-emu.c_DEPENDENCIES): ... this, ...
46237 (normal/execute.c_DEPENDENCIES): ... this, ...
46238 (grub-emu_DEPENDENCIES): ... and this.
46240 * conf/i386-efi.rmk: Likewise.
46241 * conf/i386-linuxbios.rmk: Likewise.
46242 * conf/i386-ieee1275.rmk: Likewise.
46243 * conf/powerpc-ieee1275.rmk: Likewise.
46244 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
46246 2008-01-27 Robert Millan <rmh@aybabtu.com>
46248 * NEWS: Add a few items.
46250 2008-01-27 Robert Millan <rmh@aybabtu.com>
46252 Fix parallel builds with grub-emu. Based on earlier commit for
46253 grub-probe and grub-setup.
46255 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46256 (util/grub-emu.c_DEPENDENCIES): ... this.
46257 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46258 (util/grub-emu.c_DEPENDENCIES): ... this.
46259 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46260 (util/grub-emu.c_DEPENDENCIES): ... this.
46261 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46262 (util/grub-emu.c_DEPENDENCIES): ... this.
46263 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
46264 (util/grub-emu.c_DEPENDENCIES): ... this.
46266 2008-01-27 Pavel Roskin <proski@gnu.org>
46268 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
46269 to create a gap between _end and the modules added to the image
46270 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
46271 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
46272 * util/elf/grub-mkimage.c (add_segments): Likewise.
46274 2008-01-26 Pavel Roskin <proski@gnu.org>
46276 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
46277 just return an error.
46279 2008-01-26 Bean <bean123ch@gmail.com>
46281 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
46282 (grub_reiserfs_get_item): Save offset of the next item.
46283 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
46285 2008-01-25 Robert Millan <rmh@aybabtu.com>
46287 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
46288 make all filesystem sources appear together (possibly fixing omissions
46290 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
46291 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46292 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
46293 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46295 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
46297 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
46298 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46299 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
46300 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
46302 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
46303 (probe): Add a sanity check to make sure of our ability to read
46304 requested files when probing for filesystem type.
46306 * genmk.rb: Update copyright year (2007).
46308 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
46309 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
46310 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
46311 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
46312 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
46313 : Remove function prototypes.
46315 2008-01-25 Robert Millan <rmh@aybabtu.com>
46317 Revert my previous commits (based on wrong assumption of how grub_errno
46320 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
46321 * kern/file.c (grub_file_open): Likewise.
46323 2008-01-24 Pavel Roskin <proski@gnu.org>
46325 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
46326 that hang if GRUB tries to setup colors.
46327 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
46328 colors for firmwares that don't support it.
46329 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
46330 Recognize Open Hack'Ware, set flags to work around its
46333 2008-01-24 Robert Millan <rmh@aybabtu.com>
46335 * kern/file.c (grub_file_open): Do not account previous failures of
46336 unrelated functions when grub_errno is checked for.
46337 Reported by Oleg Strikov.
46339 2008-01-24 Bean <bean123ch@gmail.com>
46341 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
46342 (grub_ufs_sblock): New member volume name.
46343 (grub_ufs_find_file): Fix string copy bug.
46344 (grub_ufs_label): Implement this function properly.
46346 * fs/hfs.c (grub_hfs_cnid_type): New enum.
46347 (grub_hfs_iterate_records): Use the correct file number for extents
46348 and catalog file. Fix problem in next index calculation.
46349 (grub_hfs_find_node): Replace recursive function call with loop.
46350 (grub_hfs_iterate_dir): Replace recursive function call with loop.
46352 2008-01-23 Robert Millan <rmh@aybabtu.com>
46354 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
46355 `<grub/symbol.h>' and `<grub/multiboot.h>'.
46356 (grub_multiboot2_real_boot): New function prototype.
46358 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
46359 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
46361 * kern/i386/ieee1275/init.c (grub_os_area_addr)
46362 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
46364 2008-01-23 Robert Millan <rmh@aybabtu.com>
46366 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
46367 #ifdef'ed out grub_printf().
46369 2008-01-23 Robert Millan <rmh@aybabtu.com>
46371 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
46372 grub_dprintf calls, since they make "debug=all" mode unusable.
46373 (grub_console_checkkey): Likewise.
46375 2008-01-23 Robert Millan <rmh@aybabtu.com>
46377 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
46378 `term/i386/pc/at_keyboard.c'.
46379 (pkglib_MODULES): Add `serial.mod'.
46380 (serial_mod_SOURCES): New variable.
46381 (serial_mod_CFLAGS): Likewise.
46382 (serial_mod_LDFLAGS): Likewise.
46384 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
46385 `<grub/powerpc/ieee1275/console.h>'.
46386 (grub_keyboard_controller_init): New function prototype.
46387 (grub_console_checkkey): Likewise.
46388 (grub_console_getkey): Likewise.
46390 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
46393 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
46394 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
46396 2008-01-23 Robert Millan <rmh@aybabtu.com>
46398 * kern/i386/pc/init.c (make_install_device): When memdisk image is
46399 present, "(memdisk)/boot/grub" becomes the default prefix.
46401 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
46402 a memdisk tarball with all the modules. Add --overlay=DIR option that
46403 allows users to overlay additional files into the image.
46405 2008-01-23 Robert Millan <rmh@aybabtu.com>
46407 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
46408 and `machine/memory.h'.
46409 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
46410 (_multiboot_mod_SOURCES): New variable.
46411 (_multiboot_mod_CFLAGS): Likewise.
46412 (_multiboot_mod_LDFLAGS): Likewise.
46413 (multiboot_mod_SOURCES): Likewise.
46414 (multiboot_mod_CFLAGS): Likewise.
46415 (multiboot_mod_LDFLAGS): Likewise.
46417 * include/grub/i386/ieee1275/loader.h: New file.
46419 * include/grub/i386/ieee1275/machine.h: Likewise.
46421 * include/grub/i386/ieee1275/memory.h: Likewise.
46423 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
46424 variable declaration.
46425 (grub_os_area_size): Likewise.
46427 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
46428 (grub_lower_mem, grub_upper_mem): New variables.
46429 (grub_stop_floppy): New function (just to make
46430 grub_multiboot2_real_boot() happy).
46432 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
46433 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
46434 (grub_stop): New function.
46435 Include `"../realmode.S"' and `"../loader.S"'.
46437 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
46438 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
46440 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
46441 rely on grub_multiboot2_real_boot() for final boot.
46443 2008-01-22 Robert Millan <rmh@aybabtu.com>
46445 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
46446 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
46447 device that doesn't look like an SD card.
46448 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
46449 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
46450 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
46451 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
46454 2008-01-22 Robert Millan <rmh@aybabtu.com>
46456 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
46457 avoid claiming over our own code.
46459 2008-01-22 Bean <bean123ch@gmail.com>
46461 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
46462 (jpeg_mod_SOURCES): New variable.
46463 (jpeg_mod_CFLAGS): Likewise.
46464 (jpeg_mod_LDFLAGS): Likewise.
46466 * video/readers/jpeg.c : New file.
46468 2008-01-22 Bean <bean123ch@gmail.com>
46470 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
46471 there are no more items.
46473 2008-01-21 Robert Millan <rmh@aybabtu.com>
46475 * kern/mm.c (grub_mm_init_region): Improve debug message.
46477 2008-01-21 Robert Millan <rmh@aybabtu.com>
46479 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
46480 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
46482 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
46484 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
46485 Indicates start of upper memory.
46486 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
46487 (generate_image): Abort when image size is big enough to corrupt
46490 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
46491 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
46492 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46493 instead of hardcoding 0xA0000.
46494 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
46495 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
46496 instead of hardcoding 0xA0000.
46498 2008-01-21 Robert Millan <rmh@aybabtu.com>
46500 * disk/memdisk.c (memdisk_size): New variable.
46501 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
46503 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
46504 image to dynamic memory.
46505 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
46506 `memdisk_size'. Free memdisk block.
46508 2008-01-21 Robert Millan <rmh@aybabtu.com>
46510 Fix detection of very small filesystems (like tar).
46512 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
46513 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
46514 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
46515 a problem with this disk).
46517 2008-01-21 Robert Millan <rmh@aybabtu.com>
46519 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
46520 on grub_biosdisk_rw_standard() error.
46522 2008-01-21 Robert Millan <rmh@aybabtu.com>
46524 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
46526 * kern/elf.c: Likewise.
46527 * kern/ieee1275/ieee1275.c: Likewise.
46528 * kern/powerpc/ieee1275/openfw.c: Likewise.
46529 * term/ieee1275/ofconsole.c: Likewise.
46531 2008-01-21 Robert Millan <rmh@aybabtu.com>
46533 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
46535 * include/grub/kernel.h (grub_arch_memdisk_addr)
46536 (grub_arch_memdisk_size): Moved from here ...
46538 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
46539 (grub_arch_memdisk_size): ... to here.
46541 2008-01-21 Robert Millan <rmh@aybabtu.com>
46543 Mostly based on bugfix from Bean.
46545 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
46546 attribute with hook() parameter.
46547 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
46549 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
46550 attribute with hook() parameter.
46551 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
46554 2008-01-21 Robert Millan <rmh@aybabtu.com>
46556 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
46557 (pkglib_MODULES): Add `memdisk.mod'.
46558 (memdisk_mod_SOURCES): New variable.
46559 (memdisk_mod_CFLAGS): Likewise.
46560 (memdisk_mod_LDFLAGS): Likewise.
46562 * disk/memdisk.c: New file.
46564 * include/grub/disk.h (grub_disk_dev_id): Add
46565 `GRUB_DISK_DEVICE_MEMDISK_ID'.
46567 * include/grub/i386/pc/kernel.h
46568 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
46569 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
46570 (grub_kernel_image_size): New variable declaration.
46571 (grub_total_module_size): Likewise.
46572 (grub_memdisk_image_size): Likewise.
46574 * include/grub/i386/pc/memory.h
46575 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
46577 * include/grub/kernel.h: Include `<grub/symbol.h>'.
46578 (grub_arch_memdisk_addr): New variable declaration.
46579 (grub_arch_memdisk_size): Likewise.
46581 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
46582 (grub_arch_memdisk_size): Likewise.
46584 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
46585 (codestart): Replace hardcoded `0x100000' with
46586 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
46588 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
46589 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
46590 not NULL, append the contents of the file it refers to, at the end of
46591 the compressed kernel image. Initialize `grub_memdisk_image_size'
46592 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
46593 (options): Add "memdisk"|'m' option.
46594 (main): Parse --memdisk|-m option, and pass user-provided path as
46595 parameter to generate_image().
46597 2008-01-20 Robert Millan <rmh@aybabtu.com>
46599 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
46600 grub_dprintf() calls from here ...
46601 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
46603 2008-01-20 Robert Millan <rmh@aybabtu.com>
46605 Fix detection of "real mode" when /options/real-mode? doesn't exist.
46607 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
46609 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
46610 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
46611 `GRUB_IEEE1275_FLAG_REAL_MODE'.
46612 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
46614 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
46615 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
46617 2008-01-19 Robert Millan <rmh@aybabtu.com>
46619 Get rid of confusing function (superseded by
46620 `grub_ieee1275_get_integer_property')
46621 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
46623 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
46625 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
46626 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
46627 in native endianness from grub_ieee1275_get_integer_property().
46629 2008-01-19 Robert Millan <rmh@aybabtu.com>
46631 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
46632 command after "shut-down", since implementations differ on which
46633 the command for halt is.
46635 2008-01-19 Robert Millan <rmh@aybabtu.com>
46637 * include/grub/i386/linuxbios/console.h: Add header protection.
46638 (grub_keyboard_controller_init): New function prototype.
46639 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
46640 (KEYBOARD_COMMAND_READ): Likewise.
46641 (KEYBOARD_COMMAND_WRITE): Likewise.
46642 (KEYBOARD_SCANCODE_SET1): Likewise.
46643 (grub_keyboard_controller_write): New function.
46644 (grub_keyboard_controller_read): Likewise.
46645 (grub_keyboard_controller_init): Likewise.
46647 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
46648 (grub_console_init): On coreboot/LinuxBIOS, call
46649 grub_keyboard_controller_init().
46651 2008-01-19 Robert Millan <rmh@aybabtu.com>
46653 PowerPC changes provided by Pavel Roskin.
46655 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
46656 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
46657 don't rely on cmain() doing it.
46658 * kern/i386/ieee1275/startup.S (_start): Store %eax in
46659 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
46661 2008-01-16 Robert Millan <rmh@aybabtu.com>
46663 * include/grub/i386/linuxbios/memory.h
46664 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
46665 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
46666 receive `table_header' as argument. Instead, probe for it in the
46667 known memory ranges where it can be present.
46668 (grub_available_iterate): Do not pass a fixed `table_header' address
46669 to grub_linuxbios_table_iterate().
46671 2008-01-15 Robert Millan <rmh@aybabtu.com>
46673 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
46674 * conf/i386-ieee1275.rmk: New file.
46675 * include/grub/i386/ieee1275/console.h: Likewise.
46676 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
46677 * include/grub/i386/ieee1275/kernel.h: Likewise.
46678 * include/grub/i386/ieee1275/time.h: Likewise.
46679 * kern/i386/ieee1275/init.c: Likewise.
46680 * kern/i386/ieee1275/startup.S: Likewise.
46682 2008-01-15 Robert Millan <rmh@aybabtu.com>
46684 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
46685 when pointers are 32-bit (but still do set it to one when they are
46688 2008-01-15 Robert Millan <rmh@aybabtu.com>
46690 * include/grub/ieee1275/ieee1275.h
46691 (grub_ieee1275_get_integer_property): New function prototype.
46693 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
46694 (grub_ieee1275_get_integer_property): New function. Wraps around
46695 grub_ieee1275_get_property() to handle endianness.
46697 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
46698 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
46700 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
46701 (grub_map): Likewise.
46702 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
46704 2008-01-15 Bean <bean123ch@gmail.com>
46706 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
46707 (grub_script_execute_cmdline): Reset grub_errno.
46709 * normal/main.c (read_config_file): Reset grub_errno.
46711 * normal/parse.y (script_init): New.
46712 (script): Move function and menuentry here.
46714 (command): Add delimiter at the end of command.
46715 (commands): Adjust to match the new command.
46716 (commandblock): Remove grub_script_lexer_record_start.
46717 (menuentry): Add grub_script_lexer_record_start, use the new commands.
46718 (if): Use the new commands.
46720 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
46722 2008-01-15 Robert Millan <rmh@aybabtu.com>
46724 * normal/menu.c (run_menu): Move timeout message from here ...
46725 (print_timeout): ... to here.
46726 (run_menu): Use print_timeout() once during initial draw to print
46727 the whole message, and again in every clock tick to update only
46728 the number of seconds.
46730 2008-01-15 Robert Millan <rmh@aybabtu.com>
46732 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
46733 actual size of `available' from grub_ieee1275_get_property(), and
46734 restrict parsing to that bound.
46736 2008-01-15 Christian Franke <franke@computer.org>
46738 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
46739 (argp_program_version): Remove variable.
46740 (argp_program_bug_address): Likewise.
46741 (options): Convert from struct argp_option to struct option.
46742 (struct arguments): Remove.
46743 (parse_opt): Remove.
46744 (usage): New function.
46745 (main): Replace struct args members by simple variables.
46746 Replace argp_parse() by getopt_long().
46747 Add switch to evaluate options.
46748 Add missing "(...)" around root_dev in prefix string.
46750 2008-01-14 Robert Millan <rmh@aybabtu.com>
46752 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
46753 for grub_ieee1275_exit(), in order to improve portability.
46755 2008-01-14 Robert Millan <rmh@aybabtu.com>
46757 * util/grub.d/10_linux.in (prefix): Define.
46758 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
46760 2008-01-13 Pavel Roskin <proski@gnu.org>
46762 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
46763 grub_errno if no errors have been detected.
46765 2008-01-12 Robert Millan <rmh@aybabtu.com>
46767 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
46768 (grub_util_get_dev_abstraction): New function prototype.
46770 * util/getroot.c: Include `<grub/util/getroot.h>'
46771 (grub_util_get_grub_dev): Move detection of abstraction type to ...
46772 (grub_util_get_dev_abstraction): ... here (new function).
46774 * util/grub-probe.c: Convert PRINT_* to an enum. Add
46775 `PRINT_ABSTRACTION'.
46776 (probe): Probe for abstraction type when requested.
46777 (main): Understand `--target=abstraction'.
46779 * util/i386/efi/grub-install.in: Add abstraction module to core
46780 image when it is found to be necessary.
46781 * util/i386/pc/grub-install.in: Likewise.
46782 * util/powerpc/ieee1275/grub-install.in: Likewise.
46784 * util/update-grub_lib.in (font_path): Return system path without
46785 converting to GRUB path.
46786 * util/update-grub.in: Convert system path returned by font_path()
46787 to a GRUB path. Use `grub-probe -t abstraction' to determine what
46788 abstraction module is needed for loading fonts (if any). Export
46789 that as `GRUB_PRELOAD_MODULES'.
46790 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
46793 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
46795 Remove some unused code from reiserfs.
46797 * fs/reiserfs.c (struct grub_reiserfs_key)
46798 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
46799 (struct grub_reiserfs_node_body): Removed.
46800 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46802 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46804 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46806 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
46808 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
46810 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
46812 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46813 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46814 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
46816 2008-01-10 Robert Millan <rmh@aybabtu.com>
46818 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
46819 Determines if a file is garbage left by packaging systems, etc.
46820 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
46821 for processing /etc/grub.d scripts.
46822 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
46823 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
46824 as a condition for processing Linux images.
46826 2008-01-10 Pavel Roskin <proski@gnu.org>
46828 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
46829 to compile reiserfs.c on PowerPC.
46831 2008-01-10 Robert Millan <rmh@aybabtu.com>
46833 * kern/device.c (grub_device_iterate): Do not abort device iteration
46834 when one of the devices cannot be opened.
46835 * kern/disk.c (grub_disk_open): Do not account previous failures of
46836 unrelated functions when grub_errno is checked for.
46838 2008-01-08 Robert Millan <rmh@aybabtu.com>
46840 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
46841 `! grub_linux_is_bzimage', change order of address comparison to make
46842 it more intuitive, and improve "too big zImage" error message.
46844 2008-01-08 Robert Millan <rmh@aybabtu.com>
46846 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
46847 `$(update-grub_DATA)'.
46848 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
46851 2008-01-07 Robert Millan <rmh@aybabtu.com>
46853 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
46854 which instruction is modified by grub-setup during installation
46855 (since it wasn't obvious by only looking at this file).
46857 2008-01-07 Robert Millan <rmh@aybabtu.com>
46859 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
46860 listing actual TODO items.
46862 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46864 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
46866 (grub_reiserfs_get_key_offset): Likewise.
46867 (grub_reiserfs_set_key_offset): Likewise.
46868 (grub_reiserfs_set_key_type): Likewise.
46869 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
46871 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
46872 better to remove the bitfield version completely.
46874 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46876 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
46877 allocated from the heap, due to the fshelp implementation.
46878 (grub_reiserfs_dir): Free NODE, due to the same reason.
46880 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
46882 Mostly from Vincent Pelletier:
46884 * fs/reiserfs.c: New file.
46886 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
46887 (reiserfs_mod_SOURCES): New variable.
46888 (reiserfs_mod_CFLAGS): Likewise.
46889 (reiserfs_mod_LDFLAGS): Likewise.
46891 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
46892 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
46893 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
46896 2008-01-06 Robert Millan <rmh@aybabtu.com>
46898 * normal/color.c: Remove `<grub/env.h>'.
46900 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
46902 * include/grub/normal.h: Include <grub/env.h>.
46904 2008-01-05 Robert Millan <rmh@aybabtu.com>
46906 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
46907 usage example with `(hd0,1)'.
46908 Reported by Samuel Thibault.
46910 2008-01-05 Robert Millan <rmh@aybabtu.com>
46912 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
46913 (grub_linux_boot_zimage): Rename to ...
46914 (grub_linux_boot): ... this.
46915 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
46916 (grub_linux_boot_zimage): Conditionalize zImage copy.
46918 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
46919 (grub_linux_boot_bzimage): Remove prototype.
46920 (grub_linux_boot_zimage): Rename to ...
46921 (grub_linux_boot): ... this.
46923 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
46924 (grub_linux_boot): Remove function.
46926 2008-01-05 Robert Millan <rmh@aybabtu.com>
46928 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
46929 (grub_env_write_color_highlight): Likewise.
46930 (grub_wait_after_message): Likewise.
46932 * normal/color.c: New file.
46934 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46935 (normal_mod_DEPENDENCIES): Likewise.
46937 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46938 (normal_mod_DEPENDENCIES): Likewise.
46940 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46941 (normal_mod_DEPENDENCIES): Likewise.
46943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
46944 (normal_mod_DEPENDENCIES): Likewise.
46946 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
46947 for waiting after a message is printed.
46948 * normal/main.c (read_config_file): Likewise.
46949 (grub_normal_init): Register grub_env_write_color_normal() and
46950 grub_env_write_color_highlight() hooks. Mark `color_normal' and
46951 `color_highlight' variables as global.
46953 * normal/menu.c (grub_wait_after_message): New function.
46954 (grub_color_menu_normal): New variable. Replaces ...
46955 (GRUB_COLOR_MENU_NORMAL): ... this macro.
46956 (grub_color_menu_highlight): New variable. Replaces ...
46957 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
46958 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
46959 `GRUB_TERM_COLOR_STANDARD'.
46960 (print_message): Use `grub_setcolorstate' to reload colors. Rename
46961 `normal_code' and `highlight_code' to `old_color_normal' and
46962 `old_color_highlight', respectively.
46963 (grub_menu_init_page): Update colors when drawing the menu, based on
46964 `menu_color_normal' and `menu_color_highlight' variables.
46965 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
46966 a message is printed.
46968 2008-01-05 Robert Millan <rmh@aybabtu.com>
46970 * kern/env.c (grub_env_context_open): Propagate hooks for global
46971 variables to new context.
46973 * kern/main.c (grub_set_root_dev): Export `root' variable.
46975 2008-01-05 Robert Millan <rmh@aybabtu.com>
46977 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
46978 discs unconditionally, since udev and others have options to provide
46981 2008-01-05 Robert Millan <rmh@aybabtu.com>
46983 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
46985 2008-01-04 Christian Franke <franke@computer.org>
46987 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
46990 2008-01-03 Pavel Roskin <proski@gnu.org>
46992 * kern/i386/linuxbios/init.c: Put "void" to all function
46993 declarations with no arguments.
46994 * kern/powerpc/ieee1275/init.c: Likewise.
46995 * term/i386/pc/at_keyboard.c: Likewise.
46996 * term/i386/pc/vga_text.c: Likewise.
46997 * util/grub-mkdevicemap.c: Likewise.
46999 2008-01-02 Robert Millan <rmh@aybabtu.com>
47001 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
47002 message when loaded image is out of bounds.
47003 (grub_multiboot_load_elf64): Likewise.
47005 2008-01-02 Pavel Roskin <proski@gnu.org>
47007 * util/grub.d/10_linux.in: Try version without ".old" when
47008 looking for initrd. It's better to use initrd from the newer
47009 kernel of the same version than no initrd at all.
47011 2008-01-01 Robert Millan <rmh@aybabtu.com>
47013 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
47015 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
47017 * include/grub/video.h: Added grub_video_unmap_color and
47018 grub_video_get_active_render_target.
47019 (grub_video_adapter): Added unmap_color and get_active_render_target.
47021 * video/video.c: Added grub_video_unmap_color and
47022 grub_video_get_active_render_target.
47023 (grub_video_get_info): Changed method to accept NULL pointer as an
47024 argument to allow detection of active video adapter.
47026 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
47027 grub_video_vbe_unmap_color_int.
47028 Added grub_video_vbe_unmap_color and
47029 grub_video_vbe_get_active_render_target.
47030 (grub_video_vbe_adapter): Added unmap_color and
47031 get_active_render_target.
47033 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
47034 with grub_video_vbe_unmap_color_int.
47036 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
47037 (DEFAULT_NORMAL_COLOR): Likewise.
47038 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
47039 (DEFAULT_FG_COLOR): Removed.
47040 (DEFAULT_BG_COLOR): Likewise.
47041 (DEFAULT_CURSOR_COLOR): Changed value.
47042 (grub_virtual_screen): Added standard_color_setting,
47043 normal_color_setting, highlight_color_setting and term_color.
47044 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
47045 (bitmap_width): Added.
47046 (bitmap_height): Likewise.
47047 (bitmap): Likewise.
47048 (set_term_color): Likewise.
47049 (grub_virtual_screen_setup): Changed to use new terminal coloring
47051 (grub_gfxterm_init): Added init for bitmap.
47052 (grub_gfxterm_fini): Added destroy for bitmap.
47053 (redraw_screen_rect): Updated to use background bitmap and new
47055 (scroll_up): Added optimization for case when there is no bitmap.
47056 (grub_gfxterm_cls): Fixed to use correct background color.
47057 (grub_virtual_screen_setcolorstate): Changed to use new terminal
47059 (grub_virtual_screen_setcolor): Likewise.
47060 (grub_virtual_screen_getcolor): Added.
47061 (grub_gfxterm_background_image_cmd): Likewise.
47062 (grub_video_term): Added setcolor and getcolor.
47063 (MOD_INIT): Added registration of background_image command.
47064 (MOD_TERM): Added unregistration for background_image command.
47066 2007-12-30 Pavel Roskin <proski@gnu.org>
47068 * loader/multiboot_loader.c: Fix multiboot command
47069 unregistration. Fix all typos in the word "multiboot".
47071 2007-12-29 Pavel Roskin <proski@gnu.org>
47073 * util/grub.d/10_linux.in: Refactor search for initrd. Add
47074 support for initrd names used in Fedora.
47076 2007-12-26 Bean <bean123ch@gmail.com>
47078 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
47079 (cpio_mod_SOURCES): New variable.
47080 (cpio_mod_CFLAGS): Likewise.
47081 (cpio_mod_LDFLAGS): Likewise.
47083 * fs/cpio.c: New file.
47085 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
47087 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
47089 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
47091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47093 2007-12-25 Robert Millan <rmh@aybabtu.com>
47095 * include/grub/term.h (struct grub_term): Add `getcolor' function.
47096 (grub_getcolor): New function.
47098 * kern/term.c (grub_getcolor): New function.
47099 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
47100 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
47101 (print_entry): Set normal and highlight colors to
47102 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
47103 respectively, before printing and restore them to old
47105 (grub_menu_init_page): Likewise. Fill an additional colored space
47106 that would otherwise be left blank.
47108 * term/efi/console.c (grub_console_getcolor): New function.
47109 (struct grub_console_term.getcolor): New variable.
47110 * term/i386/pc/console.c (grub_console_getcolor): New function.
47111 (struct grub_console_term.getcolor): New variable.
47112 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
47113 (struct grub_console_term.getcolor): New variable.
47115 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
47116 (struct grub_console_term.setcolor): Remove variable.
47117 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
47118 (struct grub_console_term.setcolor): Remove variable.
47119 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
47120 (struct grub_console_term.setcolor): Remove variable.
47121 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
47122 (struct grub_console_term.setcolor): Remove variable.
47124 2007-12-25 Robert Millan <rmh@aybabtu.com>
47126 * configure.ac: Search for possible unifont.hex locations, and
47127 define UNIFONT_HEX if found.
47129 * Makefile.in (UNIFONT_HEX): Define variable.
47130 (DATA): Rename to ...
47131 (PKGLIB): ... this. Update all users.
47132 (PKGDATA): New variable.
47133 (pkgdata_IMAGES): Rename to ...
47134 (pkglib_IMAGES): ... this. Update all users.
47135 (pkgdata_MODULES): Rename to ...
47136 (pkglib_MODULES): ... this. Update all users.
47137 (pkgdata_PROGRAMS): Rename to ...
47138 (pkglib_PROGRAMS): ... this. Update all users.
47139 (pkgdata_DATA): Rename to ...
47140 (pkglib_DATA): ... this. Update all users.
47141 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
47142 (unicode.pff, ascii.pff): New rules.
47143 (all-local): Add `$(PKGDATA)' dependency.
47144 (install-local): Process `$(PKGDATA)'.
47146 * util/update-grub_lib.in (font_path): Search for *.pff files in
47147 a few more locations, including `${pkgdata}'.
47149 2007-12-23 Robert Millan <rmh@aybabtu.com>
47151 Patch from Bean <bean123ch@gmail.com>:
47152 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
47155 2007-12-21 Bean <bean123ch@gmail.com>
47157 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
47158 (ntfscomp_mod_SOURCES): New variable.
47159 (ntfscomp_mod_CFLAGS): Likewise.
47160 (ntfscomp_mod_LDFLAGS): Likewise.
47162 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
47163 (grub_probe_SOURCES): Likewise.
47164 (grub_emu_SOURCES): Likewise.
47166 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47167 (grub_emu_SOURCES): Likewise.
47169 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47170 (grub_emu_SOURCES): Likewise.
47172 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
47173 (grub_emu_SOURCES): Likewise.
47175 * fs/ntfs.c (grub_ntfscomp_func): New variable.
47176 (read_run_list): Renamed to grub_ntfs_read_run_list.
47177 (decomp_nextvcn): Moved to ntfscomp.c.
47178 (decomp_getch): Likewise.
47179 (decomp_get16): Likewise.
47180 (decomp_block): Likewise.
47181 (read_block): Likewise.
47182 (read_data): Partially moved to ntfscomp.c.
47183 (fixup): Change unsigned to grub_uint16_t.
47184 (read_mft): Change unsigned long to grub_uint32_t.
47185 (read_attr): Likewise.
47186 (read_data): Likewise.
47187 (read_run_data): Likewise.
47188 (read_run_list): Likewise.
47189 (read_mft): Likewise.
47191 * fs/ntfscomp.c: New file.
47193 * include/grub/ntfs.h: New file.
47195 2007-12-16 Robert Millan <rmh@aybabtu.com>
47197 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
47198 IDE disk check, since Linux is known to support 20 IDE disks.
47199 Reported by Colin Watson.
47201 2007-12-15 Bean <bean123ch@gmail.com>
47203 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
47204 (lnxboot_img_SOURCES): New variable.
47205 (lnxboot_img_ASFLAGS): Likewise.
47206 (lnxboot_img_LDFLAGS): Likewise.
47208 * boot/i386/pc/lnxboot.S: New file.
47210 2007-11-24 Pavel Roskin <proski@gnu.org>
47212 * configure.ac: Test if '--build-id=none' is supported by the
47213 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
47214 objcopy to generate incorrect binary files (binutils
47215 2.17.50.0.18-1 as shipped by Fedora 8).
47216 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
47217 linking, so that build ID doesn't break the test.
47219 2007-11-24 Pavel Roskin <proski@gnu.org>
47221 * include/grub/i386/time.h: use "void" in the argument list
47222 of grub_cpu_idle().
47223 * include/grub/powerpc/time.h: Likewise.
47224 * include/grub/sparc64/time.h: Likewise.
47226 2007-11-18 Christian Franke <franke@computer.org>
47228 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
47229 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
47230 This fixes the problem that function keys did not work in grub-emu.
47232 2007-11-18 Christian Franke <franke@computer.org>
47234 * disk/host.c (grub_host_open): Remove attribute unused from
47235 name parameter. Add check for "host". This fixes the problem
47236 that grub-emu does not find partitions.
47238 2007-11-18 Christian Franke <franke@computer.org>
47240 * util/hostfs.c (is_dir): New function.
47241 (grub_hostfs_dir): Handle missing dirent.d_type case.
47242 (grub_hostfs_read): Add missing fseek().
47243 (grub_hostfs_label): Clear label pointer. This fixes a crash
47244 of grub-emu on "ls (host)".
47246 2007-11-18 Christian Franke <franke@computer.org>
47248 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
47249 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
47250 to 64 bit boundary by default.
47252 2007-11-18 Bean <bean123ch@gmail.com>
47254 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
47255 (hexdump_mod_SOURCES): New variable.
47256 (hexdump_mod_CFLAGS): Likewise.
47257 (hexdump_mod_LDFLAGS): Likewise.
47259 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47261 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47263 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
47267 * include/grub/hexdump.h: New file.
47269 * commands/hexdump.c: New file.
47271 2007-11-10 Robert Millan <rmh@aybabtu.com>
47273 * commands/i386/pc/play.c (beep_off): Switch order of arguments
47274 in grub_outb() calls.
47275 (beep_on): Likewise.
47277 2007-11-10 Christian Franke <franke@computer.org>
47279 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
47280 (grub_menu_run): Likewise.
47282 2007-11-10 Robert Millan <rmh@aybabtu.com>
47284 * include/grub/i386/efi/machine.h: New file.
47285 * include/grub/i386/linuxbios/machine.h: Likewise.
47286 * include/grub/i386/pc/machine.h: Likewise.
47287 * include/grub/powerpc/ieee1275/machine.h: Likewise.
47288 * include/grub/sparc64/ieee1275/machine.h: Likewise.
47290 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
47291 (serial_hw_io_addr): New variable.
47292 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
47293 instead of `(unsigned short *) 0x400'.
47295 2007-11-10 Bean <bean123ch@gmail.com>
47297 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
47299 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47301 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
47302 (vga_mod_SOURCES): Added.
47303 (vga_mod_CFLAGS): Likewise.
47304 (vga_mod_LDFLAGS): Likewise.
47306 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
47308 (set_map_mask): Likewise.
47309 (set_read_map): Likewise.
47310 (set_read_address): Likewise.
47311 (vga_font): Removed variable.
47312 (get_vga_glyph): Removed function.
47313 (invalidate_char): Likewise.
47314 (write_char): Changed to use grub_font_get_glyph() for font
47316 (grub_vga_putchar): Likewise.
47317 (grub_vga_getcharwidth): Likewise.
47319 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
47321 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
47323 (pxeboot_img_LDFLAGS): Likewise.
47324 (diskboot_img_LDFLAGS): Likewise.
47325 (kernel_img_LDFLAGS): Likewise.
47327 2007-11-06 Robert Millan <rmh@aybabtu.com>
47329 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
47330 in grub_outb() calls.
47331 (serial_hw_init): Likewise.
47333 2007-11-05 Robert Millan <rmh@aybabtu.com>
47335 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
47336 spaces. Skip non-regular files.
47338 2007-11-05 Robert Millan <rmh@aybabtu.com>
47340 * kern/disk.c (grub_disk_firmware_fini)
47341 (grub_disk_firmware_is_tainted): New variables.
47343 * include/grub/disk.h (grub_disk_firmware_fini)
47344 (grub_disk_firmware_is_tainted): Likewise.
47346 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
47347 (grub_disk_biosdisk_fini): ... to here.
47348 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
47349 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
47350 is set. Register grub_disk_biosdisk_fini() in
47351 `grub_disk_firmware_fini'.
47353 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
47354 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
47355 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
47356 to finish existing firmware disk interface.
47358 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
47359 (ata_mod_SOURCES): New variable.
47360 (ata_mod_CFLAGS): Likewise.
47361 (ata_mod_LDFLAGS): Likewise.
47363 2007-11-05 Robert Millan <rmh@aybabtu.com>
47365 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
47366 (grub_ata_wait): Reimplement using grub_millisleep().
47368 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
47369 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
47371 2007-11-03 Marco Gerards <marco@gnu.org>
47373 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
47374 (CRTC_ADDR_PORT): New macro.
47375 (CRTC_DATA_PORT): Likewise.
47376 (CRTC_CURSOR): Likewise.
47377 (CRTC_CURSOR_ADDR_HIGH): Likewise.
47378 (CRTC_CURSOR_ADDR_LOW): Likewise.
47379 (update_cursor): New function.
47380 (grub_console_real_putchar): Call `update_cursor'.
47381 (grub_console_gotoxy): Likewise.
47382 (grub_console_cls): Set the default color when clearing the
47384 (grub_console_setcursor): Implemented.
47386 2007-11-03 Marco Gerards <marco@gnu.org>
47388 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
47390 (grub_ata_pio_write): Likewise.
47392 (grub_atapi_identify): Wait after issuing an ATA command.
47393 (grub_atapi_packet): Likewise.
47394 (grub_ata_identify): Likewise.
47395 (grub_ata_readwrite): Likewise.
47397 2007-11-03 Marco Gerards <marco@gnu.org>
47399 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
47400 (grub_ata_pio_write): Likewise.
47401 (grub_ata_readwrite): Use `grub_error', instead of
47402 returning `grub_errno'.
47404 2007-11-03 Marco Gerards <marco@gnu.org>
47406 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
47407 grub_ata_pio_write once for every single sector, instead of for
47410 2007-10-31 Robert Millan <rmh@aybabtu.com>
47412 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
47414 * conf/i386-linuxbios.rmk: New file.
47416 * kern/i386/pc/hardware.c: Likewise.
47417 * term/i386/pc/at_keyboard.c: Likewise.
47418 * term/i386/pc/vga_text.c: Likewise.
47420 * include/grub/i386/linuxbios/boot.h: Likewise.
47421 * include/grub/i386/linuxbios/console.h: Likewise.
47422 * include/grub/i386/linuxbios/init.h: Likewise.
47423 * include/grub/i386/linuxbios/kernel.h: Likewise.
47424 * include/grub/i386/linuxbios/loader.h: Likewise.
47425 * include/grub/i386/linuxbios/memory.h: Likewise.
47426 * include/grub/i386/linuxbios/serial.h: Likewise.
47427 * include/grub/i386/linuxbios/time.h: Likewise.
47429 * kern/i386/linuxbios/init.c: Likewise.
47430 * kern/i386/linuxbios/startup.S: Likewise.
47431 * kern/i386/linuxbios/table.c: Likewise.
47433 2007-10-31 Marco Gerards <marco@gnu.org>
47435 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
47436 (ata_mod_SOURCES): New variable.
47437 (ata_mod_CFLAGS): Likewise.
47438 (ata_mod_LDFLAGS): Likewise.
47440 * disk/ata.c: New file.
47442 * include/grub/disk.h (grub_disk_dev_id): Add
47443 `GRUB_DISK_DEV_ATA_ID'.
47445 2007-10-31 Robert Millan <rmh@aybabtu.com>
47447 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
47448 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
47450 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
47451 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
47453 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
47456 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
47458 2007-10-27 Robert Millan <rmh@aybabtu.com>
47460 * include/grub/types.h (ULONG_MAX): Define macro.
47462 2007-10-22 Robert Millan <rmh@aybabtu.com>
47464 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
47466 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
47468 2007-10-22 Robert Millan <rmh@aybabtu.com>
47470 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
47471 (pkgdata_MODULES): Add `biosdisk.mod'.
47472 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
47475 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
47476 (grub_biosdisk_init): Replace with ...
47477 (GRUB_MOD_INIT(biosdisk)): ... this.
47478 (grub_biosdisk_fini): Replace with ...
47479 (GRUB_MOD_FINI(biosdisk)): ... this.
47481 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
47482 (grub_machine_init): Remove call to grub_biosdisk_init().
47483 (grub_machine_fini): Remove call to grub_machine_fini().
47485 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
47487 2007-10-22 Robert Millan <rmh@aybabtu.com>
47489 * include/grub/time.h: New file.
47490 * include/grub/i386/time.h: Likewise.
47491 * include/grub/powerpc/time.h: Likewise.
47492 * include/grub/sparc64/time.h: Likewise.
47494 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
47496 (KERNEL_MACHINE_TIME_HEADER): ... this.
47497 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47499 (KERNEL_MACHINE_TIME_HEADER): ... this.
47500 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
47502 (KERNEL_MACHINE_TIME_HEADER): ... this.
47504 * kern/i386/efi/init.c: Include `<grub/time.h>'.
47505 (grub_millisleep): New function.
47506 * kern/i386/pc/init.c: Include `<grub/time.h>'.
47507 (grub_millisleep): New function.
47508 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
47509 Remove `grub/machine/time.h' include.
47510 (grub_millisleep): New function.
47511 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
47512 Remove `grub/machine/time.h' include.
47513 (grub_millisleep): New function.
47515 * include/grub/misc.h (grub_div_roundup): New function.
47517 * kern/misc.c: Include `<grub/time.h>'.
47518 (grub_millisleep_generic): New function.
47520 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
47522 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
47524 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
47525 `machine/time.h'. Add `time.h'.
47526 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
47528 2007-10-21 Robert Millan <rmh@aybabtu.com>
47530 * include/grub/misc.h (grub_max): New function.
47532 2007-10-21 Robert Millan <rmh@aybabtu.com>
47534 * util/misc.c (grub_util_info): Call fflush() before returning.
47536 2007-10-20 Robert Millan <rmh@aybabtu.com>
47538 * genmk.rb (Image): Copy `extra_flags' from here ...
47539 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
47541 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
47542 to `argc' and `args' arguments.
47544 2007-10-17 Robert Millan <rmh@aybabtu.com>
47546 * kern/i386/loader.S: New file.
47548 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
47549 * kern/i386/loader.S (grub_linux_prot_size)... to here.
47550 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
47551 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
47552 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
47553 * kern/i386/loader.S (grub_linux_real_addr)... to here.
47554 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
47555 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
47556 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
47557 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
47558 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
47559 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
47560 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
47561 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
47563 * kern/i386/realmode.S: New file.
47565 * kern/i386/pc/startup.S (protstack): Moved from here ...
47566 * kern/i386/realmode.S (protstack)... to here.
47567 * kern/i386/pc/startup.S (gdt): Moved from here ...
47568 * kern/i386/realmode.S (gdt)... to here.
47569 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
47570 * kern/i386/realmode.S (prot_to_real)... to here.
47572 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
47573 `kern/i386/realmode.S'.
47575 2007-10-17 Robert Millan <rmh@aybabtu.com>
47577 * include/grub/i386/loader.h: New file.
47579 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
47580 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47581 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47582 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47583 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
47584 * include/grub/i386/loader.h (grub_linux_prot_size)
47585 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
47586 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
47587 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
47588 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
47590 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
47592 2007-10-15 Robert Millan <rmh@aybabtu.com>
47594 * normal/misc.c (grub_normal_print_device_info): Do not probe for
47595 filesystem when dev->disk is unset.
47596 Do probe for filesystem even when dev->disk->has_partitions is set.
47597 In case a filesystem is found, always report it.
47598 In case it isn't, if dev->disk->has_partitions is set, report that
47599 a partition table was found instead of reporting that no filesystem
47600 could be identified.
47602 2007-10-12 Robert Millan <rmh@aybabtu.com>
47604 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
47605 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
47607 * include/grub/types.h (grub_host_to_target16): New macro.
47608 (grub_host_to_target32): Likewise.
47609 (grub_host_to_target64): Likewise.
47610 (grub_target_to_host16): Likewise.
47611 (grub_target_to_host32): Likewise.
47612 (grub_target_to_host64): Likewise.
47614 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
47615 Renamed from to ...
47616 (GRUB_MOD_ALIGN): ...this. Update all users.
47618 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
47619 grub_host_to_target32.
47620 Replace grub_be_to_cpu32 with grub_target_to_host32.
47621 (load_modules): Likewise.
47622 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
47623 Replace grub_be_to_cpu32 with grub_target_to_host32.
47624 Replace grub_cpu_to_be16 with grub_host_to_target16.
47625 Replace grub_cpu_to_be32 grub_host_to_target32.
47627 2007-10-12 Robert Millan <rmh@aybabtu.com>
47629 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
47630 * util/elf/grub-mkimage.c: ... here.
47632 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
47633 `util/powerpc/ieee1275/grub-mkimage.c'.
47635 2007-10-07 Robert Millan <rmh@aybabtu.com>
47637 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
47638 and make it easier to figure out.
47639 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
47640 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
47641 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
47642 leave us with less than HEAP_MIN_SIZE total heap.
47643 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
47645 2007-10-03 Robert Millan <rmh@aybabtu.com>
47647 * include/grub/i386/io.h: New file.
47648 * commands/i386/pc/play.c (inb): Removed.
47650 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47652 * term/i386/pc/serial.c (inb): Removed.
47654 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47656 * term/i386/pc/vga.c (inb): Removed.
47658 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
47661 2007-10-02 Robert Millan <rmh@aybabtu.com>
47663 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
47664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
47665 Reported by Marcin Kurek.
47667 2007-09-07 Robert Millan <rmh@aybabtu.com>
47669 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
47670 SmartFirmware version updates (as released by Sven Luther), and avoid
47671 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
47672 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
47675 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47677 From Hitoshi Ozeki:
47678 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
47679 when merging two regions.
47681 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47683 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
47684 * normal/completion.c (grub_normal_do_completion): Likewise.
47685 Reported by Hitoshi Ozeki.
47687 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
47689 Do not use devices at boot in chainloading.
47691 * loader/i386/pc/chainloader.c (boot_drive): New variable.
47692 (boot_part_addr): Likewise.
47693 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
47694 with BOOT_DRIVE and BOOT_PART_ADDR.
47695 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
47696 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
47698 2007-08-29 Robert Millan <rmh@aybabtu.com>
47700 Patch from Simon Peter <dn.tlp@gmx.net>:
47701 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
47702 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
47703 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
47704 util/i386/pc/grub-setup.c_DEPENDENCIES.
47705 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
47706 util/grub-probe.c_DEPENDENCIES.
47707 * conf/powerpc-ieee1275.rmk: Likewise.
47709 2007-08-28 Robert Millan <rmh@aybabtu.com>
47711 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
47712 to tell grub-mkdevicemap how to name devices.
47713 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
47716 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
47717 util/i386/get_disk_name.c.
47718 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
47719 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
47720 util/ieee1275/get_disk_name.c.
47722 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
47724 * DISTLIST: Add util/i386/get_disk_name.c and
47725 util/ieee1275/get_disk_name.c.
47727 * util/grub-mkdevicemap.c: Replace device naming logic with
47728 grub_util_get_disk_name() calls.
47730 2007-08-20 Robert Millan <rmh@aybabtu.com>
47732 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
47733 (so that it works for both plural and singular quantities).
47735 2007-08-05 Robert Millan <rmh@aybabtu.com>
47737 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
47738 so that [xz] isn't taken into account when determining order.
47740 2007-08-02 Marco Gerards <marco@gnu.org>
47742 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
47743 `include/multiboot2.h', `include/grub/elfload.h',
47744 `include/multiboot.h', `include/grub/multiboot.h',
47745 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
47746 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
47747 `kern/elf.c', `loader/multiboot_loader.c',
47748 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
47749 `loader/i386/pc/multiboot2.c',
47750 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
47751 `util/i386/pc/grub-mkrescue.in'. Remove
47752 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
47753 `include/grub/i386/pc/util/biosdisk.h' and
47754 `include/grub/powerpc/ieee1275/multiboot.h'.
47756 2007-08-02 Bean <bean123ch@gmail.com>
47758 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
47759 (ntfs_mod_SOURCES): New variable.
47760 (ntfs_mod_CFLAGS): Likewise.
47761 (ntfs_mod_LDFLAGS): Likewise.
47763 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
47764 (grub_probe_SOURCES): Likewise.
47765 (grub_emu_SOURCES): Likewise.
47767 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47768 (grub_emu_SOURCES): Likewise.
47770 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
47771 (grub_emu_SOURCES): Likewise.
47773 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
47775 * fs/ntfs.c: New file.
47777 2007-08-02 Bean <bean123ch@gmail.com>
47779 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
47781 * file.h (grub_file): Likewise.
47783 * fshelp.h (grub_fshelp_read_file): Likewise.
47785 * util/i386/pc/grub-setup.c (setup): Likewise.
47786 (save_first_sector): Likewise.
47787 (save_blocklists): Likewise.
47789 * fs/affs.c (grub_affs_read_file): Likewise.
47791 * fs/ext2.c (grub_ext2_read_file): Likewise.
47793 * fs/fat.c (grub_fat_read_data): Likewise.
47795 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
47797 * fs/hfs.c (grub_hfs_read_file): Likewise.
47799 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
47801 * fs/jfs.c (grub_jfs_read_file): Likewise.
47803 * fs/minix.c (grub_minix_read_file): Likewise.
47805 * fs/sfs.c (grub_sfs_read_file): Likewise.
47807 * fs/ufs.c (grub_ufs_read_file): Likewise.
47809 * fs/xfs.c (grub_xfs_read_file): Likewise.
47811 * command/blocklist.c (read_blocklist): Likewise.
47812 (print_blocklist): Likewise.
47814 2007-08-02 Marco Gerards <marco@gnu.org>
47816 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
47819 * disk/host.c: New file.
47821 * util/hostfs.c: Likewise.
47823 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
47824 return `GRUB_ERR_BAD_FS'.
47825 * fs/sfs.c (grub_sfs_mount): Likewise.
47826 * fs/xfs.c (grub_xfs_mount): Likewise.
47828 * include/grub/disk.h (enum grub_disk_dev_id): Add
47829 `GRUB_DISK_DEVICE_HOST_ID'.
47831 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
47833 2007-07-24 Jerone Young <jerone@gmail.com>
47835 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
47836 modules for compilation.
47837 * conf/powerpc-ieee1275.rmk: Likewise.
47839 * include/multiboot.h: Move multiboot definitions to one file. Rename
47840 many definitions to not get grub specific.
47841 * include/multiboot2.h: Create header with multiboot 2 definitions.
47842 * include/grub/multiboot.h: Header for grub specific function
47843 prototypes and definitions.
47844 * include/grub/multiboot2.h: Likewise.
47845 * include/grub/multiboot_loader.h: Likewise.
47846 * include/grub/i386/pc/multiboot.h: Removed.
47847 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
47849 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
47850 and 2 to allow for one multiboot and module commands.
47851 * loader/multiboot2.c: Add multiboot2 functionality.
47852 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
47853 and definition names.
47854 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
47856 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
47857 ieee1275 specific multiboot2 code.
47859 * kern/i386/pc/startup.S: Change headers and definition names for
47860 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
47862 2007-07-22 Robert Millan <rmh@aybabtu.com>
47864 * geninitheader.sh: Process file specified in first parameter rather
47865 than hardcoding grub_modules_init.lst.
47866 * geninit.sh: Likewise. Also, construct header name dynamically rather
47867 than hardcoding grub_modules_init.h.
47869 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
47870 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
47871 grub_probe_init.[ch] and grub_setup_init.[ch].
47873 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
47874 grub_modules_init.h with grub_emu_init.h.
47875 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
47876 grub_probe_init.[ch] files.
47877 * conf/i386-efi.rmk: Likewise.
47878 * conf/i386-pc.rmk: Likewise.
47879 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
47880 grub_setup_init.[ch] files.
47882 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
47883 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
47884 to initialize modules rather than a list of hardcoded functions.
47885 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
47886 grub_init_all() to initialize modules rather than a list of hardcoded
47889 2007-07-22 Robert Millan <rmh@aybabtu.com>
47891 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
47892 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
47894 2007-07-22 Robert Millan <rmh@aybabtu.com>
47896 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
47897 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
47898 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
47899 flag when running on SmartFirmware.
47900 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
47901 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
47904 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
47905 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
47906 rather than decreasing it.
47908 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
47909 there's not enough space to do it, fail in the same way as when it
47910 can't be done because there are no partitions.
47912 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
47913 when nvsetenv failed.
47915 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47917 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
47918 because this rule is automatically generated.
47919 (grub-mkrescue): Removed for the same reason as above.
47921 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
47923 Migrate to GNU General Public License Version 3.
47925 * COPYING: Replaced with the plain text version of GPLv3.
47927 * config.guess: Updated from gnulib.
47928 * config.sub: Likewise.
47930 * geninit.sh: Output a GPLv3 copyright notice.
47931 * geninitheader.sh: Likewise.
47932 * genmodsrc.sh: Likewise.
47933 * gensymlist.sh.in: Likewise.
47935 * boot/i386/pc/boot.S: Upgraded to GPLv3.
47936 * boot/i386/pc/diskboot.S: Likewise.
47937 * boot/i386/pc/pxeboot.S: Likewise.
47938 * commands/blocklist.c: Likewise.
47939 * commands/boot.c: Likewise.
47940 * commands/cat.c: Likewise.
47941 * commands/cmp.c: Likewise.
47942 * commands/configfile.c: Likewise.
47943 * commands/echo.c: Likewise.
47944 * commands/help.c: Likewise.
47945 * commands/ls.c: Likewise.
47946 * commands/search.c: Likewise.
47947 * commands/terminal.c: Likewise.
47948 * commands/test.c: Likewise.
47949 * commands/videotest.c: Likewise.
47950 * commands/i386/cpuid.c: Likewise.
47951 * commands/i386/pc/halt.c: Likewise.
47952 * commands/i386/pc/play.c: Likewise.
47953 * commands/i386/pc/reboot.c: Likewise.
47954 * commands/i386/pc/vbeinfo.c: Likewise.
47955 * commands/i386/pc/vbetest.c: Likewise.
47956 * commands/ieee1275/halt.c: Likewise.
47957 * commands/ieee1275/reboot.c: Likewise.
47958 * commands/ieee1275/suspend.c: Likewise.
47959 * disk/loopback.c: Likewise.
47960 * disk/lvm.c: Likewise.
47961 * disk/raid.c: Likewise.
47962 * disk/efi/efidisk.c: Likewise.
47963 * disk/i386/pc/biosdisk.c: Likewise.
47964 * disk/ieee1275/ofdisk.c: Likewise.
47965 * font/manager.c: Likewise.
47966 * fs/affs.c: Likewise.
47967 * fs/ext2.c: Likewise.
47968 * fs/fat.c: Likewise.
47969 * fs/fshelp.c: Likewise.
47970 * fs/hfs.c: Likewise.
47971 * fs/hfsplus.c: Likewise.
47972 * fs/iso9660.c: Likewise.
47973 * fs/jfs.c: Likewise.
47974 * fs/minix.c: Likewise.
47975 * fs/sfs.c: Likewise.
47976 * fs/ufs.c: Likewise.
47977 * fs/xfs.c: Likewise.
47978 * hello/hello.c: Likewise.
47979 * include/grub/acorn_filecore.h: Likewise.
47980 * include/grub/arg.h: Likewise.
47981 * include/grub/bitmap.h: Likewise.
47982 * include/grub/boot.h: Likewise.
47983 * include/grub/cache.h: Likewise.
47984 * include/grub/device.h: Likewise.
47985 * include/grub/disk.h: Likewise.
47986 * include/grub/dl.h: Likewise.
47987 * include/grub/elfload.h: Likewise.
47988 * include/grub/env.h: Likewise.
47989 * include/grub/err.h: Likewise.
47990 * include/grub/file.h: Likewise.
47991 * include/grub/font.h: Likewise.
47992 * include/grub/fs.h: Likewise.
47993 * include/grub/fshelp.h: Likewise.
47994 * include/grub/gzio.h: Likewise.
47995 * include/grub/hfs.h: Likewise.
47996 * include/grub/kernel.h: Likewise.
47997 * include/grub/loader.h: Likewise.
47998 * include/grub/lvm.h: Likewise.
47999 * include/grub/misc.h: Likewise.
48000 * include/grub/mm.h: Likewise.
48001 * include/grub/net.h: Likewise.
48002 * include/grub/normal.h: Likewise.
48003 * include/grub/parser.h: Likewise.
48004 * include/grub/partition.h: Likewise.
48005 * include/grub/pc_partition.h: Likewise.
48006 * include/grub/raid.h: Likewise.
48007 * include/grub/rescue.h: Likewise.
48008 * include/grub/script.h: Likewise.
48009 * include/grub/setjmp.h: Likewise.
48010 * include/grub/symbol.h: Likewise.
48011 * include/grub/term.h: Likewise.
48012 * include/grub/terminfo.h: Likewise.
48013 * include/grub/tparm.h: Likewise.
48014 * include/grub/types.h: Likewise.
48015 * include/grub/video.h: Likewise.
48016 * include/grub/efi/api.h: Likewise.
48017 * include/grub/efi/chainloader.h: Likewise.
48018 * include/grub/efi/console.h: Likewise.
48019 * include/grub/efi/console_control.h: Likewise.
48020 * include/grub/efi/disk.h: Likewise.
48021 * include/grub/efi/efi.h: Likewise.
48022 * include/grub/efi/pe32.h: Likewise.
48023 * include/grub/efi/time.h: Likewise.
48024 * include/grub/i386/linux.h: Likewise.
48025 * include/grub/i386/setjmp.h: Likewise.
48026 * include/grub/i386/types.h: Likewise.
48027 * include/grub/i386/efi/kernel.h: Likewise.
48028 * include/grub/i386/efi/loader.h: Likewise.
48029 * include/grub/i386/efi/time.h: Likewise.
48030 * include/grub/i386/pc/biosdisk.h: Likewise.
48031 * include/grub/i386/pc/boot.h: Likewise.
48032 * include/grub/i386/pc/chainloader.h: Likewise.
48033 * include/grub/i386/pc/console.h: Likewise.
48034 * include/grub/i386/pc/init.h: Likewise.
48035 * include/grub/i386/pc/kernel.h: Likewise.
48036 * include/grub/i386/pc/loader.h: Likewise.
48037 * include/grub/i386/pc/memory.h: Likewise.
48038 * include/grub/i386/pc/multiboot.h: Likewise.
48039 * include/grub/i386/pc/serial.h: Likewise.
48040 * include/grub/i386/pc/time.h: Likewise.
48041 * include/grub/i386/pc/vbe.h: Likewise.
48042 * include/grub/i386/pc/vbeblit.h: Likewise.
48043 * include/grub/i386/pc/vbefill.h: Likewise.
48044 * include/grub/i386/pc/vbeutil.h: Likewise.
48045 * include/grub/i386/pc/vga.h: Likewise.
48046 * include/grub/ieee1275/ieee1275.h: Likewise.
48047 * include/grub/ieee1275/ofdisk.h: Likewise.
48048 * include/grub/powerpc/libgcc.h: Likewise.
48049 * include/grub/powerpc/setjmp.h: Likewise.
48050 * include/grub/powerpc/types.h: Likewise.
48051 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
48052 * include/grub/powerpc/ieee1275/console.h: Likewise.
48053 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
48054 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
48055 * include/grub/powerpc/ieee1275/loader.h: Likewise.
48056 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
48057 * include/grub/powerpc/ieee1275/time.h: Likewise.
48058 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
48059 * include/grub/sparc64/libgcc.h: Likewise.
48060 * include/grub/sparc64/setjmp.h: Likewise.
48061 * include/grub/sparc64/types.h: Likewise.
48062 * include/grub/sparc64/ieee1275/console.h: Likewise.
48063 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48064 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48065 * include/grub/sparc64/ieee1275/time.h: Likewise.
48066 * include/grub/util/biosdisk.h: Likewise.
48067 * include/grub/util/getroot.h: Likewise.
48068 * include/grub/util/lvm.h: Likewise.
48069 * include/grub/util/misc.h: Likewise.
48070 * include/grub/util/raid.h: Likewise.
48071 * include/grub/util/resolve.h: Likewise.
48072 * io/gzio.c: Likewise.
48073 * kern/device.c: Likewise.
48074 * kern/disk.c: Likewise.
48075 * kern/dl.c: Likewise.
48076 * kern/elf.c: Likewise.
48077 * kern/env.c: Likewise.
48078 * kern/err.c: Likewise.
48079 * kern/file.c: Likewise.
48080 * kern/fs.c: Likewise.
48081 * kern/loader.c: Likewise.
48082 * kern/main.c: Likewise.
48083 * kern/misc.c: Likewise.
48084 * kern/mm.c: Likewise.
48085 * kern/parser.c: Likewise.
48086 * kern/partition.c: Likewise.
48087 * kern/rescue.c: Likewise.
48088 * kern/term.c: Likewise.
48089 * kern/efi/efi.c: Likewise.
48090 * kern/efi/init.c: Likewise.
48091 * kern/efi/mm.c: Likewise.
48092 * kern/i386/dl.c: Likewise.
48093 * kern/i386/efi/init.c: Likewise.
48094 * kern/i386/efi/startup.S: Likewise.
48095 * kern/i386/pc/init.c: Likewise.
48096 * kern/i386/pc/lzo1x.S: Likewise.
48097 * kern/i386/pc/startup.S: Likewise.
48098 * kern/ieee1275/ieee1275.c: Likewise.
48099 * kern/powerpc/cache.S: Likewise.
48100 * kern/powerpc/dl.c: Likewise.
48101 * kern/powerpc/ieee1275/cmain.c: Likewise.
48102 * kern/powerpc/ieee1275/crt0.S: Likewise.
48103 * kern/powerpc/ieee1275/init.c: Likewise.
48104 * kern/powerpc/ieee1275/openfw.c: Likewise.
48105 * kern/sparc64/cache.S: Likewise.
48106 * kern/sparc64/dl.c: Likewise.
48107 * kern/sparc64/ieee1275/init.c: Likewise.
48108 * kern/sparc64/ieee1275/openfw.c: Likewise.
48109 * loader/efi/chainloader.c: Likewise.
48110 * loader/efi/chainloader_normal.c: Likewise.
48111 * loader/i386/efi/linux.c: Likewise.
48112 * loader/i386/efi/linux_normal.c: Likewise.
48113 * loader/i386/pc/chainloader.c: Likewise.
48114 * loader/i386/pc/chainloader_normal.c: Likewise.
48115 * loader/i386/pc/linux.c: Likewise.
48116 * loader/i386/pc/linux_normal.c: Likewise.
48117 * loader/i386/pc/multiboot.c: Likewise.
48118 * loader/i386/pc/multiboot_normal.c: Likewise.
48119 * loader/powerpc/ieee1275/linux.c: Likewise.
48120 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
48121 * normal/arg.c: Likewise.
48122 * normal/cmdline.c: Likewise.
48123 * normal/command.c: Likewise.
48124 * normal/completion.c: Likewise.
48125 * normal/execute.c: Likewise.
48126 * normal/function.c: Likewise.
48127 * normal/lexer.c: Likewise.
48128 * normal/main.c: Likewise.
48129 * normal/menu.c: Likewise.
48130 * normal/menu_entry.c: Likewise.
48131 * normal/misc.c: Likewise.
48132 * normal/parser.y: Likewise.
48133 * normal/script.c: Likewise.
48134 * normal/i386/setjmp.S: Likewise.
48135 * normal/powerpc/setjmp.S: Likewise.
48136 * normal/sparc64/setjmp.S: Likewise.
48137 * partmap/acorn.c: Likewise.
48138 * partmap/amiga.c: Likewise.
48139 * partmap/apple.c: Likewise.
48140 * partmap/gpt.c: Likewise.
48141 * partmap/pc.c: Likewise.
48142 * partmap/sun.c: Likewise.
48143 * term/gfxterm.c: Likewise.
48144 * term/terminfo.c: Likewise.
48145 * term/efi/console.c: Likewise.
48146 * term/i386/pc/console.c: Likewise.
48147 * term/i386/pc/serial.c: Likewise.
48148 * term/i386/pc/vesafb.c: Likewise.
48149 * term/i386/pc/vga.c: Likewise.
48150 * term/ieee1275/ofconsole.c: Likewise.
48151 * util/biosdisk.c: Likewise.
48152 * util/console.c: Likewise.
48153 * util/genmoddep.c: Likewise.
48154 * util/getroot.c: Likewise.
48155 * util/grub-emu.c: Likewise.
48156 * util/grub-mkdevicemap.c: Likewise.
48157 * util/grub-probe.c: Likewise.
48158 * util/lvm.c: Likewise.
48159 * util/misc.c: Likewise.
48160 * util/raid.c: Likewise.
48161 * util/resolve.c: Likewise.
48162 * util/update-grub.in: Likewise.
48163 * util/update-grub_lib.in: Likewise.
48164 * util/grub.d/00_header.in: Likewise.
48165 * util/grub.d/10_hurd.in: Likewise.
48166 * util/grub.d/10_linux.in: Likewise.
48167 * util/i386/efi/grub-install.in: Likewise.
48168 * util/i386/efi/grub-mkimage.c: Likewise.
48169 * util/i386/pc/grub-install.in: Likewise.
48170 * util/i386/pc/grub-mkimage.c: Likewise.
48171 * util/i386/pc/grub-mkrescue.in: Likewise.
48172 * util/i386/pc/grub-setup.c: Likewise.
48173 * util/i386/pc/misc.c: Likewise.
48174 * util/powerpc/ieee1275/grub-install.in: Likewise.
48175 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
48176 * util/powerpc/ieee1275/misc.c: Likewise.
48177 * video/bitmap.c: Likewise.
48178 * video/video.c: Likewise.
48179 * video/i386/pc/vbe.c: Likewise.
48180 * video/i386/pc/vbeblit.c: Likewise.
48181 * video/i386/pc/vbefill.c: Likewise.
48182 * video/i386/pc/vbeutil.c: Likewise.
48183 * video/readers/tga.c: Likewise.
48185 2007-07-02 Robert Millan <rmh@aybabtu.com>
48187 * conf/i386-efi.rmk: Replace obsolete reference to
48188 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
48189 with util/getroot.c.
48190 * conf/powerpc-ieee1275.rmk: Likewise.
48191 * conf/sparc64-ieee1275.rmk: Likewise.
48193 * util/grub-emu.c (main): Fix unchecked pointer handling.
48195 2007-07-02 Robert Millan <rmh@aybabtu.com>
48197 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
48198 invocation to fail, in order to support partition-less media.
48200 * util/i386/pc/grub-install.in: Likewise.
48202 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
48203 which fs or partmap modules are needed (akin to its sister scripts).
48205 Also use grub-probe to get rid of unportable /proc/mounts check.
48207 Print the same informational message that the other scripts do, before
48210 2007-06-23 Robert Millan <rmh@aybabtu.com>
48212 * util/update-grub_lib.in (font_path): New function. Determine whether
48213 a font file can be found and, if so, echo the GRUB path to it.
48215 * util/update-grub.in: Handle multiple terminals depending on user
48216 input, platform availability and font file presence. Propagate
48217 variables of our findings to /etc/grub.d/ children.
48219 * util/grub.d/00_header.in: Handle multiple terminals, based on
48220 environment setup by update-grub.
48222 2007-06-23 Robert Millan <rmh@aybabtu.com>
48224 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
48226 2007-06-21 Robert Millan <rmh@aybabtu.com>
48228 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
48229 indicate end of data section in kernel image.
48230 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
48231 GRUB_KERNEL_MACHINE_DATA_END.
48233 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
48235 * kern/i386/efi/startup.S: Likewise.
48237 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
48238 during image generation. Implement --prefix option to override this
48240 * util/i386/efi/grub-mkimage.c: Likewise.
48242 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
48243 code to make path relative to its root into a separate function.
48245 * util/i386/pc/grub-install.in: Use newly provided
48246 make_system_path_relative_to_its_root() to convert ${grubdir}, then
48247 pass the result to grub-install --prefix.
48249 2007-06-13 Robert Millan <rmh@aybabtu.com>
48251 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
48252 DEFAULT_DEVICE_MAP.
48253 * util/grub-emu.c: Use above definitions from misc.h instead of
48255 * util/grub-mkdevicemap.c: Likewise.
48256 * util/i386/pc/grub-setup.c: Likewise.
48257 * util/grub-probe.c: Likewise.
48258 (probe): Abort with grub_util_error() when either
48259 grub_guess_root_device or grub_util_get_grub_dev fails.
48261 2007-06-12 Robert Millan <rmh@aybabtu.com>
48263 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
48264 "pager" assignment.
48265 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
48267 * util/grub-probe.c (probe): Likewise for "drive_name".
48269 2007-06-11 Robert Millan <rmh@aybabtu.com>
48271 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
48272 not just the cdrom one.
48274 2007-06-11 Robert Millan <rmh@aybabtu.com>
48276 * util/i386/pc/grub-mkrescue.in: Add "set -e".
48277 Add --pkglibdir=DIR option to override pkglibdir.
48278 Mention --image-type=TYPE in help output.
48279 Fix --grub-mkimage (it was a no-op).
48280 Abort gracefully when no parameter is given.
48282 2007-06-11 Robert Millan <rmh@aybabtu.com>
48284 * util/i386/pc/grub-mkrescue.in: New file.
48285 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
48286 * Makefile.in: Handle bin_SCRIPTS.
48288 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
48290 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
48291 list of video modes.
48293 2007-06-06 Robert Millan <rmh@aybabtu.com>
48295 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
48296 file doesn't exist, or if it is in a filesystem grub can't read.
48298 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
48299 not abort if GRUB_DRIVE could not be defined. Rearrange generated
48300 header comment to fit in 80 columns when the variables are resolved.
48302 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
48303 could be identified by update-grub. Remove redundant check for
48304 unifont.pff existence (since convert_system_path_to_grub_path now
48307 2007-06-04 Robert Millan <rmh@aybabtu.com>
48309 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
48311 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
48313 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
48315 2007-06-04 Robert Millan <rmh@aybabtu.com>
48317 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
48319 * include/grub/partition.h: Declare grub_apple_partition_map_init and
48320 grub_apple_partition_map_fini.
48323 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
48324 to access >2 TiB disks).
48326 Print disk->total_sectors with %llu instead of %lu, since this
48327 variable is always 64-bit (prevents wrong disk size from being displayed
48328 on either >2 TiB disk or big-endian CPU).
48330 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
48331 into a generic case that supports all (sane) partition maps.
48333 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
48336 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
48337 and grub_apple_partition_map_fini() after that.
48339 2007-06-01 Robert Millan <rmh@aybabtu.com>
48341 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
48343 * util/grub.d/00_header.in: Only enable gfxterm when
48344 convert_system_path_to_grub_path() succeeds.
48346 2007-05-20 Robert Millan <rmh@aybabtu.com>
48348 * util/update-grub_lib.in: New file.
48349 * DISTLIST: Add update-grub_lib.in.
48350 * conf/common.rmk: Generate update-grub_lib and install it in
48352 * Makefile.in: Add install routine for $(lib_DATA).
48354 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
48355 function provided by update-grub_lib to support arbitrary paths of
48357 * util/update-grub.in: Use convert_system_path_to_grub_path() to
48358 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
48360 2007-05-19 Robert Millan <rmh@aybabtu.com>
48362 * commands/i386/cpuid.c: New module.
48363 * DISTLIST: Add it.
48364 * conf/i386-efi.rmk: Enable cpuid.mod.
48365 * conf/i386-pc.rmk: Likewise.
48367 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48369 * kern/disk.c (grub_disk_read): Check return value of
48372 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
48374 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
48376 * disk/raid.c (grub_raid_open): Likewise.
48378 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48380 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
48381 stack instead of on the heap.
48383 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
48384 before doing a read on it.
48386 * configure.ac: Only use -fno-stack-protector for the target
48389 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
48391 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
48392 __attribute_ ((unused)) to mode_type argument.
48394 * util/getroot.c (grub_guess_root_device): Fix #endif.
48396 * kern/misc.c (memcmp): Fix prototype.
48398 * include/grub/partition.h [GRUB_UTIL]
48399 (grub_gpt_partition_map_init): Add prototype.
48400 (grub_gpt_partition_map_fini): Likewise.
48402 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
48403 at the right place.
48405 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
48406 (grub_fat_read_data): Likewise.
48407 (grub_fat_find_dir): Likewise.
48409 * font/manager.c (find_glyph): Make table a const.
48410 (grub_font_get_glyph): Remove bitmap from if statement.
48412 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
48414 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
48415 code, first search for device in /dev/mapper, then in /dev.
48416 (grub_util_get_grub_dev): New function.
48417 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
48419 * util/grub-probe.c (probe): Remove check for RAID, call
48420 grub_util_get_grub_dev() instead of
48421 grub_util_biosdisk_get_grub_dev().
48422 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
48423 grub_util_biosdisk_get_grub_dev().
48424 * util/i386/pc/grub-setup.c (main): Likewise.
48426 2007-05-16 Robert Millan <rmh@aybabtu.com>
48428 * DISTLIST: Update for the latest changes.
48429 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
48430 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
48431 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
48432 grub/util/biosdisk.h.
48433 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
48434 grub/util/biosdisk.h.
48436 2007-05-16 Robert Millan <rmh@aybabtu.com>
48438 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
48440 2007-05-16 Robert Millan <rmh@aybabtu.com>
48442 * util/i386/efi/grub-install.in: New.
48443 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
48444 newly added grub-install.
48445 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
48447 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
48448 grub/util/biosdisk.h.
48449 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
48450 grub/util/biosdisk.h.
48452 2007-05-16 Robert Millan <rmh@aybabtu.com>
48454 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
48455 * include/grub/util/biosdisk.h: ... here.
48456 * util/i386/pc/biosdisk.c: Moved to ...
48457 * util/biosdisk.c: ... here.
48458 * util/i386/pc/getroot.c: Moved to ...
48459 * util/getroot.c: ... here.
48460 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
48461 * util/grub-mkdevicemap.c: ... here.
48462 * util/i386/pc/grub-probe.c: Moved to ...
48463 * util/grub-probe.c: ... here.
48465 2007-05-15 Robert Millan <rmh@aybabtu.com>
48467 * util/update-grub.in: Remove duplicated line in grub.cfg header
48470 2007-05-13 Robert Millan <rmh@aybabtu.com>
48472 * util/update-grub.in: Fix a few assumptions about the devices holding
48473 /, /boot and /boot/grub being the same.
48474 * util/grub.d/00_header.in: Likewise.
48475 * util/grub.d/10_hurd.in: Likewise.
48476 * util/grub.d/10_linux.in: Likewise.
48478 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
48479 patterns. Use that to define the `.old' suffix as older than `'.
48481 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
48483 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
48484 the grub.cfg header message.
48486 2007-05-11 Robert Millan <rmh@aybabtu.com>
48488 * util/update-grub.in: Create device.map if it doesn't already exist,
48489 before attempting to run grub-probe.
48490 Check for grub-probe and grub-mkdevicemap with the same code
48491 grub-install is using.
48494 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
48496 * Makefile.in: Add the datarootdir autoconf variable.
48498 2007-05-09 Robert Millan <rmh@aybabtu.com>
48500 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
48501 fail gracefully if dev->disk->partition == NULL.
48503 2007-05-07 Robert Millan <rmh@aybabtu.com>
48505 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
48506 determine partition map module.
48507 * util/i386/pc/grub-install.in: Use this feature to decide which
48508 partition module to load, instead of hardcoding pc and gpt.
48510 2007-05-07 Robert Millan <rmh@aybabtu.com>
48512 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
48513 source directory differs from build directory.
48515 2007-05-05 Robert Millan <rmh@aybabtu.com>
48517 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
48520 2007-05-05 Robert Millan <rmh@aybabtu.com>
48522 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
48524 2007-05-05 Robert Millan <rmh@aybabtu.com>
48526 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
48527 command-line arguments via ${GRUB_CMDLINE_LINUX}.
48529 2007-05-05 Robert Millan <rmh@aybabtu.com>
48531 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
48532 (grub_probe_SOURCES): Likewise.
48533 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
48534 GPT and initialize dos_part and bsd_part accordingly.
48535 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
48537 (main): Activate gpt module for use during partition identification,
48538 and deactivate it afterwards.
48539 * util/i386/pc/grub-install.in: Add gpt module to core.img.
48540 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
48541 partition identification, and deactivate it afterwards.
48543 2007-05-05 Robert Millan <rmh@aybabtu.com>
48545 * term/i386/pc/console.c (grub_console_fini): Call
48546 grub_term_set_current() before grub_term_unregister().
48548 2007-05-04 Robert Millan <rmh@aybabtu.com>
48550 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
48551 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
48552 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
48553 and update-grub_DATA.
48554 * conf/common.rmk: Build and install update-grub components.
48555 * conf/common.mk: Regenerate.
48556 * util/update-grub.in: New. Core of update-grub.
48557 * util/grub.d/00_header.in: New. Generates grub.cfg header.
48558 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
48559 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
48560 * util/grub.d/README: New. Document grub.d directory layout.
48562 2007-05-01 Robert Millan <rmh@aybabtu.com>
48564 * util/grub-emu.c: Move initialization functions
48565 grub_util_biosdisk_init() and grub_init_all() before
48566 grub_util_biosdisk_get_grub_dev(), which relies on them.
48568 2007-04-19 Robert Millan <rmh@aybabtu.com>
48570 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
48573 2007-04-18 Jerone Young <jerone@gmail.com>
48575 * kernel/elf.c: Add missing parenthesis for conditional statement
48578 2007-04-10 Jerone Young <jerone@gmail.com>
48580 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
48581 continue on and look for device node with real device name.
48583 2007-04-10 Jerone Young <jerone@gmail.com>
48585 * configure.ac: Add argument for autoconf to use transformation
48587 * Makefile.in: Add autoconf package transformation code.
48588 * util/i386/pc/grub-install.in: Likewise.
48589 * util/powerpc/ieee1275/grub-install.in: Likewise.
48591 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
48593 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
48594 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
48595 (EXT2_REVISION): Likewise.
48596 (EXT2_INODE_SIZE): Likewise.
48597 (struct grub_ext2_block_group): Added a missing member
48599 (grub_ext2_read_inode): Divide by the inode size in a superblock
48600 instead of 128 to obtain INODES_PER_BLOCK.
48601 Use the macro EXT2_INODE_SIZE instead of directly using
48602 SBLOCK->INODE_SIZE.
48604 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
48606 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
48607 superblock instead of the structure size to compute an
48608 offset. This fixes the problem that GRUB could not read a
48609 filesystem when inode size is different from 128-byte.
48611 2007-03-05 Marco Gerards <marco@gnu.org>
48613 * normal/main.c (read_config_file): When "menu" is not set, create
48614 an initial context.
48616 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48618 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
48619 (HEAP_LIMIT): New macro.
48620 (grub_claim_heap): Claim memory up to `heaplimit'.
48622 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
48624 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
48625 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
48626 (_start): Likewise.
48627 (grub_arch_modules_addr): Return address after `_end'.
48628 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
48629 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
48630 (add_segments): Calculate `_end' from phdr size and location.
48631 (ALIGN_UP): Moved to ...
48632 * include/grub/misc.h: here.
48633 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
48635 (GRUB_IEEE1275_MODULE_BASE): Removed.
48637 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48639 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
48642 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48644 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
48646 (grub_elf64_load_hook_t): Likewise.
48647 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
48650 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
48652 * kern/mm.c: Update copyright.
48653 (grub_mm_debug): Correct syntax error.
48654 (grub_mm_dump_free): New function.
48655 (grub_debug_free): Call `grub_free'.
48656 * include/grub/mm.h: Update copyright.
48657 (grub_mm_dump_free): Add declaration.
48659 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48661 * include/grub/ieee1275/ieee1275.h: Update copyright.
48662 * kern/powerpc/ieee1275/init.c: Likewise.
48663 * kern/powerpc/ieee1275/openfw.c: Likewise.
48665 * loader/powerpc/ieee1275/linux.c: Likewise.
48666 * include/grub/elfload.h: Likewise.
48667 * kern/elf.c: Likewise.
48668 (grub_elf32_load): Pass `base' and `size' parameters. Update all
48670 (grub_elf64_load): Likewise.
48671 (grub_elf32_load_segment): Move to a nested function.
48672 (grub_elf64_load_segment): Likewise.
48674 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
48676 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
48678 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
48679 (grub_heap_len): Likewise.
48680 (HEAP_SIZE): New macro.
48681 (grub_claim_heap): New function.
48682 (grub_machine_init): Don't claim heap directly. Call
48684 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
48685 (grub_available_iterate): New function.
48687 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
48689 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
48690 * configure.ac: Use it for testing the HOST and TARGET compilers.
48692 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
48694 * Makefile.in (enable_grub_emu): New variable.
48695 * configure.ac (--enable-grub-emu): New option.
48696 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
48697 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
48698 * conf/i386-pc.rmk: Likewise.
48699 * conf/powerpc-ieee1275.rmk: Likewise.
48700 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
48702 2006-12-12 Marco Gerards <marco@gnu.org>
48704 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
48706 * kern/env.c (grub_env_unset): Don't free the member `value' when
48707 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
48710 * normal/main.c (current_menu): Removed.
48711 (free_menu): Unset the `menu' environment variable.
48712 (grub_normal_menu_addentry): Make use of the environment variable
48713 `menu', instead of using the global `current_menu'. Allocate
48714 memory for the sourcecode of this entry.
48715 (read_config_file): New argument `nested', changed all callers.
48716 Only in the case of a new context, initialize a new menu. Set the
48717 `menu' environment variable.
48718 (grub_normal_execute): Don't set and unset the environment
48719 variable `menu' here anymore. Only free the menu when leaving the
48722 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
48725 2006-12-11 Marco Gerards <marco@gnu.org>
48727 * normal/menu_entry.c (run): Fix off by one bug so the last line
48728 is executed. Move the loader check to outside the loop.
48730 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
48732 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
48734 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
48736 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
48737 the number of sectors. Reported by Andrey Shuvikov
48738 <mr_hyro@yahoo.com>.
48740 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
48742 * kern/disk.c (grub_disk_read): When there is a read error, always
48743 try to read only the necessary data.
48745 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
48747 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
48749 [GRUB_UTIL] (grub_raid_fini): Likewise.
48750 [GRUB_UTIL] (grub_lvm_init): Likewise.
48751 [GRUB_UTIL] (grub_lvm_fini): Likewise.
48752 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
48753 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
48754 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
48755 and grub_raid_fini().
48757 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
48759 * include/grub/types.h (__unused): Rename to UNUSED.
48760 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
48761 (grub_elf64_size): Likewise.
48763 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48765 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
48766 grub_error_push and grub_error_pop in the error-handling path.
48767 (grub_elf32_load_segment): Only call grub_file_read with non-zero
48770 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
48772 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
48773 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
48774 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48775 (kernel_elf_SOURCES): Likewise.
48776 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
48777 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
48778 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48779 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
48780 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
48781 (elf_mod_SOURCES): New variable.
48782 (elf_mod_CFLAGS): Likewise.
48783 (elf_mod_LDFLAGS): Likewise.
48784 * include/grub/types.h (__unused): New macro.
48785 * include/grub/elfload.h: New file.
48786 * kern/elf.c: Likewise.
48787 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
48788 (ELF32_LOADMASK): New macro.
48789 (ELF64_LOADMASK): Likewise.
48790 (vmlinux): Removed.
48791 (grub_linux_load32): New function.
48792 (grub_linux_load64): Likewise.
48793 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
48794 Use grub_elf_t instead of grub_file_t.
48796 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
48798 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
48799 `catch_result' to struct set_color_args.
48801 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48803 * normal/menu.c: Include grub/script.h.
48804 * normal/menu_entry.c: Likewise.
48805 * include/grub/normal.h: Do not include grub/script.h.
48807 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48809 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
48811 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48813 * kern/disk.c (grub_disk_open): Print debug messages when opening a
48815 (grub_disk_close): Print debug messages when closing a disk.
48816 (grub_disk_read): Print debug messages when disk read fails.
48817 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
48819 * kern/partition.c: Include misc.h.
48820 (grub_partition_iterate): Print debug messages when detecting
48823 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
48825 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
48827 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
48829 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
48831 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
48832 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
48834 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
48836 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
48837 instead of sizeof(lv). Patch by Michael Guntsche.
48839 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
48841 * disk/lvm.c: Rename VGS to VG_LIST.
48842 (grub_lvm_iterate): Change VGS->LV to VG-LV.
48843 (grub_lvm_open): Likewise.
48844 Thanks to Michael Guntsche for finding this bug.
48846 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48848 * configure.ac (AC_INIT): Bumped to 1.95.
48850 2006-10-14 Robert Millan <rmh@aybabtu.com>
48852 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
48853 with "/dev/.static/dev/md".
48855 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48857 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
48858 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
48859 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
48860 DRIVE_NAME are always freed.
48862 * util/i386/pc/biosdisk.c (make_device_name): Add one into
48863 DOS_PART, as a DOS partition is counted from one instead of zero
48864 now. Reported by Robert Millan.
48866 2006-10-14 Robert Millan <rmh@aybabtu.com>
48868 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
48869 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
48870 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
48871 string returned by grub_guess_root_device.
48872 * util/i386/pc/grub-setup.c: Likewise.
48873 * util/i386/pc/grub-probefs.c: Likewise.
48875 * util/i386/pc/grub-probefs.c: Rename to ...
48876 * util/i386/pc/grub-probe.c: ... this.
48877 * DISTLIST: Remove grub-probefs, add grub-probe.
48878 * conf/i386-efi.rmk: Likewise.
48879 * conf/i386-pc.rmk: Likewise.
48880 * util/i386/pc/grub-install.in: Likewise.
48882 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
48883 choose which information we want to print.
48885 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
48887 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
48888 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
48889 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
48890 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
48891 video/readers/tga.c and video/i386/pc/vbeutil.c.
48893 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
48895 Added support for RAID and LVM.
48897 * disk/lvm.c: New file.
48898 * disk/raid.c: Likewise.
48899 * include/grub/lvm.h: Likewise.
48900 * include/grub/raid.h: Likewise.
48901 * include/grub/util/lvm.h: Likewise.
48902 * include/grub/util/raid.h: Likewise.
48903 * util/lvm.c: Likewise.
48904 * util/raid.c: Likewise.
48906 * include/grub/disk.h (grub_disk_dev_id): Add
48907 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
48908 (grub_disk_get_size): New prototype.
48909 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
48910 returns a partition.
48911 (grub_disk_get_size): New function.
48913 * kern/i386/pc/init.c (make_install_device): Copy the prefix
48914 verbatim if grub_install_dos_part is -2.
48916 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
48919 * util/i386/pc/grub-setup.c (setup): New argument
48920 MUST_EMBED. Force embedding of GRUB when the argument is
48921 true. Close FILE before returning.
48922 (main): Add support for RAID and LVM.
48924 * conf/common.rmk: Add RAID and LVM modules.
48925 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
48927 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
48929 * kern/misc.c (grub_strstr): New function.
48930 * include/grub/misc.h (grub_strstr): New prototype.
48932 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
48934 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
48936 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
48938 * kern/misc.c (grub_strtoull): Guess the base only if not
48941 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48943 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
48946 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48948 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
48950 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
48951 Remove `flags' argument. All callers changed.
48952 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
48953 (IEEE1275_IHANDLE_INVALID): New variable.
48954 (IEEE1275_CELL_INVALID): New variable.
48955 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
48956 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
48957 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
48958 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
48959 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
48960 codes from Open Firmware. All callers updated.
48961 (grub_ieee1275_next_property): Directly return Open Firmware return
48963 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
48964 Standardize error checking from `grub_ieee1275_get_property'.
48965 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
48966 `devalias' to `aliases'. Correct comments. Consolidate error paths.
48968 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
48970 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
48971 `instance_to_package_args' to `instance_to_path_args'.
48973 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
48974 `grub_ieee1275_chosen'.
48976 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
48977 `grub_ieee1275_interpret'.
48979 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48981 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
48983 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
48985 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
48986 (__cmpdi): Likewise.
48988 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
48989 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
48992 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
48994 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
48995 to type `grub_ssize_t'.
48996 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
48998 2006-09-22 Marco Gerards <marco@gnu.org>
49000 * normal/script.c (grub_script_create_cmdmenu): Skip leading
49003 2006-09-22 Marco Gerards <marco@gnu.org>
49005 * commands/echo.c: New file.
49007 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
49009 * conf/common.rmk (echo_mod_SOURCES): New variable.
49010 (echo_mod_CFLAGS): Likewise.
49011 (echo_mod_LDFLAGS): Likewise.
49013 2006-09-22 Marco Gerards <marco@gnu.org>
49015 * normal/main.c (get_line): Malloc memory instead of using
49016 preallocated memory. Removed the arguments `cmdline' and
49017 `max_len'. Updated all callers.
49019 2006-09-22 Marco Gerards <marco@gnu.org>
49021 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
49022 (normal_mod_DEPENDENCIES): Likewise.
49024 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
49025 (normal_mod_DEPENDENCIES): Likewise.
49027 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
49029 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
49031 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
49033 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
49034 (normal_mod_DEPENDENCIES): Likewise.
49035 * conf/i386-pc.mk: Regenerate.
49036 * conf/i386-efi.mk: Likewise
49037 * conf/common.mk: Likewise.
49038 * conf/powerpc-ieee1275.mk: Likewise.
49039 * conf/sparc64-ieee1275.mk: Likewise.
49041 2006-09-22 Robert Millan <rmh@aybabtu.com>
49043 Sync with i386 version.
49044 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
49045 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
49047 2006-09-21 Robert Millan <rmh@aybabtu.com>
49049 Import from GRUB Legacy (lib/device.c):
49050 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
49051 (init_device_map) [__linux__]: Add support for I2O devices.
49053 2006-09-14 Marco Gerards <marco@gnu.org>
49055 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
49058 2006-09-14 Robert Millan <rmh@aybabtu.com>
49060 * util/i386/pc/grub-install.in: Skip menu.lst when removing
49063 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
49065 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
49066 before adding it to device.map.
49068 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
49070 * genmk.rb: Let GCC generate dependencies the first time it
49071 compiles a file; using the -MD option.
49072 * conf/common.mk: Regenerate.
49073 * conf/i386-pc.mk: Likewise.
49074 * conf/i386-efi.mk: Likewise.
49075 * conf/powerpc-ieee1275.mk: Likewise.
49076 * conf/sparc64-ieee1275.mk: Likewise.
49078 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
49080 Move the prototypes of grub_setjmp and grub_longjmp to
49081 cpu/setjmp.h, so that each architecture may specify different
49084 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
49085 (grub_longjmp): Likewise.
49086 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
49087 (grub_longjmp): Likewise.
49088 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
49089 (grub_longjmp): Likewise.
49091 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
49092 [!GRUB_UTIL] (grub_longjmp): Removed.
49094 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
49096 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
49097 "color!" method does not return any value.
49099 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49101 * include/grub/bitmap.h: New file.
49103 * include/grub/i386/pc/vbeutil.h: Likewise.
49105 * video/bitmap.c: Likewise.
49107 * video/readers/tga.c: Likewise.
49109 * video/i386/pc/vbeutil.c: Likewise.
49111 * commands/videotest.c: Code cleanup and updated to reflect to new
49114 * term/gfxterm.c: Likewise.
49116 * video/video.c: Likewise.
49118 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
49119 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
49120 (bitmap_mod_SOURCES): New entry.
49121 (bitmap_mod_CFLAGS): Likewise.
49122 (bitmap_mod_LDFLAGS): Likewise.
49123 (tga_mod_SOURCES): Likewise.
49124 (tga_mod_CFLAGS): Likewise.
49125 (tga_mod_LDFLAGS): Likewise.
49127 * include/grub/video.h (grub_video_blit_operators): New enum type.
49128 (grub_video_render_target): Changed as forward declaration and moved
49129 actual definition to be video driver specific.
49130 (grub_video_adapter.blit_bitmap): Added blitting operator.
49131 (grub_video_adapter.blit_render_target): Likewise.
49132 (grub_video_blit_bitmap): Likewise.
49133 (grub_video_blit_render_target): Likewise.
49135 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
49136 driver specific render target definition.
49137 (grub_video_vbe_map_rgba): Added driver internal helper.
49138 (grub_video_vbe_unmap_color): Updated to use
49139 grub_video_i386_vbeblit_info.
49140 (grub_video_vbe_get_video_ptr): Likewise.
49142 * include/grub/i386/pc/vbeblit.h
49143 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
49144 grub_video_i386_vbeblit_info.
49145 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
49146 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
49147 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
49148 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
49149 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
49150 (grub_video_i386_vbeblit_index_index): Likewise.
49151 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
49152 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
49153 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
49154 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
49156 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
49159 * video/i386/pc/vbeblit.c: Updated to reflect changes on
49160 include/grub/i386/pc/vbeblit.h.
49162 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
49163 Updated to use grub_video_i386_vbeblit_info.
49164 (grub_video_i386_vbefill_R8G8B8): Likewise.
49165 (grub_video_i386_vbefill_index): Likewise.
49166 (grub_video_i386_vbefill): Added generic filler.
49168 * video/i386/pc/vbefill.c: Updated to reflect changes on
49169 include/grub/i386/pc/vbefill.h.
49171 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
49172 grub_video_i386_vbeblit_info.
49173 (grub_video_vbe_unmap_color): Likewise.
49174 (grub_video_vbe_blit_glyph): Likewise.
49175 (grub_video_vbe_scroll): Likewise.
49176 (grub_video_vbe_draw_pixel): Removed function.
49177 (grub_video_vbe_get_pixel): Likewise.
49178 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
49179 updated code to use it.
49180 (common_blitter): Added common blitter for render target and bitmap.
49181 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
49182 (grub_video_vbe_blit_render_target): Likewise.
49184 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
49186 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
49187 is in text mode if there is no console control protocol instance
49190 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49192 * include/grub/video.h: Code cleanup.
49194 * include/grub/i386/pc/vbe.h: Likewise.
49196 * video/i386/pc/vbe.c: Likewise.
49198 * video/i386/pc/vbeblit.c: Likewise.
49200 * video/i386/pc/vbefill.c: Likewise.
49202 * video/video.c: Likewise. Also added more comments.
49204 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
49206 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
49207 (struct grub_biosdisk_dap): Likewise.
49209 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
49210 linkage settings for all functions.
49212 2006-07-12 Marco Gerards <marco@gnu.org>
49214 * configure.ac (--enable-mm-debug): Fix typo.
49216 * genkernsyms.sh.in: Use proper quoting for `CC'.
49218 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
49220 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
49221 (normal_mod_ASFLAGS): Remove "-m32".
49223 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
49225 * util/misc.c: Include config.h.
49226 [!HAVE_MEMALIGN]: Do not include malloc.h.
49227 (grub_memalign): Use posix_memalign, if present. Then, use
49228 memalign, if present. Otherwise, emit an error.
49230 * util/grub-emu.c: Do not include malloc.h.
49232 * include/grub/util/misc.h: Include unistd.h. This is required for
49233 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
49234 D. Eades III <hde@foobar-qux.org>.
49236 * configure.ac (AC_GNU_SOURCE): Added.
49237 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
49240 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
49242 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
49243 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
49245 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
49247 * include/grub/types.h (grub_host_addr_t): Rename to
49248 grub_target_addr_t.
49249 (grub_host_off_t): Rename to grub_target_off_t.
49250 (grub_host_size_t): Rename to grub_target_size_t.
49251 (grub_host_ssize_t): Rename to grub_target_ssize_t.
49252 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
49254 * include/grub/kernel.h (struct grub_module_header): Change type
49255 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
49256 (grub_module_info): Likewise.
49258 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49260 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
49261 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
49262 Velazquez <jesus.velazquez@gmail.com>.
49264 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
49266 Count partitions from 1 instead of 0 in the string representation
49267 of partitions. Still use 0-based internally.
49269 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
49270 (sun_partition_map_iterate): Use grub_partition_t instead of
49271 struct grub_partition *. Cast DESC->START_CYLINDER to
49272 grub_uint64_t after converting the endian.
49273 (sun_partition_map_probe): Subtract 1 for PARTNUM.
49274 (sun_partition_map_get_name): Add 1 to P->INDEX.
49276 * partmap/pc.c (grub_partition_parse): Subtract 1 for
49278 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
49280 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
49281 zero instead of one.
49282 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
49283 (gpt_partition_map_get_name): Add 1 into P->INDEX.
49285 * partmap/apple.c (apple_partition_map_iterate): Change the type
49286 of POS to unsigned.
49287 (apple_partition_map_probe): Subtract 1 for PARTNUM.
49288 (apple_partition_map_get_name): Add 1 into P->INDEX.
49290 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
49291 of POS to unsigned.
49292 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
49293 calculate the offset of a partition.
49294 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
49295 (amiga_partition_map_get_name): Add 1 into P->INDEX.
49297 * partmap/acorn.c (acorn_partition_map_find): Change the type of
49298 SECTOR to grub_disk_addr_t.
49299 (acorn_partition_map_iterate): Likewise.
49300 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
49301 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
49303 (acorn_partition_map_get_name): Add 1 into P->INDEX.
49305 * kern/i386/pc/init.c (make_install_device): Add 1 into
49306 GRUB_INSTALL_DOS_PART.
49308 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
49311 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49313 Clean up the code to support 64-bit addressing in disks and
49314 files. This change is not enough for filesystems yet.
49316 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
49317 type of "start" to grub_uint64_t.
49318 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
49319 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
49320 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
49323 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
49324 to grub_disk_addr_t.
49326 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
49329 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49331 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
49334 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
49336 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
49338 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
49340 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
49341 to grub_off_t, to detect an error from grub_file_seek.
49342 (grub_multiboot_load_elf32): Likewise.
49344 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
49345 maximum unsigned long value when an overflow is detected.
49346 (grub_strtoull): New function.
49347 (grub_divmod64): Likewise.
49348 (grub_lltoa): use grub_divmod64.
49350 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
49352 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
49353 the pointer to next character. Use grub_strtoull instead of
49355 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
49356 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
49359 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
49360 return value is signed.
49361 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
49362 test if OFFSET is less than zero, as OFFSET is unsigned now.
49364 * kern/disk.c (struct grub_disk_cache): Change the type of
49365 "sector" to grub_disk_addr_t.
49366 (grub_disk_cache_get_index): Change the type of SECTOR to
49367 grub_disk_addr_t. Calculate the hash with SECTOR casted to
49368 unsigned after shifting.
49369 (grub_disk_cache_invalidate): Change the type of SECTOR to
49371 (grub_disk_cache_unlock): Likewise.
49372 (grub_disk_cache_store): Likewise.
49373 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
49374 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
49375 grub_disk_addr_t and grub_uint64_t, respectively.
49376 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
49377 body, as the value of OFFSET is tweaked by
49378 grub_disk_check_range. Change the types of START_SECTOR, LEN and
49379 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
49381 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
49382 body, as the value of OFFSET is tweaked by
49383 grub_disk_check_range. Change the types of LEN and N to
49386 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
49387 and "saved_offset" to grub_off_t.
49388 (test_header): Cast BUF to char *.
49389 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
49391 (grub_gzio_read): Change the types of OFFSET and SIZE to
49392 grub_off_t and grub_size_t, respectively.
49394 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
49396 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
49397 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
49398 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
49399 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
49400 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
49402 * include/grub/types.h (grub_off_t): Unconditionally set to
49404 (grub_disk_addr_t): Changed to grub_uint64_t.
49406 * include/grub/partition.h (struct grub_partition): Change the
49407 types of "start", "len" and "offset" to grub_disk_addr_t,
49408 grub_uint64_t and grub_disk_addr_t, respectively.
49409 (grub_partition_get_start): Return grub_disk_addr_t.
49410 (grub_partition_get_len): Return grub_uint64_t.
49412 * include/grub/misc.h (grub_strtoull): New prototype.
49413 (grub_divmod64): Likewise.
49415 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
49416 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
49417 grub_off_t, respectively.
49418 All callers and references changed.
49420 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
49421 grub_size_t in "read".
49422 All callers and references changed.
49424 * include/grub/file.h (struct grub_file): Change the types of
49425 "offset" and "size" to grub_off_t and grub_off_t,
49426 respectively. Change the type of SECTOR to grub_disk_addr_t in
49428 (grub_file_read): Change the type of LEN to grub_size_t.
49429 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
49431 (grub_file_size): Return grub_off_t.
49432 (grub_file_tell): Likewise.
49433 All callers and references changed.
49435 * include/grub/disk.h (struct grub_disk_dev): Change the types of
49436 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
49438 (struct grub_disk): Change the type of "total_sectors" to
49439 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
49441 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
49442 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
49443 (grub_disk_write): Likewise.
49444 All callers and references changed.
49446 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
49447 char * for grub_strncmp to silence gcc.
49448 (grub_iso9660_mount): Likewise.
49449 (grub_iso9660_mount): Likewise.
49450 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
49452 (grub_iso9660_iterate_dir): Likewise.
49453 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
49455 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
49456 LEN to grub_disk_addr_t and grub_size_t, respectively.
49458 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
49460 * fs/jfs.c (grub_jfs_read_file): Likewise.
49462 * fs/minix.c (grub_jfs_read_file): Likewise.
49464 * fs/sfs.c (grub_jfs_read_file): Likewise.
49466 * fs/ufs.c (grub_jfs_read_file): Likewise.
49468 * fs/xfs.c (grub_jfs_read_file): Likewise.
49470 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
49471 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
49474 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
49475 BLKNR to -1 instead of returning GRUB_ERRNO.
49476 (grub_ext2_read_file): Change the types of SECTOR and
49477 LEN to grub_disk_addr_t and grub_size_t, respectively.
49479 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
49480 LEN to grub_disk_addr_t and grub_size_t, respectively.
49482 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
49485 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
49486 string. Do not cast SECTOR explicitly.
49488 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
49489 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
49490 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
49491 grub_disk_addr_t and grub_size_t, respectively. If the sector is
49492 over 2TB and LBA mode is not supported, raise an error.
49493 (get_safe_sectors): New function.
49494 (grub_biosdisk_read): Use get_safe_sectors.
49495 (grub_biosdisk_write): Likewise.
49497 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
49498 (grub_efidisk_write): Likewise.
49500 * disk/loopback.c (delete_loopback): Cosmetic changes.
49501 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
49503 (grub_loopback_open): Likewise.
49504 (grub_loopback_read): Likewise. Also, change the type of POS to
49505 grub_off_t, and fix the usage of grub_memset.
49507 * commands/i386/pc/play.c: Include grub/machine/time.h.
49509 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
49512 * commands/configfile.c: Include grub/env.h.
49514 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
49515 GRUB_ERRNO directly instead. Change the type of POS to
49516 grub_off_t. Follow the coding standard.
49518 * commands/blocklist.c: Include grub/partition.h.
49519 (grub_cmd_blocklist): Return an error if the underlying device is
49520 not a disk. Take the starting sector of a partition into account,
49521 if a partition is used.
49523 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
49525 (lba_mode): Support 64-bit addresses.
49526 (chs_mode): Likewise.
49527 (copy_buffer): Adapted to the new offsets of a length field and a
49529 (blocklist_default_start): Allocate 64-bit space.
49531 * boot/i386/pc/boot.S (force_lba): Removed.
49532 (boot_drive): Moved to under KERNEL_SECTOR.
49533 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
49535 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
49537 (lba_mode): Refactored to support a 64-bit address. More size
49539 (setup_sectors): Likewise.
49541 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
49543 * DISTLIST: Added include/grub/i386/linux.h. Removed
49544 include/grub/i386/pc/linux.h
49546 * configure.ac (AC_INIT): Bumped to 1.94.
49548 * config.guess: Updated from gnulib.
49549 * config.sub: Likewise.
49550 * install-sh: Likewise.
49551 * mkinstalldirs: Likewise.
49553 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49555 * conf/common.rmk (grub_modules_init.lst): Depended on
49556 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
49559 * genmk.rb (PModule::rule): Reverted the previous change.
49561 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
49563 * conf/common.rmk (grub_modules_init.lst): Depends on
49564 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
49565 that the target does not exist before producing.
49566 (grub_modules_init.h): Remove the target before generating.
49567 (grub_emu_init.c): Likewise.
49569 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
49571 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
49573 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
49574 for the target-specific tests. Make sure that we also have the
49575 up-to-date target variables for those tests.
49577 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49579 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
49580 (PModule::rule): Likewise.
49582 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
49584 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
49585 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
49586 target-specific flags should be prefixed.
49587 (PModule::rule): Likewise.
49589 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
49591 * configure.ac (CMP): Check if cmp is available explicitly.
49593 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
49595 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
49596 (target_cpu): New variable.
49597 (pkglibdir): Use target_cpu instead of host_cpu.
49599 * util/i386/pc/grub-install.in (host_cpu): Removed.
49600 (target_cpu): New variable.
49601 (pkglibdir): Use target_cpu instead of host_cpu.
49603 * util/genmoddep.c: Removed.
49605 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
49606 instead of GRUB_HOST_SIZEOF_VOID_P.
49607 * kern/dl.c: Likewise.
49609 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
49611 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49612 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49613 (GRUB_TARGET_SIZEOF_LONG): ... this.
49614 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49615 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49616 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49618 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49619 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49620 (GRUB_TARGET_SIZEOF_LONG): ... this.
49621 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49622 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49623 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
49625 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
49626 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
49627 (GRUB_TARGET_SIZEOF_LONG): ... this.
49628 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
49629 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
49631 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
49632 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
49633 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
49634 instead of GRUB_HOST_SIZEOF_LONG.
49635 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
49636 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
49637 GRUB_CPU_WORDS_BIGENDIAN.
49638 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
49639 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
49642 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
49643 (genmoddep_SOURCES): Likewise.
49644 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
49645 (genmoddep_SOURCES): Likewise.
49646 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
49647 (genmoddep_SOURCES): Likewise.
49648 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
49650 (genmoddep_SOURCES): Likewise.
49652 * genmoddep.awk: New file.
49654 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
49655 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
49656 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
49657 (PModule::rule): Likewise.
49658 (Program::rule): Likewise.
49659 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
49660 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
49663 * configure.ac: Rewritten intensively to use host and target
49664 instead of build and host, respectively.
49666 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
49667 (host_cpu): Removed.
49668 (target_cpu): New variable.
49669 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
49670 (BUILD_CC): Removed.
49671 (BUILD_CFLAGS): Likewise.
49672 (BUILD_CPPFLAGS): Likewise.
49673 (TARGET_CC): New variable.
49674 (TARGET_CFLAGS): Likewise.
49675 (TARGET_CPPFLAGS): Likewise.
49676 (TARGET_LDFLAGS): Likewise.
49678 (include): Use target_cpu instead of host_cpu.
49679 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
49681 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
49683 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
49685 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
49686 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
49687 field 'false' to 'exec_on_false'.
49688 (grub_script_create_cmdif): Renamed argument names to reflect above
49691 * normal/execute.c (grub_script_execute_cmdif): Likewise.
49693 * normal/script.c (grub_script_create_cmdif): Likewise.
49695 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
49697 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
49699 (grub_hfsplus_btree_recptr): Likewise.
49700 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
49701 FILEBLOCK both to pass a block number and store next block
49703 (grub_hfsplus_read_block): Rewritten heavily to support an extent
49704 overflow file correctly. Specify errors appropriately, because
49705 fshelp expects that GRUB_ERRNO is set when fails. Reuse
49706 grub_hfsplus_btree_recptr to get the pointer to a found key.
49707 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
49710 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
49712 (_linux_mod_SOURCES): New variable.
49713 (_linux_mod_CFLAGS): Likewise.
49714 (_linux_mod_LDFLAGS): Likewise.
49715 (linux_mod_SOURCES): Likewise.
49716 (linux_mod_CFLAGS): Likewise.
49717 (linux_mod_LDFLAGS): Likewise.
49719 * DISTLIST: Added loader/i386/efi/linux.c,
49720 loader/i386/efi/linux_normal.c and
49721 include/grub/i386/efi/loader.h.
49723 * loader/i386/efi/linux.c: New file.
49724 * loader/i386/efi/linux_normal.c: Likewise.
49725 * include/grub/i386/efi/loader.h: Likewise.
49727 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
49729 * commands/blocklist.c: New file.
49731 * DISTLIST: Added commands/blocklist.c.
49733 * term/efi/console.c (grub_console_highlight_color): Use a lighter
49734 color for the background, and a darker color for the foreground.
49735 (grub_console_checkkey): Return READ_KEY.
49736 (grub_console_cls): Set the background to
49737 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
49739 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
49741 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
49742 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
49744 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
49747 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
49748 BG. The spec is wrong again.
49750 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
49752 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
49754 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
49755 commands/blocklist.c.
49756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49758 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
49759 (blocklist_mod_SOURCES): New variable.
49760 (blocklist_mod_CFLAGS): Likewise.
49761 (blocklist_mod_LDFLAGS): Likewise.
49763 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
49765 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
49767 (lba_mode): Use %eax more intensively to reduce the code size.
49769 2006-05-20 Marco Gerards <marco@gnu.org>
49771 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
49773 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
49775 (script): Accept leading newlines.
49776 (newlines): New rule to describe 0 or more newlines.
49777 (commands): Accept `command' with trailing newline. Fixed the
49778 order in which arguments were passed to `grub_script_add_cmd'.
49779 Accept commands separated by newlines.
49780 (function): Changed to accept newlines.
49781 (menuentry) Rewritten.
49783 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
49784 front of the list, instead of to the end.
49786 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
49788 * util/i386/pc/grub-install.in (bindir): New variable.
49789 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
49790 Shaver <lbgwjl@gmail.com>.
49792 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
49794 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
49795 grub/machine/linux.h
49796 * loader/i386/pc/linux.c: Likewise.
49798 * include/grub/i386/pc/linux.h: Moved to ...
49799 * include/grub/i386/linux.h: ... here.
49801 * include/grub/i386/linux.h (struct linux_kernel_params): New
49804 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
49806 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
49808 (grub_video_vbe_blit_glyph): Likewise.
49809 (grub_video_vbe_blit_bitmap): Likewise.
49810 (grub_video_vbe_blit_render_target): Likewise.
49812 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
49814 * configure.ac (--with-platform): Properly quote the square
49817 2006-05-08 Marco Gerards <marco@gnu.org>
49819 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
49821 (kernel_elf_HEADERS): ...to this. Updated all users.
49822 (grubof_symlist.c): Renamed from this...
49823 (kernel_elf_symlist.c): ...to this. Updated all users.
49824 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49825 (grubof_SOURCES): Renamed from this...
49826 (kernel_elf_SOURCES): ...to this.
49827 (grubof_HEADERS): Renamed from this...
49828 (kernel_elf_HEADERS): ...to this.
49829 (grubof_CFLAGS): Renamed from this...
49830 (kernel_elf_CFLAGS): ...to this.
49831 (grubof_ASFLAGS): Renamed from this...
49832 (kernel_elf_ASFLAGS): ...to this.
49833 (grubof_LDFLAGS): Renamed from this...
49834 (kernel_elf_LDFLAGS): ...to this.
49836 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
49838 (kernel_elf_HEADERS): ...to this. Updated all users.
49839 (grubof_symlist.c): Renamed from this...
49840 (kernel_elf_symlist.c): ...to this. Updated all users.
49841 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
49842 (grubof_SOURCES): Renamed from this...
49843 (kernel_elf_SOURCES): ...to this.
49844 (grubof_HEADERS): Renamed from this...
49845 (kernel_elf_HEADERS): ...to this.
49846 (grubof_CFLAGS): Renamed from this...
49847 (kernel_elf_CFLAGS): ...to this.
49848 (grubof_ASFLAGS): Renamed from this...
49849 (kernel_elf_ASFLAGS): ...to this.
49850 (grubof_LDFLAGS): Renamed from this...
49851 (kernel_elf_LDFLAGS): ...to this.
49853 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
49854 `kernel.elf' instead of `grubof'.
49856 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
49858 Add --with-platform to configure. Use pkglibdir instead of
49859 pkgdatadir. This is reported by Roger Leigh.
49861 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
49862 (host_vendor): Likewise.
49863 (host_os): Likewise.
49864 (pkgdatadir): Likewise.
49865 (platform): New variable.
49866 (pkglibdir): Likewise.
49867 Use PKGLIBDIR instead of PKGDATADIR.
49869 * util/i386/pc/grub-install.in (datadir): Removed.
49870 (host_vendor): Likewise.
49871 (host_os): Likewise.
49872 (pkgdatadir): Likewise.
49873 (platform): New variable.
49874 (pkglibdir): Likewise.
49875 Use PKGLIBDIR instead of PKGDATADIR.
49877 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
49878 instead of GRUB_DATADIR.
49880 * util/i386/pc/grub-mkimage.c (usage): Likewise.
49882 * util/i386/efi/grub-mkimage.c (usage): Likewise.
49885 * configure.ac (--with-platform): New option.
49886 Use PLATFORM instead of HOST_VENDOR to specify a platform.
49888 * Makefile.in: Include a makefile based on PLATFORM instead of
49890 (pkgdatadir): Not appended by the machine type.
49891 (pkglibdir): Appended by the machine type.
49892 (host_vendor): Removed.
49893 (platform): New variable.
49894 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
49895 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
49896 (uninstall): Likewise.
49898 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
49900 Use the environment context in the menu. Remove the commands
49901 "default" and "timeout", and use variables instead.
49903 * normal/menu.c: Include grub/env.h.
49904 (print_entry): Cast TITLE to silence gcc.
49905 (get_timeout): New function.
49906 (set_timeout): Likewise.
49907 (get_entry_number): Likewise.
49908 (run_menu): Use a default entry, a fallback entry and a timeout
49909 in the environment variables "default", "fallback" and
49910 "timeout". Also, tweak the default entry if it is not within the
49911 current menu entries.
49912 (grub_menu_run): Use a fallback entry in the environment variable
49915 * normal/main.c (read_config_file): Do not initialize
49916 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
49918 (grub_normal_execute): Use a data slot to store the menu.
49920 * include/grub/normal.h (struct grub_menu): Removed default_entry,
49921 fallback_entry and timeout.
49922 (struct grub_menu_list): Removed.
49923 (grub_menu_list_t): Likewise.
49924 (struct grub_context): Likewise.
49925 (grub_context_t): Likewise.
49926 (grub_context_get): Likewise.
49927 (grub_context_get_current_menu): Likewise.
49928 (grub_context_push_menu): Likewise.
49929 (grub_context_pop_menu): Likewise.
49930 (grub_default_init): Likewise.
49931 (grub_default_fini): Likewise.
49932 (grub_timeout_init): Likewise.
49933 (grub_timeout_fini): Likewise.
49935 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
49937 (normal_mod_SOURCES): Removed normal/context.c.
49939 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
49940 commands/default.c, commands/timeout.c and normal/context.c.
49941 (normal_mod_SOURCES): Removed normal/context.c.
49943 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
49944 commands/timeout.c and normal/context.c.
49945 (normal_mod_SOURCES): Removed normal/context.c.
49947 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
49948 commands/default.c, commands/timeout.c and normal/context.c.
49949 (normal_mod_SOURCES): Removed normal/context.c.
49951 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
49953 (default_mod_SOURCES): Removed.
49954 (default_mod_CFLAGS): Likewise.
49955 (default_mod_LDFLAGS): Likewise.
49956 (timeout_mod_SOURCES): Removed.
49957 (timeout_mod_CFLAGS): Likewise.
49958 (timeout_mod_LDFLAGS): Likewise.
49960 * DISTLIST: Removed commands/default.c, commands/timeout.c and
49963 * commands/default.c: Removed.
49964 * commands/timeout.c: Likewise.
49965 * normal/context.c: Likewise.
49967 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
49969 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
49971 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
49973 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
49974 "next" to "prev" for readability.
49975 (struct grub_env_sorted_var): New struct.
49976 (grub_env_context): Renamed to ...
49977 (initial_context): ... this.
49978 (grub_env_var_context): Renamed to ...
49979 (current_context): ... this.
49980 (grub_env_find): Look only at CURRENT_CONTEXT.
49981 (grub_env_context_open): Rewritten to copy exported variables from
49983 (grub_env_context_close): Rewritten according to the new
49984 scheme. Also, add an assertion to prevent the initial context from
49986 (grub_env_insert): Removed the code for the sorted list.
49987 (grub_env_remove): Likewise.
49988 (grub_env_export): Simply mark the variable with
49989 GRUB_ENV_VAR_GLOBAL.
49990 (grub_env_set): A cosmetic change for naming consistency.
49991 (grub_env_get): Likewise.
49992 (grub_env_unset): Likewise.
49993 (grub_env_iterate): Rewritten to sort variables within this
49995 (grub_register_variable_hook): Fixed for naming consistency. Call
49996 grub_env_find again, only if NAME is not found at the first time.
49997 (mangle_data_slot_name): New function.
49998 (grub_env_set_data_slot): Likewise.
49999 (grub_env_get_data_slot): Likewise.
50000 (grub_env_unset_data_slot): Likewise.
50002 * include/grub/env.h (grub_env_var_type): New enum.
50003 (GRUB_ENV_VAR_LOCAL): New constant.
50004 (GRUB_ENV_VAR_GLOBAL): Likewise.
50005 (GRUB_ENV_VAR_DATA): Likewise.
50006 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
50008 (grub_env_set): Replace VAR with NAME for consistency.
50009 (grub_register_variable_hook): Likewise.
50010 (grub_env_export): Specify the name of the argument.
50011 (grub_env_set_data_slot): New prototype.
50012 (grub_env_get_data_slot): Likewise.
50013 (grub_env_unset_data_slot): Likewise.
50015 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50017 Extend the loader so that GRUB can accept a loader which comes
50018 back to GRUB when a loaded image exits. Also, this change adds
50019 support for a chainloader on EFI.
50021 * term/efi/console.c: Include grub/misc.h.
50022 (grub_console_checkkey): Display a scan code on the top for
50023 debugging. This will be removed once the EFI port gets stable.
50024 Correct the scan code mapping.
50026 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
50027 allocate memory from larger regions, in order to reduce the number
50028 of allocated regions. Otherwise, the MacOSX loader panics.
50029 (filter_memory_map): Avoid less than 1MB for compatibility with
50031 (add_memory_regions): Allocate from the tail of a region, if
50032 possible, to avoid allocating a region near to 1MB, for the MacOSX
50035 * kern/efi/init.c (grub_efi_set_prefix): Specify
50036 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
50038 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
50039 argument IMAGE_HANDLE and specify it to get a loaded image.
50040 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
50041 grub_efi_get_loaded_image.
50042 (grub_efi_get_filename): Divide the length by the size of
50044 (grub_efi_get_device_path): New function.
50045 (grub_efi_print_device_path): Print End Device Path nodes. Divide
50046 the length by the size of grub_efi_char16_t for a file path device
50049 * kern/loader.c (grub_loader_noreturn): New variable.
50050 (grub_loader_set): Accept a new argument NORETURN. Set
50051 GRUB_LOADER_NORETURN to NORETURN.
50052 All callers changed.
50053 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
50056 * include/grub/efi/efi.h (grub_efi_get_device_path): New
50058 (grub_efi_get_loaded_image): Take an argument to specify an image
50061 * include/grub/loader.h (grub_loader_set): Added one more argument
50064 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
50065 instead of grub_efi_open_protocol.
50066 (grub_efidisk_get_device_name): Likewise.
50067 (grub_efidisk_close): Print a newline.
50068 (grub_efidisk_get_device_handle): Fixed to use
50069 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
50070 GRUB_EFI_DEVICE_PATH_TYPE.
50072 * disk/efi/efidisk.c (device_path_guid): Moved to ...
50073 * kern/efi/efi.c (device_path_guid): ... here.
50075 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
50077 (kernel_mod_HEADERS): Added efi/disk.h.
50078 (_chain_mod_SOURCES): New variable.
50079 (_chain_mod_CFLAGS): Likewise.
50080 (_chain_mod_LDFLAGS): Likewise.
50081 (chain_mod_SOURCES): Likewise.
50082 (chain_mod_CFLAGS): Likewise.
50083 (chain_mod_LDFLAGS): Likewise.
50085 * DISTLIST: Added include/grub/efi/chainloader.h,
50086 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
50088 * include/grub/efi/chainloader.h: New file.
50089 * loader/efi/chainloader.c: Likewise.
50090 * loader/efi/chainloader_normal.c: Likewise.
50092 2006-04-30 Marco Gerards <marco@gnu.org>
50094 * commands/configfile.c (grub_cmd_source): New function.
50095 (GRUB_MOD_INIT): Register the commands `source' and `.'.
50096 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
50098 2006-04-30 Marco Gerards <marco@gnu.org>
50100 * normal/execute.c (grub_script_execute_cmd): Change the return
50101 type to `grub_err_t'. Correctly return the error.
50102 (grub_script_execute_cmdline): In case a command line is not a
50103 command or a function, try to interpret it as an assignment.
50105 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
50107 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
50108 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
50109 skip a node whose name is obviously invalid as UTF-16,
50110 i.e. contains a NUL character. Stop the iteration when the last
50111 directory entry is found. Instead of using the return value of
50112 grub_hfsplus_btree_iterate_node, store the value in RET and use
50113 it, because the iterator can be stopped by the last directory
50116 2006-04-30 Marco Gerards <marco@gnu.org>
50118 * include/grub/env.h (grub_env_export): New prototype. Reported
50119 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
50121 2006-04-30 Marco Gerards <marco@gnu.org>
50123 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
50124 size of the extents in a catalog file record.
50126 2006-04-29 Marco Gerards <marco@gnu.org>
50128 * commands/configfile.c (grub_cmd_configfile): Execute the
50129 configfile within its own context.
50131 * include/grub/env.h (grub_env_context_open): New prototype.
50132 (grub_env_context_close): Likewise.
50134 * kern/env.c (grub_env): Removed.
50135 (grub_env_sorted): Likewise.
50136 (grub_env_context): New variable.
50137 (grub_env_var_context): Likewise.
50138 (grub_env_find): Search both the active context and the global
50140 (grub_env_context_open): New function.
50141 (grub_env_context_close): Likewise.
50142 (grub_env_insert): Likewise.
50143 (grub_env_remove): Likewise.
50144 (grub_env_export): Likewise.
50145 (grub_env_set): Changed to use helper functions to avoid code
50147 (grub_env_iterate): Rewritten so both the current context and the
50148 global context are being used.
50150 * normal/command.c (export_command): New function.
50151 (grub_command_init): Register the `export' function.
50153 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
50155 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
50156 explicitly to suppress gcc's warnings.
50157 * fs/fat.c (grub_fat_find_dir): Likewise.
50158 (grub_fat_label): Likewise.
50159 * fs/xfs.c (grub_xfs_read_inode): Likewise.
50160 (grub_xfs_mount): Likewise.
50161 (grub_xfs_label): Likewise.
50162 * fs/affs.c (grub_affs_mount): Likewise.
50163 (grub_affs_label): Likewise.
50164 (grub_affs_iterate_dir): Likewise.
50165 * fs/sfs.c (grub_sfs_mount): Likewise.
50166 (grub_sfs_iterate_dir): Likewise.
50167 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
50168 * fs/hfs.c (grub_hfs_mount): Likewise.
50169 (grub_hfs_cmp_catkeys): Likewise.
50170 (grub_hfs_find_dir): Likewise.
50171 (grub_hfs_dir): Likewise.
50172 (grub_hfs_label): Likewise.
50173 * fs/jfs.c (grub_jfs_mount): Likewise.
50174 (grub_jfs_opendir): Likewise.
50175 (grub_jfs_getent): Likewise.
50176 (grub_jfs_lookup_symlink): Likewise.
50177 (grub_jfs_label): Likewise.
50178 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
50179 (grub_hfsplus_iterate_dir): Likewise.
50180 (grub_hfsplus_btree_iterate_node): Made static.
50182 * util/grub-emu.c (prefix): New variable.
50183 (grub_machine_set_prefix): New function.
50184 (main): Do not set the environment variable "prefix" here. Only
50185 set PREFIX, which is used later by grub_machine_set_prefix.
50187 * include/grub/video.h: Do not include grub/symbol.h.
50188 (grub_video_register): Not exported. This symbol is not defined in
50190 (grub_video_unregister): Likewise.
50191 (grub_video_iterate): Likewise.
50192 (grub_video_setup): Likewise.
50193 (grub_video_restore): Likewise.
50194 (grub_video_get_info): Likewise.
50195 (grub_video_get_blit_format): Likewise.
50196 (grub_video_set_palette): Likewise.
50197 (grub_video_get_palette): Likewise.
50198 (grub_video_set_viewport): Likewise.
50199 (grub_video_get_viewport): Likewise.
50200 (grub_video_map_color): Likewise.
50201 (grub_video_map_rgb): Likewise.
50202 (grub_video_map_rgba): Likewise.
50203 (grub_video_fill_rect): Likewise.
50204 (grub_video_blit_glyph): Likewise.
50205 (grub_video_blit_bitmap): Likewise.
50206 (grub_video_blit_render_target): Likewise.
50207 (grub_video_scroll): Likewise.
50208 (grub_video_swap_buffers): Likewise.
50209 (grub_video_create_render_target): Likewise.
50210 (grub_video_delete_render_target): Likewise.
50211 (grub_video_set_active_render_target): Likewise.
50213 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
50215 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
50217 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
50218 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50219 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50220 instead of $(srcdir)/genkernsyms.sh.
50222 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
50223 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
50224 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
50225 instead of $(srcdir)/genkernsyms.sh.
50227 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
50228 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/i386-efi.rmk (symlist.c): Depended on config.h. Use
50233 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 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
50240 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
50242 (gensymlist.sh): New target.
50243 (genkernsyms.sh): Likewise.
50245 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
50246 genkernsyms.sh.in and gensymlist.sh.in.
50248 * genkernsyms.sh: Removed.
50249 * gensymlist.sh: Likewise.
50251 * genkernsyms.sh.in: New file.
50252 * gensymlist.sh.in: Likewise.
50254 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50256 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
50257 clobber "prefix", since we may have already set it manually.
50259 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
50261 * kern/misc.c (abort): New alias for grub_abort.
50263 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
50265 A new machine-specific function "grub_machine_set_prefix" is
50266 defined. This is called after loading modules, so that a prefix
50267 initialization can use modules. Also, this change adds an
50268 intensive debugging feature for the memory manager via the
50269 configure option "--enable-mm-debug".
50271 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
50274 * kern/sparc64/ieee1275/init.c (abort): Removed.
50275 (grub_stop): Likewise.
50276 (grub_exit): New function.
50277 (grub_set_prefix): Renamed to ...
50278 (grub_machine_set_prefix): ... this.
50279 (grub_machine_init): Do not call grub_set_prefix.
50281 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
50282 (grub_machine_set_prefix): ... this.
50283 (grub_machine_init): Do not call grub_set_prefix.
50285 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
50286 (grub_machine_init): Do not set the prefix here.
50288 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
50290 * kern/efi/init.c: Include grub/mm.h.
50291 (grub_efi_set_prefix): New function.
50293 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
50294 (grub_efi_get_filename): New function.
50295 (grub_print_device_path): Renamed to ...
50296 (grub_efi_print_device_path): ... this.
50298 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
50299 [MM_DEBUG] (grub_realloc): Likewise.
50300 [MM_DEBUG] (grub_free): Likewise.
50301 [MM_DEBUG] (grub_memalign): Likewise.
50302 [MM_DEBUG] (grub_mm_debug): New variable.
50303 [MM_DEBUG] (grub_debug_malloc): New function.
50304 [MM_DEBUG] (grub_debug_free): New function.
50305 [MM_DEBUG] (grub_debug_realloc): New function.
50306 [MM_DEBUG] (grub_debug_memalign): New function.
50308 * kern/misc.c (grub_abort): Print a newline to distinguish
50311 * kern/main.c (grub_main): Call grub_machine_set_prefix and
50312 grub_set_root_dev after loading modules. This is necessary when
50313 setting a prefix depends on modules.
50315 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
50316 (grub_efi_print_device_path): ... this.
50317 (grub_efi_get_filename): New prototype.
50318 (grub_efi_set_prefix): Likewise.
50320 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
50322 (grub_efidisk_get_device_handle): New prototype.
50323 (grub_efidisk_get_device_name): Likewise.
50325 * include/grub/mm.h: Include config.h.
50326 (MM_DEBUG): Removed.
50327 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
50328 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
50329 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
50330 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
50331 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
50332 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
50333 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
50334 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
50335 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
50337 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
50339 * disk/efi/efidisk.c: Include grub/partition.h.
50340 (iterate_child_devices): New function.
50341 (add_device): First, compare only last device path nodes, so that
50342 devices are sorted by the types.
50343 (grub_efidisk_get_device_handle): New function.
50344 (grub_efidisk_get_device_name): Likewise.
50346 * configure.ac (--enable-mm-debug): New option to enable the
50347 memory manager debugging feature. This makes the binary much
50348 bigger, so is disabled by default.
50350 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
50352 Use grub_abort instead of grub_stop, and grub_exit must be
50353 define in each architecture now. Also, this change adds support
50356 * util/i386/pc/grub-probefs.c: Include grub/term.h.
50357 (grub_getkey): New function.
50358 (grub_term_get_current): Likewise.
50360 * util/i386/pc/grub-setup.c: Include grub/term.h.
50361 (grub_getkey): New function.
50362 (grub_term_get_current): Likewise.
50364 * util/misc.c (grub_stop): Renamed to ...
50365 (grub_exit): ... this.
50367 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
50368 (grub_exit): ... this.
50369 (grub_machine_init): Use grub_abort instead of abort.
50370 (grub_stop): Removed.
50372 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
50375 * kern/i386/pc/startup.S (grub_exit): New function.
50376 (cold_reboot): New label.
50378 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
50379 (grub_efi_init): Call grub_efidisk_init.
50380 (grub_efi_fini): Call grub_efidisk_fini.
50382 * kern/efi/efi.c: Include grub/mm.h.
50383 (grub_efi_console_control_guid): Renamed to ...
50384 (console_control_guid): ... this.
50385 (grub_efi_loaded_image_guid): Renamed to ...
50386 (loaded_image_guid): ... this.
50387 (grub_efi_locate_handle): New function.
50388 (grub_efi_open_protocol): Likewise.
50389 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
50390 GRUB_EFI_CONSOLE_CONTROL_GUID.
50391 (grub_efi_exit): Removed.
50392 (grub_stop): Likewise.
50393 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
50394 (grub_exit): New function.
50395 (grub_print_device_path): Likewise.
50397 * kern/rescue.c (grub_rescue_cmd_exit): New function.
50398 (grub_enter_rescue_mode): Register "exit".
50400 * kern/misc.c (grub_real_dprintf): A cosmetic change.
50401 (grub_abort): New function.
50403 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
50405 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
50407 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
50409 * include/grub/efi/efi.h (grub_efi_exit): Removed.
50410 (grub_print_device_path): New prototype.
50411 (grub_efi_locate_handle): Likewise.
50412 (grub_efi_open_protocol): Likewise.
50414 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
50415 * disk/efi/efidisk.c: Likewise.
50417 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
50419 * include/grub/efi/console_control.h
50420 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
50422 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
50423 last 8 bytes as an array.
50424 (GRUB_EFI_DISK_IO_GUID): New macro.
50425 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
50426 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
50427 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
50429 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
50430 (struct grub_efi_device_path): Rename the member "sub_type" to
50432 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
50433 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
50434 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
50435 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
50436 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
50437 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
50438 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
50439 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
50440 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
50441 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
50442 (struct grub_efi_pci_device_path): New structure.
50443 (grub_efi_pci_device_path_t): New type.
50444 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
50445 (struct grub_efi_pccard_device_path): New structure.
50446 (grub_efi_pccard_device_path_t): New type.
50447 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
50448 (struct grub_efi_memory_mapped_device_path): New structure.
50449 (grub_efi_memory_mapped_device_path_t): New type.
50450 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
50451 (struct grub_efi_vendor_device_path): New structure.
50452 (grub_efi_vendor_device_path_t): New type.
50453 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
50454 (struct grub_efi_controller_device_path): New structure.
50455 (grub_efi_controller_device_path_t): New type.
50456 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
50457 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
50458 (struct grub_efi_acpi_device_path): New structure.
50459 (grub_efi_acpi_device_path_t): New type.
50460 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
50461 (struct grub_efi_expanded_acpi_device_path): New structure.
50462 (grub_efi_expanded_acpi_device_path_t): New type.
50463 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
50464 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
50465 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
50466 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
50467 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
50468 (struct grub_efi_atapi_device_path): New structure.
50469 (grub_efi_atapi_device_path_t): New type.
50470 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
50471 (struct grub_efi_fibre_channel_device_path): New structure.
50472 (grub_efi_fibre_channel_device_path_t): New type.
50473 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
50474 (struct grub_efi_1394_device_path): New structure.
50475 (grub_efi_1394_device_path_t): New type.
50476 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
50477 (struct grub_efi_usb_device_path): New structure.
50478 (grub_efi_usb_device_path_t): New type.
50479 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
50480 (struct grub_efi_usb_class_device_path): New structure.
50481 (grub_efi_usb_class_device_path_t): New type.
50482 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
50483 (struct grub_efi_i2o_device_path): New structure.
50484 (grub_efi_i2o_device_path_t): New type.
50485 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
50486 (struct grub_efi_mac_address_device_path): New structure.
50487 (grub_efi_mac_address_device_path_t): New type.
50488 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
50489 (struct grub_efi_ipv4_device_path): New structure.
50490 (grub_efi_ipv4_device_path_t): New type.
50491 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
50492 (struct grub_efi_ipv6_device_path): New structure.
50493 (grub_efi_ipv6_device_path_t): New type.
50494 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
50495 (struct grub_efi_infiniband_device_path): New structure.
50496 (grub_efi_infiniband_device_path_t): New type.
50497 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
50498 (struct grub_efi_uart_device_path): New structure.
50499 (grub_efi_uart_device_path_t): New type.
50500 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
50501 (struct grub_efi_vendor_messaging_device_path): New structure.
50502 (grub_efi_vendor_messaging_device_path_t): New type.
50503 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
50504 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
50505 (struct grub_efi_hard_drive_device_path): New structure.
50506 (grub_efi_hard_drive_device_path_t): New type.
50507 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
50508 (struct grub_efi_cdrom_device_path): New structure.
50509 (grub_efi_cdrom_device_path_t): New type.
50510 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
50511 (struct grub_efi_vendor_media_device_path): New structure.
50512 (grub_efi_vendor_media_device_path_t): New type.
50513 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
50514 (struct grub_efi_file_path_device_path): New structure.
50515 (grub_efi_file_path_device_path_t): New type.
50516 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
50517 (struct grub_efi_protocol_device_path): New structure.
50518 (grub_efi_protocol_device_path_t): New type.
50519 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
50520 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
50521 (struct grub_efi_bios_device_path): New structure.
50522 (grub_efi_bios_device_path_t): New type.
50523 (struct grub_efi_disk_io): New structure.
50524 (grub_efi_disk_io_t): New type.
50525 (struct grub_efi_block_io_media): New structure.
50526 (grub_efi_block_io_media_t): New type.
50527 (struct grub_efi_block_io): New structure.
50528 (grub_efi_block_io_t): New type.
50530 * include/grub/misc.h (grub_stop): Removed.
50531 (grub_exit): New prototype.
50532 (grub_abort): Likewise.
50534 * include/grub/disk.h (enum grub_disk_dev_id): Added
50535 GRUB_DISK_DEVICE_EFIDISK_ID.
50537 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
50538 disk/efi/efidisk.c.
50539 (kernel_syms.lst): Remove the target if an error occurs.
50541 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
50543 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
50544 as it was simply too buggy.
50546 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
50548 * kern/misc.c (grub_lltoa): New function.
50549 (grub_vsprintf): Added support for the long long suffix,
50552 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
50554 * Makefile.in (LDFLAGS): Add variable.
50555 (LD): Remove variable.
50556 * configure.ac: Add -m32 to LDFLAGS.
50557 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
50558 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
50559 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
50560 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
50561 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
50563 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
50564 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
50565 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
50567 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
50569 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
50570 length for unknown glyph.
50572 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50574 Add support for pre-loaded modules into the EFI port.
50576 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
50577 completely. Accept one more argument DIR. The caller has changed.
50579 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
50581 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
50582 (grub_efi_loaded_image_guid): New variable.
50583 (grub_efi_get_loaded_image): New function.
50584 (grub_arch_modules_addr): Likewise.
50586 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
50589 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
50590 (struct grub_efi_loaded_image): New structure.
50591 (grub_efi_loaded_image_t): New type.
50593 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
50595 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
50596 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
50597 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
50599 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
50601 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
50603 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
50605 * DISTLIST: Added include/grub/efi/console.h,
50606 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
50607 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50609 * include/grub/efi/console.h: New file.
50610 * include/grub/efi/time.h: Likewise.
50611 * include/grub/i386/efi/kernel.h: Likewise.
50612 * kern/efi/init.c: Likewise.
50613 * kern/efi/mm.c: Likewise.
50614 * term/efi/console.c: Likewise.
50616 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
50617 (grub_stop): Removed.
50618 (grub_get_rtc): Likewise.
50619 (grub_machine_init): Simply call grub_efi_init.
50620 (grub_machine_fini): Call grub_efi_fini.
50622 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
50623 (grub_efi_output_string): Removed.
50624 (grub_efi_stall): New function.
50625 (grub_stop): Likewise.
50626 (grub_get_rtc): Likewise.
50628 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
50629 (grub_efi_stall): New prototype.
50630 (grub_efi_allocate_pages): Likewise.
50631 (grub_efi_free_pages): Likewise.
50632 (grub_efi_get_memory_map): Likewise.
50633 (grub_efi_mm_init): Likewise.
50634 (grub_efi_mm_fini): Likewise.
50635 (grub_efi_init): Likewise.
50636 (grub_efi_fini): Likewise.
50638 * include/grub/i386/efi/time.h: Do not include
50639 grub/symbol.h. Include grub/efi/time.h.
50640 (GRUB_TICKS_PER_SECOND): Removed.
50641 (grub_get_rtc): Likewise.
50643 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
50644 Added padding. The EFI spec is buggy.
50645 (GRUB_EFI_BLACK): New macro.
50646 (GRUB_EFI_BLUE): Likewise.
50647 (GRUB_EFI_GREEN): Likewise.
50648 (GRUB_EFI_CYAN): Likewise.
50649 (GRUB_EFI_RED): Likewise.
50650 (GRUB_EFI_MAGENTA): Likewise.
50651 (GRUB_EFI_BROWN): Likewise.
50652 (GRUB_EFI_LIGHTGRAY): Likewise.
50653 (GRUB_EFI_BRIGHT): Likewise.
50654 (GRUB_EFI_DARKGRAY): Likewise.
50655 (GRUB_EFI_LIGHTBLUE): Likewise.
50656 (GRUB_EFI_LIGHTGREEN): Likewise.
50657 (GRUB_EFI_LIGHTCYAN): Likewise.
50658 (GRUB_EFI_LIGHTRED): Likewise.
50659 (GRUB_EFI_LIGHTMAGENTA): Likewise.
50660 (GRUB_EFI_YELLOW): Likewise.
50661 (GRUB_EFI_WHITE): Likewise.
50662 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
50663 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
50664 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
50665 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
50666 (GRUB_EFI_BACKGROUND_RED): Likewise.
50667 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
50668 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
50669 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
50670 (GRUB_EFI_TEXT_ATTR): Likewise.
50672 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
50673 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
50674 (kernel_mod_HEADERS): Added efi/time.h.
50676 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
50678 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
50679 include/grub/efi/api.h, include/grub/efi/console_control.h,
50680 include/grub/efi/efi.h, include/grub/efi/pe32.h,
50681 include/grub/i386/efi/time.h, kern/efi/efi.c,
50682 kern/i386/efi/init.c, kern/i386/efi/startup.S,
50683 and util/i386/efi/grub-mkimage.c.
50685 * Makefile.in (RMKFILES): Added i386-efi.rmk.
50687 * genmk.rb (PModule#rule): Do not export symbols if
50688 #{prefix}_EXPORTS is set to "no".
50690 * conf/i386-efi.mk: New file.
50691 * conf/i386-efi.rmk: Likewise.
50692 * include/grub/efi/api.h: Likewise.
50693 * include/grub/efi/console_control.h: Likewise.
50694 * include/grub/efi/efi.h: Likewise.
50695 * include/grub/efi/pe32.h: Likewise.
50696 * include/grub/i386/efi/time.h: Likewise.
50697 * kern/efi/efi.c: Likewise.
50698 * kern/i386/efi/init.c: Likewise.
50699 * kern/i386/efi/startup.S: Likewise.
50700 * util/i386/efi/grub-mkimage.c: Likewise.
50702 2006-04-17 Marco Gerards <marco@gnu.org>
50704 * include/grub/script.h: Include <grub/parser.h> and
50705 "grub_script.tab.h".
50706 (struct grub_lexer_param): New struct.
50707 (struct grub_parser_param): Likewise.
50708 (grub_script_create_arglist): Pass the state in an argument.
50709 (grub_script_add_arglist): Likewise.
50710 (grub_script_create_cmdline): Likewise.
50711 (grub_script_create_cmdblock): Likewise.
50712 (grub_script_create_cmdif): Likewise.
50713 (grub_script_create_cmdmenu): Likewise.
50714 (grub_script_add_cmd): Likewise.
50715 (grub_script_arg_add): Likewise.
50716 (grub_script_lexer_ref): Likewise.
50717 (grub_script_lexer_deref): Likewise.
50718 (grub_script_lexer_record_start): Likewise.
50719 (grub_script_lexer_record_stop): Likewise.
50720 (grub_script_mem_record): Likewise.
50721 (grub_script_mem_record_stop): Likewise.
50722 (grub_script_malloc): Likewise.
50723 (grub_script_yylex): Likewise.
50724 (grub_script_yyparse): Likewise.
50725 (grub_script_yyerror): Likewise.
50726 (grub_script_yylex): Likewise.
50727 (grub_script_lexer_init): Return the state.
50729 * normal/lexer.c (grub_script_lexer_state): Removed variable.
50730 (grub_script_lexer_done): Likewise.
50731 (grub_script_lexer_getline): Likewise.
50732 (grub_script_lexer_refs): Likewise.
50733 (script): Likewise.
50734 (newscript): Likewise.
50735 (record): Likewise.
50736 (recording): Likewise.
50737 (recordpos): Likewise.
50738 (recordlen): Likewise.
50739 (grub_script_lexer_init): Return the state instead of setting
50741 (grub_script_lexer_ref): Use the newly added argument for state
50742 instead of globals.
50743 (grub_script_lexer_deref): Likewise.
50744 (grub_script_lexer_record_start): Likewise.
50745 (grub_script_lexer_record_stop): Likewise.
50746 (recordchar): Likewise.
50747 (nextchar): Likewise.
50748 (grub_script_yylex2): Likewise.
50749 (grub_script_yylex): Likewise.
50750 (grub_script_yyerror): Likewise.
50752 * normal/parser.y (func_mem): Removed variable.
50753 (menu_entry): Likewise.
50755 (%lex-param): New parser option.
50756 (%parse-param): Likewise.
50757 (script): Always return the AST.
50758 (argument): Pass the state around.
50759 (arguments): Likewise.
50760 (grubcmd): Likewise.
50761 (commands): Likewise.
50762 (function): Likewise.
50763 (menuentry): Likewise.
50764 (if_statement): Likewise.
50767 * normal/script.c (grub_script_memused): Removed variable.
50768 (grub_script_parsed): Likewise.
50769 (grub_script_malloc): Added a state argument. Use that instead of
50771 (grub_script_mem_record): Likewise.
50772 (grub_script_mem_record_stop): Likewise.
50773 (grub_script_arg_add): Likewise.
50774 (grub_script_add_arglist): Likewise.
50775 (grub_script_create_cmdline): Likewise.
50776 (grub_script_create_cmdif): Likewise.
50777 (grub_script_create_cmdmenu): Likewise.
50778 (grub_script_add_cmd): Likewise.
50779 (grub_script_parse): Setup the state before calling the parser.
50781 2006-04-16 Marco Gerards <marco@gnu.org>
50783 * normal/command.c (grub_command_init): Remove the title command.
50785 * normal/lexer.c (grub_script_yylex): Renamed from this...
50786 (grub_script_yylex2): ... to this.
50787 (grub_script_yylex): New function. Temporary
50788 introduced to filter some tokens.
50789 (grub_script_yyerror): Print a newline.
50791 * normal/main.c (read_config_file): Output information about the
50792 lines that contain errors. Wait for a key after all lines have
50793 been processed. Don't return an empty menu.
50795 * normal/parser.y (func_mem): Don't initialize.
50796 (menu_entry): Likewise.
50797 (err): New variable.
50798 (script): Don't return anything when an error was encountered.
50799 (ws, returns): Removed rules.
50800 (argument): Disabled concatenated variable support.
50801 (arguments): Remove explicit separators.
50802 (grubcmd): Likewise.
50803 (function): Likewise.
50804 (menuentry): Likewise.
50806 (commands): Likewise. Add error handling.
50808 * normal/script.c (grub_script_create_cmdline): If
50809 `grub_script_parsed' is 0, assume the parser encountered an error.
50811 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
50813 * configure.ac: Add support for EFI. Fix the typo
50814 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
50816 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50818 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
50819 foreign multibyte characters should be shown correctly.
50821 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
50823 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
50825 (read_config_file): Made it to close file before returning.
50827 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
50829 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
50830 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
50831 video/i386/pc/vbefill.c.
50833 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
50834 video/i386/pc/vbefill.c.
50836 * include/grub/video.h (grub_video_blit_format): New enum.
50837 (grub_video_mode_info): Added new member blit_format.
50838 (grub_video_get_blit_format): New function prototype.
50840 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
50841 function prototype.
50842 (grub_video_vbe_map_rgb): Likewise.
50843 (grub_video_vbe_unmap_color): Likewise.
50845 * include/grub/i386/pc/vbeblit.h: New file.
50847 * include/grub/i386/pc/vbefill.h: New file.
50849 * video/video.c (grub_video_get_blit_format): New function.
50850 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
50851 (grub_video_vbe_map_rgb): Likewise.
50852 (grub_video_vbe_unmap_color): Likewise.
50854 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
50856 (grub_video_vbe_blit_render_target): Changed to use more optimized
50858 (grub_video_vbe_setup): Added detection for optimized settings.
50859 (grub_video_vbe_create_render_target): Likewise.
50861 * video/i386/pc/vbeblit.c: New file.
50863 * video/i386/pc/vbefill.c: New file.
50865 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
50867 * font/manager.c (grub_font_get_glyph): Removed font fixup from
50870 * util/unifont2pff.rb: ... and moved it to here. Improved argument
50871 parsing to support both hex and dec ranges. If filename was missing
50872 show usage information.
50874 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
50876 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
50877 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
50879 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
50880 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
50881 (video_mod_SOURCES): Added.
50882 (video_mod_CFLAGS): Likewise.
50883 (video_mod_LDFLAGS): Likewise.
50884 (gfxterm_mod_SOURCES): Likewise.
50885 (gfxterm_mod_CFLAGS): Likewise.
50886 (gfxterm_mod_LDFLAGS): Likewise.
50887 (videotest_mod_SOURCES): Likewise.
50888 (videotest_mod_CFLAGS): Likewise.
50889 (videotest_mod_LDFLAGS): Likewise.
50890 (vesafb_mod_SOURCES): Removed.
50891 (vesafb_mod_CFLAGS): Likewise.
50892 (vesafb_mod_LDFLAGS): Likewise.
50893 (vga_mod_SOURCES): Likewise.
50894 (vga_mod_CFLAGS): Likewise.
50895 (vga_mod_LDFLAGS): Likewise.
50897 * commands/videotest.c: New file.
50899 * font/manager.c (fill_with_default_glyph): Modified to use
50901 (grub_font_get_glyph): Likewise.
50902 (fontmanager): Renamed from this...
50903 (font_manager): ... to this.
50905 * include/grub/font.h (grub_font_glyph): Added new structure.
50906 (grub_font_get_glyph): Modified to use grub_font_glyph.
50908 * include/grub/misc.h (grub_abs): Added as inline function.
50910 * include/grub/video.h: New file.
50912 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
50913 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
50914 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
50915 (grub_vbe_get_controller_info): Renamed from this...
50916 (grub_vbe_bios_get_controller_info): ... to this.
50917 (grub_vbe_get_mode_info): Renamed from this...
50918 (grub_vbe_bios_get_mode_info): ... to this.
50919 (grub_vbe_set_mode): Renamed from this...
50920 (grub_vbe_bios_set_mode): ... to this.
50921 (grub_vbe_get_mode): Renamed from this...
50922 (grub_vbe_bios_get_mode): ... to this.
50923 (grub_vbe_set_memory_window): Renamed from this...
50924 (grub_vbe_bios_set_memory_window): ... to this.
50925 (grub_vbe_get_memory_window): Renamed from this...
50926 (grub_vbe_bios_get_memory_window): ... to this.
50927 (grub_vbe_set_scanline_length): Renamed from this...
50928 (grub_vbe_set_scanline_length): ... to this.
50929 (grub_vbe_get_scanline_length): Renamed from this...
50930 (grub_vbe_bios_get_scanline_length): ... to this.
50931 (grub_vbe_set_display_start): Renamed from this...
50932 (grub_vbe_bios_set_display_start): ... to this.
50933 (grub_vbe_get_display_start): Renamed from this...
50934 (grub_vbe_bios_get_display_start): ... to this.
50935 (grub_vbe_set_palette_data): Renamed from this...
50936 (grub_vbe_bios_set_palette_data): ... to this.
50937 (grub_vbe_set_pixel_rgb): Removed.
50938 (grub_vbe_set_pixel_index): Likewise.
50940 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
50942 (grub_vbe_bios_get_controller_info): ... to this.
50943 (grub_vbe_get_mode_info): Renamed from this...
50944 (grub_vbe_bios_get_mode_info): ... to this.
50945 (grub_vbe_set_mode): Renamed from this...
50946 (grub_vbe_bios_set_mode): ... to this.
50947 (grub_vbe_get_mode): Renamed from this...
50948 (grub_vbe_bios_get_mode): ... to this.
50949 (grub_vbe_set_memory_window): Renamed from this...
50950 (grub_vbe_bios_set_memory_window): ... to this.
50951 (grub_vbe_get_memory_window): Renamed from this...
50952 (grub_vbe_bios_get_memory_window): ... to this.
50953 (grub_vbe_set_scanline_length): Renamed from this...
50954 (grub_vbe_set_scanline_length): ... to this.
50955 (grub_vbe_get_scanline_length): Renamed from this...
50956 (grub_vbe_bios_get_scanline_length): ... to this.
50957 (grub_vbe_set_display_start): Renamed from this...
50958 (grub_vbe_bios_set_display_start): ... to this.
50959 (grub_vbe_get_display_start): Renamed from this...
50960 (grub_vbe_bios_get_display_start): ... to this.
50961 (grub_vbe_set_palette_data): Renamed from this...
50962 (grub_vbe_bios_set_palette_data): ... to this.
50963 (grub_vbe_bios_get_controller_info): Fixed problem with registers
50964 getting corrupted after calling it. Added more pushes and pops.
50965 (grub_vbe_bios_set_mode): Likewise.
50966 (grub_vbe_bios_get_mode): Likewise.
50967 (grub_vbe_bios_get_memory_window): Likewise.
50968 (grub_vbe_bios_set_scanline_length): Likewise.
50969 (grub_vbe_bios_get_scanline_length): Likewise.
50970 (grub_vbe_bios_get_display_start): Likewise.
50971 (grub_vbe_bios_set_palette_data): Likewise.
50973 * normal/cmdline.c (cl_set_pos): Refresh the screen.
50974 (cl_insert): Likewise.
50975 (cl_delete): Likewise.
50977 * term/gfxterm.c: New file.
50979 * term/i386/pc/vesafb.c: Removed file.
50981 * video/video.c: New file.
50983 * video/i386/pc/vbe.c (real2pm): Added new function.
50984 (grub_video_vbe_draw_pixel): Likewise.
50985 (grub_video_vbe_get_video_ptr): Likewise.
50986 (grub_video_vbe_get_pixel): Likewise
50987 (grub_video_vbe_init): Likewise.
50988 (grub_video_vbe_fini): Likewise.
50989 (grub_video_vbe_setup): Likewise.
50990 (grub_video_vbe_get_info): Likewise.
50991 (grub_video_vbe_set_palette): Likewise.
50992 (grub_video_vbe_get_palette): Likewise.
50993 (grub_video_vbe_set_viewport): Likewise.
50994 (grub_video_vbe_get_viewport): Likewise.
50995 (grub_video_vbe_map_color): Likewise.
50996 (grub_video_vbe_map_rgb): Likewise.
50997 (grub_video_vbe_map_rgba): Likewise.
50998 (grub_video_vbe_unmap_color): Likewise.
50999 (grub_video_vbe_fill_rect): Likewise.
51000 (grub_video_vbe_blit_glyph): Likewise.
51001 (grub_video_vbe_blit_bitmap): Likewise.
51002 (grub_video_vbe_blit_render_target): Likewise.
51003 (grub_video_vbe_scroll): Likewise.
51004 (grub_video_vbe_swap_buffers): Likewise.
51005 (grub_video_vbe_create_render_target): Likewise.
51006 (grub_video_vbe_delete_render_target): Likewise.
51007 (grub_video_vbe_set_active_render_target): Likewise.
51008 (grub_vbe_set_pixel_rgb): Remove function.
51009 (grub_vbe_set_pixel_index): Likewise.
51010 (index_color_mode): Remove static variable.
51011 (active_mode): Likewise.
51012 (framebuffer): Likewise.
51013 (bytes_per_scan_line): Likewise.
51014 (grub_video_vbe_adapter): Added new static variable.
51015 (framebuffer): Likewise.
51016 (render_target): Likewise.
51017 (initial_mode): Likewise.
51018 (mode_in_use): Likewise.
51019 (mode_list): Likewise.
51021 2006-03-10 Marco Gerards <marco@gnu.org>
51023 * configure.ac (AC_INIT): Bumped to 1.93.
51025 * DISTLIST: Added `include/grub/hfs.h'.
51027 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
51029 * boot/i386/pc/boot.S (general_error): Before looping, try INT
51030 18H, which might help the BIOS falling back to next boot media.
51032 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
51034 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
51035 Poe Chen <poe.poechen@gmail.com>.
51037 2006-01-17 Marco Gerards <marco@gnu.org>
51039 * include/grub/normal.h: Include <grub/script.h>.
51040 (grub_command_list): Removed struct.
51041 (grub_command_list_t): Removed type.
51042 (grub_menu_entry): Remove members `num' and `command_list'. Add
51043 members `commands' and `sourcecode'.
51044 * include/grub/script.h: Add inclusion guards.
51045 (grub_script_cmd_menuentry): New struct.
51046 (grub_script_execute_menuentry): New prototype.
51047 (grub_script_lexer_record_start): Likewise.
51048 (grub_script_lexer_record_stop): Likewise.
51049 * normal/execute.c (grub_script_execute_menuentry): New function.
51050 * normal/lexer.c (record, recording, recordpos, recordlen): New
51052 (grub_script_lexer_record_start): New function.
51053 (grub_script_lexer_record_stop): Likewise.
51054 (recordchar): Likewise.
51055 (nextchar): Likewise.
51056 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
51057 2048 as the buffer size. Add the tokens `menuentry' and `@'.
51058 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
51059 (current_menu): New variable.
51060 (free_menu): Mainly rewritten.
51061 (grub_normal_menu_addentry): New function.
51062 (read_config_file): Rewritten.
51063 * normal/menu.c (run_menu_entry): Mainly rewritten.
51064 * normal/menu_entry.c (make_screen): Rewritten the code to insert
51066 (run): Mainly rewritten.
51067 * normal/parser.y (menu_entry): New variable.
51068 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
51069 (menuentry): New rule.
51070 (command): Add `menuentry'.
51071 (if_statement): Allow additional returns before `fi'.
51072 * normal/script.c (grub_script_create_cmdmenu): New function.
51074 2006-01-03 Marco Gerards <marco@gnu.org>
51076 * INSTALL: GNU Bison is required.
51077 * configure.ac: Rewritten the test to detect Bison.
51078 * Makefile.in (YACC): New variable. Reported by Xun Sun
51079 <xun.sun.cn@gmail.com>.
51081 2006-01-03 Marco Gerards <marco@gnu.org>
51083 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
51084 the HFS+ filesystem to filesystem blocks.
51085 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
51086 GCC warning is silenced.
51088 2006-01-03 Marco Gerards <marco@gnu.org>
51090 * partmap/apple.c (apple_partition_map_iterate): Convert the data
51091 read from disk from big endian to host byte order.
51093 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
51095 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
51097 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
51098 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
51099 embedded HFS+ filesystem.
51100 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
51101 (grub_hfs_sblock): Move from here...
51102 * include/grub/hfs.h: To here... New file.
51103 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
51105 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
51107 (grub_hfsplus_volheader): Change type of member `magic' to
51109 (grub_hfsplus_data): Add new member `embedded_offset'.
51110 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
51112 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
51113 Calculate the offset.
51115 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51117 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
51119 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
51121 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51123 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
51124 ENV->NAME is NULL after allocating ENV->VALUE.
51126 2005-12-25 Marco Gerards <marco@gnu.org>
51128 * kern/env.c (grub_env_set): Rewritten the error handling code.
51130 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51132 * geninit.sh: Made more robust, and more portable.
51134 2005-12-25 Marco Gerards <marco@gnu.org>
51136 Add support for Apple HFS+ filesystems.
51138 * fs/hfsplus.c: New file.
51140 * DISTLIST: Added `fs/hfsplus.c'.
51142 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
51143 (hfsplus_mod_SOURCES): New variable.
51144 (hfsplus_mod_CFLAGS): Likewise.
51145 (hfsplus_mod_LDFLAGS): Likewise.
51146 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
51147 (grub_setup_SOURCES): Likewise.
51148 (grub_mkdevicemap_SOURCES): Likewise.
51149 (grub_emu_SOURCES): Likewise.
51150 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
51152 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
51154 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
51156 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
51158 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
51159 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
51160 include/grub/parser.h, include/grub/script.h, kern/parser.c,
51161 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
51162 normal/lexer.c, normal/parser.y, normal/script.c, and
51164 Removed kern/sparc64/cache.c.
51166 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
51167 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
51170 * configure.ac (AC_INIT): Bumped to 1.92.
51172 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
51174 * kern/err.c (grub_error_push): Added new function to support error
51176 (grub_error_pop): Likewise.
51177 (grub_error_stack_items): New local variable to support error stacks.
51178 (grub_error_stack_pos): Likewise.
51179 (grub_error_stack_assert): Likewise.
51180 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
51182 (grub_print_error): Added support to print errors from error stack.
51184 * include/grub/err.h (grub_error_push): Added function prototype.
51185 (grub_error_pop): Likewise.
51187 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
51189 * configure.ac: Accept `powerpc64' as host_cpu.
51190 (amd64): Rename to `biarch32'.
51192 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
51193 non-cacheline-aligned addresses.
51195 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
51196 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
51197 if `size' is non-zero.
51199 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
51201 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
51202 and `cd' to make sure the filename is not prefixed with a
51204 (pkgdata_MODULES): Add `gpt.mod'.
51205 (gpt_mod_SOURCES): New variable.
51206 (gpt_mod_CFLAGS): Likewise.
51207 (gpt_mod_LDFLAGS): Likewise.
51209 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
51211 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
51214 * partmap/gpt.c: New file.
51216 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
51217 GPT partition map is detected.
51219 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
51221 * commands/i386/pc/play.c: New file.
51222 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
51223 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
51226 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
51228 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
51229 ((unused))' to silence gcc warning.
51231 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
51233 * configure.ac: Correct `AC_PROG_YACC' test.
51235 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51237 * util/powerpc/ieee1275/grub-install.in: Run the mount point
51238 check before installing files.
51240 2005-11-22 Mike Small <smallm@panix.com>
51242 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
51243 number regex so multidigit numbers are recognized correctly.
51245 2005-11-22 Mike Small <smallm@panix.com>
51247 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
51248 debugging message before attempting to claim memory.
51249 (grub_rescue_cmd_initrd): Add a claim debugging message and try
51250 multiple addresses in case of failure.
51252 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51254 * term/tparm.c (get_space): Remove empty `if' statement.
51256 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
51258 * kern/parser.c (check_varstate): Rename `state' to 's'.
51260 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51262 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
51263 variable definitions to the beginning of each function. Sort stack
51265 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
51266 `buf' argument to `char *'.
51268 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
51270 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
51271 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51272 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51273 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51274 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51275 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51276 configfile.mod, search.mod, gzio.mod and test.mod.
51277 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51278 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51279 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51280 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51281 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51282 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51283 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51284 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51285 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51286 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51287 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51288 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51289 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51290 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51291 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51292 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51293 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51294 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51295 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51296 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51297 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51298 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51299 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
51301 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
51303 (pkgdata_MODULES): Add test.mod.
51305 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51307 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
51308 appending to variables with "+=".
51309 (PModule): Use full pathname to generate *.lst filenames.
51311 * Makefile.in: Fixed list rules moved from genmk.rb.
51312 (.DELETE_ON_ERROR): New special target.
51313 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
51315 * conf/i386-pc.rmk: Include conf/common.mk.
51316 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
51317 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
51318 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
51319 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
51320 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
51321 configfile.mod, search.mod, gzio.mod and test.mod.
51322 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
51323 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
51324 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
51325 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
51326 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
51327 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
51328 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
51329 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
51330 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
51331 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
51332 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51333 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51334 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
51335 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
51336 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
51337 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
51338 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
51339 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
51340 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
51341 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
51342 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
51343 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
51344 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
51346 * conf/common.rmk: ... to here. New file.
51348 * conf/common.mk: New file.
51350 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
51352 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
51353 (grub_script.tab.c): ... here.
51355 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
51356 (grub_script.tab.c): ... here.
51358 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
51359 (grub_script.tab.c): ... here.
51361 * normal/command.c (grub_command_find): Fixed a memory leak of
51362 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
51364 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51366 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
51367 "@" which marks the start of a comment on ARM.
51368 (VARIABLE): Likewise.
51370 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51372 Add support for Linux/ADFS partition tables.
51374 * partmap/acorn.c: New file.
51376 * include/grub/acorn_filecore.h: Likewise.
51378 * DISTLIST: Added `partmap/acorn.c' and
51379 `include/grub/acorn_filecore.h'.
51381 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51383 (pkgdata_MODULES): Add `acorn.mod'.
51384 (acorn_mod_SOURCES): New variable.
51385 (acorn_mod_CFLAGS): Likewise.
51387 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51389 (pkgdata_MODULES): Add `acorn.mod'.
51390 (acorn_mod_SOURCES): New variable.
51391 (acorn_mod_CFLAGS): Likewise.
51393 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
51394 (pkgdata_MODULES): Add `acorn.mod'.
51395 (acorn_mod_SOURCES): New variable.
51396 (acorn_mod_CFLAGS): Likewise.
51397 (acorn_mod_LDFLAGS): Likewise.
51399 * include/types.h (grub_disk_addr_t): New typedef.
51401 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
51403 * geninit.sh: New file.
51405 * geninitheader.sh: Likewise.
51407 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
51408 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
51409 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
51410 * commands/configfile.c (grub_configfile_init)
51411 (grub_configfile_fini): Likewise.
51412 * commands/default.c (grub_default_init, grub_default_fini):
51414 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
51415 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
51416 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
51417 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
51419 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
51420 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
51422 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
51423 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
51425 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
51427 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
51429 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
51430 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
51431 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
51432 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
51433 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
51434 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
51435 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
51436 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
51437 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
51438 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
51439 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
51440 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
51441 * partmap/amiga.c (grub_amiga_partition_map_init)
51442 (grub_amiga_partition_map_fini): Likewise.
51443 * partmap/apple.c (grub_apple_partition_map_init)
51444 (grub_apple_partition_map_fini): Likewise.
51445 * partmap/pc.c (grub_pc_partition_map_init)
51446 (grub_pc_partition_map_fini): Likewise.
51447 * partmap/sun.c (grub_sun_partition_map_init,
51448 grub_sun_partition_map_fini): Likewise.
51449 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
51452 * util/grub-emu.c: Include <grub_modules_init.h>.
51453 (main): Don't initialize and de-initialize any modules directly,
51454 use `grub_init_all' and `grub_fini_all' instead.
51456 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
51457 `grub_vesafb_mod_init'.
51458 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
51460 * term/i386/pc/vga.c (grub_vga_init): Renamed to
51461 `grub_vga_mod_init'. Updated all users.
51462 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
51464 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
51465 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
51468 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
51469 Generate a function to initialize the module in utilities.
51470 Updated all callers.
51471 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
51472 initialize the module in utilities. Updated all callers.
51474 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51476 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
51477 escape sequence and a literal ^L to clear the screen.
51479 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
51480 when returning from Open Firmware.
51482 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
51484 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
51485 (grub_ofconsole_height): Likewise.
51486 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
51487 manually insert a '\n'.
51488 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
51489 `grub_ofconsole_height'. Return early if these are already set.
51491 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
51493 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
51494 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
51495 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
51496 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
51497 and `normal/script.c'.
51498 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51499 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51500 (test_mod_SOURCES): New variable.
51501 (test_mod_CFLAGS): Likewise.
51502 (test_mod_LDFLAGS): Likewise.
51503 (pkgdata_MODULES): Add `test.mod'.
51504 (grub_script.tab.c): New rule.
51505 (grub_script.tab.h): Likewise.
51507 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
51509 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
51510 `commands/test.c', `normal/execute.c', `normal/lexer.c',
51511 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51512 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51513 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51514 (test_mod_SOURCES): New variable.
51515 (test_mod_CFLAGS): Likewise.
51516 (pkgdata_MODULES): Add `test.mod'.
51517 (grub_script.tab.c): New rule.
51518 (grub_script.tab.h): Likewise.
51520 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
51522 Add initial scripting support.
51524 * commands/test.c: New file.
51525 * include/grub/script.h: Likewise.
51526 * normal/execute.c: Likewise.
51527 * normal/function.c: Likewise.
51528 * normal/lexer.c: Likewise.
51529 * normal/parser.y: Likewise.
51530 * normal/script.c: Likewise.
51532 * configure.ac: Add `AC_PROG_YACC' test.
51534 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
51535 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
51536 `normal/function.c' and `normal/script.c'.
51537 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
51538 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
51539 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
51541 (pkgdata_MODULES): Add `test.mod'.
51542 (grub_script.tab.c): New rule.
51543 (grub_script.tab.h): Likewise.
51545 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
51547 * include/grub/normal.h (grub_test_init): New prototype.
51548 (grub_test_fini): Likewise.
51550 * normal/command.c: Include <grub/script.h>.
51551 (grub_command_execute): Rewritten.
51553 * util/grub-emu.c (main): Call `grub_test_init' and
51556 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51558 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
51560 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
51561 there are no pending characters.
51563 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51565 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
51566 `grub_strndup' to drop device arguments. Replace unnecessary
51567 `grub_strndup' with `grub_strdup'.
51569 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
51571 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
51572 `debug' environment variable has been set.
51574 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
51576 * Makefile.in (install-local): Use $(DATA).
51577 (uninstall): Likewise.
51578 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
51579 (sbin_UTILITIES): ... to here.
51580 (sbin_SCRIPTS): New variable.
51581 (grub_install_SOURCES): New variable.
51582 * util/powerpc/ieee1275/grub-install.in: New file.
51583 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
51585 (add_segments): Call `grub_util_get_path'.
51587 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
51589 From Timothy Baldwin:
51590 * commands/ls.c (grub_ls_list_files): Close FILE with
51592 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
51594 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
51596 * include/grub/parser.h: New file.
51598 * kern/parser.c: Likewise.
51600 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
51601 (grub_setup_SOURCES): Likewise.
51602 (grub_probefs_SOURCES): Likewise.
51603 (grub_emu_SOURCES): Likewise.
51604 (kernel_img_HEADERS): Add `parser.h'.
51606 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51607 (grub_emu_SOURCES): Add `kern/parser.c'.
51608 (grubof_SOURCES): Likewise.
51610 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
51611 (grubof_SOURCES): Add `kern/parser.c'.
51613 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
51615 * kern/misc.c (grub_split_cmdline): Removed function.
51617 * kern/rescue.c: Include <grub/parser.h>.
51618 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
51619 of `grub_split_cmdline'.
51621 * normal/command.c: Include <grub/parser.h>.
51622 (grub_command_execute): Use `grub_parser_split_cmdline' instead
51623 of `grub_split_cmdline'.
51625 * normal/completion.c: Include <grub/parser.h>.
51626 (cmdline_state): New variable.
51627 (iterate_dir): End the filename with a quote depending on the
51628 command line state.
51629 (get_state): new function.
51630 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
51631 split the arguments and determine the current argument. When the
51632 argument string is not quoted, escape all spaces.
51634 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51636 * normal/sparc64/setjmp.S: New file.
51638 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51640 * include/grub/sparc64/libgcc.h: New file.
51641 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
51642 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
51643 normal/sparc64/setjmp.c.
51645 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
51647 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
51648 * kern/sparc64/cache.S: New file.
51649 * kern/sparc64/cache.c: Removed.
51650 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
51651 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
51653 (COMMON_LDFLAGS): Add -melf64_sparc.
51654 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
51655 (grubof_SOURCES): Use cache.S instead of cache.c.
51656 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
51657 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
51658 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
51660 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
51661 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
51662 (linux_mod_CFLAGS): Commented out.
51663 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
51664 out because module isn't built.
51665 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
51666 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
51667 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
51668 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
51669 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
51670 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51671 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51672 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
51673 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
51674 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
51675 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
51676 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
51677 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
51678 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
51680 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
51682 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
51683 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
51684 longer, because HFS should not be used on PC.
51686 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
51688 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
51689 consistently within the loop.
51691 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
51693 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
51694 directory can not be read.
51696 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51698 * configure.ac (AC_INIT): Increase the version number to 1.91.
51700 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
51701 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
51702 term/i386/pc/serial.c.
51704 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51706 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
51707 file size must be permitted.
51709 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
51710 between %ah and %al.
51712 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
51714 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
51716 Call the hook with a NUL-terminated filename.
51717 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
51720 * kern/term.c (cursor_state): New variable.
51721 (grub_term_set_current): Reset the cursor state on a new
51723 (grub_setcursor): Rewritten to use CURSOR_STATE.
51724 (grub_getcursor): New function.
51726 * include/grub/term.h (grub_getcursor): New prototype.
51728 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
51729 integers on ARM. Reported by Timothy Baldwin
51730 <T.E.Baldwin99@members.leeds.ac.uk>.
51732 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
51734 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
51736 (grub_sfs_dir): Likewise.
51738 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
51740 Add support for the SFS filesystem.
51742 * fs/sfs.c: New file.
51744 * DISTLIST: Added `fs/sfs.c'.
51746 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
51747 (grub_probefs_SOURCES): Likewise.
51748 (grub_emu_SOURCES): Likewise.
51749 (pkgdata_MODULES): Add `sfs.mod'.
51750 (sfs_mod_SOURCES): New variable.
51751 (sfs_mod_CFLAGS): Likewise.
51752 (sfs_mod_LDFLAGS): Likewise.
51754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
51755 (pkgdata_MODULES): Add `sfs.mod'.
51756 (sfs_mod_SOURCES): New variable.
51757 (sfs_mod_CFLAGS): Likewise.
51759 * util/grub-emu.c (main): Call `grub_sfs_init' and
51762 * include/grub/fs.h (grub_sfs_init): New prototype.
51763 (grub_sfs_fini): Likewise.
51765 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
51767 Add support for the AFFS filesystem.
51769 * fs/affs.c: New file.
51771 * DISTLIST: Added `fs/affs.c'.
51773 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
51774 (grub_probefs_SOURCES): Likewise.
51775 (grub_emu_SOURCES): Likewise.
51776 (pkgdata_MODULES): Add `affs.mod'.
51777 (affs_mod_SOURCES): New variable.
51778 (affs_mod_CFLAGS): Likewise.
51779 (affs_mod_LDFLAGS): Likewise.
51781 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
51782 (pkgdata_MODULES): Add `affs.mod'.
51783 (affs_mod_SOURCES): New variable.
51784 (affs_mod_CFLAGS): Likewise.
51786 * util/grub-emu.c (main): Call `grub_affs_init' and
51789 * include/grub/fs.h (grub_affs_init): New prototype.
51790 (grub_affs_fini): Likewise.
51792 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51794 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
51796 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
51798 * configure.ac: Accept `x86_64' as host_cpu. In that case add
51801 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
51804 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
51805 (COMMON_LDFLAGS): New variable.
51806 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
51807 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
51808 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
51809 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
51810 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
51811 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
51812 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
51813 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
51814 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
51815 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
51816 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
51817 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
51818 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
51819 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
51820 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
51822 (normal_mod_ASFLAGS): Add `-m32'.
51824 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
51825 (grub_host_size_t, grub_host_ssize_t): New types.
51826 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
51827 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
51828 `GRUB_HOST_SIZEOF_VOID_P'.
51830 * include/grub/kernel.h (struct grub_module_header): Type of
51831 member offset changed to `grub_host_off_t'. Type of member size
51832 changed to `grub_host_size_t'.
51833 (struct grub_module_info): Type of member offset changed to
51834 `grub_host_off_t'. Type of member size changed to
51835 `grub_host_size_t'.
51837 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
51839 Make GRUB's kernel compliant to Multiboot Specification.
51841 * kern/i386/pc/startup.S (multiboot_header): New label.
51842 (multiboot_entry): Likewise.
51843 (multiboot_trampoline): Likewise.
51845 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
51846 Increased to 0x4A0.
51848 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
51849 put parentheses after a question mark.
51850 [!GRUB_UTIL] (my_mod): New variable.
51852 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
51854 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
51856 Adds support for the XFS filesystem. Btrees are not supported
51859 * fs/xfs.c: New file.
51861 * DISTLIST: Added `fs/xfs.c'.
51863 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
51864 (grub_probefs_SOURCES): Likewise.
51865 (grub_emu_SOURCES): Likewise.
51866 (pkgdata_MODULES): Add `xfs.mod'.
51867 (xfs_mod_SOURCES): New variable.
51868 (xfs_mod_CFLAGS): Likewise.
51870 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
51871 (pkgdata_MODULES): Add `xfs.mod'.
51872 (xfs_mod_SOURCES): New variable.
51873 (xfs_mod_CFLAGS): Likewise.
51875 * util/grub-emu.c (main): Call `grub_xfs_init' and
51878 * include/grub/fs.h (grub_xfs_init): New prototype.
51879 (grub_xfs_fini): Likewise.
51882 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
51884 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
51885 color modes, allow greater than 16 colors to be configured as
51888 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
51890 * normal/completion.c (complete_arguments): Add the qualifier
51891 const into OPTIONS.
51893 From Omniflux <omniflux+lists@omniflux.com>:
51894 * include/grub/terminfo.h: New file.
51895 * include/grub/tparm.h: Likewise.
51896 * include/grub/i386/pc/serial.h: Likewise.
51897 * term/terminfo.c: Likewise.
51898 * term/tparm.c: Likewise.
51899 * term/i386/pc/serial.c: Likewise.
51900 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
51902 (terminfo_mod_SOURCES): New variable.
51903 (terminfo_mod_CFLAGS): Likewise.
51904 (serial_mod_SOURCES): Likewise.
51905 (serial_mod_CFLAGS): Likewise.
51907 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
51909 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
51910 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
51911 and kern/powerpc/ieee1275/cmain.c, respectively.
51913 * boot/powerpc/ieee1275/crt0.S: Moved to ...
51914 * kern/powerpc/ieee1275/crt0.S: ... here.
51916 * boot/powerpc/ieee1275/cmain.c: Moved to ...
51917 * kern/powerpc/ieee1275/cmain.c: ... here.
51919 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
51920 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
51921 instead of boot/powerpc/ieee1275/crt0.S and
51922 boot/powerpc/ieee1275/cmain.c, respectively.
51924 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
51925 sectors. It was not used anyway.
51927 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51929 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
51930 `unused parameter' warning.
51932 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
51934 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
51936 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
51939 2005-08-28 Marco Gerards <metgerards@student.han.nl>
51941 * include/grub/normal.h (enum grub_completion_type): Added
51942 `GRUB_COMPLETION_TYPE_ARGUMENT'.
51944 * normal/cmdline.c (print_completion): Handle
51945 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
51946 * normal/menu_entry.c (store_completion): Likewise.
51948 * normal/completion.c (complete_arguments): New function.
51949 (grub_normal_do_completion): Call `complete_arguments' when the
51950 current words start with a dash.
51952 2005-08-27 Marco Gerards <metgerards@student.han.nl>
51954 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
51955 `gzio.mod' instead of `io.mod').
51957 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
51959 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
51960 (DISTDIRS): Added io and video.
51961 Rewrite the search routine to make an output consistently.
51963 * DISTLIST: Added conf/sparc64-ieee1275.mk,
51964 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
51965 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
51966 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
51967 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
51968 util/powerpc/ieee1275/misc.c.
51970 * include/grub/gzio.h: New file.
51971 * io/gzio.c: Likewise.
51973 * kern/file.c (grub_file_close): Call grub_device_close only if
51974 FILE->DEVICE is not NULL.
51976 * include/grub/mm.h [!NULL] (NULL): New macro.
51978 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
51980 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
51981 (pkgdata_MODULES): Added gzio.mod.
51982 (gzio_mod_SOURCES): New variable.
51983 (gzio_mod_CFLAGS): Likewise.
51985 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
51986 (pkgdata_MODULES): Added gzio.mod.
51987 (gzio_mod_SOURCES): New variable.
51988 (gzio_mod_CFLAGS): Likewise.
51990 * commands/cat.c: Include grub/gzio.h.
51991 (grub_cmd_cat): Use grub_gzfile_open instead of
51994 * commands/cmp.c: Include grub/gzio.h.
51995 (grub_cmd_cmp): Use grub_gzfile_open instead of
51998 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
51999 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
52001 (grub_rescue_cmd_module): Likewise.
52003 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52005 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
52006 kern/sparc64/ieee1275/init.c because it contains _start.
52007 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
52009 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
52011 * configure.ac: Add support for sparc64 host with ieee1275
52013 * configure: Generated from configure.ac.
52014 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
52016 (grub_ofdisk_read): Likewise.
52017 (grub_ofdisk_open): Use %p to print pointer values, and cast the
52018 pointers as (void *) to remove a warning.
52019 (grub_ofdisk_close): Likewise.
52020 (grub_ofdisk_read): Likewise.
52021 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
52022 returns, so make it return void to remove a warning.
52023 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
52024 Corresponding prototype change.
52025 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
52026 values, and cast the pointers as (void *) to remove a warning.
52027 (grub_mm_dump): Likewise.
52028 * conf/sparc64-ieee1275.mk: New file.
52029 * conf/sparc64-ieee1275.rmk: Likewise.
52030 * include/grub/sparc64/setjmp.h: Likewise.
52031 * include/grub/sparc64/types.h: Likewise.
52032 * include/grub/sparc64/ieee1275/console.h: Likewise.
52033 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
52034 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
52035 * include/grub/sparc64/ieee1275/time.h: Likewise.
52036 * kern/sparc64/cache.c: Likewise.
52037 * kern/sparc64/dl.c: Likewise.
52038 * kern/sparc64/ieee1275/init.c: Likewise.
52039 * kern/sparc64/ieee1275/openfw.c: Likewise.
52041 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
52043 * util/console.c (grub_ncurses_putchar): If C is greater than
52044 0x7f, set C to a question mark.
52045 (grub_ncurses_getcharwidth): New function.
52046 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
52049 * normal/menu.c (print_entry): Made aware of Unicode. First,
52050 convert TITLE to UCS-4, and predict the cursor position by
52053 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
52055 * kern/misc.c (grub_utf16_to_utf8): Likewise.
52057 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52059 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
52060 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52063 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
52064 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
52065 grub_strcpy and grub_strlen. Take it into account that a space
52066 character is inserted as a delimiter.
52068 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52070 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
52071 invalid magic in the error.
52073 * commands/search.c: New file.
52075 * util/grub-emu.c (main): Call grub_search_init and
52078 * kern/rescue.c (grub_rescue_print_disks): Removed.
52079 (grub_rescue_print_devices): New function.
52080 (grub_rescue_cmd_ls): Use grub_device_iterate with
52081 grub_rescue_print_devices instead of grub_disk_dev_iterate with
52082 grub_rescue_print_disks.
52084 * kern/partition.c (grub_partition_iterate): Return the result of
52085 PARTMAP->ITERATE instead of GRUB_ERRNO.
52087 * kern/device.c: Include grub/partition.h.
52088 (grub_device_iterate): New function.
52090 * include/grub/partition.h (grub_partition_iterate): Return int
52091 instead of grub_err_t.
52093 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
52095 [GRUB_UTIL] (grub_search_fini): Likewise.
52097 * include/grub/device.h (grub_device_iterate): New prototype.
52099 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52101 (pkgdata_MODULES): Added search.mod.
52102 (search_mod_SOURCES): New variable.
52103 (search_mod_CFLAGS): Likewise.
52105 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
52106 (pkgdata_MODULES): Added search.mod.
52107 (search_mod_SOURCES): New variable.
52108 (search_mod_CFLAGS): Likewise.
52110 * commands/ls.c (grub_ls_list_disks): Renamed to ...
52111 (grub_ls_list_devices): ... this, and use grub_device_iterate.
52112 All callers changed.
52114 * DISTLIST: Added commands/search.c.
52116 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
52118 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
52120 (grub_getcharwidth): New function.
52122 * kern/misc.c (grub_utf8_to_ucs4): New function.
52124 * include/grub/term.h (struct grub_term): Added a new member
52126 (grub_getcharwidth): New prototype.
52128 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
52130 * term/i386/pc/console.c (map_char): New function. Segregated from
52131 grub_console_putchar.
52132 (grub_console_putchar): Use map_char.
52133 (grub_console_getcharwidth): New function.
52134 (grub_console_term): Specified grub_console_getcharwidth as
52137 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
52138 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
52140 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
52142 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
52143 on grub_strtoul completely.
52144 (write_char): Declare local variables in the beginning of the
52146 (grub_vesafb_getcharwidth): New function.
52147 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
52150 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
52152 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
52153 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
52154 commands/i386/pc/vbetest.c.
52156 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
52157 call grub_vbe_get_controller_info again, because the returned
52158 information is volatile.
52159 (grub_vbe_set_video_mode): Mostly rewritten.
52160 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
52161 grub_vbe_status_t correctly.
52162 (grub_vbe_get_video_mode_info): Likewise.
52163 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
52164 several if statements.
52166 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
52167 * commands/i386/pc/vbeinfo.c: ... this.
52169 * commands/i386/pc/vbe_test.c: Renamed to ...
52170 * commands/i386/pc/vbetest.c: ... this.
52172 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
52174 (grub_cmd_vbeinfo): ... this. Save video modes before
52175 iterating. Skip a video mode, if it is not available, not enough
52176 information is given or it is monochrome. Show the memory
52177 model. Leave the interpretation of MODEVAR to grub_strtoul
52179 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
52180 (GRUB_MOD_FINI): Likewise.
52182 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
52183 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
52184 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
52185 duplicated grub_env_get. Leave the interpretation of MODEVAR to
52186 grub_strtoul completely.
52187 (real2pm): Removed.
52188 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
52189 (GRUB_MOD_FINI): Likewise.
52191 * normal/misc.c: Include grub/mm.h.
52193 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
52194 vbe_list_modes with vbetest.mod and vbeinfo.mod.
52195 (vbe_list_modes_mod_SOURCES): Removed.
52196 (vbe_list_modes_mod_CFLAGS): Likewise.
52197 (vbe_test_mod_SOURCES): Likewise.
52198 (vbe_test_mod_CFLAGS): Likewise.
52199 (vbeinfo_mod_SOURCES): New variable.
52200 (vbeinfo_mod_CFLAGS): Likewise.
52201 (vbetest_mod_SOURCES): Likewise.
52202 (vbetest_mod_CFLAGS): Likewise.
52204 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
52206 * normal/misc.c: New file.
52208 * DISTLIST: Added normal/misc.c.
52210 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
52211 DISK to HOOK. Call HOOK with DISK.
52212 * partmap/apple.c (apple_partition_map_iterate): Likewise.
52213 * partmap/pc.c (pc_partition_map_iterate): Likewise.
52214 * partmap/sun.c (sun_partition_map_iterate): Likewise.
52216 * normal/menu_entry.c (struct screen): Added a new member
52217 "completion_shown".
52218 (completion_buffer): New global variable.
52219 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
52220 (store_completion): New function.
52221 (complete): Likewise.
52222 (clear_completions): Likewise.
52223 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
52224 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
52225 a tab, call complete.
52227 * normal/completion.c (disk_dev): Removed.
52228 (print_simple_completion): Likewise.
52229 (print_partition_completion): Likewise.
52230 (print_func): New global variable.
52231 (add_completion): Do not take the arguments WHAT or PRINT any
52232 longer. Added a new argument TYPE. Instead of printing directly,
52233 call PRINT_FUNC if not NULL.
52234 All callers changed.
52235 (complete_device): Use a local variable DEV instead of
52236 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
52237 (grub_normal_do_completion): Take a new argument HOOK. Do not
52238 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
52239 empty string, return NULL instead.
52240 All callers changed.
52242 * normal/cmdline.c (print_completion): New function.
52244 * kern/partition.c (grub_partition_iterate): Add an argument DISK
52246 All callers changed.
52248 * kern/disk.c (grub_print_partinfo): Removed.
52250 * include/grub/partition.h (struct grub_partition_map): Add a new
52251 argument DISK into HOOK of ITERATE.
52252 (grub_partition_iterate): Add a new argument DISK to HOOK.
52254 * include/grub/normal.h (enum grub_completion_type): New enum.
52255 (grub_completion_type_t): New type.
52256 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
52257 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
52258 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
52259 (GRUB_COMPLETION_TYPE_FILE): Likewise.
52260 (grub_normal_do_completion): Added a new argument HOOK.
52261 (grub_normal_print_device_info): New prototype.
52263 * include/grub/disk.h (grub_print_partinfo): Removed.
52265 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
52266 (normal_mod_SOURCES): Likewise.
52267 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
52268 (normal_mod_SOURCES): Likewise.
52270 * commands/ls.c (grub_ls_list_disks): Use
52271 grub_normal_print_device_info instead of grub_print_partinfo. Free
52273 (grub_ls_list_files): Use grub_normal_print_device_info instead of
52274 duplicating the code.
52276 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52278 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
52279 follow GCS more precisely.
52280 * commands/i386/pc/vbe_test.c: Likewise.
52281 * include/grub/i386/pc/vbe.h: Likewise.
52282 * term/i386/pc/vesafb.c: Likewise.
52283 * video/i386/pc/vbe.c: Likewise.
52285 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
52287 * DISTLIST: Added term/i386/pc/vesafb.c
52288 DISTLIST: Added video/i386/pc/vbe.c
52289 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
52290 DISTLIST: Added commands/i386/pc/vbe_test.c.
52291 * commands/i386/pc/vbe_list_modes.c: New file.
52292 * commands/i386/pc/vbe_test.c: Likewise.
52293 * term/i386/pc/vesafb.c: Likewise.
52294 * video/i386/pc/vbe.c: Likewise.
52295 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
52296 (grub_vbe_probe) Added prototype.
52297 (grub_vbe_set_video_mode) Likewise.
52298 (grub_vbe_get_video_mode) Likewise.
52299 (grub_vbe_get_video_mode_info) Likewise.
52300 (grub_vbe_set_pixel_rgb) Likewise.
52301 (grub_vbe_set_pixel_index) Likewise.
52302 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
52303 (pkgdata_MODULES): Added vesafb.mod.
52304 (pkgdata_MODULES): Added vbe_list_modes.mod.
52305 (pkgdata_MODULES): Added vbe_test.mod.
52306 (vbe_mod_SOURCES): Added.
52307 (vbe_mod_CFLAGS): Likewise.
52308 (vesafb_mod_SOURCES): Likewise.
52309 (vesafb_mod_CFLAGS): Likewise.
52310 (vbe_list_modes_mod_SOURCES): Likewise.
52311 (vbe_list_modes_mod_CFLAGS): Likewise.
52312 (vbe_test_mod_SOURCES): Likewise.
52313 (vbe_test_mod_CFLAGS): Likewise.
52315 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
52317 * normal/command.c (grub_command_execute): If INTERACTIVE is
52318 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
52319 CMDLINE. Disable the pager if INTERACTIVE is true.
52320 All callers are changed.
52322 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
52323 before reading a config file.
52324 * normal/main.c (read_config_file): Even if a command is not
52325 found, register it if it is within an entry.
52327 * util/grub-emu.c: Include sys/types.h and unistd.h.
52328 (options): Added --hold.
52329 (struct arguments): Added a new member "hold".
52330 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
52332 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
52333 cleared by a debugger, if it is not zero.
52335 * include/grub/normal.h (grub_command_execute): Add an argument
52338 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
52340 * DISTLIST: Added include/grub/i386/pc/vbe.h.
52342 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
52344 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
52345 program with another one, because the old one didn't detect a bug
52346 in gcc-3.4. Always use regparm 2, because the new test is still
52347 not enough for gcc-4.0. Someone must investigate a simple test
52348 case which detects a bug in gcc-4.0.
52350 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
52352 * DISTLIST: Added normal/completion.c.
52354 * normal/completion.c: New file.
52356 * term/i386/pc/console.c (grub_console_getwh): New function.
52357 (grub_console_term): Assign grub_console_getwh to getwh.
52359 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
52360 function is defined in normal/completion.c as
52361 grub_normal_do_completion.
52362 (grub_cmdline_get): Use grub_normal_do_completion instead of
52365 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
52366 returns non-zero, otherwise return 0.
52367 (grub_partition_iterate): First, probe the partition map. Then,
52368 call ITERATE only for this partition map.
52370 * kern/misc.c (grub_strncmp): Rewritten.
52372 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
52373 returns non-zero. Otherwise return 0.
52375 * include/grub/partition.h (grub_partition_map_iterate): Return
52376 int instead of void.
52378 * include/grub/normal.h (grub_normal_do_completion): New prototype.
52380 * include/grub/misc.h (grub_strncmp): Change the type of N to
52383 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
52386 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
52387 unsigned explicitly before comparing it with I.
52389 * kern/main.c (grub_env_write_root): Add the attribute unused into
52392 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
52393 normal/completion.c.
52394 (normal_mod_SOURCES): Likewise.
52395 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
52396 (normal_mod_SOURCES): Likewise.
52398 * normal/command.c (grub_iterate_commands): If ITERATE returns
52399 non-zero, return one immediately.
52401 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
52403 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
52404 * kern/i386/pc/startup.S: Updated Global Descriptor table's
52406 (grub_vbe_get_controller_info): New function.
52407 (grub_vbe_get_mode_info): Likewise.
52408 (grub_vbe_set_mode): Likewise.
52409 (grub_vbe_get_mode): Likewise.
52410 (grub_vbe_set_memory_window): Likewise.
52411 (grub_vbe_get_memory_window): Likewise.
52412 (grub_vbe_set_scanline_length): Likewise.
52413 (grub_vbe_get_scanline_length): Likewise.
52414 (grub_vbe_set_display_start): Likewise.
52415 (grub_vbe_get_display_start): Likewise.
52416 (grub_vbe_set_palette_data): Likewise.
52417 * include/grub/i386/pc/vbe.h: New file.
52419 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52421 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52422 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
52423 * DISTLIST: Likewise.
52424 * kern/ieee1275/of.c: Moved to ...
52425 * kern/ieee1275/ieee1275.c: ... here.
52427 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52429 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
52430 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
52431 Pass 0 as `end' parameter to grub_strtoul().
52433 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
52435 * include/grub/powerpc/ieee1275/console.h: Do not include
52436 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
52438 (grub_console_cur_color): Remove i386-specific prototype.
52439 (grub_console_real_putchar): Likewise.
52440 (grub_console_checkkey): Likewise.
52441 (grub_console_getkey): Likewise.
52442 (grub_console_getxy): Likewise.
52443 (grub_console_gotoxy): Likewise.
52444 (grub_console_cls): Likewise.
52445 (grub_console_setcursor): Likewise.
52446 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
52447 Include <grub/machine/console.h>.
52448 * term/ieee1275/ofconsole.c: Likewise.
52450 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
52452 * Makefile.in (LIBLZO): New variable.
52454 * configure.ac: Check for LZO version 2.
52456 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
52457 lzo/lzo1x.h instead of lzo1x.h.
52459 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
52462 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
52463 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
52465 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
52466 copying the data from PARTITION to P.
52468 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52470 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
52471 negative, unload the module.
52473 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
52474 map is "pc_partition_map" but not "pc".
52475 (usage): Fix the description. The options are --boot-image and
52476 --core-image but not --boot-file or --core-file.
52477 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
52478 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
52481 * util/i386/pc/grub-install.in: Do not specify --boot-file or
52482 --core-file. Specify INSTALL_DEVICE as an argument.
52484 * util/console.c: Include config.h.
52485 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
52486 [HAVE_NCURSES_H]: Include ncurses.h.
52487 [HAVE_CURSES_H]: Include curses.h.
52488 [!A_NORMAL] (A_NORMAL): Defined as zero.
52489 [!A_STANDOUT] (A_STANDOUT): Likewise.
52491 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
52493 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
52495 * configure.ac: Check for curses libraries and headers.
52497 * Makefile.in (LIBCURSES): New variable.
52499 * genmk.rb (Script::rule): Set the executable bits.
52501 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
52502 name of the PC partition map is "pc_partition_map" but not "pc".
52504 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52506 * util/i386/pc/grub-install.in (grub_probefs): New variable.
52507 (modules): Likewise.
52508 (usage): Added descriptions for --modules and --grub-probefs.
52509 Handle --modules and --grub-probefs. Save the arguments in MODULES
52510 and GRUB_PROBEFS, respectively.
52511 Auto-detect a filesystem module against GRUBDIR. If the result is
52512 empty and modules are not specified explicitly, abort the
52513 installation. Add the result to MODULES.
52515 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
52516 disk/powerpc/ieee1275/ofdisk.c,
52517 include/grub/powerpc/ieee1275/init.h and
52518 term/powerpc/ieee1275/ofconsole.c.
52519 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
52520 term/ieee1275/ofconsole.c.
52522 * include/grub/powerpc/ieee1275/console.h: Resurrected.
52524 * COPYING: Upgraded to the latest version. Only the address of the
52525 FSF office has changed.
52527 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
52529 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
52530 kern/ieee1275.c with kern/ieee1275/of.c.
52532 * kern/ieee1275.c: Moved to ...
52533 * kern/ieee1275/of.c: ... here.
52535 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
52537 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
52540 * config.guess: Updated to the latest version from gnulib.
52541 * config.sub: Likewise.
52542 * install.sh: Likewise.
52543 * mkinstalldirs: Likewise.
52545 * include/grub/console.h: Removed. This file is arch-specific. Do
52546 not put this in include/grub.
52548 * include/grub/i386/pc/console.h: Resurrected.
52550 * util/console.c: Include grub/machine/console.h instead of
52552 * util/grub-emu.c: Likewise.
52554 2005-08-04 Marco Gerards <metgerards@student.han.nl>
52556 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
52559 From Vincent Pelletier <subdino2004@yahoo.fr>
52560 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
52561 Redefined to use grub_getwh.
52562 (grub_term): New member named getwh.
52563 (grub_getwh): New prototype.
52564 * kern/term.c (grub_getwh): New function.
52565 * term/i386/pc/console.c (grub_console_getwh): New function.
52566 (grub_console_term): New member `getwh'.
52567 * term/i386/pc/vga.c (grub_vga_getwh): New function.
52568 (grub_vga_term): New member `getwh'.
52569 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
52571 (grub_ofconsole_getw): New function.
52572 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
52573 (grub_ofconsole_term): New field named getwh and new initial
52576 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
52578 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
52579 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
52580 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
52581 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
52582 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
52583 of <grub/machine/ieee1275.h>.
52584 * commands/ieee1275/reboot.c: Likewise.
52585 * boot/powerpc/ieee1275/ieee1275.c: Move ...
52586 * kern/ieee1275.c: ... to here. All users updated. Change all
52587 parameter structs to use new type `grub_ieee1275_cell_t'.
52588 * term/powerpc/ieee1275/ofconsole.c: Move ...
52589 * term/ieee1275/ofconsole.c: ... to here. All users updated.
52590 * disk/powerpc/ieee1275/ofdisk.c: Move ...
52591 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
52592 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
52594 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
52595 Remove unused prototypes. All users updated.
52596 * include/grub/powerpc/ieee1275/console.h: Removed.
52597 * include/grub/powerpc/ieee1275/ieee1275.h: Define
52598 `grub_ieee1275_cell_t'.
52599 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
52600 Cast comparisons with -1 to the correct type.
52601 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
52602 type to match `grub_ieee1275_entry_fn'.
52604 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
52606 * DISTLIST: Added util/i386/pc/grub-probefs.c.
52608 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
52609 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
52611 (grub_probefs_SOURCES): New variable.
52613 * util/i386/pc/grub-probefs.c: New file.
52615 * util/i386/pc/grub-setup.c (main): Call
52616 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
52617 grub_hfs_init and grub_jfs_init to initialize the system. Call
52618 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
52619 grub_pc_partition_map_fini to finish the system.
52621 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
52623 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
52625 (grub_multiboot_load_elf32): Likewise.
52626 (grub_multiboot_is_elf64): Likewise.
52627 (grub_multiboot_load_elf64): Likewise.
52628 (grub_multiboot_load_elf): Likewise.
52629 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
52630 an ELF32 or ELF64 file.
52631 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
52633 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
52634 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
52635 NULL before calling FS->LABEL.
52636 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
52637 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
52638 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
52639 before calling FS->LABEL.
52641 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
52643 * util/i386/pc/grub-install.in (datadir): New variable.
52645 (pkgdatadir): New variable.
52646 (pkglibdir): Removed.
52648 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
52650 * DISTLIST: Added util/i386/pc/grub-install.in.
52652 * util/i386/pc/grub-install.in: New file.
52654 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
52655 (grub_install_SOURCES): Likewise.
52657 * genmk.rb: Added support for scripts.
52658 (Script): New class.
52659 (scripts): New variable.
52661 * Makefile.in (install-local): Install sbin_SCRIPTS by
52663 (uninstall): Remove sbin_SCRIPTS.
52665 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
52666 device, try to get a GRUB device by
52667 grub_util_biosdisk_get_grub_dev.
52670 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
52671 description for --device-map.
52673 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52675 Change the semantics of variable hooks. They now return strings
52676 instead of error values.
52678 * util/i386/pc/grub-setup.c: Include grub/env.h.
52679 (setup): Use grub_device_set_root instead of grub_env_set.
52681 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
52682 grub_env_get instead of grub_device_set_root and
52683 grub_device_get_root, respectively.
52685 * kern/main.c (grub_env_write_root): New function.
52686 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
52687 grub_env_set instead of grub_device_set_root.
52689 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
52691 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
52692 rather than calling ENV->WRITE_HOOK afterwards.
52693 (grub_env_get): Return the result of ENV->READ_HOOK rather than
52694 passing a pointer of a pointer.
52695 (grub_register_variable_hook): Change the types of "read_hook" and
52696 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
52698 Allocate the default empty string on the heap, because this string
52699 may be freed later.
52701 * kern/device.c: Include grub/env.h.
52702 (grub_device_set_root): Removed.
52703 (grub_device_get_root): Likewise.
52704 (grub_device_open): Use grub_env_get instead of
52705 grub_device_get_root.
52707 * include/grub/env.h (grub_env_read_hook_t): New type.
52708 (grub_env_write_hook_t): Likewise.
52709 (grub_env_var): Change the types of "read_hook" and "write_hook"
52710 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
52711 (grub_register_variable_hook): Likewise.
52713 * include/grub/device.h (grub_device_set_root): Removed.
52714 (grub_device_set_root): Likewise.
52716 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
52717 make sure that DIRNAME terminates with '/', so that
52718 grub_fat_find_dir will fail if PATH is not a directory.
52720 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
52722 Use the qualifier auto for print_files and print_files_long.
52723 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
52725 Put a newline only if there is no error.
52726 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
52729 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
52731 * kern/partition.c (grub_partition_probe): Initialize PART to
52732 NULL. Otherwise, when no partition map is registered, this returns
52735 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
52737 * partmap/apple.c (apple_partition_map_iterate): Check if POS
52738 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
52741 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
52743 * commands/ls.c (grub_ls_list_disks): Print the filesystem
52744 information on each device, if it does not have partitions. Print
52745 "Device" instead of "Disk", because this function is not specific
52748 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
52749 static to ensure that it is put on the memory rather than a
52752 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52754 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
52755 (grub_cat_init): Likewise.
52756 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
52757 (options): Likewise.
52758 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
52759 (grub_configfile_init): Likewise.
52760 * font/manager.c (GRUB_MOD_INIT): Likewise.
52761 * commands/help.c (GRUB_MOD_INIT): Likewise.
52762 (grub_help_init): Likewise.
52763 * normal/command.c (grub_command_init): Likewise.
52764 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
52765 * disk/loopback.c (grub_loop_init): Likewise.
52766 (GRUB_MOD_INIT): Likewise.
52767 * commands/ls.c (grub_ls_init): Likewise.
52768 (GRUB_MOD_INIT): Likewise.
52769 (options): Likewise.
52770 * commands/boot.c (grub_boot_init): Likewise.
52771 (GRUB_MOD_INIT): Likewise.
52772 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
52773 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
52774 (GRUB_MOD_INIT): Likewise.
52775 * commands/cmp.c (grub_cmp_init): Likewise.
52776 (GRUB_MOD_INIT): Likewise.
52778 * normal/arg.c: Use <> instead of "" to include header files.
52779 (SHORT_ARG_HELP): New macro.
52780 (SHORT_ARG_USAGE): Likewise.
52781 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
52782 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
52784 (find_short): Check if C is 'h' or 'u' explicitly.
52785 (grub_arg_show_help): Use space characters instead of tabs. Treat
52786 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
52787 are shown with --help and --usage only if they are not used for
52788 the command itself.
52789 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
52792 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
52793 const into "longarg". Change the type of "shortarg" to int.
52795 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52797 * boot/i386/pc/boot.S (boot_drive_check): New label.
52799 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
52802 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
52803 which do not pass a boot drive correctly. Copied from GRUB Legacy.
52805 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52807 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
52808 When turning off Gate A20, skip the check and return immediately,
52809 because this is not fatal usually.
52811 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
52813 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
52814 be 0x7C00 instead of 0x8000.
52816 * boot/i386/pc/pxeboot.S: Rewritten.
52818 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
52820 (gate_a20_check_state): Read a byte from 0x108000. Invert the
52823 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
52825 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
52826 robustness. This routine now supports a BIOS call and System
52827 Control Port A to modify the gate A20.
52829 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
52830 Increased to 0x440.
52832 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
52834 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
52835 device path and resulting ihandle.
52836 (grub_ofdisk_close): dprintf the ihandle being closed.
52837 (grub_ofdisk_read): dprintf function parameters.
52838 * kern/mm.c (grub_mm_init_region): Likewise.
52839 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
52840 (grub_linux_boot): dprintf the Linux entry point, initrd address and
52841 size, and boot arguments.
52842 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
52843 before loading into memory.
52844 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
52845 before loading into memory.
52847 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
52849 * kern/mm.c: Added much documentation.
52850 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
52851 8, set to 5 instead of 8.
52853 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52855 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
52857 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
52858 (grub_mkdevicemap_SOURCES): New variable.
52860 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
52861 lib/device.c of GRUB Legacy.
52863 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
52865 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
52866 instead of PATH is NULL.
52868 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
52870 * commands/cmp.c (BUFFER_SIZE): New macro.
52871 (grub_cmd_cmp): Close the right file at the right time. Compare
52872 only data just read. Don't report files of different size as
52873 identical. Dynamically allocate buffers. Move variable
52874 declarations at the beginning of function.
52876 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
52878 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
52881 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
52883 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
52884 when backspace is pressed at beginning of line.
52886 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
52888 * DISTLIST: Added genfslist.sh.
52890 * normal/main.c (fs_module_list): New variable.
52891 (autoload_fs_module): New function.
52892 (read_fs_list): Likewise.
52893 (grub_normal_execute): Call read_fs_list.
52895 * kern/fs.c (grub_fs_autoload_hook): New variable.
52896 (grub_fs_probe): Added support for auto-loading.
52898 * include/grub/normal.h (struct grub_fs_module_list): New struct.
52899 (grub_fs_module_list_t): New type.
52901 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
52902 (grub_fs_autoload_hook): New prototype.
52904 * genfslist.sh: New file.
52906 * genmk.rb: Added a rule to generate a filesystem list.
52908 2005-06-30 Marco Gerards <metgerards@student.han.nl>
52910 * configure.ac: Fix the test for cross-compiling.
52912 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
52913 define GRUB_UTIL anymore.
52915 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
52916 so this function works on other systems than just big endian.
52917 (load_modules): Likewise.
52918 (add_segments): Likewise.
52920 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
52922 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
52923 contains `l' modifier, get a long from va_arg().
52925 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
52927 * kern/mm.c (grub_free): If the next free block which is being
52928 merged is the first free block, set the first block to the block
52930 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
52932 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52934 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
52935 `grub_ieee1275_chosen'.
52937 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
52939 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
52940 (grub_ieee1275_chosen): New variable.
52941 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
52943 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
52944 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
52945 Rename first argument to `phandle' for consistency.
52946 (grub_ieee1275_get_property_length): Likewise.
52947 (grub_ieee1275_next_property): Likewise. Change type of first argument
52948 to grub_ieee1275_phandle_t.
52949 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
52950 Move export next to declaration.
52951 (grub_ieee1275_chosen): New variable.
52952 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
52953 Correct cosmetic typo.
52954 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
52955 `grub_ieee1275_chosen'.
52956 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
52957 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
52958 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
52959 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
52960 `grub_ieee1275_chosen'.
52962 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
52964 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
52966 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
52967 /chosen/bootargs as "variable=value" pairs.
52969 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
52971 * include/grub/misc.h (grub_dprintf): New macro.
52972 (grub_real_dprintf): New prototype.
52973 (grub_strword): Likewise.
52974 (grub_iswordseparator): Likewise.
52975 * kern/misc.c (grub_real_dprintf): New function.
52976 (grub_strword): Likewise.
52977 (grub_iswordseparator): Likewise.
52979 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
52981 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
52982 (roundup): Remove macro.
52983 (grub_ieee1275_flags): Make static.
52984 (grub_ieee1275_realmode): Remove.
52985 (grub_ieee1275_test_flag): New function.
52986 (grub_ieee1275_set_flag): Likewise.
52987 (find_options): Rename to `grub_ieee1275_find_options'; update
52988 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
52989 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
52990 (cmain): New prototype.
52991 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
52992 `grub_ieee1275_flags' directly.
52993 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
52994 machine/biosdisk.h.
52995 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
52996 Don't include grub/machine/init.h.
52997 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
52998 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53000 (grub_ieee1275_realmode): Likewise.
53001 (grub_ieee1275_flag): New enum.
53002 (grub_ieee1275_test_flag): New prototype.
53003 (grub_ieee1275_set_flag): New prototype.
53004 * include/grub/powerpc/ieee1275/init.h: Remove file.
53005 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
53006 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
53007 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
53008 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
53010 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
53011 `grub_ieee1275_test_flag'.
53012 (grub_ieee1275_encode_devname): Likewise.
53014 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
53016 * include/grub/powerpc/ieee1275/ieee1275.h
53017 (grub_ieee1275_encode_devname): New prototype.
53018 (grub_ieee1275_get_filename): Likewise.
53019 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
53021 (grub_set_prefix): Likewise.
53022 (grub_machine_init): Call grub_set_prefix.
53023 * kern/powerpc/ieee1275/openfw.c: Fix typos.
53024 (grub_parse_type): New enum.
53025 (grub_ieee1275_get_devargs): New function.
53026 (grub_ieee1275_get_devname): Likewise.
53027 (grub_ieee1275_parse_args): Likewise.
53028 (grub_ieee1275_get_filename): Likewise.
53029 (grub_ieee1275_encode_devname): Likewise.
53031 2005-03-30 Marco Gerards <metgerards@student.han.nl>
53033 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
53034 `grub_loader_unset'.
53036 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
53038 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
53039 instead of grub_ieee1275_interpret.
53040 (grub_halt_init): New function.
53041 (grub_halt_fini): Likewise.
53042 (GRUB_MOD_INIT): Correct message grammar.
53043 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
53044 instead of grub_ieee1275_interpret.
53045 (grub_reboot_init): New function.
53046 (grub_reboot_fini): Likewise.
53047 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
53048 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
53049 util/i386/pc/misc.c with commands/ieee1275/halt.c,
53050 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
53051 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
53053 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
53055 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
53057 (grub_halt): Likewise.
53058 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
53059 (cmain): Remove __attribute__((unused)).
53060 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
53061 (grub_heap_len): Likewise.
53062 (grub_machine_fini): New function.
53063 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
53064 (grub_halt): Likewise.
53065 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
53067 * util/powerpc/ieee1275/misc.c: New file.
53069 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
53071 * DISTLIST: New file.
53072 * gendistlist.sh: Likewise.
53074 * Makefile.in (COMMON_DISTFILES): Removed.
53075 (BOOT_DISTFILES): Likewise.
53076 (CONF_DISTFILES): Likewise.
53077 (DISK_DISTFILES): Likewise.
53078 (FS_DISTFILES): Likewise.
53079 (INCLUDE_DISTFILES): Likewise.
53080 (KERN_DISTFILES): Likewise.
53081 (LOADER_DISTFILES): Likewise.
53082 (TERM_DISTFILES): Likewise.
53083 (UTIL_DISTFILES): Likewise.
53084 (DISTFILES): Likewise.
53085 (uninstall): Uninstall files in $(pkgdata_DATA).
53086 (DISTLIST): New target.
53087 (distdir): Use the contents of the file DISTLIST to get a list of
53090 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
53092 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
53093 descriptor. This is ported from GRUB Legacy.
53095 * gencmdlist.sh: Added an extra semicolon to make it work with
53096 old sed versions. Reported by Robert Bihlmeyer
53097 <robbe@orcus.priv.at>.
53099 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
53101 Automatic loading of commands is supported.
53103 * normal/main.c (read_command_list): New function.
53104 (grub_normal_execute): Call read_command_list.
53106 * normal/command.c (grub_register_command): Return zero or CMD.
53107 Allocate CMD->NAME from the heap.
53108 Initialize CMD->MODULE_NAME to zero.
53109 Find the same name as well. If the same command is found and it is
53110 a dummy command, overwrite members. If it is not a dummy command,
53112 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
53113 (grub_command_find): If a dummy command is found, load a module
53114 and retry to find a command only once.
53116 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
53117 make sure that each command is loaded.
53119 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
53121 (struct grub_command): Remove const from the member `name'.
53122 Add a new member `module_name'.
53123 (grub_register_command): Return grub_command_t.
53125 * commands/help.c (grub_cmd_help): Call grub_command_find to make
53126 sure that each command is loaded.
53128 * genmk.rb (PModule::rule): Specify a module name without the
53129 suffix ".mod" to gencmdlist.sh.
53131 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53133 * gencmdlist.sh: New file.
53135 * genmk.rb (PModule::rule): Generate a rule for a command list.
53137 Generate command.lst from $(COMMANDFILES).
53139 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
53140 (DATA): Added $(pkgdata_DATA).
53141 (install-local): Install files in $(pkgdata_DATA).
53143 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
53145 * term/i386/pc/vga.c (debug_command): Removed.
53146 (GRUB_MOD_INIT): Do not register the command "debug".
53148 From Hollis Blanchard:
53149 * commands/configfile.c: New file.
53150 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53151 commands/configfile.c.
53152 (pkgdata_MODULES): Added configfile.mod.
53153 (configfile_mod_SOURCES): New variable.
53154 (configfile_mod_CFLAGS): Likewise.
53155 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
53156 commands/configfile.c.
53157 (pkgdata_MODULES): Added configfile.mod.
53158 (configfile_mod_SOURCES): New variable.
53159 (configfile_mod_CFLAGS): Likewise.
53160 * util/grub-emu.c (main): Call grub_configfile_init and
53161 grub_configfile_fini.
53162 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
53164 [GRUB_UTIL] (grub_configfile_fini): Likewise.
53166 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53168 * normal/arg.c (grub_arg_show_help): Do not show the bug report
53171 * commands/help.c (grub_cmd_help): Do not print newlines after
53172 the last command in print_command_help.
53174 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
53176 * commands/default.h: New file.
53177 * commands/timeout.h: Likewise.
53178 * normal/context.c: Likewise.
53180 * util/misc.c: Do not include sys/times.h.
53181 Include sys/time.h and grub/machine/time.h.
53182 (grub_get_rtc): Rewritten with gettimeofday.
53184 * util/grub-emu.c (main): Call grub_default_init and
53185 grub_timeout_init before grub_normal_init, and call
53186 grub_timeout_fini and grub_default_fini after grub_main.
53188 * util/console.c (grub_ncurses_checkkey): Return the read
53191 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
53194 * normal/main.c (read_config_file): Push MENU. If this fails,
53195 print an error and wait for a user input.
53196 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
53197 If a menu is empty or an error occurs, pop MENU.
53198 (grub_normal_execute): Pop and free MENU after grub_menu_run
53201 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
53203 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
53205 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53207 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
53209 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
53212 * include/grub/normal.h (struct grub_menu_list): New struct.
53213 (grub_menu_list_t): New type.
53214 (struct grub_context): New struct.
53215 (grub_context_t): New type.
53216 (grub_register_command): Got rid of EXPORT_FUNC.
53217 (grub_unregister_command): Likewise.
53218 (grub_context_get): New prototype.
53219 (grub_context_get_current_menu): Likewise.
53220 (grub_context_push_menu): Likewise.
53221 (grub_context_pop_menu): Likewise.
53222 [GRUB_UTIL] (grub_default_init): Likewise.
53223 [GRUB_UTIL] (grub_default_fini): Likewise.
53224 [GRUB_UTIL] (grub_timeout_init): Likewise.
53225 [GRUB_UTIL] (grub_timeout_fini): Likewise.
53227 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
53228 commands/timeout.c and normal/context.c.
53229 (pkgdata_MODULES): Added default.mod and timeout.mod.
53230 (normal_mod_SOURCES): Added normal/context.c.
53231 (default_mod_SOURCES): New variable.
53232 (default_mod_CFLAGS): Likewise.
53233 (timeout_mod_SOURCES): Likewise.
53234 (timeout_mod_CFLAGS): Likewise.
53235 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
53237 (pkgdata_MODULES): Added default.mod and timeout.mod.
53238 (normal_mod_SOURCES): Added normal/context.c.
53239 (default_mod_SOURCES): New variable.
53240 (default_mod_CFLAGS): Likewise.
53241 (timeout_mod_SOURCES): Likewise.
53242 (timeout_mod_CFLAGS): Likewise.
53244 * Makefile.in (all-local): Added $(MKFILES).
53246 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
53248 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
53249 (grub_emu_SOURCES): Likewise.
53250 (pkgdata_MODULES): Add `sun.mod'.
53251 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53252 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53254 (pkgdata_MODULES): Add `sun.mod'.
53255 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
53256 * include/grub/partition.h (grub_sun_partition_map_init): New
53258 (grub_sun_partition_map_fini): Likewise.
53259 * partmap/sun.c: New file.
53260 * util/grub-emu.c (main): Initialize and de-initialize the sun
53261 partitionmap support.
53263 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
53265 This implements an Emacs-like menu entry editor.
53267 * normal/menu_entry.c: New file.
53269 * util/console.c (grub_ncurses_putchar): Translate some Unicode
53270 characters to ASCII.
53271 (saved_char): New variable.
53272 (grub_ncurses_checkkey): Rewritten completely.
53273 (grub_ncurses_getkey): Likewise.
53274 (grub_ncurses_init): Call raw instead of cbreak.
53276 * normal/menu.c (print_entry): Do not put a space.
53277 (init_page): Renamed to ...
53278 (grub_menu_init_page): ... this. All callers changed.
53279 (edit_menu_entry): Removed.
53280 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
53282 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
53284 * kern/misc.c (grub_vprintf): Call grub_refresh.
53286 * normal/menu.c (DISP_LEFT): Renamed to ...
53287 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
53288 * normal/menu.c (DISP_UP): Renamed to ...
53289 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
53290 * normal/menu.c (DISP_RIGHT): Renamed to ...
53291 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
53292 * normal/menu.c (DISP_DOWN): Renamed to ...
53293 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
53294 * normal/menu.c (DISP_HLINE): Renamed to ...
53295 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
53296 * normal/menu.c (DISP_VLINE): Renamed to ...
53297 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
53298 * normal/menu.c (DISP_UL): Renamed to ...
53299 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
53300 * normal/menu.c (DISP_UR): Renamed to ...
53301 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
53302 * normal/menu.c (DISP_LL): Renamed to ...
53303 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
53304 * normal/menu.c (DISP_LR): Renamed to ...
53305 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
53306 * normal/menu.c (TERM_WIDTH): Renamed to ...
53307 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
53308 * normal/menu.c (TERM_HEIGHT): Renamed to ...
53309 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
53310 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
53311 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
53312 * normal/menu.c (TERM_MARGIN): Renamed to ...
53313 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
53314 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
53315 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
53316 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
53317 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
53318 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
53319 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
53320 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
53321 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
53322 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
53323 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
53324 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
53325 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
53326 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
53327 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
53328 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
53329 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
53330 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
53331 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
53332 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
53333 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
53334 All callers changed.
53336 * include/grub/normal.h: New prototype.
53338 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53339 normal/menu_entry.c.
53340 (normal_mod_SOURCES): Likewise.
53341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
53342 (normal_mod_SOURCES): Likewise.
53344 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
53346 * include/grub/normal.h (grub_halt_init): New prototype.
53347 (grub_halt_fini): Likewise.
53348 (grub_reboot_init): Likewise.
53349 (grub_reboot_fini): Likewise.
53351 * util/grub-emu.c: Include signal.h.
53352 (main_env): New global variable.
53353 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
53355 (grub_machine_fini): New function.
53356 (main): Call grub_halt_init and grub_reboot_init before
53357 grub_main, and grub_reboot_fini and grub_halt_fini after it.
53358 Call setjmp with MAIN_ENV to go back afterwards.
53359 Call grub_machine_fini right before return.
53361 * include/grub/util/misc.h: Include setjmp.h.
53362 (main_env): New prototype.
53364 * include/grub/kernel.h (grub_machine_fini): New prototype.
53365 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
53366 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
53368 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
53369 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
53370 * term/i386/pc/console.c (grub_console_fini): Likewise.
53372 * util/i386/pc/misc.c: New file.
53374 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
53375 util/i386/pc/misc.c, commands/i386/pc/halt.c and
53376 commands/i386/pc/reboot.c.
53378 2005-02-14 Guillem Jover <guillem@hadrons.org>
53380 * include/grub/dl.h (grub_dl_check_header): New prototype.
53381 (grub_arch_dl_check_header): Change return type to grub_err_t,
53382 remove size parameter and export function. Update all callers.
53383 * kern/dl.c (grub_dl_check_header): New function.
53384 (grub_dl_load_core): Use `grub_dl_check_header' instead of
53385 `grub_arch_dl_check_header'. Check ELF type. Check if sections
53386 are inside the core.
53387 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
53388 independent ELF header checks.
53389 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53390 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
53391 `grub_dl_check_header' instead of explicit checks. Check for the
53393 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
53394 `grub_dl_check_header' instead of explicit checks. Remove arch
53395 specific ELF header checks.
53397 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
53400 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
53402 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
53403 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
53405 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
53407 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
53408 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
53409 (part_map_iterate): Clear `grub_errno' and return 0 if
53410 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
53411 * partmap/amiga.c (amiga_partition_map_iterate): Return
53412 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
53413 * partmap/apple.c (apple_partition_map_iterate): Likewise.
53415 2005-02-01 Guillem Jover <guillem@hadrons.org>
53417 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
53420 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53422 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
53424 (grub_rescue_cmd_linux): New prototype.
53425 (grub_rescue_cmd_initrd): Likewise.
53426 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
53428 (grub_linux_release_mem): Release the memory for the initrd.
53429 (grub_load_linux): Renamed from this...
53430 (grub_rescue_cmd_linux): ...To this. Changed all callers.
53431 Changed `entry' not to be static. Loop over memory regions to
53432 find another one when the default fails.
53433 (grub_rescue_cmd_initrd): New function.
53434 (grub_linux_init): Remove function.
53435 (grub_linux_fini): Likewise.
53436 (GRUB_MOD_INIT): Register `initrd'.
53437 (GRUB_MOD_FINI): Unregister `initrd'.
53438 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
53440 (grub_linux_normal_fini): Likewise.
53441 (GRUB_MOD_INIT): Register `initrd'.
53442 (GRUB_MOD_FINI): Unregister `initrd'.
53444 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53446 * commands/help.c: New file.
53447 * normal/arg.c (show_help): Renamed to...
53448 (grub_arg_show_help): ... this.
53449 * commands/i386/pc/halt.c: New file.
53450 * commands/i386/pc/reboot.c: Likewise.
53451 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
53452 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
53453 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
53454 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
53456 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53458 (pkgdata_MODULES): Add `help.mod'.
53459 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
53460 * grub/i386/pc/init.h (grub_reboot): New prototype.
53461 (grub_halt): Likewise.
53462 * include/grub/normal.h (grub_arg_show_help): New prototype.
53463 (grub_help_init): Likewise.
53464 (grub_help_fini): Likewise.
53465 * util/grub-emu.c (main): Initialize and deinitialize the help
53468 * normal/cmdline.c (grub_cmdline_get): Doc fix.
53470 * normal/command.c (grub_command_init): Fixed the description of
53471 the `set' and `unset' commands.
53473 2005-01-31 Marco Gerards <metgerards@student.han.nl>
53475 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
53477 * commands/ieee1275/halt.c: New file.
53478 * commands/ieee1275/reboot.c: Likewise.
53479 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
53480 `__attribute__ ((unused))'. Some GCS related fixed.
53481 (grub_suspend_init) [GRUB_UTIL]: Function removed.
53482 (grub_suspend_fini): Likewise.
53483 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
53485 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
53486 (halt_mod_CFLAGS): New variables.
53487 * include/grub/powerpc/ieee1275/ieee1275.h
53488 (grub_ieee1275_interpret): New prototype.
53490 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
53492 * include/grub/misc.h (memmove): New prototype.
53493 (memcpy): Likewise.
53495 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
53497 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
53498 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
53500 2005-01-22 Marco Gerards <metgerards@student.han.nl>
53502 * kern/misc.c (grub_strndup): Function rewritten.
53504 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
53506 * normal/menu.c (TERM_WIDTH): Macro redefined.
53507 (TERM_TOP_BORDER_Y): Likewise.
53508 (draw_border): Replaced while-loop by a for-loop. Make the number
53509 of lines consistent with the number of lines displayed in
53510 print_entries. Added a margin below the rectangle.
53511 (print_entry): Make the entry fit in the rectangle.
53512 (print_entries): Display the scroll arrows next to the right
53515 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53517 * fs/minix.c (grub_minix_find_file): Reserve more space for
53518 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
53519 `grub_strncpy' to copy `path' into it.
53521 2005-01-21 Marco Gerards <metgerards@student.han.nl>
53523 Add the loopback device, a device via which files can be accessed
53526 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
53527 (pkgdata_MODULES): Add loopback.mod.
53528 (loopback_mod_SOURCES): New variable.
53529 (loopback_mod_CFLAGS): Likewise.
53530 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
53532 (pkgdata_MODULES): Add loopback.mod.
53533 (loopback_mod_SOURCES): New variable.
53534 (loopback_mod_CFLAGS): Likewise.
53535 * disk/loopback.c: new file.
53536 * include/grub/normal.h (grub_loop_init): New prototype.
53537 (grub_loop_fini): New prototype.
53538 * util/grub-emu.c (main): Initialize and de-initialize loopback
53540 * include/grub/disk.h (grub_disk_dev_id): Add
53541 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
53543 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
53545 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
53547 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
53548 (suspend_mod_SOURCES): New variable.
53549 (suspend_mod_CFLAGS): Likewise.
53550 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
53552 * commands/ieee1275/suspend.c: New file.
53554 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
53556 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
53557 ((unused))' to `__attribute__ ((used))'.
53558 (GRUB_MOD_FINI): Likewise.
53559 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
53560 * genmk.rb (PModule): Assign space to common symbols when linking
53563 2005-01-20 Marco Gerards <metgerards@student.han.nl>
53565 * include/grub/mm.h (grub_mm_init_region): Change the type of the
53566 `unsigned' arguments to `grub_size_t'.
53567 (grub_malloc): Likewise.
53568 (grub_realloc): Likewise.
53569 (grub_memalign): Likewise.
53570 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
53571 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
53572 * util/misc.c (grub_malloc): Likewise.
53573 (grub_realloc): Likewise.
53574 * kern/mm.c (get_header_from_pointer): Change the casts to
53575 `unsigned' into a cast to `grub_size_t'.
53577 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
53578 point to `currnode' when `currnode' is changed.
53580 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
53581 Schottelius <nico-linux@schottelius.org>.
53583 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
53585 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
53586 (note_path): Remove variable.
53587 (GRUB_IEEE1275_NOTE_NAME): New macro.
53588 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
53589 (grub_ieee1275_note_hdr): New structure.
53590 (grub_ieee1275_note_desc): Likewise.
53591 (grub_ieee1275_note): Likewise.
53592 (load_note): Remove `dir' argument. All callers updated. Remove
53593 `note_img' and `path'. Do not load a file from `note_path'.
53594 Initialize a struct grub_ieee1275_note and write that to `out'.
53595 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
53597 2005-01-05 Marco Gerards <metgerards@student.han.nl>
53599 * util/misc.c (grub_util_read_image): Revert last change. It
53600 called `grub_util_read_at', which seeks from the beginning of the
53603 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
53605 * TODO: Add note about endianness in grub-mkimage.
53606 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
53608 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
53609 (grub_mkimage_SOURCES): New target.
53610 * include/grub/kernel.h (grub_start_addr): Remove variable.
53611 (grub_end_addr): Likewise.
53612 (grub_total_module_size): Likewise.
53613 (grub_kernel_image_size): Likewise.
53614 (GRUB_MODULE_MAGIC): New constant.
53615 (grub_module_info): New structure.
53616 (grub_arch_modules_addr): New prototype.
53617 (grub_get_end_addr): Remove prototype.
53618 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
53619 * include/grub/powerpc/ieee1275/kernel.h: New file.
53620 * include/grub/util/misc.h (grub_util_get_fp_size): New
53622 (grub_util_read_at): Likewise.
53623 (grub_util_write_image_at): Likewise.
53624 * kern/main.c (grub_get_end_addr): Remove function.
53625 (grub_load_modules): Call grub_arch_modules_addr instead of using
53626 grub_end_addr. Look for a grub_module_info struct in memory. Use
53627 the grub_module_info fields instead of calling grub_get_end_addr
53628 as loop conditions. Move grub_add_unused_region code here.
53629 (grub_add_unused_region): Remove function.
53630 * kern/i386/pc/init.c: Include grub/cache.h.
53631 (grub_machine_init): Remove call to grub_get_end_addr. Remove
53632 one call to add_mem_region.
53633 (grub_arch_modules_addr): New function.
53634 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
53635 (grub_total_module_size): Likewise.
53636 Include grub/machine/kernel.h.
53637 (grub_arch_modules_addr): New function.
53638 * util/grub-emu.c (grub_end_addr): Remove variable.
53639 (grub_total_module_size): Likewise.
53640 (grub_arch_modules_addr): New function.
53641 * util/misc.c: Include unistd.h.
53642 (grub_util_get_fp_size): New function.
53643 (grub_util_read_at): Likewise.
53644 (grub_util_write_image_at): Likewise.
53645 (grub_util_read_image): Call grub_util_read_at.
53646 (grub_util_write_image): Call grub_util_write_image_at.
53647 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
53648 additional memory in kernel_img for a struct grub_module_info.
53649 Fill in that grub_module_info.
53650 * util/powerpc/ieee1275/grub-mkimage.c: New file.
53652 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53654 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
53656 * include/grub/powerpc/ieee1275/ieee1275.h
53657 (grub_ieee1275_milliseconds): New prototype.
53658 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
53660 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
53661 grub_ieee1275_milliseconds.
53663 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
53665 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
53667 (find_options): New function.
53668 (cmain): Call find_options.
53669 * include/grub/powerpc/ieee1275/ieee1275.h
53670 (grub_ieee1275_realmode): New extern variable.
53671 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
53672 grub_map if grub_ieee1275_realmode is false.
53674 2004-12-29 Marco Gerards <metgerards@student.han.nl>
53676 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
53677 lines are inserted and make it work like readline. Reported by
53678 Vincent Pelletier <subdino2004@yahoo.fr>.
53680 2004-12-28 Marco Gerards <metgerards@student.han.nl>
53682 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
53684 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
53685 `kern/powerpc/cache.S'.
53687 2004-12-27 Marco Gerards <metgerards@student.han.nl>
53689 * genmk.rb: Handle the `Program' class in the main loop. Written
53690 by Johan Rydberg <jrydberg@gnu.org>.
53691 (Program): New class.
53692 (programs): New variable.
53693 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
53694 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
53695 instead of "grub/kernel.h". Include <grub/machine/init.h>.
53696 (help_arch): Function removed.
53697 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
53698 `powerpc/libgcc.h' and `loader.h'.
53699 (pkgdata_PROGRAMS): New variable.
53700 (sbin_UTILITIES): Variable removed.
53701 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
53702 (grubof_SOURCES): Variable re-defined so it only includes the
53703 core functionality.
53704 (grubof_CFLAGS): Remove `-DGRUBOF'.
53705 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
53706 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
53707 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
53708 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
53709 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
53710 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
53711 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
53712 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
53713 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
53714 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
53715 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
53716 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
53717 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
53718 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
53719 (pc_mod_CFLAGS): New variables.
53720 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
53721 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
53722 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
53723 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
53725 * include/grub/i386/pc/init.h (grub_os_area_addr)
53726 (rub_os_area_size): ... to here.
53727 * include/grub/powerpc/ieee1275/ieee1275.h
53728 (grub_ieee1275_entry_fn): Export symbol.
53729 * include/grub/powerpc/ieee1275/init.h: New file.
53730 * include/grub/powerpc/libgcc.h: Likewise.
53731 * include/grub/cache.h: Likewise.
53732 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
53733 <hollis@penguinppc.org>.
53734 * kern/dl.c: Include <grub/cache.h>.
53735 (grub_dl_flush_cache): New function.
53736 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
53738 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
53739 (grub_console_init): Removed prototypes.
53740 (grub_machine_init): Don't initialize the modules anymore.
53741 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
53743 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
53744 Macro undef removed.
53745 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
53746 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
53747 relocation `R_PPC_REL32'. Return an error when the relocation is
53749 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
53750 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
53751 * util/misc.c (grub_arch_sync_caches): Likewise.
53753 2004-12-19 Marco Gerards <metgerards@student.han.nl>
53755 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
53756 `symlist.c', add `grubof_symlist.c'.
53757 (symlist.c): Variable removed.
53758 (grubof_HEADERS): Variable added.
53759 (grubof_symlist.c): New target.
53760 (kernel_syms.lst): Use `grubof_HEADERS' instead of
53761 `kernel_img_HEADERS'.
53762 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
53763 * kern/powerpc/dl.c: New file.
53764 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
53766 (grub_arch_dl_relocate_symbols): Likewise.
53767 (grub_register_exported_symbols): Likewise.
53769 2004-12-13 Marco Gerards <metgerards@student.han.nl>
53771 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
53772 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
53773 to fail instead. Reported by Vincent Pelletier
53774 <subdino2004@yahoo.fr>.
53776 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
53777 it is not allocated. Reported by Vincent Pelletier
53778 <subdino2004@yahoo.fr>.
53780 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
53781 output so the output looks better.
53783 2004-12-04 Marco Gerards <metgerards@student.han.nl>
53785 Modulize the partition map support and add support for the amiga
53788 * commands/ls.c: Include <grub/partition.h> instead of
53789 <grub/machine/partition.h>.
53790 * kern/disk.c: Likewise.
53791 * kern/rescue.c: Likewise.
53792 * loader/i386/pc/chainloader.c: Likewise.
53793 * normal/cmdline.c: Likewise.
53794 * kern/powerpc/ieee1275/init.c: Likewise.
53795 (grub_machine_init): Call `grub_pc_partition_map_init',
53796 `grub_amiga_partition_map_init' and
53797 `grub_apple_partition_map_init'.
53798 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
53799 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
53800 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
53801 `partition.h' and `pc_partition.h'.
53802 (grub_setup_SOURCES): Remove
53803 `disk/i386/pc/partition.c'. Add `kern/partition.c',
53804 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53805 (grub_emu_SOURCES): Likewise.
53806 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
53807 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
53808 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
53809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53810 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
53811 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
53812 (grubof_SOURCES): Likewise.
53813 * disk/i386/pc/partition.c: File removed.
53814 * disk/powerpc/ieee1275/partition.c: Likewise.
53815 * include/grub/powerpc/ieee1275/partition.h: Likewise.
53816 * include/grub/i386/pc/partition.h: Likewise.
53817 * kern/partition.c: New file.
53818 * partmap/amiga.c: Likewise.
53819 * partmap/apple.c: Likewise.
53820 * partmap/pc.c: Likewise.
53821 * include/grub/partition.h: Likewise..
53822 * include/grub/pc_partition.h: Likewise.
53823 * util/grub-emu.c: Include <grub/partition.h> instead of
53824 <grub/machine/partition.h>.
53825 (main): Call `grub_pc_partition_map_init',
53826 `grub_amiga_partition_map_init' and
53827 `grub_apple_partition_map_init' and deinitialize afterwards.
53828 * util/i386/pc/biosdisk.c: Include `#include
53829 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53830 `<grub/machine/partition.h>'.
53831 * util/i386/pc/grub-setup.c: Likewise.
53832 * util/i386/pc/biosdisk.c: Likewise.
53833 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
53834 partition information in case of a PC partition.
53835 * util/i386/pc/grub-setup.c: Include `#include
53836 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
53837 `<grub/machine/partition.h>'.
53838 (setup): Only access the PC specific partition information in case
53841 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
53843 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
53844 (grub_longjmp): Likewise.
53845 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
53847 * normal/powerpc/setjmp.S: New file.
53848 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
53849 `normal/powerpc/setjmp.S'.
53850 (grubof_CFLAGS): Add `-DGRUBOF'.
53851 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
53852 [GRUB_UTIL && !GRUBOF].
53854 2004-11-16 Marco Gerards <metgerards@student.han.nl>
53856 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
53857 property named `name'. Correctly handle the error returned by
53858 `grub_ieee1275_finddevice' if a device can not be opened.
53860 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
53862 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
53863 `actual' for negativity.
53864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
53867 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53869 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
53870 (PAGE_OFFSET): New macro.
53871 (CRTC_ADDR_PORT): Likewise.
53872 (CRTC_DATA_PORT): Likewise.
53873 (START_ADDR_HIGH_REGISTER): Likewise.
53874 (START_ADDR_LOW_REGISTER): Likewise.
53875 (GRAPHICS_ADDR_PORT): Likewise.
53876 (GRAPHICS_DATA_PORT): Likewise.
53877 (READ_MAP_REGISTER): Likewise.
53878 (INPUT_STATUS1_REGISTER): Likewise.
53879 (INPUT_STATUS1_VERTR_BIT): Likewise.
53880 (page): New variable.
53881 (wait_vretrace): New function.
53882 (set_read_map): Likewise.
53883 (set_start_address): Likewise.
53884 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
53886 (check_vga_mem): Take the page into account.
53887 (write_char): Likewise.
53888 (write_cursor): Likewise.
53889 (scroll_up): Likewise. Copy the page to the page that is not
53890 shown and switch between both pages.
53891 (grub_vga_putchar): Fix off by one error.
53892 (grub_vga_cls): Wait for the vertical retrace. Take the page into
53895 2004-11-01 Marco Gerards <metgerards@student.han.nl>
53897 Add support for iso9660 (including rockridge).
53899 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53900 (iso9660_mod_SOURCES): New variable.
53901 (iso9660_mod_CFLAGS): Likewise.
53902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
53903 * include/grub/fs.h (grub_iso9660_init): New prototype.
53904 * util/grub-emu.c (main): Call `grub_iso9660_init'.
53905 * fs/iso9660.c: New file.
53907 * include/grub/misc.h (grub_strncat): New prototype.
53908 * kern/misc.c (grub_strncat): New function.
53910 * fs/hfs.c (grub_hfs_mount): Translate the error
53911 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
53912 * fs/jfs.c (grub_jfs_mount): Likewise.
53913 * fs/ufs.c (grub_ufs_mount): Likewise.
53915 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
53917 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
53918 which initialized BAT registers.
53919 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
53920 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53922 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
53923 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
53925 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
53926 (grub_mapclaim): Likewise.
53927 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
53928 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
53931 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
53933 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
53934 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
53935 -ffreestanding and -msoft-float.
53937 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
53939 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
53940 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
53941 set in grub_ieee1275_flags.
53943 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
53945 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
53947 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
53948 grub_console_init first.
53949 Change the memory range used for grub_ieee1275_claim and
53950 grub_mm_init_region.
53951 Print an error message if the claim fails.
53952 Include <grub/misc.h>.
53954 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
53956 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
53957 Call grub_children_iterate for device nodes of type `scsi',
53959 (grub_ofdisk_open): Remove manual device alias resolution.
53960 Fix memory leak when device cannot be opened.
53961 * include/grub/powerpc/ieee1275/ieee1275.h
53962 (grub_children_iterate): New prototype.
53963 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
53965 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
53966 Return -1 if args.size was -1.
53968 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53970 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
53971 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
53972 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
53973 Open Firmware's memory for it; claim memory from _start to _end.
53974 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
53975 (_end): New extern.
53976 (_start): Zero BSS from __bss_start to _end.
53977 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
53979 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
53981 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
53983 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
53984 -1 if args.base was -1.
53986 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
53988 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
53989 escape sequence instead of a literal ^L. Also call
53990 grub_ofconsole_gotoxy.
53992 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
53994 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
53995 void * arguments to grub_addr_t. All callers updated. Also make
53996 the `result' argument optional.
53997 (grub_ieee1275_release): change void * arguments to grub_addr_t.
53998 All callers updated.
54000 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
54002 * commands/ls.c (grub_ls_list_files): Use the string following the
54003 initial ')', if present, as the filesystem path.
54004 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
54006 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
54008 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
54010 Make the source code of the menu interface more readable.
54012 * normal/menu.c: Include grub/mm.h.
54013 (TERM_WIDTH): New macro.
54014 (TERM_HEIGHT): Likewise.
54015 (TERM_INFO_HEIGHT): Likewise.
54016 (TERM_MARGIN): Likewise.
54017 (TERM_SCROLL_WIDTH): Likewise.
54018 (TERM_TOP_BORDER_Y): Likewise.
54019 (TERM_LEFT_BORDER_X): Likewise.
54020 (TERM_BORDER_WIDTH): Likewise.
54021 (TERM_MESSAGE_HEIGHT): Likewise.
54022 (TERM_BORDER_HEIGHT): Likewise.
54023 (TERM_NUM_ENTRIES): Likewise.
54024 (TERM_FIRST_ENTRY_Y): Likewise.
54025 (TERM_ENTRY_WIDTH): Likewise.
54026 (TERM_CURSOR_X): Likewise.
54027 (draw_border): Use macros instead of magic numbers.
54028 (print_entry): Likewise.
54029 (print_entries): Likewise.
54030 (run_menu): Likewise. Also, handle the key 'e'.
54031 (run_menu_entry): Ignore empty command lines.
54032 (print_message): Added a new argument EDIT. If EDIT is true,
54033 print a different message.
54034 (init_page): Likewise.
54035 (edit_menu_entry): New function. Not implemented yet.
54037 2004-09-17 Marco Gerards <metgerards@student.han.nl>
54039 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
54040 can be loaded from normal mode.
54042 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
54044 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
54045 (multiboot_mod_CFLAGS): New variables.
54046 * loader/i386/pc/linux_normal.c: New file.
54047 * loader/i386/pc/multiboot_normal.c: Likewise.
54049 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
54050 attribute `unused'.
54052 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
54053 `fdiro' to read the mode information from instead of `diro'.
54055 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
54056 looking up a symlink.
54058 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
54060 * normal/command.c (grub_command_execute): Don't parse the
54061 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
54062 flags of the command.
54064 * normal/menu.c (grub_menu_run): Fix typo.
54066 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
54068 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
54070 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
54071 `y + 1' instead of `y - 1'.
54073 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
54075 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
54077 From Hollis Blanchard <hollis@penguinppc.org>:
54078 * kern/misc.c (memmove): New alias for grub_memmove.
54079 (memcmp): New alias for grub_memcmp.
54080 (memset): New alias for grub_memset.
54081 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
54082 Change "int handle" to "grub_ieee1275_phandle_t handle".
54083 * include/grub/powerpc/ieee1275/ieee1275.h
54084 (grub_ieee1275_get_property): Likewise.
54086 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
54088 Added normal mode command `chainloader' as module chain.mod, which
54089 depends on normal.mod and _chain.mod.
54091 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
54092 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
54093 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
54095 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
54096 but arguments parsing moved to ...
54097 (grub_chainloader_cmd): ... here. New function.
54098 * include/grub/i386/pc/chainloader.h: New file.
54099 * loader/i386/pc/chainloader_normal.c: Likewise.
54101 2004-09-11 Marco Gerards <metgerards@student.han.nl>
54103 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
54104 (grub_mkimage_LDFLAGS): Likewise.
54105 (grub_emu_SOURCES): Likewise.
54106 (kernel_img_HEADERS): Added fshelp.h.
54107 * fs/ext2.c: Include <grub/fshelp.h>.
54108 (FILETYPE_REG): New macro.
54109 (FILETYPE_INO_REG): Likewise.
54110 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
54112 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
54114 (grub_fshelp_node): New struct.
54115 (grub_ext2_data): Added member `diropen'. Changed member `inode'
54117 (grub_ext2_get_file_block): Removed function.
54118 (grub_ext2_read_block): New function.
54119 (grub_ext2_read_file): Replaced parameter `data' by `node'.
54120 This function was written.
54121 (grub_ext2_mount): Read the root inode. Create a diropen struct.
54122 (grub_ext2_find_file): Removed function.
54123 (grub_ext2_read_symlink): New function.
54124 (grub_ext2_iterate_dir): Likewise.
54125 (grub_ext2_open): Rewritten.
54126 (grub_ext2_dir): Rewritten.
54127 * include/grub/fshelp.h: New file.
54128 * fs/fshelp.c: Likewise.
54130 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
54132 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
54133 (print_message): Add a missing newline.
54134 (run_menu): Added timeout support.
54135 (run_menu_entry): New local function.
54136 (grub_menu_run): Added support for booting.
54138 * kern/loader.c (grub_loader_is_loaded): New function.
54140 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
54141 (grub_get_rtc): Exported.
54143 * include/grub/i386/pc/time.h: Include grub/symbol.h.
54144 (grub_get_rtc): Exported.
54146 * include/grub/normal.h (struct grub_command_list): Remove
54147 constant from the member `command'.
54149 * include/grub/loader.h (grub_loader_is_loaded): Declared.
54151 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
54153 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
54155 2004-08-28 Marco Gerards <metgerards@student.han.nl>
54157 Add support for the JFS filesystem.
54159 * fs/jfs.c: New file.
54160 * include/grub/fs.h (grub_jfs_init): New prototype.
54161 (grub_jfs_fini): New prototype.
54162 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
54163 (grub_emu_SOURCES): Likewise.
54164 (pkgdata_MODULES): Add jfs.mod.
54165 (jfs_mod_SOURCES): New variable.
54166 (jfs_mod_CFLAGS): Likewise.
54167 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
54168 (grubof_SOURCES): Likewise.
54169 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
54171 * fs/fat.c (grub_fat_find_dir): Convert the filename little
54172 endian to the host endian.
54173 (grub_fat_utf16_to_utf8): Move function from there...
54174 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
54175 the endianness of the source string anymore.
54176 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
54178 2004-08-24 Marco Gerards <metgerards@student.han.nl>
54180 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
54181 (grub_boot_fini) [GRUB_UTIL]: Likewise.
54182 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
54183 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
54185 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
54186 (grub_hfs_iterate_dir): Make the function static. Add prototypes
54187 for `node_found' and `it_dir'.
54188 (grub_hfs_dir): Add prototype for `dir_hook'.
54190 * fs/minix.c (grub_minix_get_file_block): Add prototype for
54191 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
54192 and `indir32' to silence a gcc warning.
54194 * include/grub/fs.h (grub_hfs_init): New prototype.
54195 (grub_hfs_fini): Likewise.
54198 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
54200 Each disk device has its own id now. This is useful to make use
54201 of multiple disk devices.
54203 * include/grub/disk.h (grub_disk_dev_id): New enum.
54204 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
54205 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
54207 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
54208 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54210 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
54211 GRUB_DISK_DEVICE_OFDISK_ID as an id.
54213 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
54214 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
54216 * include/grub/disk.h (struct grub_disk_dev): Added a new member
54217 "id" which is used by the cache manager.
54219 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
54222 2004-08-18 Marco Gerards <metgerards@student.han.nl>
54224 * fs/hfs.c: New file.
54225 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
54226 (grub_emu_SOURCES): Likewise.
54227 (pkgdata_MODULES): Add hfs.mod.
54228 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
54229 (grubof_SOURCES): Likewise.
54230 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
54232 * include/grub/misc.h (grub_strncasecmp): Add prototype.
54233 * kern/misc.c (grub_strncasecmp): Add function.
54235 2004-08-14 Marco Gerards <metgerards@student.han.nl>
54237 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
54240 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
54241 (grub_ext2_dir): In case the directory entry type is unknown, read
54244 2004-08-02 Peter Bruin <pjbruin@dds.nl>
54246 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
54247 grub_load_linux instead of grub_rescue_cmd_linux as second
54248 argument of grub_rescue_register_command.
54250 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
54252 2004-07-27 Marco Gerards <metgerards@student.han.nl>
54254 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
54256 * commands/boot.c: Remove the check for `GRUB_UTIL'.
54257 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
54258 `loader/powerpc/ieee1275/linux.c',
54259 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
54260 * include/grub/powerpc/ieee1275/ieee1275.h
54261 (grub_ieee1275_release): New prototype.
54262 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
54263 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
54264 normal, boot, linux and linux_normal.
54265 * loader/powerpc/ieee1275/linux.c: New file.
54266 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
54268 2004-07-12 Marco Gerards <metgerards@student.han.nl>
54270 * normal/arg.c (grub_arg_parse): Correct error handling after
54271 reallocating the argumentlist (check if `argl' is not null instead
54272 of checking if `args' is not null).
54273 * kern/mm.c (grub_realloc): Return the same pointer when using the
54274 same region, instead of returning the header address.
54276 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54278 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
54279 one block instead of two when looking for the initial partition.
54280 (grub_partition_probe): Initialize the local variable `p' with 0.
54281 Use base 10 for the grub_strtoul call.
54282 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
54283 need for one local variable.
54284 (grub_strtoul): Don't add the new value to `num', instead of that
54287 2004-07-11 Marco Gerards <metgerards@student.han.nl>
54289 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
54290 (pxeboot_img_SOURCES): New variable.
54291 (pxeboot_img_ASFLAGS): Likewise.
54292 (pxeboot_img_LDFLAGS): Likewise.
54293 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
54294 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
54295 <lode_leroy@hotmail.com>.
54297 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54299 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
54300 there was no input.
54302 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54304 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
54305 the history buffer logic.
54307 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
54309 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
54310 (FILETYPE_INO_SYMLINK): New macros.
54311 (grub_ext2_find_file): Check if the node is a directory using the
54312 inode stat information instead of using the filetype in the
54313 dirent. Exclude the first character of an absolute symlink.
54314 (grub_ext2_dir): Mask out the filetype part of the mode member of
54317 2004-05-24 Marco Gerards <metgerards@student.han.nl>
54319 Add support for UFS version 1 and 2. Add support for the minix
54320 filesystem version 1 and 2, both the variants with 14 and 30 long
54323 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
54325 (grub_emu_SOURCES): Likewise.
54326 (pkgdata_MODULES): Add ufs.mod and minix.mod.
54327 (ufs_mod_SOURCES): New variable.
54328 (ufs_mod_CFLAGS): Likewise.
54329 (minix_mod_SOURCES): Likewise.
54330 (minix_mod_CFLAGS): Likewise.
54331 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
54333 (grubof_SOURCES): Likewise.
54334 * fs/ufs.c: New file.
54335 * fs/minix.c: New file.
54336 * include/grub/fs.h (grub_ufs_init): New prototype.
54337 (grub_ufs_fini): Likewise.
54338 (grub_minix_init): Likewise.
54339 (grub_minix_fini): Likewise.
54340 * util/grub-emu.c (main): Initialize and deinitialize UFS and
54343 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
54345 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
54346 commands/ls.c, commands/terminal.c, commands/boot.c,
54347 commands/cmp.c and commands/cat.c.
54348 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
54350 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
54353 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54355 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
54356 and grub_, respectively. Because the conversion is trivial and
54357 mechanical, I omit the details here. Please refer to the CVS
54358 if you need more information.
54360 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
54362 * include/pupa: Renamed to ...
54363 * include/grub: ... this.
54364 * util/i386/pc/pupa-mkimage.c: Renamed to ...
54365 * util/i386/pc/grub-mkimage.c: ... this.
54366 * util/i386/pc/pupa-setup.c: Renamed to ...
54367 * util/i386/pc/grub-setup.c: ... this.
54368 * util/pupa-emu.c: Renamed to ...
54369 * util/grub-emu.c: ... this.
54371 2004-03-29 Marco Gerards <metgerards@student.han.nl>
54373 Add support for the newworld apple macintosh (PPC). This has been
54374 tested on the powerbook 2000 only. It only adds support for
54375 generic ieee1275 functions, console and disk support. This should
54376 be easy to port to other architectures with support for Open
54379 * configure.ac: Accept the powerpc as host_cpu. In the case of
54380 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
54381 specific tests are only executed while building for the i386.
54382 Inverse test for crosscompile.
54383 * genmk.rb (Utility): Allow assembler files.
54384 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
54385 * conf/powerpc-ieee1275.rmk: New file.
54386 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
54387 * disk/powerpc/ieee1275/partition.c: Likewise.
54388 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
54389 * include/pupa/powerpc/ieee1275/console.h: Likewise.
54390 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
54391 * include/pupa/powerpc/ieee1275/time.h: Likewise.
54392 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
54393 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
54394 * include/pupa/powerpc/ieee1275/loader.h
54395 * include/pupa/powerpc/setjmp.h: Likewise.
54396 * include/pupa/powerpc/types.h: Likewise.
54397 * kern/powerpc/ieee1275/init.c: Likewise.
54398 * kern/powerpc/ieee1275/openfw.c: Likewise.
54399 * term/powerpc/ieee1275/ofconsole.c: Likewise.
54401 These files were written by Johan Rydberg
54402 (jrydberg@night.trouble.net) and I only modified them slightly.
54404 * boot/powerpc/ieee1275/cmain.c: New file.
54405 * boot/powerpc/ieee1275/crt0.S: Likewise.
54406 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
54407 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
54409 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
54411 * Makefile.in: Update copyright.
54412 * genmodsrc.sh: Likewise.
54413 * gensymlist.sh: Likewise.
54414 * term/i386/pc/vga.c: Indent correctly.
54416 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
54417 bugreporting address.
54418 * util/i386/pc/pupa-setup.c (usage): Likewise,
54419 (main): Call pupa_ext2_init and pupa_ext2_fini.
54421 * fs/fat.c (log2): Renamed to ...
54422 (fat_log2): ... this.
54423 All callers changed.
54424 * kern/misc.c (memcpy): Alias to pupa_memmove.
54425 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
54427 * util/console.c (pupa_ncurses_fini): Return 0.
54429 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
54430 Move fail label here.
54431 [__GNU__]: Don't warn when using stat.
54432 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
54433 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
54434 long int. Use strtol instead of strtoul.
54436 2004-03-14 Marco Gerards <metgerards@student.han.nl>
54438 * commands/boot.c: New file.
54439 * commands/cat.c: Likewise.
54440 * commands/cmp.c: Likewise.
54441 * commands/ls.c: Likewise.
54442 * commands/terminal.c: Likewise.
54443 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
54444 (pupa_register_command): Changed interface to match the new
54446 (pupa_command_execute): Changed (almost rewritten) so it uses
54447 pupa_split_command. Added support for setting variables using the
54449 (rescue_command): Changed to work with the new argument parser.
54450 (terminal_command): Moved from here to commands/terminal.c.
54451 (set_command): New function.
54452 (unset_command): New function.
54453 (insmod_command): New function.
54454 (rmmod_command): New function.
54455 (lsmod_command): New function.
54456 (pupa_command_init): Don't initialize the command terminal
54457 anymore. Initialize the commands set, unset, insmod, rmmod and
54459 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
54460 (kernel_img_HEADERS): Add arg.h and env.h.
54461 (pupa_mkimage_LDFLAGS): Add kern/env.c.
54462 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
54463 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
54465 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
54467 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
54468 (boot_mod_SOURCES): New variable.
54469 (terminal_mod_SOURCES): Likewise.
54470 (ls_mod_SOURCES): Likewise.
54471 (cmp_mod_SOURCES): Likewise.
54472 (cat_mod_SOURCES): Likewise.
54474 * normal/arg.c: New file.
54475 * kern/env.c: Likewise.
54476 * include/pupa/arg.h: Likewise.
54477 * include/pupa/env.h: Likewise.
54478 * font/manager.c (font_command): Changed to match argument parsing
54480 (PUPA_MOD_INIT): Likewise.
54481 * hello/hello.c (pupa_cmd_hello): Likewise.
54482 (PUPA_MOD_INIT): Likewise.
54483 * include/pupa/disk.h: Include <pupa/device.h>.
54484 (pupa_print_partinfo): New prototype.
54485 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
54486 (pupa_dl_get_prefix): Likewise.
54487 * include/pupa/misc.h: Include <pupa/err.h>.
54488 (pupa_isgraph): New prototype.
54489 (pupa_isdigit): Likewise.
54490 (pupa_split_cmdline): Likewise.
54491 * include/pupa/normal.h: Include <pupa/arg.h>.
54492 (pupa_command): Changed the prototype of the member `func' to
54493 match the argument parsing interface. Added member `options'.
54494 (pupa_register_command): Updated to match function.
54495 (pupa_arg_parse): New prototype.
54496 (pupa_hello_init) [PUPA_UTIL]: New prototype.
54497 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
54498 (pupa_ls_init) [PUPA_UTIL]: Likewise.
54499 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
54500 (pupa_cat_init) [PUPA_UTIL]: Likewise.
54501 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
54502 (pupa_boot_init) [PUPA_UTIL]: Likewise.
54503 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
54504 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
54505 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
54506 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
54507 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
54508 * kern/disk.c: Include <pupa/file.h>.
54509 (pupa_print_partinfo): New function.
54510 * kern/dl.c: Include <pupa/env.h>.
54511 (pupa_dl_dir): Variable removed.
54512 (pupa_dl_load): Use the environment variable `prefix' instead of
54513 the variable pupa_dl_dir.
54514 (pupa_dl_set_prefix): Function removed.
54515 (pupa_dl_get_prefix): Likewise.
54516 * kern/i386/pc/init.c: Include <pupa/env.h>.
54517 (pupa_machine_init): Use the environment variable `prefix' instead of
54518 using pupa_dl_set_prefix to set the prefix.
54519 * kern/main.c: Include <pupa/env.h>.
54520 (pupa_set_root_dev): Use the environment variable `prefix' instead of
54521 using pupa_dl_get_prefix to get the prefix.
54522 * kern/misc.c: Include <pupa/env.h>.
54523 (pupa_isdigit): New function.
54524 (pupa_isgraph): Likewise.
54525 (pupa_ftoa): Likewise.
54526 (pupa_vsprintf): Added support for printing values of the type
54527 `double'. Make it possible to format variable output when using
54528 formatting like `%1.2%f'.
54529 (pupa_split_cmdline): New function.
54530 * kern/rescue.c: Include <pupa/env.h>.
54531 (next_word): Removed function.
54532 (pupa_rescue_cmd_prefix): Likewise.
54533 (pupa_rescue_cmd_set): New function.
54534 (pupa_rescue_cmd_unset): New function.
54535 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
54536 split the command line instead of splitting it here. Added
54537 support for setting variables using the syntax `foo=bar'. Don't
54538 initialize the prefix command anymore. Initialized the set and
54540 * normal/cmdline.c: Include <pupa/env.h>.
54541 (pupa_tab_complete): Added prototypes for print_simple_completion,
54542 print_partition_completion, add_completion, iterate_commands,
54543 iterate_dev, iterate_part and iterate_dir. Moved code to print
54544 partition information from here to kern/disk.c.
54545 (pupa_cmdline_run): Don't check if the function exists anymore.
54546 * normal/main.c: Include <pupa/env.h>.
54547 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
54548 instead of using pupa_dl_get_prefix to get the prefix.
54549 * term/i386/pc/vga.c: Include <pupa/arg.h>.
54550 (check_vga_mem): Cast pointers to `void *' to silence a gcc
54552 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
54553 (pupa_vga_setcolor): Declare unused variables with `__attribute__
54554 ((unused))' to silence a gcc warning.
54555 (pupa_vga_setcolor): Likewise.
54556 (debug_command): Changed to match argument parsing
54558 * util/pupa-emu.c: Include <pupa/env.h>.
54559 (options): Added 0's for unused fields to silence a gcc warning.
54561 (main): Use the environment variable `prefix' instead of using
54562 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
54563 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
54566 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
54567 * util/misc.c: Include <malloc.h>.
54568 (pupa_malloc): Rewritten so errors are correctly reported.
54569 (pupa_realloc): Likewise.
54570 (pupa_memalign): Likewise.
54571 (pupa_mm_init_region): Declare unused variables with
54572 `__attribute__ ((unused))' to silence a gcc warning.
54573 * normal/i386/setjmp.S: Remove tab at the end of the file to
54574 silence a gcc warning.
54575 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
54576 variables with `__attribute__ ((unused))' to silence a gcc
54578 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
54579 local variable i unsigned to silence a gcc warning.
54581 * kern/term.c: Include <pupa/misc.h>.
54582 (pupa_more_lines): New variable.
54583 (pupa_more): Likewise.
54584 (pupa_putcode): When the pager is active pause at the end of every
54586 (pupa_set_more): New function.
54587 * include/pupa/term.h (pupa_set_more): New prototype.
54590 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
54592 Now this project is GRUB 2 rather than PUPA. The location of
54593 the CVS repository was moved to GRUB's.
54595 * configure.ac: Use bug-grub as the reporting address.
54596 Use GRUB instead of PUPA.
54597 Change the version number to 1.90.
54599 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
54601 * genkernsyms.sh: Updated copyright information.
54602 * genmk.rb: Likewise.
54603 * genmodsrc.sh: Likewise.
54604 * gensymlist.sh: Likewise.
54605 * boot/i386/pc/boot.S: Likewise.
54606 * boot/i386/pc/diskboot.S: Likewise.
54607 * disk/i386/pc/biosdisk.c: Likewise.
54608 * disk/i386/pc/partition.c: Likewise.
54609 * font/manager.c: Likewise.
54610 * fs/ext2.c: Likewise.
54611 * fs/fat.c: Likewise.
54612 * include/pupa/boot.h: Likewise.
54613 * include/pupa/device.h: Likewise.
54614 * include/pupa/disk.h: Likewise.
54615 * include/pupa/dl.h: Likewise.
54616 * include/pupa/elf.h: Likewise.
54617 * include/pupa/err.h: Likewise.
54618 * include/pupa/file.h: Likewise.
54619 * include/pupa/font.h: Likewise.
54620 * include/pupa/fs.h: Likewise.
54621 * include/pupa/kernel.h: Likewise.
54622 * include/pupa/loader.h: Likewise.
54623 * include/pupa/misc.h: Likewise.
54624 * include/pupa/mm.h: Likewise.
54625 * include/pupa/net.h: Likewise.
54626 * include/pupa/normal.h: Likewise.
54627 * include/pupa/rescue.h: Likewise.
54628 * include/pupa/setjmp.h: Likewise.
54629 * include/pupa/symbol.h: Likewise.
54630 * include/pupa/term.h: Likewise.
54631 * include/pupa/types.h: Likewise.
54632 * include/pupa/i386/setjmp.h: Likewise.
54633 * include/pupa/i386/types.h: Likewise.
54634 * include/pupa/i386/pc/biosdisk.h: Likewise.
54635 * include/pupa/i386/pc/boot.h: Likewise.
54636 * include/pupa/i386/pc/console.h: Likewise.
54637 * include/pupa/i386/pc/init.h: Likewise.
54638 * include/pupa/i386/pc/kernel.h: Likewise.
54639 * include/pupa/i386/pc/linux.h: Likewise.
54640 * include/pupa/i386/pc/loader.h: Likewise.
54641 * include/pupa/i386/pc/memory.h: Likewise.
54642 * include/pupa/i386/pc/multiboot.h: Likewise.
54643 * include/pupa/i386/pc/partition.h: Likewise.
54644 * include/pupa/i386/pc/time.h: Likewise.
54645 * include/pupa/i386/pc/vga.h: Likewise.
54646 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
54647 * include/pupa/util/getroot.h: Likewise.
54648 * include/pupa/util/misc.h: Likewise.
54649 * include/pupa/util/resolve.h: Likewise.
54650 * kern/device.c: Likewise.
54651 * kern/disk.c: Likewise.
54652 * kern/dl.c: Likewise.
54653 * kern/err.c: Likewise.
54654 * kern/file.c: Likewise.
54655 * kern/fs.c: Likewise.
54656 * kern/loader.c: Likewise.
54657 * kern/main.c: Likewise.
54658 * kern/misc.c: Likewise.
54659 * kern/mm.c: Likewise.
54660 * kern/rescue.c: Likewise.
54661 * kern/term.c: Likewise.
54662 * kern/i386/dl.c: Likewise.
54663 * kern/i386/pc/init.c: Likewise.
54664 * kern/i386/pc/lzo1x.S: Likewise.
54665 * kern/i386/pc/startup.S: Likewise.
54666 * loader/i386/pc/chainloader.c: Likewise.
54667 * loader/i386/pc/linux.c: Likewise.
54668 * loader/i386/pc/multiboot.c: Likewise.
54669 * normal/cmdline.c: Likewise.
54670 * normal/command.c: Likewise.
54671 * normal/main.c: Likewise.
54672 * normal/menu.c: Likewise.
54673 * normal/i386/setjmp.S: Likewise.
54674 * term/i386/pc/console.c: Likewise.
54675 * term/i386/pc/vga.c: Likewise.
54676 * util/console.c: Likewise.
54677 * util/genmoddep.c: Likewise.
54678 * util/misc.c: Likewise.
54679 * util/pupa-emu.c: Likewise.
54680 * util/resolve.c: Likewise.
54681 * util/unifont2pff.rb: Likewise.
54682 * util/i386/pc/biosdisk.c: Likewise.
54683 * util/i386/pc/getroot.c: Likewise.
54684 * util/i386/pc/pupa-mkimage.c: Likewise.
54685 * util/i386/pc/pupa-setup.c: Likewise.
54687 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
54689 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
54690 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
54691 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
54692 reading and reset it after reading.
54693 (pupa_ext2_close): Return PUPA_ERR_NONE.
54695 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
54697 (struct linux_kernel_header): Add kernel_version and
54699 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
54700 pupa_file_read succeeds.
54701 (pupa_rescue_cmd_initrd): Implement.
54703 2003-12-03 Marco Gerards <metgerards@student.han.nl>
54705 * fs/ext2.c (pupa_ext2_label): New function.
54706 (pupa_ext2_fs): Added label.
54707 * fs/fat.c (pupa_fat_label): New function.
54708 (pupa_fat_fs): Added label.
54709 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
54711 * kern/misc.c (pupa_strndup): New function.
54712 * include/pupa/misc.h (pupa_strndup): New prototype.
54714 * include/pupa/normal.h: Include <pupa/err.h>.
54715 (pupa_set_history): New prototype.
54716 (pupa_iterate_commands): New prototype.
54717 * normal/cmdline.c: Include <pupa/machine/partition.h>,
54718 <pupa/disk.h>, <pupa/file.h>.
54719 (hist_size): New variable.
54720 (hist_lines): Likewise.
54721 (hist_end): Likewise.
54722 (hist_used): Likewise.
54723 (pupa_set_history): New function.
54724 (pupa_history_get): Likewise.
54725 (pupa_history_add): Likewise.
54726 (pupa_history_replace): Likewise.
54727 (pupa_tab_complete): Likewise.
54728 (pupa_cmdline_run): Added tab completion and history buffer. Tab
54729 completion shows partitionnames while completing partitions, this
54730 feature was suggested by Jeff Bailey.
54731 * normal/command.c (pupa_iterate_commands): New function.
54732 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
54733 (pupa_normal_init): Initialize history buffer.
54734 (PUPA_MOD_INIT): Likewise.
54735 (pupa_normal_fini): Free the history buffer.
54736 (PUPA_MOD_FINI): Likewise.
54738 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
54741 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
54742 * configure.ac [i386]: Check for regparam bug.
54743 (NESTED_FUNC_ATTR) [! i386]: Defined.
54745 2003-11-17 Marco Gerards <metgerards@student.han.nl>
54747 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
54748 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
54749 (pupa_emu_SOURCES): New variable.
54750 (pupa_emu_LDFLAGS): Likewise.
54751 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
54752 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
54753 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
54754 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54755 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
54756 (pupa_jmp_buf): New typedef.
54757 (pupa_setjmp) [PUPA_UTIL]: New macro.
54758 (pupa_longjmp) [PUPA_UTIL]: Likewise.
54759 * include/pupa/term.h (struct pupa_term): New member `refresh'.
54760 (pupa_refresh): New prototype.
54761 * include/pupa/util/getroot.h: New file.
54762 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
54764 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
54765 (pupa_rescue_cmd_cat): Likewise.
54766 (pupa_rescue_cmd_ls): Likewise.
54767 (pupa_rescue_cmd_testload): Likewise.
54768 (pupa_rescue_cmd_lsmod): Likewise.
54769 * normal/cmdline.c (pupa_cmdline_get): Likewise.
54770 * normal/menu.c (run_menu): Likewise.
54771 * kern/term.c (pupa_cls): Likewise.
54772 (pupa_refresh): New function.
54773 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
54774 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
54775 * util/console.c: New file.
54777 * util/i386/pc/getroot.c: New file.
54778 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
54779 (pupa_putchar): New function.
54780 (pupa_refresh): Likewise.
54781 (xgetcwd): Function moved to ...
54782 (strip_extra_slashes): Likewise.
54783 (get_prefix): Likewise.
54784 * util/i386/pc/getroot.c: ... here.
54785 (find_root_device): Function moved and renamed to...
54786 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
54787 Changed all callers.
54788 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
54790 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
54791 Changed all callers.
54792 * util/misc.c (pupa_memalign): New function.
54793 (pupa_mm_init_region): Likewise.
54794 (pupa_register_exported_symbols): Likewise.
54795 (pupa_putchar): Function removed.
54796 * util/pupa-emu.c: New file.
54798 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
54800 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
54801 (_multiboot_mod_SOURCES): New variable.
54802 (_multiboot_mod_CFLAGS): Likewise.
54803 * loader/i386/pc/multiboot.c: New file.
54804 * include/pupa/i386/pc/multiboot.h: Likewise.
54805 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
54806 (pupa_multiboot_real_boot): New function.
54807 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
54808 (pupa_multiboot_real_boot): New prototype.
54809 (pupa_rescue_cmd_multiboot): Likewise
54810 (pupa_rescue_cmd_module): Likewise.
54812 * kern/loader.c (pupa_loader_set): Continue when
54813 pupa_loader_unload_func() fails.
54814 (pupa_loader_unset): New function.
54815 * include/pupa/loader.h (pupa_loader_unset): New prototype.
54817 * kern/misc.c (pupa_stpcpy): New function.
54818 * include/pupa/misc.h (pupa_stpcpy): New prototype.
54820 2003-11-12 Marco Gerards <metgerards@student.han.nl>
54822 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
54823 for available extensions.
54825 * include/pupa/i386/pc/time.h: New file.
54826 * kern/disk.c: Include <pupa/machine/time.h>.
54827 (PUPA_CACHE_TIMEOUT): New macro.
54828 (pupa_last_time): New variable.
54829 (pupa_disk_open): Flush the cache when there was a timeout.
54830 (pupa_disk_close): Reset the timer.
54831 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
54833 * util/misc.c: Include <sys/times.h>
54834 (pupa_get_rtc): New function.
54836 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
54838 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
54840 (pupa_ext2_get_file_block): Use blocks member.
54842 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
54843 first block. Return -1 instead of pupa_errno on error.
54845 2003-10-27 Marco Gerards <metgerards@student.han.nl>
54847 * README: In the pupa-mkimage example use _chain instead of chain
54848 and ext2 instead of fat.
54849 * TODO: Replace ext2fs with jfs as an example. Add an item for
54850 adding journal playback for ext2fs.
54851 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
54852 (pkgdata_MODULES): Added ext2.mod.
54853 (ext2_mod_SOURCES): New variable.
54854 (ext2_mod_CFLAGS): Likewise.
54855 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
54856 * include/pupa/misc.h (pupa_strncpy): New prototype.
54857 (pupa_strcat): Likewise.
54858 (pupa_strncmp): Likewise.
54859 * kern/misc.c (pupa_strcat): Enable function.
54860 (pupa_strncpy): New function.
54861 (pupa_strncmp): Likewise.
54862 * fs/ext2.c: New file.
54864 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
54865 when the read failed before retrying.
54866 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
54867 (_FILE_OFFSET_BITS): Likewise.
54868 * configure.ac: Added AC_SYS_LARGEFILE.
54870 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54872 * genmk.rb (PModule#rule): Make sure to get only symbol names
54873 from the output of nm.
54874 Reported by Robert Millan <rmh.grub@aybabtu.com>.
54876 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
54878 I forgot to check in these changes for a long time. This adds
54879 incomplete support for VGA console, and this is still very
54880 buggy. Also, a lot of consideration is required for I18N,
54881 UNICODE, and VGA font issues. Therefore, assume that this is
54882 such that "better than nothing".
54884 * font/manager.c: New file.
54885 * include/pupa/font.h: Likewise.
54886 * include/pupa/i386/pc/vga.h: Likewise.
54887 * term/i386/pc/vga.c: Likewise.
54888 * util/unifont2pff.rb: Likewise.
54890 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
54891 (pkgdata_MODULES): Added vga.mod and font.mod.
54892 (vga_mod_SOURCES): New variables.
54893 (vga_mod_CFLAGS): Likewise.
54894 (font_mod_SOURCES): Likewise.
54895 (font_mod_CFLAGS): Likewise.
54897 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
54899 * include/pupa/term.h: Include pupa/err.h.
54900 (struct pupa_term): Added init and fini.
54901 Changed the argument of putchar to pupa_uint32_t.
54903 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
54904 (pupa_console_real_putchar): New prototype.
54905 (pupa_console_putchar): Removed.
54906 (pupa_console_checkkey): Exported.
54907 (pupa_console_getkey): Likewise.
54909 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
54912 * kern/term.c (pupa_term_set_current): Rewritten.
54913 (pupa_putchar): Likewise.
54914 (pupa_putcode): New function.
54916 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
54917 (pupa_console_real_putchar): ... this.
54918 (pupa_vga_set_mode): New function.
54919 (pupa_vga_get_font): Likewise.
54921 * normal/command.c: Include pupa/term.h.
54922 (terminal_command): New function.
54923 (pupa_command_init): Register the command "terminal".
54925 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
54926 (DISP_UP): Likewise.
54927 (DISP_RIGHT): Likewise.
54928 (DISP_DOWN): Likewise.
54929 (DISP_HLINE): Likewise.
54930 (DISP_VLINE): Likewise.
54931 (DISP_UL): Likewise.
54932 (DISP_UR): Likewise.
54933 (DISP_LL): Likewise.
54934 (DISP_LR): Likewise.
54936 * term/i386/pc/console.c (pupa_console_putchar): New function.
54938 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
54940 * util/resolve.c (pupa_util_resolve_dependencies): BUG
54941 FIX. Reverse the path_list.
54943 * include/pupa/normal.h: Export pupa_register_command and
54944 pupa_unregister_command.
54946 * hello/hello.c (pupa_cmd_hello): New module.
54947 * conf/i386-pc.rmk: Added hello.mod.
54949 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
54951 * kern/i386/pc/lzo1x.S: New file.
54953 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
54954 (compress_kernel): New variable.
54955 (generate_image): Heavily modified to support compressing a
54956 large part of the core image.
54958 * util/misc.c (pupa_util_read_image): Fix a file descriptor
54960 (pupa_util_load_image): New function.
54962 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
54963 (pupa_compressed_size): New variable.
54964 (codestart): Enable Gate A20 here.
54965 Decompress the compressed part of the core image.
54966 Rearrange the code to put functions and variables which are
54967 required for initialization in the non-compressed part.
54970 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
54973 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
54975 * include/pupa/i386/pc/kernel.h
54976 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
54977 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
54978 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
54979 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
54980 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
54982 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
54984 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
54985 (Utility#rule): Likewise.
54987 * configure.ac: Check if LZO is available.
54989 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
54991 * include/pupa/normal.h: New file.
54992 * include/pupa/setjmp.h: Likewise.
54993 * include/pupa/i386/setjmp.h: Likewise.
54994 * normal/cmdline.c: Likewise.
54995 * normal/command.c: Likewise.
54996 * normal/main.c: Likewise.
54997 * normal/menu.c: Likewise.
54998 * normal/i386/setjmp.S: Likewise.
55000 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
55001 (pupa_rescue_cmd_initrd): Likewise.
55003 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
55006 * kern/i386/pc/startup.S (translation_table): New variable.
55007 (translate_keycode): New function.
55008 (pupa_console_getkey): Call translate_keycode.
55010 * kern/rescue.c (attempt_normal_mode): New function.
55011 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
55012 it failed, print a message.
55014 * kern/mm.c (pupa_real_malloc): Print more information when a
55015 free magic is broken.
55016 (pupa_free): If the first free header is not free actually, set
55019 * kern/main.c (pupa_load_normal_mode): Just load the module
55021 (pupa_main): Don't print the message
55022 "Entering into rescue mode..." here.
55024 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
55026 (pupa_rescue_cmd_initrd): Likewise.
55027 (pupa_rescue_cmd_initrd): Likewise.
55029 * include/pupa/symbol.h (FUNCTION): Specify the type.
55030 (VARIABLE): Likewise.
55032 * include/pupa/err.h (pupa_err_t): Added
55033 PUPA_ERR_UNKNOWN_COMMAND.
55035 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
55036 (pupa_dl_get_prefix): Likewise.
55038 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
55039 Added _chain.mod and _linux.mod instead of chain.mod and
55041 (chain_mod_SOURCES): Renamed to ...
55042 (_chain_mod_SOURCES): ... this.
55043 (chain_mod_CFLAGS): Renamed to ...
55044 (_chain_mod_CFLAGS): ... this.
55045 (linux_mod_SOURCES): Renamed to ...
55046 (_linux_mod_SOURCES): ... this.
55047 (linux_mod_CFLAGS): Renamed to ...
55048 (_linux_mod_CFLAGS): ... this.
55049 (normal_mod_SOURCES): New variable.
55050 (normal_mod_CFLAGS): Likewise.
55051 (normal_mod_ASFLAGS): Likewise.
55053 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
55055 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
55058 * kern/dl.c (pupa_dl_ref): Refer depending modules
55060 (pupa_dl_unref): Unrefer depending modules recursively.
55061 Don't call pupa_dl_unload implicitly, because PUPA can crash if
55062 a module is unloaded before one depending on that module is
55064 (pupa_dl_unload): Unload depending modules explicitly,
55067 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
55069 * include/pupa/i386/pc/linux.h: New file.
55070 * loader/i386/pc/linux.c: Likewise.
55072 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
55074 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
55075 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
55076 of PUPA_CHAINLOADER_BOOT_SECTOR.
55078 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
55079 (pupa_linux_prot_size): New variable.
55080 (pupa_linux_tmp_addr): Likewise.
55081 (pupa_linux_real_addr): Likewise.
55082 (pupa_linux_boot_zimage): New function.
55083 (pupa_linux_boot_bzimage): Likewise.
55085 * kern/i386/pc/init.c (struct mem_region): New structure.
55086 (MAX_REGIONS): New macro.
55087 (mem_regions): New variable.
55088 (num_regions): Likewise.
55089 (pupa_os_area_addr): Likewise.
55090 (pupa_os_area_size): Likewise.
55091 (pupa_lower_mem): Likewise.
55092 (pupa_upper_mem): Likewise.
55093 (add_mem_region): New function.
55094 (compact_mem_regions): Likewise.
55095 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
55096 the size of the conventional memory and that of so-called upper
55097 memory (before the first memory hole).
55098 Instead of adding each found region to free memory, use
55099 add_mem_region and add them after removing overlaps.
55100 Also, add only 1/4 of the upper memory to free memory. The rest
55101 is used for loading OS images. Maybe this is ad hoc, but this
55102 makes it much easier to relocate OS images when booting.
55104 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
55105 (pupa_enter_rescue_mode): Don't register initrd and module.
55107 * kern/mm.c: Include pupa/dl.h.
55109 * kern/main.c: Include pupa/file.h and pupa/device.h.
55111 * kern/loader.c (pupa_loader_load_module_func): Removed.
55112 (pupa_loader_load_module): Likewise.
55114 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
55117 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
55118 (pupa_linux_tmp_addr): Likewise.
55119 (pupa_linux_real_addr): Likewise.
55120 (pupa_linux_boot_zimage): Likewise.
55121 (pupa_linux_boot_bzimage): Likewise.
55123 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
55124 (pupa_upper_mem): Likewise.
55125 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
55126 module is too dangerous.
55128 * include/pupa/loader.h (pupa_os_area_addr): Declared.
55129 (pupa_os_area_size): Likewise.
55130 (pupa_loader_set): Remove the first argument. Loader doesn't
55131 manage modules or initrd any longer.
55132 (pupa_loader_load_module): Removed.
55134 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
55135 (linux_mod_SOURCES): New variable.
55136 (linux_mod_CFLAGS): Likewise.
55138 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
55140 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
55141 the length of a blocklist correctly.
55143 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
55144 Use ioctl only if the OS file is a block device.
55145 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
55146 not very useful for normal files.
55148 * kern/main.c (pupa_set_root_dev): New function.
55149 (pupa_load_normal_mode): Likewise.
55150 (pupa_main): Call those above.
55152 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
55155 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
55157 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
55159 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
55160 (setup): Configure the installed partition information and the
55163 * loader/i386/pc/chainloader.c (my_mod): New variable.
55164 (pupa_chainloader_unload): New function.
55165 (pupa_rescue_cmd_chainloader): Refer itself.
55166 (PUPA_MOD_INIT): Save its own module in MY_MOD.
55168 * kern/i386/pc/startup.S (install_partition): Removed.
55169 (version_string): Likewise.
55170 (config_file): Likewise.
55171 (pupa_install_dos_part): New variable.
55172 (pupa_install_bsd_part): Likewise.
55173 (pupa_prefix): Likewise.
55174 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
55176 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
55178 (make_install_device): New function.
55179 (pupa_machine_init): Set the dl prefix.
55181 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
55182 (buf): Renamed to ...
55183 (linebuf): ... this.
55184 (pupa_rescue_cmd_prefix): New function.
55185 (pupa_rescue_cmd_insmod): Likewise.
55186 (pupa_rescue_cmd_rmmod): Likewise.
55187 (pupa_rescue_cmd_lsmod): Likewise.
55188 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
55191 * kern/mm.c (pupa_memalign): If failed even after invalidating
55192 disk caches, unload unneeded modules and retry.
55194 * kern/misc.c (pupa_memmove): New function.
55195 (pupa_memcpy): Removed.
55196 (pupa_strcpy): New function.
55197 (pupa_itoa): Made static.
55199 * kern/dl.c (pupa_dl_iterate): New function.
55200 (pupa_dl_ref): Likewise.
55201 (pupa_dl_unref): Likewise.
55202 (pupa_dl_unload): Return if succeeded or not.
55203 (pupa_dl_unload_unneeded): New function.
55204 (pupa_dl_unload_all): Likewise.
55205 (pupa_dl_init): Renamed to ...
55206 (pupa_dl_set_prefix): ... this.
55207 (pupa_dl_get_prefix): New function.
55209 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
55210 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
55211 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
55212 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
55213 (pupa_install_dos_part): Declared.
55214 (pupa_install_bsd_part): Likewise.
55215 (pupa_prefix): Likewise.
55216 (pupa_boot_drive): Likewise.
55218 * include/pupa/types.h: Fix a typo.
55220 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
55222 (pupa_memmove): Declared.
55223 (pupa_strcpy): Likewise.
55225 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
55226 pupa_mod_init takes one argument, its own module.
55227 (pupa_dl_unload_unneeded): Declared.
55228 (pupa_dl_unload_all): Likewise.
55229 (pupa_dl_ref): Likewise.
55230 (pupa_dl_unref): Likewise.
55231 (pupa_dl_iterate): Likewise.
55232 (pupa_dl_init): Renamed to ...
55233 (pupa_dl_set_prefix): ... this.
55234 (pupa_dl_get_prefix): Declared.
55236 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
55237 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
55239 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
55240 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
55242 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
55243 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
55245 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55247 * util/i386/pc/pupa-setup.c (setup): Define the internal
55248 function find_first_partition_start at the top level, because GCC
55249 3.0.x cannot compile internal functions in deeper scopes
55251 (find_root_device): Use lstat instead of stat.
55252 Don't follow symbolic links.
55253 Fix the path-constructing code.
55255 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
55256 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
55257 by a BLKGETSIZE ioctl first, because block devices don't fill
55258 the member st_mode of the structure stat on Linux.
55259 [__linux__] (linux_find_partition): Use a temporary buffer
55260 REAL_DEV for the working space. Copy it to DEV before returning.
55261 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
55262 buffer cache consistent.
55263 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
55264 strncmp. The previous value was merely wrong.
55265 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
55267 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
55268 FAT size is 12. The previous value was merely wrong.
55270 * kern/main.c (pupa_main): Don't split the starting message from
55273 * kern/term.c (pupa_putchar): Put CR after LF instead of before
55274 LF, because BIOS goes crazy about character attributes in this
55277 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
55279 * include/i386/pc/util/biosdisk.h: New file.
55280 * util/i386/pc/biosdisk.c: Likewise.
55281 * util/i386/pc/pupa-setup.c: Likewise.
55283 * Makefile.in (INCLUDE_DISTFILES): Added
55284 include/pupa/i386/pc/util/biosdisk.h.
55285 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
55286 directory util/i386/pc.
55287 (install-local): Added a rule for sbin_UTILITIES.
55288 (uninstall): Likewise.
55290 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
55292 * util/misc.c (xrealloc): New function.
55293 (pupa_malloc): Likewise.
55294 (pupa_free): Likewise.
55295 (pupa_realloc): Likewise.
55296 (pupa_stop): Likewise.
55297 (pupa_putchar): Likewise.
55299 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
55301 * include/pupa/util/misc.h (xrealloc): Declared.
55303 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
55305 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
55306 (PUPA_BOOT_MACHINE_BPB_END): ... this.
55308 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
55309 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55311 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
55312 way should be implemented.
55313 [PUPA_UTIL] (pupa_fat_fini): Likewise.
55315 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
55316 the size of NAME for safety.
55317 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
55320 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
55321 (pupa_setup_SOURCES): Likewise.
55323 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
55325 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55327 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
55328 bunch of pushl's from pusha, because this destroys the return
55331 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
55333 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
55334 This means that any missing prototypes could be fatal. Also, you
55335 must take care when writing assembly code. See the comments at
55336 the beginning of startup.S, for more details.
55338 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
55339 compilation mechanism.
55340 (pupa_chainloader_real_boot): Likewise.
55341 (pupa_biosdisk_rw_int13_extensions): Likewise.
55342 (pupa_biosdisk_rw_standard): Likewise.
55343 (pupa_biosdisk_check_int13_extensions): Likewise.
55344 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
55345 (pupa_biosdisk_get_diskinfo_standard): Likewise.
55346 (pupa_get_memsize): Likewise.
55347 (pupa_get_mmap_entry): Likewise.
55348 (pupa_console_putchar): Likewise.
55349 (pupa_console_setcursor): Likewise.
55350 (pupa_getrtsecs): Use pushl instead of push.
55352 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
55353 memory instead of the stack for a mmap entry, because some
55354 BIOSes may ignore the maximum size and overflow.
55356 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
55358 * genmk.rb (PModule#rule): Compile automatically generated
55359 sources with module-specific CFLAGS as well as other sources.
55361 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55363 * configure.ac: Check ld.
55364 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
55365 respectively, before checking endianness and sizes.
55367 * Makefile.in (LD): New variable.
55369 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55371 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
55373 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
55375 * Changelog: New file.